/* Gift finder: quiz and result preview share the supplied design. */
.gift-finder { --gift-hl: 111, 41, 41; min-height: 70vh; }
.gift-finder [hidden] { display: none !important; }
.gift-finder .content { padding: 30px 0; }
.gift-finder .top-banner { background: rgba(var(--brandc), .15); }
.gift-finder .top-banner > .content { display: flex; align-items: center; gap: 24px; }
.gift-finder .banner-actions { display: flex; flex: 1; min-width: 0; min-height: 44px; align-items: center; justify-content: flex-end; }
.gift-finder .top-banner [data-restart] { min-width: 0; max-width: 100%; background: rgba(var(--gift-hl), .1); color: rgba(var(--gift-hl), 1); border: 0; position: relative; padding-left: 34px; }
.gift-finder .top-banner [data-restart]:before { position: absolute; content: '\ea19'; left: 14px; top: 50%; transform: translateY(-50%); content: '\ea19'; font-family: 'icons'; font-size: 14px;  }
.gift-finder .top-banner [data-restart]:hover { background: rgba(var(--gift-hl), .15); }
.gift-finder .top-banner [data-restart]:active { background: rgba(var(--gift-hl), .125); }
.gift-finder .top-banner h1 { font-size: 26px; font-weight: 500; color: rgb(var(--gift-hl)); position: relative; padding-left: 28px; }
.gift-finder .top-banner h1:before {
  position: absolute;
  font-family: 'icons';
  content: '\ea17';
  font-size: 18px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.gift-finder fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.gift-finder .quiz-panel { width: min(530px, 100%); margin: 30px auto; }
.gift-finder .question { width: 100%; font-size: 22px; line-height: 1.3; margin-bottom: 40px; font-weight: 500; text-align: center; }
.gift-finder .progress { display: flex; align-items: center; width: 100%; max-width: 400px; }
.gift-finder .progress .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.6); }
.gift-finder .progress .inner { min-width: 8px; height: 100%; border-radius: inherit; background: rgb(var(--gift-hl)); transition: width 300ms ease; }
.gift-finder .count { color: #666; white-space: nowrap; }
.gift-finder .options { display: flex; flex-direction: column; gap: 12px; }
.gift-finder .option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 18px 14px 58px; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 3px 12px #0000000f; font-size: 19px; line-height: 1.4; cursor: pointer; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.gift-finder .option:hover { border-color: #888; }
.gift-finder .option:has(input:checked) { border-color: rgb(var(--gift-hl)); box-shadow: inset 0 0 0 1px rgb(var(--gift-hl)); background: #fff; }
.gift-finder .option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; clip-path: inset(50%); }
.gift-finder :is(button, input, .filters):focus-visible { outline: 3px solid rgb(var(--gift-hl)); outline-offset: 3px; }
.gift-finder .option:has(input:focus-visible) { outline: 3px solid rgb(var(--gift-hl)); outline-offset: 3px; }
.gift-finder .validation { min-height: 24px; margin: 12px 0; color: #8d2323; font-size: 14px; }
.gift-finder .quiz-actions { display: flex; gap: 12px; justify-content: center; }
.gift-finder button { cursor: pointer; }
.gift-finder .primary, .gift-finder .secondary { min-height: 44px; border-radius: 22px; padding: 12px 18px; font-size: 15px; line-height: 1.3; font-weight: 600; }
.gift-finder .primary { border: 1px solid rgb(var(--gift-hl)); background: rgb(var(--gift-hl)); color: #fff; }
.gift-finder [data-next] { border-color: rgb(var(--tc)); background: rgb(var(--tc)); color: #fff; }
.gift-finder .secondary { border: 1px solid #ccc; background: #fff; color: #333; }
.gift-finder button:disabled { opacity: .4; cursor: default; }
.gift-finder .filter-bar { position: sticky; top: 60px; z-index: 100; background: #fff; border-bottom: 1px solid #e6e6e6; box-shadow: 0 4px 10px #00000006; }
.gift-finder .filter-bar > .content { padding-top: 12px; padding-bottom: 12px; }
.gift-finder .filters { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 4px 4px 10px; margin: -4px; }
.gift-finder .filter { position: relative; flex: 0 0 190px; width: 190px; min-width: 190px; max-width: 190px; min-height: 68px; text-align: left; padding: 0; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.gift-finder .filter:hover, .gift-finder .filter[aria-expanded="true"] { border-color: rgb(var(--gift-hl)); }
.gift-finder .filter .label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; }
.gift-finder .filter .value { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; }
.gift-finder .chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: 'icons'; font-size: 12px; color: #666; }
.gift-finder .chevron::before { content: '\ea07'; }
.gift-finder [aria-expanded="true"] .chevron { transform: translateY(-50%) rotate(270deg); }
.gift-finder .filter-trigger { position: relative; display: block; width: 100%; min-height: 66px; padding: 12px 34px 12px 14px; border: 0; background: transparent; color: inherit; text-align: inherit; }
.gift-finder .filter:has([aria-expanded="true"]) { border-color: rgb(var(--gift-hl)); }
.gift-finder .native-filter { display: none; }
.gift-finder .native-filter-feedback { margin: 0; color: #8d2323; font-size: 14px; }
.gift-finder .native-filter-feedback:not(:empty) { margin-top: 10px; }
.gift-finder .filter:focus-within { outline: 2px solid rgb(var(--tc)); outline-offset: 2px; }
.gift-finder .results-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
.gift-finder h2 { font-size: 22px; color: rgba(var(--tc), 0.7); line-height: 1.3; font-weight: 500; }
.gift-finder .products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.gift-finder .product-group + .product-group { margin-top: 36px; }
.gift-finder .product-group-heading { margin: 0 0 20px; font-size: 16px; line-height: 1.4; font-weight: 500; position: relative; padding-left: 18px; color: rgba(var(--tc), 0.9); }
.gift-finder .product-group-heading:before {
  content: '';
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  background: #009DFF;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
.gift-finder .product-group-note { margin: -10px 0 20px; font-size: 14px; line-height: 1.4; color: #666; }
.gift-finder .product-group-heading.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gift-finder .placeholder .image { aspect-ratio: 1; background: #efefef; border-radius: 6px; margin-bottom: 12px; }
.gift-finder .placeholder .name { height: 14px; width: 85%; background: #eee; border-radius: 4px; margin-bottom: 8px; }
.gift-finder .placeholder .price { height: 14px; width: 35%; background: #eee; border-radius: 4px; }
@media (max-width: 900px) {
  .gift-finder .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
  .gift-finder .quiz-panel { margin: 10px auto; }
  .gift-finder .question { font-size: 20px; margin-bottom: 30px; }
  .gift-finder .option { font-size: 17px; min-height: 56px; }
  .gift-finder .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .gift-finder .results-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* Match the site content widths and responsive outer gutters. */
@media screen and (max-width: 1100px) {
  .gift-finder .content { padding-left: 20px; padding-right: 20px; }
}
@media screen and (max-width: 800px) {
  .gift-finder .results-heading h2 { font-size: 20px; }
  .gift-finder .top-banner > .content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 16px; }
  .gift-finder .banner-actions { display: contents; }
  .gift-finder .top-banner h1 { grid-column: 1; grid-row: 1; font-size: 22px; }
  .gift-finder .top-banner:has(.progress:not([hidden])) h1 { grid-column: 1 / -1; justify-self: center; }
  .gift-finder .progress { grid-column: 1 / -1; grid-row: 2; justify-self: center; padding: 0 20px; }
  .gift-finder .top-banner [data-restart] { grid-column: 2; grid-row: 1; width: 44px; height: 44px; padding: 0; }
  .gift-finder .top-banner [data-restart]:before { left: 50%; transform: translate(-50%, -50%); }
  .gift-finder .top-banner [data-restart] .restart-label { display: none; }
  .gift-finder .content { padding-left: 10px; padding-right: 10px; }
}

/* Reserve icon space independently of emoji font rendering. */
.gift-finder .option-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 28px; display: flex; align-items: center; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 23px; line-height: 1; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .gift-finder .option, .gift-finder .progress .inner { transition: none; }
}

/* Reuse the existing filter-context menu and showContext positioning on desktop. */
.gift-filter-context { width: 320px; max-width: calc(100vw - 20px); max-height: min(540px, calc(100dvh - 160px)); overflow-y: auto; overscroll-behavior-y: contain; }
.gift-filter-context fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.gift-filter-context .context-title { font-size: 15px; font-weight: 600; padding: 10px; }
.gift-filter-context .item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 44px; line-height: 1.4; }
.gift-filter-context .item input { order: 1; flex: 0 0 16px; width: 16px; height: 16px; margin: 0 0 0 auto; accent-color: rgb(var(--tc)); }
.gift-filter-context .item:has(input:checked) { font-weight: 600; }
.gift-filter-context .option-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 26px; display: flex; align-items: center; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 20px; line-height: 1; pointer-events: none; }
.gift-filter-context .context-feedback { color: #8d2323; font-size: 13px; padding: 0 10px; }
.gift-filter-context .context-feedback:not(:empty) { padding: 10px; }
.gift-filter-context .context-apply { width: 100%; padding: 12px; margin-top: 8px; border: 0; border-radius: 6px; background: rgb(var(--tc)); color: #fff; cursor: pointer; }
.gift-filter-context :is(input, button):focus-visible { outline: 2px solid rgb(var(--tc)); outline-offset: 2px; }
@media screen and (max-width: 800px) {
  .gift-finder .native-filter { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
  .gift-filter-context { display: none; }
}

/* Use the ticker's exact fade gradients, 32px arrows and icon styling. */
.gift-finder .gift-filter-scroll { margin: 0; }
.gift-finder .gift-filter-scroll .filters { margin: 0; padding: 0; scrollbar-width: none; }
.gift-finder .gift-filter-scroll .filters::-webkit-scrollbar { display: none; }
.gift-finder .gift-filter-scroll .filter:focus-within { outline-offset: -2px; }

/* Equal desktop columns for the currently visible filters. */
@media screen and (min-width: 1101px) {
  .gift-finder .filter { flex: 0 0 calc((100% - (var(--filter-count, 3) - 1) * 12px) / var(--filter-count, 3)); width: calc((100% - (var(--filter-count, 3) - 1) * 12px) / var(--filter-count, 3)); min-width: 0; max-width: calc((100% - (var(--filter-count, 3) - 1) * 12px) / var(--filter-count, 3)); }
}

.gift-finder [data-product-status] { margin: 0 0 20px; color: #666; }
.gift-finder [data-product-status]:empty { display: none; }
.gift-finder [data-retry] { margin-bottom: 20px; }
.gift-finder .product-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
/* Original gift finder thumbnail treatment (December 2025). */
.gift-finder .product-link .image { box-sizing: border-box; width: 100%; aspect-ratio: 1; margin-bottom: 10px; border-radius: 6px; overflow: hidden; position: relative; text-align: center; display: flex; align-items: center; justify-content: center; padding: 20px; user-select: none; border: 1px transparent solid; background: #fff; }
.gift-finder .product-link .image::after { content: ''; position: absolute; inset: 0; opacity: .03; background: #000; z-index: 1; pointer-events: none; }
.gift-finder .product-link:hover .image { box-shadow: 0 0 6px rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }
.gift-finder .product-link:active .image { border-color: rgba(0,0,0,.125); }
.gift-finder .product-link img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gift-finder .product-link .name { font-size: 16px; line-height: 1.4; font-weight: 700; margin: 0 0 4px; padding: 0 4px; }
.gift-finder .product-link .price { margin: 0; padding: 0 4px; font-weight: 400; color: rgba(0,0,0,0.6); font-size: 14px; }
.gift-finder .product-link:focus-visible { outline: 2px solid rgb(var(--tc)); outline-offset: 4px; }

.gift-finder .product-link .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gift-finder .load-more-area { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0 32px; min-height: 100px; }
.gift-finder [data-load-more] { position: relative; min-width: 180px; background: rgb(var(--tc)); border-color: rgb(var(--tc)); }
.gift-finder [data-load-more][aria-busy="true"] { opacity: 1; cursor: wait; }
.gift-finder [data-load-more] .app-spinner { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; opacity: .6; }
.gift-finder [data-load-more][aria-busy="true"] .app-spinner { display: block; }
.gift-finder [data-load-more][aria-busy="true"] [data-more-label] { visibility: hidden; }

/* Refresh the new information glyph even when the older icon font is cached. */
@font-face { font-family: 'Icons'; src: url('/fonts/icons.woff2?v=822f1ede') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+EA1A; }
.gift-finder .gift-disclosure { display: flex; align-items: center; gap: 20px; width: calc(100% - 40px); max-width: 540px; margin: 32px auto 40px; color: rgba(var(--tc), .65); font-size: 11px; font-weight: 500; line-height: 1.5; text-align: left; }
.gift-finder .gift-disclosure p { margin: 0; }
.gift-finder .gift-disclosure-icon { flex: 0 0 16px; color: rgba(var(--tc), .35); font-family: 'Icons'; font-size: 16px; font-weight: 400; line-height: 1; }
.gift-finder .gift-disclosure-icon::before { content: '\ea1a'; }
