/* Search V2 -- game quick-filter bar + Recently viewed strip. Tokens come from #search-v2-root (searchV2.css). */

/* ---- quick bar ---- */
.hlrbo-sv2-qb { position: relative; margin: 0 0 12px; min-width: 0; }
.hlrbo-sv2-qb[hidden] { display: none; }
.hlrbo-sv2-qb-track {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px;
    scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.hlrbo-sv2-qb-track::-webkit-scrollbar { display: none; }
.hlrbo-sv2-qb::before, .hlrbo-sv2-qb::after {
    content: ""; position: absolute; top: 0; bottom: 4px; width: 28px; z-index: 1; pointer-events: none;
    opacity: 0; transition: opacity .15s;
}
.hlrbo-sv2-qb::before { left: 0; background: linear-gradient(to right, var(--sv2-bg, #F8F9FA), rgba(248, 249, 250, 0)); }
.hlrbo-sv2-qb::after { right: 0; background: linear-gradient(to left, var(--sv2-bg, #F8F9FA), rgba(248, 249, 250, 0)); }
.hlrbo-sv2-qb.has-left::before, .hlrbo-sv2-qb.has-right::after { opacity: 1; }
.hlrbo-sv2-qb-chip {
    flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--hlrbo-border-control, #767676); background: var(--hlrbo-surface, #fff);
    color: var(--sv2-text, #1A1A1A); font-size: 14px; font-weight: 600; line-height: 1; font-family: inherit; cursor: pointer; white-space: nowrap;
    transition: background-color .12s, color .12s, border-color .12s;
}
.hlrbo-sv2-qb-chip:hover { border-color: var(--sv2-primary-dark, #31420E); }
.hlrbo-sv2-qb-chip.is-on { background: var(--sv2-primary-dark, #31420E); border-color: var(--sv2-primary-dark, #31420E); color: var(--hlrbo-static-white, #fff); }
.hlrbo-sv2-qb-chip:focus-visible, .hlrbo-sv2-rv-link:focus-visible, .hlrbo-sv2-rv-clear:focus-visible {
    outline: 3px solid var(--focus-ring, #4D6029); outline-offset: 2px;
}

/* ---- recently viewed ---- */
.hlrbo-sv2-rv { margin: 0 0 16px; min-width: 0; }
.hlrbo-sv2-rv[hidden] { display: none; }
.hlrbo-sv2-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.hlrbo-sv2-rv-h { margin: 0; font-size: 14px; font-weight: 700; color: var(--sv2-text, #1A1A1A); }
.hlrbo-sv2-rv-clear {
    min-height: 44px; padding: 0 8px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit;
    color: var(--sv2-text-secondary, #666); text-decoration: underline;
}
.hlrbo-sv2-rv-clear:hover { color: var(--sv2-text, #1A1A1A); }
.hlrbo-sv2-rv-list {
    list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin;
}
.hlrbo-sv2-rv-item { flex: 0 0 auto; }
.hlrbo-sv2-rv-link {
    display: flex; align-items: center; gap: 10px; width: 220px; min-height: 56px; padding: 6px; border-radius: 12px;
    background: var(--hlrbo-surface, #fff); border: 1px solid var(--sv2-border, #E0E0E0); text-decoration: none; color: inherit;
}
.hlrbo-sv2-rv-link:hover { border-color: var(--sv2-primary-dark, #31420E); }
.hlrbo-sv2-rv-thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--sv2-placeholder-bg, #E8EAE4); }
.hlrbo-sv2-rv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hlrbo-sv2-rv-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hlrbo-sv2-rv-title { font-size: 13px; font-weight: 600; color: var(--sv2-text, #1A1A1A); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlrbo-sv2-rv-price { font-size: 12px; color: var(--sv2-text-secondary, #666); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .hlrbo-sv2-qb-track { scroll-behavior: auto; } .hlrbo-sv2-qb-chip { transition: none; } }

/* Divider between the game group and the price-term group. */
.hlrbo-sv2-qb-sep { flex: 0 0 auto; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--sv2-border, #E0E0E0); }
/* Chip sets (game / price term) lay out inline inside the scrolling track. */
.hlrbo-sv2-qb-set { display: inline-flex; flex: 0 0 auto; gap: 8px; } /* not display:contents — that can strip the group role */
