/* MY2GAME shared storefront/customer controls — 2026-11-08.
 * Loaded after page-specific CSS. Match the real 108px Buy action palette,
 * not its fixed card dimensions. Never restyle icon-only, cart-state,
 * dangerous, navigation, CAP widget, admin or checkout-provider controls. */
body {
  --m2-action-bg: #216ce5;
  --m2-action-hover: #2867c1;
  --m2-action-border: #4f92f1;
  --m2-action-border-hover: #8abaff;
  --m2-control-bg: #0b1524;
  --m2-control-border: #3c5778;
  --m2-control-border-hover: #739cca;
  --m2-control-focus: #a8d2ff;
  /* Shared interactive card border; buttons and form controls keep separate tokens. */
  --m2-card-hover-border: #5d87b6;
  --m2-secondary-bg: #172b42;
  --m2-secondary-hover: #203a59;

  /* UIUX-REDESIGN-02: semantic tokens; only public storefront / customer UI.
   * The verified Buy palette and 108px card action are intentionally unchanged.
   * Design token ownership lives here, not in page-specific CSS. */
  --m2-color-page: #070d16;
  --m2-color-surface: #111a27;
  --m2-color-surface-raised: #172b42;
  --m2-color-text: #edf2f8;
  --m2-color-text-muted: #aebfd3;
  --m2-color-placeholder: #9ab3d0;
  --m2-color-on-action: #ffffff;
  --m2-type-body: 15px;
  --m2-type-lead: 16px;
  --m2-type-support: 14px;
  --m2-type-control: 13px;
  --m2-type-caption: 12px;
  --m2-radius-control: 10px;
  --m2-radius-card: 10px;
  --m2-radius-utility: 10px;
  --m2-space-unit: 4px;
  --m2-space-control-inline: 14px;
  --m2-height-action: 40px;
  --m2-height-field: 44px;
  --m2-focus-width: 2px;
  --m2-motion-fast: .16s;
}

/* One badge visual for product tiles and the game's purchase heading.
   Parent components control position only. No shadows, no hover animation. */
body .storefront-game-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  height: 26px;
  min-height: 26px;
  padding: 2px 9px 0;
  border: 0;
  border-radius: 10px;
  background: #f9d949;
  color: #122033;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

/* Primary actions share the exact Buy palette and color-only hover.
 * Keep content-driven widths: long translated labels must not clip. */
body :is(.primary-button:not(.storefront-buy-action), .primary-link, .purchase-link, .premium-button-primary),
body.premium-home .hero-search .primary-button,
body.premium-inner .account-workspace :is(.primary-button, .account-library-browse, .account-library-action, .account-refund-submit, .account-settings-action, .account-library-search-row button, .account-library-sort button),
body.premium-inner .account-auth-panel .auth-form button.primary-button,
body.premium-inner .premium-catalog .filter-actions .primary-button,
body.premium-inner .premium-collection-sort button,
body.premium-inner .genres-showcase-explore a {
  box-sizing: border-box;
  min-height: var(--m2-height-action);
  padding: 0 var(--m2-space-control-inline);
  border: 1px solid var(--m2-action-border);
  border-radius: 10px;
  background: var(--m2-action-bg);
  color: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: var(--m2-type-control);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--m2-motion-fast) ease, border-color var(--m2-motion-fast) ease, color var(--m2-motion-fast) ease;
}
body :is(.primary-button:not(.storefront-buy-action), .primary-link, .purchase-link, .premium-button-primary):is(:hover, :focus-visible),
body.premium-home .hero-search .primary-button:is(:hover, :focus-visible),
body.premium-inner .account-workspace :is(.primary-button, .account-library-browse, .account-library-action, .account-refund-submit, .account-settings-action, .account-library-search-row button, .account-library-sort button):is(:hover, :focus-visible),
body.premium-inner .account-auth-panel .auth-form button.primary-button:is(:hover, :focus-visible),
body.premium-inner .premium-catalog .filter-actions .primary-button:is(:hover, :focus-visible),
body.premium-inner .premium-collection-sort button:is(:hover, :focus-visible),
body.premium-inner .genres-showcase-explore a:is(:hover, :focus-visible) {
  background: var(--m2-action-hover);
  border-color: var(--m2-action-border-hover);
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* HOME-SEARCH-BUY-PALETTE-02: controls.css loads AFTER storefront-home.css.
 * Keep the hero search CTA identical to the listing Buy action, rather than
 * letting the generic primary-button palette/weight override the homepage.
 * No fixed Buy width is applied to the search submit button. */
body.premium-home .hero-search .primary-button {
  background: #176bf2;
  border-color: #3886fa;
  font-weight: 600;
}
body.premium-home .hero-search .primary-button:is(:hover, :focus-visible) {
  background: #3484ff;
  border-color: #78b2ff;
  color: #fff;
}

/* Checkout review remains full-width and >=46px but shares the same
 * primary palette and 8px radius; never shrink this touch target. */
body .storefront-review-form button.primary-button {
  border: 1px solid var(--m2-action-border);
  border-radius: 10px;
  background: var(--m2-action-bg);
}
body .storefront-review-form button.primary-button:is(:hover, :focus-visible) {
  background: var(--m2-action-hover);
  border-color: var(--m2-action-border-hover);
  transform: none;
}

/* Secondary actions are outlined, not fake purchase buttons. Destructive
 * confirmations and icon-only controls keep their dedicated semantics. */
body :is(.secondary-link, .premium-button-secondary, .storefront-review-secondary),
body.premium-inner .account-workspace :is(.account-security-secondary, .account-notice-actions button, .account-settings-languages a) {
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px var(--m2-space-control-inline);
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: var(--m2-secondary-bg);
  color: var(--m2-color-text);
  box-shadow: none;
  font-family: inherit;
  font-size: var(--m2-type-control);
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--m2-motion-fast) ease, border-color var(--m2-motion-fast) ease, color var(--m2-motion-fast) ease;
}
:where(html:not(.storefront-no-outline)) body :is(.secondary-link, .premium-button-secondary, .storefront-review-secondary) {
  min-height: var(--m2-height-action);
}
body :is(.secondary-link, .premium-button-secondary, .storefront-review-secondary):is(:hover, :focus-visible),
body.premium-inner .account-workspace :is(.account-security-secondary, .account-notice-actions button, .account-settings-languages a):is(:hover, :focus-visible) {
  background: var(--m2-secondary-hover);
  border-color: var(--m2-action-border-hover);
  color: #fff;
  box-shadow: none;
  transform: none;
}
/* Selected language stays distinguishable while using the same control shell. */
body.premium-inner .account-workspace .account-settings-languages a.is-active {
  background: #244a74;
  border-color: var(--m2-action-border-hover);
  color: #fff;
}

/* Single field contract for auth, account and all regular storefront forms.
 * Excludes checkbox/radio/hidden/file inputs and compound search internals.
 * Low-specificity default covers new regular fields on non-frozen routes. */
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input)),
body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea, .select-field),
body.premium-inner .account-auth-panel .auth-form input:not([type="hidden"]),
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"]),
body.premium-inner .premium-catalog .catalog-filters :is(input:not([type="checkbox"]):not([type="hidden"]), select),
body.premium-inner .premium-collection-sort select {
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--m2-height-field);
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: var(--m2-control-bg);
  color: var(--m2-color-text);
  box-shadow: none;
  font-family: inherit;
  font-size: var(--m2-regular-field-font-size, 14px);
  transition: border-color var(--m2-motion-fast) ease, background-color var(--m2-motion-fast) ease;
}
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input)):hover:not(:disabled):not(:focus),
body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea, .select-field):hover:not(:disabled):not(:focus),
body.premium-inner .account-auth-panel .auth-form input:not([type="hidden"]):hover:not(:disabled):not(:focus),
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"]):hover:not(:disabled):not(:focus),
body.premium-inner .premium-catalog .catalog-filters :is(input,select):hover:not(:disabled):not(:focus),
body.premium-inner .premium-collection-sort select:hover:not(:disabled):not(:focus) {
  border-color: var(--m2-control-border-hover);
}
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input)):focus,
body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea, .select-field):focus,
body.premium-inner .account-auth-panel .auth-form input:not([type="hidden"]):focus,
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"]):focus,
body.premium-inner .premium-catalog .catalog-filters :is(input,select):focus,
body.premium-inner .premium-collection-sort select:focus {

  border-color: var(--m2-action-border-hover);
  box-shadow: none;
}
:where(html:not(.storefront-no-outline)) body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea, .select-field):focus,
:where(html:not(.storefront-no-outline)) body.premium-inner .account-auth-panel .auth-form input:not([type="hidden"]):focus,
:where(html:not(.storefront-no-outline)) body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"]):focus,
:where(html:not(.storefront-no-outline)) body.premium-inner .premium-catalog .catalog-filters :is(input,select):focus,
:where(html:not(.storefront-no-outline)) body.premium-inner .premium-collection-sort select:focus {
  outline: none;
}
/* Shared understated field content, validation and disabled states.
 * Scoped to existing controls: never style payment-provider inputs,
 * CAP widgets, checkboxes, radio buttons or hidden fields. */
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input))::placeholder,
body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea)::placeholder,
body.premium-inner .account-auth-panel .auth-form input:not([type="hidden"])::placeholder,
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"])::placeholder {
  color: var(--m2-color-placeholder);
  opacity: 1;
}
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input))[aria-invalid="true"],
body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea)[aria-invalid="true"],
body.premium-inner .account-auth-panel .auth-form input[aria-invalid="true"],
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"])[aria-invalid="true"] {
  border-color: #e7a39d;
}
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input)):disabled,
body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field textarea, .select-field):disabled,
body.premium-inner .account-auth-panel .auth-form input:disabled,
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"]):disabled {
  opacity: .62;
  cursor: not-allowed;
}

body.premium-inner .account-workspace .account-library-search-row {
  border-color: var(--m2-control-border);
  border-radius: 10px;
  background: var(--m2-control-bg);
  transition: border-color var(--m2-motion-fast) ease;
}
/* Library compound search shell. */
body.premium-inner .account-workspace .account-library-search-row:hover {
  border-color: var(--m2-control-border-hover);
}
body.premium-inner .account-workspace .account-library-search-row:has(:focus-visible) {
  border-color: var(--m2-action-border-hover);
  box-shadow: none;
}
body.premium-home .hero-search-wrap:has(:focus-visible) {
  box-shadow: none;
}

/* Focus must remain visible after pointer/keyboard hover styles; disabled
 * actions never light up as if interactive. Do not change layout on focus. */
:where(html:not(.storefront-no-outline)) body :is(.primary-button:not(.storefront-buy-action), .primary-link, .purchase-link, .premium-button-primary, .secondary-link, .premium-button-secondary, .storefront-review-secondary):focus-visible,
:where(html:not(.storefront-no-outline)) body.premium-inner .account-workspace :is(.primary-button, .account-library-browse, .account-library-action, .account-refund-submit, .account-settings-action, .account-library-search-row button, .account-library-sort button, .account-security-secondary, .account-notice-actions button, .account-settings-languages a):focus-visible,
:where(html:not(.storefront-no-outline)) body.premium-inner .account-auth-panel .auth-form button:focus-visible {
  outline: var(--m2-focus-width) solid var(--m2-control-focus);
  outline-offset: 2px;
}
:where(html.storefront-no-outline) body :is(.primary-button:not(.storefront-buy-action), .primary-link, .purchase-link, .premium-button-primary, .secondary-link, .premium-button-secondary, .storefront-review-secondary):focus-visible,
:where(html.storefront-no-outline) body.premium-inner .account-workspace :is(.primary-button, .account-library-browse, .account-library-action, .account-refund-submit, .account-settings-action, .account-library-search-row button, .account-library-sort button, .account-security-secondary, .account-notice-actions button, .account-settings-languages a):focus-visible,
:where(html.storefront-no-outline) body.premium-inner .account-auth-panel .auth-form button:focus-visible {
  border-color: var(--m2-control-focus);
}
body :is(.primary-button:not(.storefront-buy-action), .premium-button-primary, .premium-button-secondary, .storefront-review-secondary):disabled,
body.premium-inner .account-workspace :is(button.primary-button, .account-refund-submit, .account-library-search-row button, .account-library-sort button, .account-security-secondary, .account-notice-actions button):disabled,
body.premium-inner .account-auth-panel .auth-form button:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
body :is(.primary-button:not(.storefront-buy-action), .premium-button-primary, .premium-button-secondary, .storefront-review-secondary):disabled:is(:hover, :focus-visible),
body.premium-inner .account-auth-panel .auth-form button:disabled:is(:hover, :focus-visible),
body.premium-inner .account-workspace :is(.primary-button, .account-refund-submit, .account-library-search-row button, .account-library-sort button):disabled:is(:hover, :focus-visible) {
  background: var(--m2-action-bg);
  border-color: var(--m2-action-border);
  transform: none;
}
body :is(.premium-button-secondary, .storefront-review-secondary):disabled:is(:hover, :focus-visible),
body.premium-inner .account-workspace :is(.account-security-secondary, .account-notice-actions button):disabled:is(:hover, :focus-visible) {
  background: var(--m2-secondary-bg);
  border-color: var(--m2-control-border);
  transform: none;
}
@media (max-width: 600px) {
  /* Prevent Safari zoom on focused form fields while keeping compact buttons. */
  :where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input)):where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)),
  body :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field textarea):where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)),
  body .select-field:where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.primary-button, .primary-link, .purchase-link, .premium-button-primary, .secondary-link, .premium-button-secondary, .storefront-review-secondary),
  body.premium-inner .account-workspace :is(button, .account-settings-action, .account-library-browse, .account-library-action) { transition: none; }
}

/* Exact computed-style gates: an input can be both hovered and focused.
 * Focus must win rather than inherit the hover border color. */
body.premium-inner .account-auth-panel .auth-form .field input:not([type="hidden"]):focus:hover,
body.premium-inner .premium-catalog .catalog-filters .field input[type="search"]:focus:hover,
body .field textarea:focus:hover,
:where(html.storefront-no-outline) body :where(input:not([type]), input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="number"],[type="tel"],[type="url"]), textarea):not(:where(.hero-search input, .site-header input, .account-library-search input, .account-topup-input-wrap input, cap-widget input)):focus:hover,
body .field input:not([type="hidden"]):focus:hover,
body.premium-inner .account-workspace :is(.account-password-form input:not([type="hidden"]), .account-library-sort select, .account-refund-field :is(input:not([type="hidden"]), textarea), .account-settings-form input[type="text"]):focus:hover {
  border-color:#8abaff;
  box-shadow: none;
}



/* Catalog native search and select fields share the 16px control typography at every viewport. */
body.premium-inner .premium-catalog .catalog-filters .field input[type="search"],
  body.premium-inner .premium-catalog .catalog-filters .field select.select-field {
  font-size: 16px;
}


/* UIUX-SELECT-01: shared single-choice select for all storefront RU/EN pages.
   Keep the native picker/keyboard/screen-reader model, not a faux JS menu. */
:where(html.storefront-no-outline) body {
  --m2-regular-field-font-size: 14px;
  --m2-fixed-site-1: 72px;
  --m2-fixed-site-2: 50px;
  --m2-fixed-site-3: 16px;
  --m2-fixed-site-4: 24px;
  --m2-fixed-site-5: 36px;
  --m2-fixed-site-6: 26px;
  --m2-fixed-site-7: 36px;
  --m2-fixed-site-8: 42px;
  --m2-fixed-site-29: 32px;
  --m2-fixed-site-30: 26px;
  --m2-fixed-site-31: 36px;
  --m2-fixed-site-34: 18px;
  --m2-fixed-site-35: 22px;
  --m2-fixed-premium-dark-1: 48px;
  --m2-fixed-premium-compact-1: 36px;
  --m2-fixed-premium-compact-2: 26px;
  --m2-header-utility-size: 44px;
  --m2-footer-link-height: 40px;
  --m2-footer-link-padding: 8px 0;
  --m2-select-border: var(--m2-control-border);
  --m2-select-hover-border: var(--m2-control-border-hover);
  --m2-select-focus-border: var(--m2-action-border-hover);
}
body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])),
body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 48px 9px 14px;
  border: 1px solid var(--m2-select-border, #3c5878);
  border-radius: 10px;
  background-color: #101f33;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23b9d4ed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 16px 16px;
  color: #edf5ff;
  color-scheme: dark;
  font-family: inherit;
  font-size: var(--m2-regular-field-font-size, 14px);
  line-height: 1.3;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):hover:not(:disabled),
body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):hover:not(:disabled) {
  border-color: var(--m2-select-hover-border, #6685a9);
}
:where(html.storefront-no-outline) body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):focus:hover,
:where(html.storefront-no-outline) body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):focus:hover,
body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):focus,
body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):focus {

  border-color: var(--m2-select-focus-border, #91bbff);
  box-shadow: none;
}
:where(html:not(.storefront-no-outline)) body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):focus,
:where(html:not(.storefront-no-outline)) body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):focus {
  outline: none;
}
body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):disabled,
body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):disabled {
  opacity: .58;
  cursor: not-allowed;
}
body.premium-home select option,
body.premium-home select optgroup,
body.premium-inner select option,
body.premium-inner select optgroup {
  background-color: #101f33;
  color: #edf5ff;
}
body.premium-home select option:checked,
body.premium-inner select option:checked {
  background-color: #284e7b;
  color: #fff;
}
/* iOS Safari: all select text must be at least 16px when compact. */
@media (max-width: 800px) {
  body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)),
  body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)),
  body.premium-inner .premium-catalog :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)),
  body.premium-inner .premium-collection-sort :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])):where(:not(.account-workspace *, .account-auth *, .storefront-cart-page *, .storefront-payment-page *, .storefront-legacy-checkout *)) {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.premium-home :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])),
  body.premium-inner :is(select:not([multiple]):not([size]), select[size="1"]:not([multiple])) {
    transition: none;
  }
}

/* Opt-in native picker theme, reusable on storefront single-select form fields.
   Modern browsers render the menu in the top layer; others retain the dark
   native picker and shared chevron above. Keep required/disabled/form semantics. */
@supports (appearance: base-select) and selector(::picker(select)) {
  body.premium-inner :is(select.storefront-select:not([multiple]):not([size]), select.storefront-select[size="1"]:not([multiple])),
  body.premium-home :is(select.storefront-select:not([multiple]):not([size]), select.storefront-select[size="1"]:not([multiple])) {
    appearance: base-select;
    display: flex;
    align-items: center;
    padding-block: 0;
  }
  body select.storefront-select::picker-icon {
    content: none;
  }
  body select.storefront-select::picker(select) {
    appearance: base-select;
    box-sizing: border-box;
    max-height: min(330px, 60vh);
    margin-block: 6px;
    /* Transparent border insets the native scrollbar from rounded edges. */
    padding: 1px 3px 1px 1px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #6c839e #0b1524;
    border: 7px solid transparent;
    border-radius: 10px;
    background: #14253a;
    color: #edf2f8;
    box-shadow: 0 0 0 1px #3c5778, 0 10px 26px rgba(0,0,0,.28);
  }
  body select.storefront-select option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-block-end: 4px;
    padding: 9px 11px;
    border-radius: 7px;
    background: transparent;
    color: #edf2f8;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  body select.storefront-select option::checkmark {
    order: 1;
    margin-inline-start: auto;
  }
  body select.storefront-select option:last-child {
    margin-block-end: 0;
  }
  body select.storefront-select option:checked {
    background: #214b7d;
    color: #fff;
  }
  body select.storefront-select option:hover:not(:disabled),
  body select.storefront-select option:focus-visible {
    background: #1d4068;
    color: #fff;


}
:where(html:not(.storefront-no-outline)) body select.storefront-select option:hover:not(:disabled),
:where(html:not(.storefront-no-outline)) body select.storefront-select option:focus-visible {
  outline: 2px solid #83baff;
  outline-offset: -2px;
}
:where(html.storefront-no-outline) body select.storefront-select option:hover:not(:disabled),
:where(html.storefront-no-outline) body select.storefront-select option:focus-visible {
  border-color: #83baff;
}
  body select.storefront-select option:disabled {
    opacity: .58;
    cursor: not-allowed;
  }
}

/* UIUX-PASSWORD-01: accessible reveal/conceal button for every password input. */
body .m2-password-visibility {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
body .m2-password-visibility > input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding-inline-end: 54px !important;
}
body .m2-password-visibility > .m2-password-toggle,
body.premium-inner .account-password-form .m2-password-toggle {
  position: absolute;
  inset-inline-end: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a9c9eb;
  cursor: pointer;
  justify-self: auto;
  line-height: 1;
  z-index: 1;
  transition: background-color .15s ease, color .15s ease;
}
body .m2-password-toggle:hover {
  background: rgba(115, 164, 224, .13);
  color: #fff;
}
body .m2-password-toggle:focus-visible {


  color: #fff;
  border-color: #96c5ff;
}
body .m2-password-toggle > svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
body .m2-password-toggle[data-revealed="false"] .m2-eye-off-icon,
body .m2-password-toggle[data-revealed="true"] .m2-eye-icon {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  body .m2-password-toggle { transition: none; }
}

/* UIUX-PAYMENT-ICONS-01: shared uploaded SVG assets, read-only checkout preview.
 * Identical SVG bytes in storefront and admin; never suggest that payments
 * are available or make these badges interactive. Shadowless by policy. */
.storefront-review-payments .storefront-crypto-icons-label {
  margin: 14px 0 10px;
  color: var(--m2-color-text-muted, #aebfd3);
  font-size: 13px;
  line-height: 1.5;
}
.storefront-review-payments .storefront-crypto-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 154px), 1fr));
  gap: 9px;
  margin-top: 8px;
}
.storefront-review-payments .storefront-crypto-icon-item {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--m2-control-border, #3c5778);
  border-radius: 10px;
  color: var(--m2-color-text, #edf2f8);
  background: var(--m2-color-surface, #111a27);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: default;
}
.storefront-review-payments .storefront-crypto-icon-item img {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.storefront-review-payments .storefront-crypto-icon-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Shared crypto badge used on historical checkout and account order details.
 * Presentation only; does not alter order validation, payment methods or gates. */
.storefront-order-crypto-amount {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  vertical-align: middle;
}
.storefront-order-crypto-amount img {
  display: inline-block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  box-shadow: none;
}

/* SEO-06: accessible independent company input/select labels and explicit retry. */
body.premium-inner .premium-catalog .catalog-filters [data-catalog-company-picker] {
  min-width: 0;
}
body.premium-inner .premium-catalog .catalog-filters .catalog-company-label {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .035em;
}
body.premium-inner .premium-catalog .catalog-filters .catalog-company-retry:not([hidden]) {
  display: inline-flex;
  align-self: flex-start;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  box-shadow: none;
}
body.premium-inner .premium-catalog .catalog-filters .catalog-company-retry:focus-visible {
  border-color: currentColor;
}

/* CATALOG-FILTER-UX-01: native, accessible, closed-by-default disclosure.
   Keep authoritative GET selects and company API; only change presentation. */
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] {
  display: block;
  min-width: 0;
  padding: 12px 16px;
}
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > .premium-catalog-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  list-style: none;
  color: #eff6ff;
}
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > summary::-webkit-details-marker,
body.premium-inner .premium-catalog [data-catalog-company-disclosure] > summary::-webkit-details-marker {
  display: none;
}
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > summary::marker,
body.premium-inner .premium-catalog [data-catalog-company-disclosure] > summary::marker { content: ""; }
body.premium-inner .premium-catalog .premium-catalog-filter-head strong { font-size: 16px; font-weight: 700; }
body.premium-inner .premium-catalog .catalog-filter-disclosure-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aad1ff;
  font-size: 13px;
  font-weight: 600;
}
body.premium-inner .premium-catalog .catalog-filter-disclosure-action svg,
body.premium-inner .premium-catalog .catalog-company-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform .16s ease;
}
body.premium-inner .premium-catalog [data-catalog-filter-disclosure][open] .catalog-filter-disclosure-action svg,
body.premium-inner .premium-catalog [data-catalog-company-disclosure][open] .catalog-company-trigger svg { transform: rotate(180deg); }
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > summary:hover .catalog-filter-disclosure-action,
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > summary:focus-visible .catalog-filter-disclosure-action { color: #fff; }
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > summary:focus-visible,
body.premium-inner .premium-catalog [data-catalog-company-disclosure] > summary:focus-visible {


  border-radius: 10px;
  border-color: #a8d2ff;
}
body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > .catalog-filters {
  margin-top: 14px;
  padding-top: 17px;
  border-top: 1px solid #304966;
}
body.premium-inner .premium-catalog .catalog-filters .field > span,
body.premium-inner .premium-catalog .catalog-filters .catalog-company-label {
  color: #b5d5ff;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}
body.premium-inner .premium-catalog .catalog-filters select.select-field:not([size]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-color: #0b1524;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5d5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-size: 17px 17px;
  background-repeat: no-repeat;
  cursor: pointer;
}
body.premium-inner .premium-catalog .catalog-filters select.select-field:not([size]):hover:not(:disabled):not(:focus) {
  border-color: var(--m2-control-border-hover);
}
body.premium-inner .premium-catalog .catalog-filters [data-catalog-company-disclosure] {
  display: block;
  min-width: 0;
  align-self: start;
}
body.premium-inner .premium-catalog .catalog-company-trigger {
  display: grid;
  grid-template-columns: minmax(0,1fr) 18px;
  align-items: center;
  gap: 5px 10px;
  min-height: 70px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}
body.premium-inner .premium-catalog .catalog-company-trigger .catalog-company-label { grid-column: 1 / -1; }
body.premium-inner .premium-catalog .catalog-company-trigger-value {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: #0b1524;
  color: #eef4fc;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.premium-inner .premium-catalog .catalog-company-trigger svg {
  grid-column: 2;
  grid-row: 2;
  margin-left: -40px;
  z-index: 1;
  pointer-events: none;
}
body.premium-inner .premium-catalog .catalog-company-trigger-value { grid-column: 1 / -1; padding-right: 42px; }
body.premium-inner .premium-catalog .catalog-company-trigger:hover .catalog-company-trigger-value {
  border-color: var(--m2-control-border-hover);
}
body.premium-inner .premium-catalog .catalog-company-trigger:focus-visible .catalog-company-trigger-value,
body.premium-inner .premium-catalog [data-catalog-company-disclosure][open] .catalog-company-trigger-value {
  border-color: var(--m2-action-border-hover);
}
body.premium-inner .premium-catalog .catalog-company-menu {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: #16263d;
}
body.premium-inner .premium-catalog .catalog-company-menu > .catalog-company-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
body.premium-inner .premium-catalog .catalog-company-menu select[data-company-select] {
  height: auto;
  min-height: 120px;
  max-height: 192px;
  padding: 4px;
  background: #0b1524;
  background-image: none;
  border-radius: 10px;
  cursor: pointer;
}
body.premium-inner .premium-catalog .catalog-company-menu select[data-company-select] option {
  padding: 8px 9px;
  font-size: 13px;
}
body.premium-inner .premium-catalog .catalog-company-menu [data-company-note]:not([hidden]),
body.premium-inner .premium-catalog .catalog-filters [data-catalog-facet-note]:not([hidden]) {
  display: block;
  grid-column: 1 / -1;
  color: #c5d8ee;
  font-size: 12px;
  line-height: 1.5;
}
body.premium-inner .premium-catalog [data-catalog-facet-retry]:not([hidden]) { grid-column: 1 / -1; }
@media (max-width: 640px) {
  
  body.premium-inner .premium-catalog [data-catalog-filter-disclosure] > .catalog-filters { margin-top: 10px; }
  
}
@media (prefers-reduced-motion: reduce) {
  body.premium-inner .premium-catalog .catalog-filter-disclosure-action svg,
  body.premium-inner .premium-catalog .catalog-company-trigger svg { transition: none; }
}

/* CATALOG-FILTER-UX-02: company dropdowns are overlays, never layout rows.
   Use the same surface, border and value typography as native select fields. */
body.premium-inner .premium-catalog [data-catalog-filter-disclosure],
body.premium-inner .premium-catalog .catalog-filters,
body.premium-inner .premium-catalog [data-catalog-filter-fields] {
  overflow: visible;
}
body.premium-inner .premium-catalog [data-catalog-company-disclosure] {
  position: relative;
  z-index: auto;
}
body.premium-inner .premium-catalog [data-catalog-company-disclosure][open] { z-index: 60; }
body.premium-inner .premium-catalog .catalog-company-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 5px;
  min-height: 0;
  padding: 0;
}
body.premium-inner .premium-catalog .catalog-company-trigger .catalog-company-label {
  display: block;
  width: 100%;
}
body.premium-inner .premium-catalog .catalog-company-trigger .catalog-company-trigger-value {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 12px;
  background: #0b1524;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  color: #edf2f8;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
body.premium-inner .premium-catalog .catalog-company-trigger > svg {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 13px;
  right: 13px;
  margin: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: #b5d5ff;
}
body.premium-inner .premium-catalog .catalog-company-menu {
  position: absolute;
  z-index: 80;
  left: 0;
  bottom: calc(100% + 8px);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-height: min(330px, 65vh);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #14253a;
  border: 1px solid var(--m2-control-border);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
body.premium-inner .premium-catalog .catalog-company-menu [data-company-select] {
  display: block;
  width: 100%;
  max-height: 190px;
  overflow-y: auto;
  background: #0b1524;
  color: #edf2f8;
}
body.premium-inner .premium-catalog .catalog-company-menu [data-company-select] option {
  background: #0b1524;
  color: #edf2f8;
}
body.premium-inner .premium-catalog .catalog-company-menu [data-company-input] {
  width: 100%;
  color: #edf2f8;
  background: #0b1524;
}
@media (max-width: 640px) {
  
  body.premium-inner .premium-catalog .catalog-company-menu { max-height: min(300px, 60vh); }
}

/* CATALOG-COMPANY-PAGES-01: non-reflowing custom listbox, 50-row lazy pages.
   The native name/slug select remains the hidden form authority. */
body.premium-inner .premium-catalog .catalog-company-menu select[data-company-select][hidden] {
  display: none !important;
}
body.premium-inner .premium-catalog .catalog-company-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(410px, 70vh);
  overflow: visible;
}
body.premium-inner .premium-catalog .catalog-company-results {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 1 auto;
  min-height: 80px;
  height: 250px;
  max-height: min(250px, 48vh);
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6c839e #0b1524;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: #0b1524;
}
body.premium-inner .premium-catalog .catalog-company-choice {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #edf2f8;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
body.premium-inner .premium-catalog .catalog-company-choice:hover,
body.premium-inner .premium-catalog .catalog-company-choice:focus-visible {
  background: #1d4068;
  color: #fff;
  border-color: #83baff;
}
body.premium-inner .premium-catalog .catalog-company-choice[aria-selected="true"] {
  background: #214b7d;
  color: #fff;
}
body.premium-inner .premium-catalog .catalog-company-menu [data-company-note]:not([hidden]) {
  flex: 0 0 auto;
  margin: 0;
}
body.premium-inner .premium-catalog .catalog-company-menu [data-company-retry]:not([hidden]) {
  align-self: flex-start;
}
@media (max-width: 640px) {
  body.premium-inner .premium-catalog .catalog-company-menu { max-height: min(360px, 70vh); }
  body.premium-inner .premium-catalog .catalog-company-results { height: 220px; max-height: min(220px, 42vh); }
  
}

/* CATALOG-UNIFIED-SELECTS-01 — identical native-facet and company menus.
   Original selects remain functional until JS enhancement finishes. */
body.premium-inner .premium-catalog .catalog-unified-select {
  position: relative;
  min-width: 0;
}
body.premium-inner .premium-catalog .catalog-unified-native {
  display: none !important;
}
body.premium-inner .premium-catalog .catalog-unified-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: #0b1524;
  color: #edf2f8;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
body.premium-inner .premium-catalog .catalog-unified-trigger:hover:not(:disabled) {
  border-color: var(--m2-control-border-hover);
}
body.premium-inner .premium-catalog .catalog-unified-trigger:focus-visible,
body.premium-inner .premium-catalog .catalog-unified-trigger:focus:hover {
  border-color: var(--m2-action-border-hover);
}
body.premium-inner .premium-catalog .catalog-unified-select[data-open="true"] {
  z-index: 70;
}
body.premium-inner .premium-catalog .catalog-unified-select[data-open="true"] .catalog-unified-trigger {
  border-color: var(--m2-action-border-hover);
}
body.premium-inner .premium-catalog .catalog-unified-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.premium-inner .premium-catalog .catalog-unified-chevron {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background: center / 17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5d5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .16s ease;
}
body.premium-inner .premium-catalog .catalog-unified-select[data-open="true"] .catalog-unified-chevron {
  transform: rotate(180deg);
}
body.premium-inner .premium-catalog .catalog-unified-menu {
  display: none;
  position: absolute;
  z-index: 80;
  left: 0;
  bottom: calc(100% + 8px);
  box-sizing: border-box;
  width: 100%;
  max-height: min(330px, 65vh);
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6c839e #0b1524;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;
  background: #14253a;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
body.premium-inner .premium-catalog .catalog-unified-select[data-open="true"] .catalog-unified-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.premium-inner .premium-catalog .catalog-unified-option {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #edf2f8;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
body.premium-inner .premium-catalog .catalog-unified-option:hover,
body.premium-inner .premium-catalog .catalog-unified-option:focus-visible {
  background: #1d4068;
  color: #fff;
  border-color: #83baff;
}
body.premium-inner .premium-catalog .catalog-unified-option[aria-selected="true"] {
  background: #214b7d;
  color: #fff;
}
@media (max-width: 640px) {
  
  body.premium-inner .premium-catalog .catalog-unified-menu { max-height: min(300px, 60vh); }
  
}
@media (prefers-reduced-motion: reduce) {
  body.premium-inner .premium-catalog .catalog-unified-chevron { transition: none; }
}

/* CATALOG-DROPDOWN-VIEWPORT-01: direction is computed from actual viewport
   space by both dropdown controllers, not always forced above the trigger.
   Inline max-height is set from measured available pixels at open/scroll. */
body.premium-inner .premium-catalog .catalog-unified-select[data-open-direction="down"] .catalog-unified-menu,
body.premium-inner .premium-catalog [data-catalog-company-disclosure][data-open-direction="down"] .catalog-company-menu {
  top: calc(100% + 8px);
  bottom: auto;
}
body.premium-inner .premium-catalog .catalog-unified-select[data-open-direction="up"] .catalog-unified-menu,
body.premium-inner .premium-catalog [data-catalog-company-disclosure][data-open-direction="up"] .catalog-company-menu {
  top: auto;
  bottom: calc(100% + 8px);
}
body.premium-inner .premium-catalog .catalog-unified-select[data-open="true"] .catalog-unified-menu,
body.premium-inner .premium-catalog [data-catalog-company-disclosure][open] .catalog-company-menu {
  overscroll-behavior: contain;
}
body.premium-inner .premium-catalog [data-catalog-company-disclosure][open] .catalog-company-menu {
  overflow-y: auto;
  min-height: 0;
}
body.premium-inner .premium-catalog [data-catalog-company-disclosure][open] .catalog-company-results {
  min-height: 0;
  flex-shrink: 1;
}

/* STOREFRONT-BLUE-ACTIONS-38-01 — owner-approved unified blue actions.
 * Scope strictly to main content, never the header/footer. The nine frozen
 * editorial/legal pages all render .premium-info: leave their appearance
 * unchanged, including rules inherited from this shared stylesheet.
 * Do not recolor status/destructive/icon-only/cart-state/payment-provider
 * buttons. Preserve intrinsic widths and accessible focus outlines. */
:is(body.premium-home, body.premium-inner:not(:has(.premium-info))) .site-main :is(
  .primary-button:not(.storefront-buy-action),
  .primary-link,
  .purchase-link,
  .premium-button-primary,
  .hero-search-view,
  .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:not(.is-in-cart),
  .game-purchase-cart-control .primary-button.storefront-buy-action:not(.is-in-cart),
  .premium-catalog .filter-actions .primary-button,
  [data-progressive-list]:not(.catalog-infinite-error):not(.catalog-infinite-paused) .catalog-load-more,
  .premium-collection-sort button,
  .account-workspace .account-library-search-row button,
  .account-workspace .account-library-sort button,
  .account-workspace .account-library-browse,
  .account-workspace .account-library-action,
  .account-workspace .account-refund-submit,
  .account-workspace .account-settings-action
) {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  padding-block: 0;
  border: 1px solid #3886fa;
  border-radius: 10px;
  background: #176bf2;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
:is(body.premium-home, body.premium-inner:not(:has(.premium-info))) .site-main :is(
  .primary-button:not(.storefront-buy-action),
  .primary-link,
  .purchase-link,
  .premium-button-primary,
  .hero-search-view,
  .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:not(.is-in-cart),
  .game-purchase-cart-control .primary-button.storefront-buy-action:not(.is-in-cart),
  .premium-catalog .filter-actions .primary-button,
  [data-progressive-list]:not(.catalog-infinite-error):not(.catalog-infinite-paused) .catalog-load-more,
  .premium-collection-sort button,
  .account-workspace .account-library-search-row button,
  .account-workspace .account-library-sort button,
  .account-workspace .account-library-browse,
  .account-workspace .account-library-action,
  .account-workspace .account-refund-submit,
  .account-workspace .account-settings-action
):is(:hover, :focus-visible):not(:disabled),
body.premium-home .site-main .hero-search-result:is(:hover, :focus-visible) .hero-search-view {
  border-color: #78b2ff;
  background: #3484ff;
  color: #fff;
}
:is(body.premium-home, body.premium-inner:not(:has(.premium-info))) .site-main :is(
  .primary-button:not(.storefront-buy-action),
  .premium-button-primary,
  .account-workspace .account-refund-submit,
  .account-workspace .account-settings-action
):disabled {
  opacity: .55;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  :is(body.premium-home, body.premium-inner:not(:has(.premium-info))) .site-main :is(
    .primary-button:not(.storefront-buy-action), .primary-link, .purchase-link,
    .premium-button-primary, .hero-search-view,
    .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:not(.is-in-cart),
    .game-purchase-cart-control .primary-button.storefront-buy-action:not(.is-in-cart)
  ) { transition: none; }
}


/* HOME-SEARCH-HEIGHT-SCROLL-INSET-01: search shell tracks 38px CTA;
 * inset suggestion scrollport from right edge of hero search.
 * Scope to home page, preserve form/submission and native overflow. */
body.premium-home .site-main .hero-search {
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  padding: 3px;
  align-items: center;
}
body.premium-home .site-main .hero-search .hero-search-field,
body.premium-home .site-main .hero-search .hero-search-field input[type="search"] {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
}
body.premium-home .site-main .hero-search .primary-button {
  height: 38px;
  min-height: 38px;
}
body.premium-home .site-main .hero-search-results {
  box-sizing: border-box;
  right: 0;
  padding-right: 10px;
  /* No artificial right gutter in loading/empty states. */
  border-right: 0;



  scrollbar-width: thin;
}
/* Only populated suggestions need a small native scrollbar inset. */
body.premium-home .site-main .hero-search-results:has(.hero-search-result) {
  border-right: 5px solid #112039;
}
