/* Shared controls introduced in the launch pass. */
.premium .header-actions .header-search {
  position: relative;
  flex: 0 0 44px;
  min-width: 44px;
  padding: 0;
}
.header-search .search-glyph { left: calc(50% - 7px); }
.premium .topbar .header-search:hover { border-color: var(--blue); }

.premium .quick-search { max-height: min(80dvh, 40rem); }
.quick-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: .6rem;
}
.quick-search-field { position: relative; }
.quick-search-field input { height: 100%; min-height: 46px; margin: 0; padding-inline-start: 2.35rem; }
.quick-search-field .search-glyph { left: .85rem; }
#quick-search-status { margin: .72rem 0 .42rem; font-size: .8rem; }
#quick-search-options {
  display: grid;
  gap: .3rem;
  margin: 0;
  padding: .16rem;
  list-style: none;
  max-height: min(41vh, 21rem);
  overflow: auto;
  overscroll-behavior: contain;
}
#quick-search-options li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "type arrow" "title arrow" "detail arrow";
  align-items: center;
  column-gap: .6rem;
  padding: .56rem .75rem;
  border: 1px solid #8bb7ee35;
  border-radius: .5rem;
  background: #0e1b2f;
  cursor: pointer;
}
#quick-search-options li:hover,
#quick-search-options li[aria-selected="true"] {
  background: #1a304f;
  border-color: #8bc5ff8a;
}
.quick-result-type {
  grid-area: type;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .64rem;
  font-weight: 800;
}
#quick-search-options strong { grid-area: title; font-size: .9rem; overflow-wrap: anywhere; }
.quick-result-detail { grid-area: detail; color: var(--muted); min-width: 0; font-size: .77rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-result-detail:empty { display: none; }
.quick-result-arrow { grid-area: arrow; color: var(--blue); }
.clear-catalog { min-height: 44px; }

.product-info { min-width: 0; }
.product-info h3 { overflow-wrap: anywhere; }
.card-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  padding-top: .65rem;
  border-top: 1px solid #9fc5f431;
  color: #c5e0ff;
  font-size: .76rem;
  font-weight: 800;
}
.card-details span { color: var(--brand-gold); transition: transform 220ms var(--ease); }
.product-link:is(:hover, :focus-visible) .card-details span { transform: translate(2px, -2px); }
.purchase-help-links { display: flex; flex-wrap: wrap; gap: .35rem .85rem; }
.product-emblem {
  display: grid;
  position: relative;
  place-items: center;
  width: clamp(5rem, 27%, 10rem);
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 35% 24%, #37629b, #14283f 65%);
  border: 1px solid #a4ccff87;
  border-radius: 1.3rem;
  box-shadow: 0 18px 55px #040c1a99, inset 0 1px #d0e9ff8f;
  color: #c1e1ff;
}
.product-emblem::before,
.product-emblem::after {
  content: "";
  position: absolute;
  inset: -17%;
  border: 1px solid #9bc4f141;
  border-radius: 26%;
  transform: rotate(-21deg);
  pointer-events: none;
}
.product-emblem::after {
  inset: -34%;
  border-color: #9bc4f124;
  transform: rotate(-34deg);
}
.product-emblem .product-symbol { font-size: clamp(1.9rem, 5.3vw, 3.75rem); }

.checkout-steps, .order-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.checkout-steps { gap: .4rem; }
.checkout-steps li {
  padding: .48rem .18rem .1rem;
  border-top: 2px solid #8bb7ee42;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  font-size: .69rem;
  overflow-wrap: anywhere;
}
.checkout-steps li[aria-current="step"] { color: var(--brand-gold); border-color: var(--brand-gold); }
.checkout-steps li[data-done] { color: #bad9fd; border-color: #8bc5ff9c; }
.receipt-picker { padding: .65rem; border: 1px dashed #8bb7ee79; border-radius: .55rem; background: #0c182c; }
.receipt-picker:focus-within { border-color: var(--brand-gold); }
.receipt-details { overflow-wrap: anywhere; font-size: .82rem; }

.order-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: .25rem 0 .65rem;
  padding: .9rem .35rem;
  border: 1px solid #8bb7ee35;
  border-radius: .65rem;
  background: #0a1528a6;
}
.order-timeline li {
  display: grid;
  position: relative;
  justify-items: center;
  gap: .5rem;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
  font-size: clamp(.65rem, 1.6vw, .8rem);
  overflow-wrap: anywhere;
}
.order-timeline li + li::before {
  position: absolute;
  content: "";
  top: .84rem;
  right: calc(50% + .97rem);
  width: calc(100% - 1.94rem);
  height: 1px;
  background: #8bb7ee42;
}
.order-timeline li:is([data-stage="done"], [data-stage="active"])::before { background: #8bc5ff9c; }
.timeline-dot {
  display: grid;
  place-items: center;
  width: 1.7rem;
  aspect-ratio: 1;
  border: 1px solid #8bb7ee50;
  border-radius: 50%;
}
.order-timeline [data-stage="done"] .timeline-dot { color: #c4e1ff; background: #243f61; }
.order-timeline [data-stage="active"], .order-timeline [aria-current="step"] { color: var(--brand-gold); }
.order-timeline [aria-current="step"] .timeline-dot { border-color: var(--brand-gold); color: var(--brand-gold); }

.motion-setting {
  align-self: center;
  min-height: 44px;
  padding: .35rem .6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #b8cbea;
  font: inherit;
  cursor: pointer;
}
.motion-setting:enabled:hover { border-color: #9bc4f14d; }
.motion-setting[aria-pressed="true"] { color: var(--brand-gold); }
html[data-motion="off"],
html[data-motion="off"] :is(*, *::before, *::after) {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: no-preference) {
  .help-faq details[open] > p { animation: answer-in 240ms var(--ease) both; }
  .product[data-catalog-enter] { animation: catalog-card-in 520ms var(--ease) var(--catalog-stagger, 0ms) both; }
  @keyframes catalog-card-in {
    from { opacity: .58; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes answer-in {
    from { opacity: .35; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 900px) {
  html:has(body.premium) { scroll-padding-top: 108px; }
  .premium .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .4rem; padding-top: .32rem; }
  .premium .nav-links { order: 3; grid-column: 1 / -1; gap: clamp(.6rem, 3.6vw, 1.7rem); flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .premium .header-actions .account-link { flex: 0 0 44px; padding-inline: 0; }
  .premium .account-label { display: none; }
  .quick-search-form { grid-template-columns: 1fr; }
  .quick-search-form > button { justify-self: start; }
}
