/*
 * MY2GAME shared storefront shell — single design contract for header/footer.
 * Loaded AFTER home-only reference/mockup CSS on ALL public pages.
 * Do not add home-specific shell overrides to page stylesheets.
 */
:is(body.premium-home, body.premium-inner) .site-header {
  position: relative;
  z-index: 80;
  background: rgba(8, 13, 22, .96);
  border-bottom: 1px solid rgba(157, 190, 236, .14);
  backdrop-filter: blur(18px);
}
:is(body.premium-home, body.premium-inner) .site-header .container,
:is(body.premium-home, body.premium-inner) .site-footer .container {
  width: min(1360px, calc(100% - 64px));
}
:is(body.premium-home, body.premium-inner) .header-row {
  min-height: 64px;
  padding: 9px 0;
  gap: 18px;
}
:is(body.premium-home, body.premium-inner) .premium-brand {
  font-size: 18px;
  gap: 10px;
  letter-spacing: -.055em;
}
:is(body.premium-home, body.premium-inner) .premium-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
:is(body.premium-home, body.premium-inner) .premium-brand-mark svg {
  width: 23px;
  height: 23px;
}
:is(body.premium-home, body.premium-inner) .header-actions {
  gap: 10px;
}
:is(body.premium-home, body.premium-inner) .site-link,
:is(body.premium-home, body.premium-inner) .account-link {
  min-height: 40px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 600;
}
:is(body.premium-home, body.premium-inner) .premium-header-search,
:is(body.premium-home, body.premium-inner) .locale-trigger {
  width: 40px;
  min-height: 40px;
  border-radius: 10px;
}
:is(body.premium-home, body.premium-inner) .site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(150, 184, 230, .16);
  background: #090f19;
}
:is(body.premium-home, body.premium-inner) .footer-premium {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(125px, .78fr) minmax(150px, .95fr) minmax(190px, 1.2fr);
  align-items: start;
  gap: 24px 34px;
  padding-top: 34px;
  padding-bottom: 28px;
}
:is(body.premium-home, body.premium-inner) .premium-footer-brand { font-size: 20px; }
:is(body.premium-home, body.premium-inner) .footer-premium p {
  max-width: 290px;
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.55;
}
:is(body.premium-home, body.premium-inner) .premium-footer-column h2 {
  margin: 2px 0 14px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
:is(body.premium-home, body.premium-inner) .premium-footer-column .premium-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
:is(body.premium-home, body.premium-inner) .premium-footer-column .premium-footer-links a {
  font-size: 14px;
  line-height: 1.5;
}
:is(body.premium-home, body.premium-inner) .premium-footer-bottom {
  padding: 14px 0 18px;
  font-size: 12.5px;
}
@media (max-width: 1100px) {
  :is(body.premium-home, body.premium-inner) .site-header .container,
  :is(body.premium-home, body.premium-inner) .site-footer .container {
    width: calc(100% - 42px);
  }
  :is(body.premium-home, body.premium-inner) .header-row { gap: 12px; }
  :is(body.premium-home, body.premium-inner) .header-actions { gap: 7px; }
  :is(body.premium-home, body.premium-inner) .site-link { padding: 0 8px; font-size: 13px; }
  :is(body.premium-home, body.premium-inner) .footer-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  :is(body.premium-home, body.premium-inner) .premium-footer-intro { grid-column: 1 / -1; }
}
@media (max-width: 1240px) {
  :is(body.premium-home, body.premium-inner) .header-row {
    min-height: 68px;
    padding: 12px 0;
    flex-wrap: wrap;
  }
  :is(body.premium-home, body.premium-inner) .header-actions {
    display: none;
    width: 100%;
    gap: 12px;
    padding: 16px;
  }
  :is(body.premium-home, body.premium-inner) .header-actions.is-open { display: grid; }
  :is(body.premium-home, body.premium-inner) .site-nav,
  :is(body.premium-home, body.premium-inner) .account-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  :is(body.premium-home, body.premium-inner) .site-link,
  :is(body.premium-home, body.premium-inner) .account-link {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    font-size: 14px;
  }
  :is(body.premium-home, body.premium-inner) .premium-header-search {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
  }
  :is(body.premium-home, body.premium-inner) .locale-trigger { display: none; }
}
@media (max-width: 860px) {
  :is(body.premium-home, body.premium-inner) .footer-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(html:not(.storefront-no-outline)) :is(body.premium-home, body.premium-inner) .footer-premium {
    gap: 24px;}
}
@media (max-width: 600px) {
  :is(body.premium-home, body.premium-inner) .site-header .container,
  :is(body.premium-home, body.premium-inner) .site-footer .container {
    width: calc(100% - 30px);
  }
  :is(body.premium-home, body.premium-inner) .footer-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(html:not(.storefront-no-outline)) :is(body.premium-home, body.premium-inner) .footer-premium {
    padding-top: 28px;
    padding-bottom: 24px;
    gap: 24px 18px;}
  :is(body.premium-home, body.premium-inner) .footer-premium .premium-footer-intro {
    grid-column: 1 / -1;
  }
  :is(body.premium-home, body.premium-inner) .premium-footer-bottom {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  :is(body.premium-home, body.premium-inner) .footer-premium {
    grid-template-columns: 1fr;
  }
}

/* Shared navigation stays visible without moving on hover (D-007). */
:is(body.premium-home, body.premium-inner) .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
:is(body.premium-home, body.premium-inner) .site-shell { overflow: visible; }
/* One global convention for 'Show all / Genres / FAQ' links. */
body :is(.home-show-more-top, .premium-inline-link, .secondary-link):where(a) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9fc4ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease;
}
body :is(.home-show-more-top, .premium-inline-link, .secondary-link):where(a):hover,
body :is(.home-show-more-top, .premium-inline-link, .secondary-link):where(a):focus-visible { color: #ffffff; }
body .site-header .header-cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; min-height: 42px; border: 1px solid rgba(133,177,255,.28);
  border-radius: 10px; color: #d0e3ff; text-decoration: none; transition: border-color .16s, background .16s;
}
body .site-header .header-cart-link:hover { color: white; background: #172a46; border-color: #7db2ff; }
body .site-header .header-cart-link svg { width:20px; height:20px; stroke-width:1.8; }
body .site-header .cart-count { position: absolute; top: -8px; right: -7px; min-width: 19px; height: 19px;
  padding: 0 4px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: #091324; background: #f6d65a; font-size: 11px; font-weight: 800; }

/* Compact basket / nonpaying checkout presentation. */
body .storefront-cart-page, body .storefront-wishlist-page { padding: 16px 0 32px; min-height: 55vh; }
/* Stable form typography for checkout; native field states remain in storefront-controls. */
body :is(.storefront-cart-page, .storefront-payment-page, .storefront-legacy-checkout) { --m2-regular-field-font-size: 14px; }
body .storefront-legacy-checkout .section-head h1 { font-size: 34px; overflow-wrap: anywhere; }
body .storefront-cart-page h1, body .storefront-wishlist-page h1 { font-size: 26px; margin: 0 0 16px; }
body .storefront-cart-item h2 a { color: #b5d5ff; text-decoration: none; }
body .storefront-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 360px); gap: 16px; align-items: start; }
body .storefront-cart-items { display: grid; gap: 12px; container: cart-items / inline-size; }
body .storefront-cart-item { display: grid; grid-template-columns: max(128px, min(18%, 180px)) minmax(0, 1fr) minmax(205px, max-content); grid-template-rows: minmax(0, 1fr) auto; align-items: start; background: #101c2c; border: 1px solid #29415c; border-radius: 10px; }
body .storefront-cart-item > a:first-child { grid-column: 1; grid-row: 1 / span 2; display: block; min-width: 0; width: 100%; height: auto; aspect-ratio: 460 / 215; align-self: start; overflow: hidden; border-radius: 10px; }
body .storefront-cart-item img { display:block;max-width:100%;width:100%;height:auto;aspect-ratio:460 / 215;object-fit:cover;border-radius:10px; }
body .storefront-cart-item h2 { margin:0 0 8px;font-size:15px;line-height:1.35;overflow-wrap:anywhere; }
body .storefront-cart-item strong { font-size:17px; }
body .storefront-cart-remove { box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 10px;border:1px solid #4c6783;color:#c7dcf2;background:#192b41;border-radius:10px;font:inherit;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease; }
body .storefront-cart-remove svg {width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .storefront-cart-remove:hover,body .storefront-cart-remove:focus-visible { border-color:#a47f89;color:#fff;background:#3a2938; }
body .storefront-cart-remove:focus-visible {
  border-color: #a8d2ff;
}
body .storefront-cart-summary, body .storefront-cart-empty {background:#101d2e;border:1px solid #29415c;border-radius:10px;}
body .storefront-cart-summary h2, body .storefront-cart-empty h2 {font-size:19px;margin:0 0 17px;}
body .storefront-cart-summary .primary-button {box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-height:40px;padding:0 12px;border-radius:10px;background:#216ce5;color:#fff;font-size:13px;font-weight:700;text-decoration:none;}
body .storefront-cart-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #29405e; padding: 16px 0; margin: 0; }
body .storefront-cart-total strong {color:#fff;font-size:22px;}
body .storefront-cart-note { color: #9fb4ca; font-size: 13px; line-height: 1.6; margin-top: 18px; }
body .storefront-cart-payment-info { margin-top: 20px; padding-top: 18px; border-top: 1px solid #29405e; }
body .storefront-cart-payment-info .storefront-cart-security-heading {
  display: flex; align-items: center; gap: 10px;
  color: #e7f1ff; font-size: 14px; line-height: 1.4;
}
body .storefront-cart-security-heading svg {
  flex: 0 0 21px; width: 21px; height: 21px; color: #9ed9be;
}
body .storefront-cart-payment-info .storefront-cart-note { margin: 7px 0 0; }
body .storefront-cart-alert { color: #ffd49b; font-size: 12px; text-align: center; }
body .storefront-payment-draft { display: grid; gap: 17px; }
body .storefront-payment-draft select { font-size: 16px; padding: 12px; border: 1px solid var(--m2-control-border); border-radius: 10px; background: #15253c; color: #a6bacf; }
body .storefront-payment-draft select:hover:not(:disabled):not(:focus) { border-color: var(--m2-control-border-hover); }
body .storefront-payment-draft select:focus { border-color: var(--m2-action-border-hover); }
body .storefront-auth-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
body .storefront-auth-links a { color: #99cbff; text-decoration: none; font-size: 14px; }
body .storefront-auth-links a:hover { color: #fff; }
@media (max-width: 600px) {
  body .site-header .header-cart-link { width:100%; }
}

/* Product details use the same secure basket form as catalog tiles. */
body .game-purchase-cart-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-width: 0; }
body .game-purchase-cart-control strong { color: #f3f7ff; font-size: 20px; }
body .game-purchase-cart-control form { margin: 0; }
body .game-purchase-cart-control .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 16px; text-decoration: none; border-radius: 10px; }
body .game-purchase-cart-control .primary-button svg { flex: 0 0 18px; }

body .storefront-payment-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
body .storefront-payment-lines li { display:flex; justify-content:space-between; align-items:center; gap: 14px; padding: 10px 0; border-bottom:1px solid #29405e; }
body .storefront-payment-lines li span { min-width:0; overflow-wrap:anywhere; }
body .storefront-payment-lines li strong { white-space:nowrap; color:#d8e9ff; }

/* FAQ previously had a higher-specificity color override: match it explicitly. */
body.premium-home #faq .premium-inline-link:hover,
body.premium-home #faq .premium-inline-link:focus-visible {
  color: #ffffff;
}

/* Cart clear: native accessible modal, with an independent no-JS disclosure.
 * Keep the existing POST+CSRF form external to both submit controls. */
body .storefront-cart-tools { display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:16px;padding:0; }
body .storefront-cart-continue { color:#b5d5ff;text-decoration:none;font-size:14px;font-weight:600; }
body .storefront-cart-continue:hover,body .storefront-cart-continue:focus-visible { color:#fff;text-decoration:underline; }
body .storefront-cart-clear-trigger {
  padding:0; border:0; background:transparent; color:#b5c9e4;
  font:inherit; font-size:14px; font-weight:500; line-height:1.5;
  cursor:pointer;
}
body .storefront-cart-clear-trigger[hidden] { display:none; }
/* The single CSRF form must not occupy a flex slot or add a trailing gap. */
body .storefront-cart-tools > #cart-clear-all-form { display:none; }
body .storefront-cart-clear-trigger:is(:hover,:focus-visible) { color:#fff; text-decoration:underline; }
body .storefront-cart-clear-dialog:not([open]) { display:none; }
body .storefront-cart-clear-dialog {
  box-sizing:border-box;
  width:min(460px,calc(100% - 32px)); max-width:460px;
  max-height:calc(100dvh - 32px);
  margin:auto; padding:24px; overflow:auto;
  border:1px solid #45658b; border-radius:14px;
  background:linear-gradient(155deg,#182d46,#101d2e 78%);
  color:#e7f1ff; box-shadow:0 28px 90px rgba(0,0,0,.58);
}
body .storefront-cart-clear-dialog::backdrop { background:rgba(3,9,18,.78); }
body.cart-clear-modal-open { overflow:hidden; }
body .storefront-cart-clear-dialog-header {
  display:flex; align-items:center; gap:12px; margin-bottom:14px;
}
body .storefront-cart-clear-dialog-icon {
  display:inline-flex; flex:0 0 42px; align-items:center; justify-content:center;
  width:42px; height:42px;
  border:1px solid #845064; border-radius:11px;
  color:#ffb9c3; background:#352335;
}
body .storefront-cart-clear-dialog-icon svg { width:21px; height:21px; }
body .storefront-cart-clear-dialog h2 {
  margin:0; font-size:20px; font-weight:600; line-height:1.3;
  color:#f3f8ff;
}
body .storefront-cart-clear-dialog > p {
  margin:0; font-size:14px; line-height:1.65; color:#b9cee6;
}
body .storefront-cart-clear-dialog-actions {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  margin-top:24px;
}
body :is(.storefront-cart-clear-cancel,.storefront-cart-clear-confirm) {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:8px; min-width:0; min-height:40px; padding:8px 14px;
  border-radius:10px; font:inherit; font-size:13px; font-weight:700;
  line-height:1.3; cursor:pointer;
}
body .storefront-cart-clear-cancel {
  border:1px solid #4c6783; background:#192b41; color:#e2efff;
}
body .storefront-cart-clear-cancel:hover { border-color:#7295ba; background:#253e5b; }
body .storefront-cart-clear-confirm {
  border:1px solid #c55c68; background:#a93443; color:#fff;
}
body .storefront-cart-clear-confirm:hover { border-color:#eb8490; background:#c34352; }
body .storefront-cart-clear-confirm:disabled { opacity:.65; cursor:wait; }
body .storefront-cart-clear-confirm svg { width:16px; height:16px; flex:0 0 16px; }
body :is(.storefront-cart-clear-trigger,.storefront-cart-clear-cancel,.storefront-cart-clear-confirm):focus-visible {
  border-color: #a6d1ff;
}
/* Only rendered by the browser when scripting is disabled. */
body .storefront-cart-clear-fallback {
  width:100%; padding:14px; border:1px solid #29405e;
  border-radius:10px; color:#b5c9e4; background:#101d2d;
}
body .storefront-cart-clear-fallback summary { cursor:pointer; }
body .storefront-cart-clear-fallback p { margin:12px 0; }
@media (max-width:480px) {
  body .storefront-cart-clear-dialog-actions { grid-template-columns:1fr; }
}



/* Stage 5: read-only multi-item review and PHP-session preparation. */
body .storefront-review-page .narrow { max-width: 850px; }
body .storefront-review-intro {color:#adc5df;line-height:1.6;margin:-9px 0 24px;}
body .storefront-review-steps {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 21px;}
body .storefront-review-steps>span,body .storefront-review-steps>strong {
  padding:9px 12px;border:1px solid #33506e;border-radius:10px;
  font-size:12px;line-height:1.5;color:#c5def9;background:#16263a;
}
body .storefront-review-steps>strong {border-color:#4d98f0;background:#17416d;color:#fff;}
body .storefront-review-steps>.is-pending {color:#a5b6c9;border-style:dashed;}
body .storefront-review-notice {padding:15px;border:1px solid #496384;border-radius:10px;background:#16283d;}
body .storefront-review-notice strong {color:#e6f1ff;font-size:14px;}
body .storefront-review-notice p {margin:8px 0 0;color:#bbcee5;font-size:13px;line-height:1.6;}
body .storefront-review-buyer {display:grid;gap:5px;min-width:0;}
body .storefront-review-buyer span {color:#91abc8;font-size:12px;}
body .storefront-review-buyer strong {color:#e6f4ff;font-size:14px;overflow-wrap:anywhere;}
body .storefront-review-page h2 {margin:6px 0 2px;font-size:19px;color:#f3f7ff;}
body .storefront-review-state {padding:15px;border:1px solid #45698b;border-radius:10px;background:#14263a;}
body .storefront-review-state.is-prepared {border-color:#3f806c;background:#18382e;}
body .storefront-review-state strong {color:#e8fff1;}
body .storefront-review-state p {margin:8px 0 0;font-size:13px;line-height:1.6;color:#c4d8eb;}
body .storefront-review-form {margin:0;}
body .storefront-review-form .primary-button {width:100%;min-height:46px;cursor:pointer;border:0;}
body .storefront-review-secondary {padding:10px 15px;border:1px solid #587493;border-radius:10px;background:transparent;color:#c9d9ed;cursor:pointer;}
body .storefront-review-secondary:hover,body .storefront-review-secondary:focus-visible {color:#fff;border-color:#a8d3ff;}
body .storefront-review-payments {padding-top:18px;border-top:1px solid #29405e;}
body .storefront-review-payments p {color:#a8c1db;font-size:13px;line-height:1.65;margin:10px 0 0;}
body .storefront-review-back {display:inline-flex;align-items:center;min-height:40px;color:#a6d0ff;font-size:14px;text-decoration:none;}
body .storefront-review-back:hover,body .storefront-review-back:focus-visible {color:#fff;text-decoration:underline;}
@media (max-width:600px) {
  body .storefront-review-steps>span,body .storefront-review-steps>strong {flex:1 1 auto;text-align:center;}
  body .storefront-payment-lines li {align-items:flex-start;}
}

/* Local Open Sans ExtraBold (800) wordmark glyph subset: CSP font-src 'self'. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/open-sans/my2game-logo-opensans-800.woff2") format("woff2");
  unicode-range: U+0032, U+0041, U+0045, U+0047, U+004D, U+0059;
}
/* MY2GAME v3: one crisp wordmark; M2 monogram reserved for favicon only. */
body .site-header .premium-brand,
body .site-footer .premium-footer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  white-space: nowrap;
  background: none;
  -webkit-text-fill-color: currentColor;
}
body .site-header .premium-brand-word-v2,
body .site-footer .premium-footer-word-v2 {
  display: inline-block;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.065em;
  white-space: nowrap;
  color: #f7faff;
  -webkit-text-fill-color: #f7faff;
  text-rendering: optimizeLegibility;
}
body .site-header .premium-brand-word-v2 span,
body .site-footer .premium-footer-word-v2 span {
  color: #0bd4ef;
  -webkit-text-fill-color: #0bd4ef;
}
body .site-footer .premium-footer-word-v2 { font-size: 24px; }
@media (max-width: 600px) {
  :where(html:not(.storefront-no-outline)) body .site-header .premium-brand-word-v2 { font-size: 21px;}
  :where(html:not(.storefront-no-outline)) body .site-footer .premium-footer-word-v2 { font-size: 21px;}
}

/* UIUX-TOAST-02: one visually balanced component for SSR, cart and wishlist.
   Native alert/status roles and dismissal remain in the shared JS/PHP layer. */
body .storefront-toast-stack {
  position: fixed;
  z-index: 1200;
  top: 82px;
  right: max(18px, calc((100vw - 1280px) / 2));
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  align-content: start;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  pointer-events: none;
}
body .storefront-toast {
  box-sizing: border-box;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 12px;
  width: fit-content;
  min-width: min(200px, 100%);
  max-width: 100%;
  min-height: 0;
  padding: 6px 6px 6px 12px;
  border: 1px solid rgba(117, 165, 196, .32);
  border-radius: 10px;
  background: #101e2d;
  box-shadow: none;
  color: #eaf3ff;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
body .storefront-toast-icon {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-self: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: rgba(105, 167, 240, .17);
  color: #a8d4ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
body .storefront-toast-message {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}
body .storefront-toast-dismiss {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-self: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b1c6dd;
  font-size: 0; /* CSS-drawn X remains perfectly centered across system fonts. */
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}
body .storefront-toast-dismiss::before,
body .storefront-toast-dismiss::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
}
body .storefront-toast-dismiss::before { transform: translate(-50%, -50%) rotate(45deg); }
body .storefront-toast-dismiss::after { transform: translate(-50%, -50%) rotate(-45deg); }
body .storefront-toast-success {
  border-color: rgba(69, 191, 148, .43);
  box-shadow: none;
}
body .storefront-toast-success .storefront-toast-icon { color: #83e8ba; background: rgba(54, 197, 145, .16); }
body .storefront-toast-error {
  border-color: rgba(239, 125, 132, .52);
  box-shadow: none;
}
body .storefront-toast-error .storefront-toast-icon { color: #ffc2c6; background: rgba(238, 112, 112, .17); }
body .storefront-toast-info {
  border-color: rgba(117, 171, 241, .42);
  box-shadow: none;
}
body .storefront-toast-info .storefront-toast-icon { color: #b6dbff; background: rgba(105, 167, 240, .17); }
body .storefront-toast-dismiss:hover {
  background: rgba(146, 184, 220, .14);
  color: #fff;
}
body .storefront-toast-dismiss:focus-visible {


  background: rgba(146, 184, 220, .14);
  color: #fff;
}
:where(html:not(.storefront-no-outline)) body .storefront-toast-dismiss:focus-visible {
  outline: 2px solid #b6daff;
  outline-offset: 2px;
}
:where(html.storefront-no-outline) body .storefront-toast-dismiss:focus-visible {
  border-color: #b6daff;
}
@media (max-width: 700px) {
  body .storefront-toast-stack {
    top: calc(72px + env(safe-area-inset-top, 0px));
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top, 0px));
    justify-items: stretch;
  }
  body .storefront-toast {
    width: 100%;
  }
  body .storefront-toast-dismiss {
    touch-action: manipulation;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .storefront-toast-dismiss { transition: none; }
}

/* In-place cart confirmation: no floating global flash or page jump. */
body .cart-inline-feedback {
  display: block;
  margin-top: 6px;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.35;
  color: #86e7bc;
  overflow-wrap: anywhere;
}
body .cart-inline-feedback.is-error { color: #ffabab; }
body .product-tile-bottom .cart-inline-feedback { grid-column: 1 / -1; text-align: right; }
body [data-cart-add-form] button:disabled,
body .product-tile-add-form button:disabled { opacity: .68; cursor: wait; }

/* Cart intent changes after successful POST, never by swapping text on
   hover/focus. Actual button dimensions stay constant in every state. */
body [data-cart-action-form] button { cursor:pointer }

/* Footer v2: information architecture and verified owner-supplied contacts.
   Kept in the shared shell CSS so RU/EN, home and internal pages match. */
body .site-footer-pro {
  background: #090f1a;
  border-top: 1px solid rgba(142, 175, 221, .18);
  color: #eef4fd;
}
body .site-footer-pro .footer-premium {
  display: grid;
  grid-template-columns: minmax(205px, 1.4fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 22px 34px;
  padding-top: 38px;
  padding-bottom: 30px;
}
body .site-footer-pro .premium-footer-intro { min-width: 0; }
body .site-footer-pro .premium-footer-intro p {
  max-width: 275px;
  margin: 16px 0 13px;
  color: #a8b7cd;
  font-size: 13px;
  line-height: 1.7;
}
body .site-footer-pro .premium-footer-shop-note {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(100, 160, 237, .22);
  border-radius: 10px;
  background: rgba(70, 128, 206, .08);
  color: #b6d5f7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}
body .site-footer-pro .premium-footer-column { min-width: 0; }
body .site-footer-pro .premium-footer-column h2 {
  margin: 4px 0 16px;
  color: #eef5ff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .005em;
  line-height: 1.4;
}
body .site-footer-pro .premium-footer-column .premium-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
body .site-footer-pro .premium-footer-column .premium-footer-links a {
  display: inline-block;
  min-width: 0;
  color: #9eafc7;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color .15s ease;
}
body .site-footer-pro .premium-footer-column .premium-footer-links a:hover,
body .site-footer-pro .premium-footer-column .premium-footer-links a:focus-visible {
  color: #eff7ff;
}
body .site-footer-pro .premium-footer-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(160, 193, 235, .12);
}
body .site-footer-pro .premium-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid rgba(130, 164, 210, .13);
  border-radius: 10px;
  background: rgba(21, 34, 54, .58);
}
body .site-footer-pro .premium-footer-contact-title {
  color: #9baec8;
  font-size: 11px;
  font-weight: 650;
}
body .site-footer-pro .premium-footer-contact a {
  color: #b8dcff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color .15s ease;
}
body .site-footer-pro .premium-footer-contact a:hover,
body .site-footer-pro .premium-footer-contact a:focus-visible { color: #fff; }
body .site-footer-pro .premium-footer-contact-description {
  color: #8093ac;
  font-size: 11px;
  line-height: 1.5;
}
body .site-footer-pro :is(.premium-footer-brand, .premium-footer-links a, .premium-footer-contact a):focus-visible {


  border-radius: 10px;
}
:where(html:not(.storefront-no-outline)) body .site-footer-pro :is(.premium-footer-brand, .premium-footer-links a, .premium-footer-contact a):focus-visible {
  outline: 2px solid #a1c8ff;
  outline-offset: 3px;
}
:where(html.storefront-no-outline) body .site-footer-pro :is(.premium-footer-brand, .premium-footer-links a, .premium-footer-contact a):focus-visible {
  border-color: #a1c8ff;
}
body .site-footer-pro .premium-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 15px 0 20px;
  border-top: 1px solid rgba(160, 193, 235, .1);
  color: #8293a9;
  font-size: 11.5px;
  line-height: 1.65;
}
body .site-footer-pro .premium-footer-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 16px;
}
@media (max-width: 1180px) {
  body .site-footer-pro .footer-premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .footer-premium {
    gap: 26px 22px;}
  body .site-footer-pro .footer-premium .premium-footer-intro {
    grid-column: 1 / -1;
  }
  body .site-footer-pro .premium-footer-intro p { max-width: 560px; }
}
@media (max-width: 760px) {
  body .site-footer-pro .footer-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .footer-premium {
    gap: 28px 18px;
    padding-top: 30px;
    padding-bottom: 26px;}
  body .site-footer-pro .footer-premium .premium-footer-intro { grid-column: 1 / -1; }
  body .site-footer-pro .premium-footer-contact-strip {
    grid-template-columns: 1fr;
  }
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-contact-strip {
    padding-top: 16px;
    padding-bottom: 18px;}
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-contact { padding: 11px 14px;}
  body .site-footer-pro .premium-footer-bottom-meta { justify-content: flex-start; }
}
@media (max-width: 380px) {
  body .site-footer-pro .footer-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .footer-premium {
    gap: 24px 12px;}
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-column h2 { font-size: 12px;}
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-column .premium-footer-links a { font-size: 12px;}
}

/* Never show empty header counters, even when badge display rules override [hidden]. */
body .header-cart-link .cart-count[hidden],
body .header-wishlist-link .cart-count[hidden] { display: none !important; }


/* D-HEADER-UTILITY — one visual contract for the five header controls.
   Kept in the shared shell: homepage and internal pages use the same rules. */
body .site-header .header-utility-control {
  box-sizing:border-box;
  display:inline-flex;
  flex:0 0 var(--m2-header-utility-size, 42px);
  align-items:center;
  justify-content:center;
  width:var(--m2-header-utility-size, 42px);
  min-width:var(--m2-header-utility-size, 42px);
  height:var(--m2-header-utility-size, 42px);
  min-height:var(--m2-header-utility-size, 42px);
  padding:0;
  border:1px solid #3b506d;
  border-radius:10px;
  background:#121e30;
  color:#d9e6f7;
  font:inherit;
  text-decoration:none;
  box-shadow:none;
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
body .site-header .header-utility-control svg {
  display:block;
  flex:0 0 20px;
  width:20px;
  height:20px;
  stroke:currentColor;
  stroke-width:1.85;
}
body .site-header .account-link.header-utility-control {
  flex:0 0 auto;
  width:auto;
  min-width:0;
  padding:0 16px;
  font-size:13px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
}
body .site-header .header-utility-control:hover,
body .site-header .locale-dropdown:hover > .header-utility-control {
  color:#fff;
  border-color:#80addf;
  background:#1d314b;
  box-shadow:none;
}
body .site-header .header-utility-control:focus-visible {
  color:#fff;
  border-color:#8cb8ec;
  background:#1d314b;


}
:where(html:not(.storefront-no-outline)) body .site-header .header-utility-control:focus-visible {
  outline:2px solid #a6d1ff;
  outline-offset:2px;
}
body .site-header .site-nav .site-link:hover,
body .site-header .site-nav .site-link:focus-visible {
  color:#f3f8ff;
  border-color:rgba(134,178,233,.24);
  background:rgba(110,157,216,.12);
}
:where(html:not(.storefront-no-outline)) body .site-header .site-nav .site-link:focus-visible,
:where(html:not(.storefront-no-outline)) body .site-header .locale-menu .locale-link:focus-visible {
  outline:2px solid #a6d1ff;
  outline-offset:2px;
}
:where(html.storefront-no-outline) body .site-header .site-nav .site-link:focus-visible,
:where(html.storefront-no-outline) body .site-header .locale-menu .locale-link:focus-visible {
  border-color: #a6d1ff;
}
body .site-header .locale-menu .locale-link:hover,
body .site-header .locale-menu .locale-link:focus-visible {
  color:#fff;
  border-color:rgba(134,178,233,.25);
  background:#203650;
}
body .site-header .locale-menu .locale-link.is-active {
  color:#e9f3ff;
  border-color:#607fa3;
  background:#263e5a;
}
body .site-header .header-utility-control .cart-count {
  top:-7px;
  right:-7px;
}
/* Desktop: only a click-driven aria-expanded state opens the language menu. */
body .site-header .locale-dropdown .locale-menu {pointer-events:none}
body .site-header .locale-dropdown .locale-trigger[aria-expanded="true"] + .locale-menu {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
body .site-header .locale-dropdown .locale-trigger[aria-expanded="true"] {
  color:#fff;
  border-color:#80addf;
  background:#1d314b;
}
@media (max-width:1240px) {
  /* The collapsed menu uses full-width rows and accessible touch targets. */
  body .site-header .premium-header-search.header-utility-control {
    display:inline-flex;
    flex:0 0 auto;
    justify-content:center;
    width:100%;
    min-width:0;
    min-height:44px;
    height:44px;
    gap:9px;
    padding:0 12px;
  }
  body .site-header .header-cart-link.header-utility-control {
    flex:0 0 auto;
    width:100%;
    min-width:0;
    height:44px;
    min-height:44px;
  }
  body .site-header .account-nav {width:100%}
  body .site-header .account-link.header-utility-control {
    flex:1 1 auto;
    width:100%;
    min-width:0;
    height:44px;
    min-height:44px;
  }
  /* Language choices are already directly visible inside the mobile menu. */
  body .site-header .locale-trigger.header-utility-control {display:none}
  body .site-header .locale-menu .locale-link {min-height:44px}
}
@media (prefers-reduced-motion:reduce) {
  body .site-header .header-utility-control,
  body .site-header .menu-toggle--utility {transition:none}
}


/* Reserve the desktop scrollbar gutter even while the drawer locks scrolling.
   At the 1240px breakpoint this prevents the viewport from jumping across
   the CSS/JS media query when the scrollbar disappears. */
html { scrollbar-gutter: stable; }

/* Mobile menu: a real fixed off-canvas drawer, never part of header layout. */
.mobile-menu-backdrop,.mobile-menu-heading,.mobile-menu-section-label {display:none}
@media (max-width:1240px) {
  html.mobile-menu-open,body.mobile-menu-open {overflow:hidden}
  /* backdrop-filter creates a containing block for fixed children in Safari.
     Disable it only on the mobile header to anchor the drawer to viewport. */
  :is(body.premium-home,body.premium-inner) .site-header {
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  body .site-header .header-row {
    flex-wrap:nowrap;
    min-height:64px;
    gap:12px;
    padding:10px 0;
  }
  body .site-header .menu-toggle {
    display:grid;
    place-items:center;
    box-sizing:border-box;
    flex:0 0 44px;
    width:44px;height:44px;min-height:44px;
    margin-left:auto;
    border:1px solid #426381;
    border-radius:10px;
    background:#12263a;
    color:#d8e9fb;
  }
  body .site-header .menu-toggle:hover,
  body .site-header .menu-toggle:focus-visible {
    border-color:#87b6eb;background:#213b56;color:#fff;
  }
  :where(html:not(.storefront-no-outline)) body .site-header .menu-toggle:focus-visible {
  outline:2px solid #9bcbff;
  outline-offset:2px;
}
:where(html.storefront-no-outline) body .site-header .menu-toggle:focus-visible {
  border-color: #9bcbff;
}
  /* Match the quick-action buttons; the nine owner-frozen pages retain
     the original menu palette and icon size. Keep the desktop toggle hidden. */
  body .site-header .menu-toggle.menu-toggle--utility {
    padding:0;
    border-color:#3b506d;
    background:#121e30;
    color:#d9e6f7;
    box-shadow:none;
  }
  body .site-header .menu-toggle--utility svg {
    display:block;
    width:20px;
    height:20px;
    stroke:currentColor;
    stroke-width:1.85;
  }
  body .site-header .menu-toggle.menu-toggle--utility:hover {
    color:#fff;
    border-color:#80addf;
    background:#1d314b;
  }
  body .site-header .menu-toggle.menu-toggle--utility:focus-visible {
    color:#fff;
    border-color:#8cb8ec;
    background:#1d314b;


}
:where(html:not(.storefront-no-outline)) body .site-header .menu-toggle.menu-toggle--utility:focus-visible {
  outline:2px solid #a6d1ff;
  outline-offset:2px;
}
  body .site-header .mobile-menu-backdrop {
    display:block;
    position:fixed;
    inset:0;
    z-index:20;
    background:rgba(2,7,16,.72);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .25s ease,visibility .25s;
  }
  body.mobile-menu-open .site-header .mobile-menu-backdrop {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  body .site-header .header-actions {
    box-sizing:border-box;
    position:fixed;
    top:0;right:0;bottom:0;
    z-index:21;
    display:grid;
    width:min(364px,calc(100vw - 24px));
    max-width:calc(100vw - 24px);
    height:100vh;
    height:100dvh;
    min-height:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:min-content;
    align-content:start;
    align-items:stretch;
    justify-items:stretch;
    column-gap:10px;
    row-gap:12px;
    margin:0;
    padding:calc(14px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
    border:0;
    border-left:1px solid #304967;
    border-radius:10px;
    background:#101b2b;
    box-shadow: none;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    transform:translate3d(103%,0,0);
    opacity:1;
    visibility:hidden;
    pointer-events:none;
    transition:transform .26s cubic-bezier(.2,.78,.25,1),visibility .26s;
  }
  /* Never animate the desktop header into a CLOSED mobile drawer.
     At 1241 -> 1240px the desktop nav starts visible, so a visibility
     transition otherwise briefly paints the entire off-canvas panel. */
  body .site-header .header-actions:not(.is-open) {
    visibility:hidden;
    pointer-events:none;
    transition:none;
  }
  body:not(.mobile-menu-open) .site-header .mobile-menu-backdrop {
    visibility:hidden;
    pointer-events:none;
    transition:none;
  }
  body .site-header .header-actions.is-open {
    display:grid;
    transform:translate3d(0,0,0);
    visibility:visible;
    pointer-events:auto;
  }
  body .site-header .mobile-menu-heading {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:45px;
    margin-bottom:3px;
    color:#f2f7ff;
    font-size:18px;
    font-weight:750;
    letter-spacing:-.02em;
  }
  body .site-header .mobile-menu-close {
    display:grid;place-items:center;
    flex:0 0 42px;
    width:42px;height:42px;
    border:1px solid #3b536f;
    border-radius:10px;
    background:#17273b;
    color:#d9e7fb;
    cursor:pointer;
  }
  body .site-header .mobile-menu-close svg {
    width:20px;height:20px;stroke:currentColor;stroke-width:1.8;
  }
  body .site-header .mobile-menu-close:hover,
  body .site-header .mobile-menu-close:focus-visible {
    color:#fff;border-color:#8ab9ed;background:#263d5a;
  }
  :where(html:not(.storefront-no-outline)) body .site-header .mobile-menu-close:focus-visible {
  outline:2px solid #a6d1ff;
  outline-offset:2px;
}
:where(html.storefront-no-outline) body .site-header .mobile-menu-close:focus-visible {
  border-color: #a6d1ff;
}
  body .site-header .site-nav {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    flex:none;
    width:100%;
    min-width:0;
    gap:3px;
    margin:0 0 5px;
    padding:0 0 15px;
    border:0;
    border-bottom:1px solid #2b405a;
    border-radius:10px;
    background:transparent;
  }
  body .site-header .mobile-menu-section-label {
    display:block;
    padding:1px 11px 8px;
    color:#879fbf;
    font-size:11px;
    font-weight:750;
    letter-spacing:.09em;
    text-transform:uppercase;
  }
  body .site-header .site-nav .site-link {
    box-sizing:border-box;
    display:flex;
    flex:none;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-width:0;
    min-height:44px;
    padding:0 12px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    color:#c6d5e9;
    font-size:14px;
    font-weight:600;
    line-height:1.3;
    white-space:normal;
    text-align:left;
    text-decoration:none;
  }
  body .site-header .site-nav .site-link::after {
    content:"";
    display:block;
    flex:0 0 7px;
    width:7px;height:7px;
    margin:0 3px 0 12px;
    border-top:1.5px solid currentColor;
    border-right:1.5px solid currentColor;
    transform:rotate(45deg);
    opacity:.55;
  }
  body .site-header .site-nav .site-link:hover,
  body .site-header .site-nav .site-link:focus-visible {
    color:#fff;
    border-color:#395878;
    background:#1d324c;
  }
  body .site-header .site-nav .site-link.is-active {
    color:#edf5ff;
    border-color:#4d7199;
    background:#203a56;
  }
  body .site-header .premium-header-search.header-utility-control {
    grid-column:1/-1;
    justify-content:center;
    gap:10px;
    border-radius:10px;
  }
  body .site-header .header-cart-link.header-utility-control {
    justify-self:stretch;
    width:100%;
    border-radius:10px;
  }
  body .site-header .header-cart-link--solo {grid-column:1/-1}
  body .site-header .account-nav {
    grid-column:1/-1;
    width:100%;
    margin:0;
    padding:0;
    background:transparent;
  }
  body .site-header .account-link.header-utility-control {
    justify-content:center;
    width:100%;
    border-radius:10px;
  }
  body .site-header .locale-dropdown {
    grid-column:1/-1;
    display:block;
    width:100%;
    min-width:0;
    margin-top:2px;
  }
  body .site-header .locale-menu {
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    min-width:0;
    gap:8px;
    padding:6px;
    border:1px solid #324864;
    border-radius:10px;
    background:#121e30;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
  body .site-header .locale-menu .locale-link {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    border-radius:10px;
    color:#b6c9e0;
    font-weight:650;
  }
}
@media (prefers-reduced-motion:reduce) {
  body .site-header .mobile-menu-backdrop,
  body .site-header .header-actions {transition:none}
}


/* UIUX-REDESIGN-03 — keyboard navigation and refined storefront footer.
 * Single shared layer, no page-specific duplicates and no Buy/control overrides.
 * All cosmetics preserve header utility boxes and the off-canvas mechanics. */
body .storefront-skip-link {
  position: fixed;
  z-index: 220;
  top: 10px;
  left: 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: calc(100vw - 24px);
  padding: 9px 16px;
  border: 2px solid #a6d1ff;
  border-radius: 10px;
  background: #162f4d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
}
body .storefront-skip-link:focus-visible {


  transform: none;
}
:where(html:not(.storefront-no-outline)) body .storefront-skip-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
:where(html.storefront-no-outline) body .storefront-skip-link:focus-visible {
  border-color: #ffffff;
}
:where(html:not(.storefront-no-outline)) body .site-main:focus-visible {
  outline: 2px solid #a6d1ff;
  outline-offset: -2px;
}
:where(html.storefront-no-outline) body .site-main:focus-visible {
  border-color: #a6d1ff;
}
body .site-header .premium-brand:focus-visible {
  border-radius: 10px;


}
:where(html:not(.storefront-no-outline)) body .site-header .premium-brand:focus-visible {
  outline: 2px solid #a6d1ff;
  outline-offset: 4px;
}
:where(html.storefront-no-outline) body .site-header .premium-brand:focus-visible {
  border-color: #a6d1ff;
}
/* The current section is legible even without hover. Underline sits inside
 * the existing button box so nav and the surrounding price grid never move. */
body .site-header .site-nav .site-link[aria-current="page"] {
  color: #f2f8ff;
  box-shadow: none;
}
body .site-header .locale-menu .locale-link[aria-current="true"] {
  color: #ffffff;
  font-weight: 500;
}

body .site-footer-pro {
  background: linear-gradient(180deg, #0b1421 0%, #090f1a 100%);
}
body .site-footer-pro .premium-footer-intro p {
  color: var(--m2-color-text-muted, #aebfd3);
  font-size: 14px;
  line-height: 1.65;
}
body .site-footer-pro .premium-footer-shop-note {
  font-size: 12px;
  line-height: 1.5;
}
body .site-footer-pro .premium-footer-column h2 {
  color: var(--m2-color-text, #edf2f8);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}
body .site-footer-pro .premium-footer-column .premium-footer-links {
  gap: 5px;
}
body .site-footer-pro .premium-footer-column .premium-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--m2-footer-link-height, 32px);
  padding: var(--m2-footer-link-padding, 4px 0);
  color: #bdcbe0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  text-underline-offset: 4px;
}
body .site-footer-pro .premium-footer-column .premium-footer-links a:hover,
body .site-footer-pro .premium-footer-column .premium-footer-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #7eb5fd;
}
body .site-footer-pro .premium-footer-column .premium-footer-links a[aria-current="page"] {
  color: #eff7ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #78b4ff;
}
body .site-footer-pro .premium-footer-contact-title {
  color: #c1d0e7;
  font-size: 12px;
  line-height: 1.4;
}
body .site-footer-pro .premium-footer-contact-description {
  color: #a9bdd6;
  font-size: 12px;
  line-height: 1.55;
}
body .site-footer-pro .premium-footer-bottom {
  color: #aabbd1;
  font-size: 12.5px;
}
body .site-footer-pro .premium-footer-bottom-meta {
  align-items: center;
}
@media (max-width: 760px) {
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-column .premium-footer-links a {
    min-height: 40px;
    padding: 8px 0;}
}
@media (max-width: 380px) {
  /* Avoid shrinking policy links below readable copy on small phones. */
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-column h2 { font-size: 14px;}
  :where(html:not(.storefront-no-outline)) body .site-footer-pro .premium-footer-column .premium-footer-links a { font-size: 14px;}
}


/* UIUX-08 — cart-only clarity and responsive hierarchy.
 * Retain all existing POST actions, totals, unavailable states and review-only flows.
 * No transforms or movement on hover/focus; these rules do not touch checkout JS. */
body .storefront-cart-page:not(.storefront-review-page) > .container > h1,
body .storefront-wishlist-page > .container > h1 {
  color: #f2f7ff;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
}
body .storefront-cart-item {
  min-width: 0;
  padding: 12px;
  gap: 16px;
  border-color: #37516d;
  background: linear-gradient(145deg, #14253a, #101d2d);
  border-radius: 10px;
}
body .storefront-cart-item-details {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}
body .storefront-cart-item-heading {
  display: block;
  min-width: 0;
  margin-bottom: 0;
}
body .storefront-cart-item .storefront-cart-item-heading h2 {
  margin: 0;
}
body .storefront-cart-item .storefront-cart-preorder-note {
  margin: 0;
}
body .storefront-cart-item .storefront-cart-preorder-note .storefront-game-badge:focus-visible {
  border-color: #a6d1ff;
}
body .storefront-cart-item h2 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}
body .storefront-cart-item h2 a {
  color: #ecf5ff;
  vertical-align: middle;
}
body .storefront-cart-item h2 a:hover,
body .storefront-cart-item h2 a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .storefront-cart-price-row .storefront-cart-unit-price {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  color: #f3f8ff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* Desktop: price alone above a bottom row of quantity, wishlist and remove.
 * display:contents keeps price/quantity in one DOM group for the mobile toolbar. */
body .storefront-cart-item-side {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: end;
  gap: 12px 8px;
  min-width: 0;
}
body .storefront-cart-price-row {
  display: contents;
}
body .storefront-cart-price-row .storefront-cart-quantity {
  grid-column: 1;
  grid-row: 2;
}
body .storefront-cart-quantity {
  box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 2px;
  height: 38px;
  margin: 0; padding: 3px;
  border: 1px solid #44617f; border-radius: 10px;
  background: #0c1b2d;
}
body .storefront-cart-quantity button {
  box-sizing: border-box;
  display: grid; place-items: center; width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: 7px;
  background: #1d3753; color: #d8ebff; cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
body .storefront-cart-quantity button svg {
  width: 18px; height: 18px; stroke: currentColor;
}
body .storefront-cart-quantity button:hover:not(:disabled) {
  background: #275486; color: #fff;
}
body .storefront-cart-quantity button:focus-visible {
  border-color: #9bc8ff;
}
body .storefront-cart-quantity button:disabled {
  opacity: .38; cursor: not-allowed;
}
body .storefront-cart-quantity output {
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  height: 30px; min-width: 30px; padding: 0 3px;
  color: #fff; font-variant-numeric: tabular-nums;
  font-weight: 750; font-size: 14px; text-align: center;
}
body .storefront-cart-summary-items {
  display: grid; gap: 12px; margin: 0; padding: 0;
  list-style: none;
}
body .storefront-cart-summary-items li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; gap: 10px;
  color: #d0e0f3; font-size: 13px; line-height: 1.45;
}
body .storefront-cart-summary-name {
  min-width: 0; overflow-wrap: anywhere;
}
body .storefront-cart-summary-price {
  white-space: nowrap; color: #e9f4ff; font-variant-numeric: tabular-nums;
}
body .storefront-cart-summary-price strong {
  color: #fff; font-size: 14px; font-weight: 750;
}
body .storefront-cart-summary .storefront-cart-multi-note {
  margin: 0 0 14px; padding: 11px 12px;
  background: #282338; border: 1px solid #7e6489;
  border-radius: 10px; color: #e9d8ff; line-height: 1.5;
}
body .storefront-cart-summary [hidden] { display: none; }

body .storefront-cart-item .storefront-cart-remove:focus-visible,
body .storefront-cart-clear-fallback summary:focus-visible,
body .storefront-cart-continue:focus-visible,
body .storefront-cart-page .primary-button:focus-visible {
  border-color: #a6d1ff;
}
body .storefront-cart-summary {
  min-width: 0;
  padding: 12px;
  border-color: #3c5775;
  border-radius: 10px;
  background: linear-gradient(160deg, #172c45, #101d2e 70%);
}
body .storefront-cart-summary h2 {
  color: #f1f7ff;
  font-size: 20px;
  line-height: 1.35;
}
body .storefront-cart-summary > p:not(.storefront-cart-alert):not(.storefront-cart-note) {
  color: #b9cde6;
  line-height: 1.55;
}
body .storefront-cart-summary .storefront-cart-total {
  margin-block: 0;
  padding-block: 16px;
}
body .storefront-cart-summary .storefront-cart-total-main > span {
  color: #c1d5ea;
  font-size: 18px;
  font-weight: 600;
}
body .storefront-cart-summary .storefront-cart-total-main strong {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
body .storefront-cart-summary .primary-button {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
}
/* CART-PROMO-TEASER-01: new cart-only informational component; intentionally non-interactive. */
body .storefront-cart-page .storefront-cart-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed #416082;
  border-radius: 10px;
  background: #14283f;
  color: #c5d8ee;
  font-size: 14px;
  line-height: 1.35;
}
body .storefront-cart-page .storefront-cart-promo svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #a8c9ec;
}
body .storefront-cart-page .storefront-cart-promo span {
  min-width: 0;
  overflow-wrap: anywhere;
}
body .storefront-cart-promo form { flex:1;min-width:0;margin:0; }
body .storefront-cart-promo label,
body .storefront-cart-promo-applied strong { display:block;margin-bottom:7px;color:#d7e7fa;font-size:13px; }
body .storefront-cart-promo-fields { display:flex;gap:8px; }
body .storefront-cart-promo input[type="text"] { min-width:0;flex:1;border:1px solid #527092;border-radius:8px;background:#0d1b2b;color:#f4f8ff;padding:8px 10px;text-transform:uppercase; }
body .storefront-cart-promo-button { min-height:36px;border:1px solid #5d83af;border-radius:8px;background:#244867;color:#f4f8ff;padding:7px 10px;font:inherit;font-size:13px;font-weight:600;cursor:pointer; }
body .storefront-cart-promo-button:hover,body .storefront-cart-promo-button:focus-visible { background:#2c5b81;border-color:#a9cceb; }
body .storefront-cart-promo-error { min-height:1.35em;margin:7px 0 0;color:#ff9b9b;font-size:13px;line-height:1.35; }
body .storefront-cart-promo-applied { min-width:0; }
body .storefront-cart-promo-applied span { color:#aee8c5; font-weight:700; }
body .storefront-cart-discount { display:flex;justify-content:space-between;gap:12px;color:#aee8c5;font-size:14px; }
body .storefront-cart-discount strong { color:#aee8c5; }
body .storefront-cart-summary .storefront-cart-note {
  color: #aebfd4;
  line-height: 1.65;
}
body .storefront-cart-empty {
  max-width: 630px;
  margin-inline: auto;
  padding: 16px;
  text-align: center;
  border-color: #36516e;
  background: linear-gradient(165deg, #172940, #101b2a);
}
body .storefront-cart-empty h2 {
  color: #f2f7ff;
  font-size: 26px;
  line-height: 1.3;
}
body .storefront-cart-empty p {
  max-width: 440px;
  margin: 0 auto 24px;
  color: #b9cce2;
  line-height: 1.65;
}
body .storefront-cart-empty .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
}
/* The summary must move below the cart before the left column becomes too
 * narrow for the separate desktop title and right-aligned price/actions. */
@media (max-width: 1199.98px) {
  body .storefront-cart-layout { grid-template-columns: minmax(0, 1fr); }
}
/* UIUX-TO-TOP-01: one viewport-anchored control, outside the footer/layout
   flow. It is inert and absent from keyboard order before the scroll gate. */
body .premium-floating-to-top {
  position: fixed;
  z-index: 180;
  right: 0;
  bottom: var(--to-top-purchase-offset, 0px);
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #6b9bc8;
  border-radius: 10px 0 0 0;
  background: #1a3859;
  color: #f3f8ff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1; /* anchor remains functional when JavaScript is unavailable */
  visibility: visible;
  transition: opacity .2s ease, visibility .2s ease,
              background-color .16s ease, border-color .16s ease;
}
body .premium-floating-to-top svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
html.back-to-top-ready body .premium-floating-to-top:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body .premium-floating-to-top:hover {
  background: #27527e;
  border-color: #94c7fb;
  color: #fff;
}
body .premium-floating-to-top:focus-visible {


  background: #27527e;
  color: #fff;
}
:where(html:not(.storefront-no-outline)) body .premium-floating-to-top:focus-visible {
  outline: 3px solid #b6daff;
  outline-offset: 3px;
}
:where(html.storefront-no-outline) body .premium-floating-to-top:focus-visible {
  border-color: #b6daff;
}
body.mobile-menu-open .premium-floating-to-top { display: none; }
@media (max-width: 680px) {
  :where(html:not(.storefront-no-outline)) body .premium-floating-to-top {
    right: 0;
    bottom: var(--to-top-purchase-offset, 0px);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .premium-floating-to-top { transition: none; }
}

/* UIUX-HEADER-QUICK-01: persistent header actions in the approved order.
   Desktop: search | wishlist | cart | account | language (rightmost).
   Mobile: search stays inside the drawer; wishlist | cart | account | language
   remain visible. At <=420px controls get a second row, never smaller targets. */
body .site-header .header-row {gap:6px}
body .site-header .header-actions {order:1;margin-left:auto}
body .site-header .header-quick-actions {
  order:2;
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  min-width:0;
  margin:0;
  padding:0;
  background:transparent;
}
body .site-header .header-quick-actions .header-utility-control,
body .site-header .header-quick-actions .header-cart-link.header-utility-control,
body .site-header .header-quick-actions .account-link.header-utility-control,
body .site-header .header-quick-actions .locale-trigger.header-utility-control {
  box-sizing:border-box;
  flex:0 0 var(--m2-header-utility-size, 42px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:var(--m2-header-utility-size, 42px);
  min-width:var(--m2-header-utility-size, 42px);
  max-width:var(--m2-header-utility-size, 42px);
  height:var(--m2-header-utility-size, 42px);
  min-height:var(--m2-header-utility-size, 42px);
  padding:0;
  border-radius:10px;
}
body .site-header .header-quick-actions .header-utility-control svg {
  width:20px;
  height:20px;
  flex:0 0 20px;
}
body .site-header .header-quick-actions .locale-dropdown {
  position:relative;
  display:inline-flex;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
}
body .site-header .header-quick-actions .locale-dropdown .locale-menu {
  position:absolute;
  z-index:110;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  top:calc(100% + 8px);
  right:0;
  left:auto;
  width:max-content;
  min-width:112px;
  max-width:calc(100vw - 20px);
  margin:0;
  padding:6px;
  gap:4px;
  border:1px solid #324864;
  border-radius:10px;
  background:#121e30;
  box-shadow: none;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:none;
}
body .site-header .header-quick-actions .locale-dropdown .locale-trigger[aria-expanded="true"] + .locale-menu {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
body .site-header .header-quick-actions .locale-menu .locale-link {
  min-height:0;
  padding:6px;
}
@media (max-width:1240px) {
  body .site-header .header-row {display:flex;flex-wrap:nowrap;gap:6px}
  body .site-header .header-actions {order:3;margin-left:0}
  body .site-header .menu-toggle {
    order:1;
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    min-height:44px;
    margin-left:auto;
  }
  body .site-header .header-quick-actions {
    order:2;
    gap:6px;
    margin-left:0;
  }
  :where(html:not(.storefront-no-outline)) body .site-header .header-quick-actions .header-utility-control,
  :where(html:not(.storefront-no-outline)) body .site-header .header-quick-actions .header-cart-link.header-utility-control,
  :where(html:not(.storefront-no-outline)) body .site-header .header-quick-actions .account-link.header-utility-control,
  :where(html:not(.storefront-no-outline)) body .site-header .header-quick-actions .locale-trigger.header-utility-control {
    flex-basis:44px;
    width:44px;
    min-width:44px;
    max-width:44px;
    height:44px;
    min-height:44px;
  }
  body .site-header .header-quick-actions .cart-count {
    top:-4px;
    right:-3px;
  }
  /* Locale chooser stays in the header instead of becoming visible drawer links. */
  body .site-header .header-quick-actions .locale-trigger.header-utility-control {
    display:inline-flex;
  }
}
@media (max-width:420px) {
  /* Avoid squeezing MY2GAME branding or tap targets into a 320px row. */
  body .site-header .header-row {flex-wrap:wrap;row-gap:5px}
  body .site-header .menu-toggle {order:1;margin-left:auto}
  body .site-header .header-quick-actions {
    order:2;
    flex:0 0 100%;
    width:100%;
    margin-left:0;
    justify-content:flex-end;
  }
}
@media (max-width:360px) {
  body .site-header .container.header-row {width:calc(100% - 24px)}
  :where(html:not(.storefront-no-outline)) body .site-header .premium-brand-word-v2 {font-size:17px}
  body .site-header .header-quick-actions {gap:6px}
}


/* Manual crypto checkout: flat cards, readable amounts, responsive without shadows. */
body .storefront-payment-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,360px);gap:16px;align-items:start;margin-top:16px; }
body .storefront-payment-layout--invoice { grid-template-columns:minmax(0,1fr); }
body .storefront-payment-page > .storefront-payment-invoice-container { max-width:680px; }
body .storefront-payment-invoice-container > h1 { overflow-wrap:anywhere; }
body .storefront-payment-layout--invoice .storefront-payment-head,
body .storefront-payment-layout--invoice .storefront-payment-deadline { padding-bottom:12px;margin-bottom:12px; }
body .storefront-payment-layout--invoice .storefront-payment-invoice-data { gap:12px;margin:16px 0; }
body .storefront-payment-invoice-data > .storefront-invoice-asset,
body .storefront-payment-invoice-data > .storefront-invoice-field { background:transparent;border:0;padding:0;gap:6px; }
body .storefront-invoice-field .storefront-payment-value-row { padding:12px;border:1px solid #284661;border-radius:10px;background:#0f1e30; }
body .storefront-invoice-field .storefront-payment-value-row strong { font-weight:500;overflow-wrap:anywhere;word-break:normal; }
body .storefront-invoice-amount .storefront-payment-value-row strong { font-size:20px;font-weight:600;font-variant-numeric:tabular-nums; }
body .storefront-payment-layout--invoice .storefront-invoice-qr { margin:0;padding:0;background:transparent; }
body .storefront-invoice-qr-title { font-weight:500;font-size:13px; }
body .storefront-payment-qr > [data-qr-payload] { display:grid;place-items:center;max-width:100%;background:#fff;padding:0;border-radius:8px;overflow:hidden; }
body .storefront-payment-qr > [data-qr-payload] svg { display:block;max-width:100%;height:auto; }
@media(max-width:480px) {
  body .storefront-invoice-field .storefront-payment-value-row { flex-direction:row;align-items:center; }
}
body .storefront-payment-panel { min-width:0;background:#112135;border:1px solid #2b4564;border-radius:10px;padding:12px; }
body .storefront-payment-page h1 { margin:0 0 16px;font-size:26px;overflow-wrap:anywhere; }
body .storefront-payment-methods { display:grid;gap:10px;min-width:0;padding:0;margin:0 0 16px;border:0; }
body .storefront-payment-methods legend {font-weight:600;font-size:16px;margin:0 0 16px;padding:0;color:#ecf4ff}
body .storefront-payment-method {display:flex;gap:12px;align-items:center;min-width:0;min-height:0;padding:12px;border:1px solid #335271;border-radius:10px;background:#152a42;cursor:pointer;transition:background-color .15s ease,border-color .15s ease;}
body .storefront-payment-method:has(input:checked) {border-color:#397be9;background:#173659;}
body .storefront-payment-method input {accent-color:#4284f5;width:18px;height:18px;flex:none;}
body .storefront-payment-method-label {display:flex;justify-content:space-between;gap:12px;flex:1;align-items:center;}
body .storefront-payment-method-name {display:inline-flex;flex:1;min-width:0;align-items:center;gap:10px;}
body .storefront-payment-method-name img {display:block;flex:0 0 32px;width:32px;height:32px;object-fit:contain;border-radius:50%;}
body .storefront-payment-method-label small {color:#a4bdd7;}
body .storefront-payment-action {display:block;width:100%;min-height:44px;text-align:center;}
body .storefront-payment-action:disabled { cursor:not-allowed;opacity:.5;filter:grayscale(.3);box-shadow:none; }
body .storefront-payment-unavailable { margin:0 0 16px;line-height:1.5; }
/* Crypto storefront group selector, scoped to payment page; zero global overrides. */
body .storefront-payment-intro { margin:0 0 16px;color:#b7cbe0;font-size:14px;line-height:1.5; }
body .storefront-payment-coin-title { display:flex;align-items:baseline;gap:6px;min-width:0; }
body .storefront-payment-coin-title strong { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0f6ff;font-weight:500; }
body .storefront-payment-coin-title small { flex-shrink:0;white-space:nowrap;font-size:12px;color:#9ebad6; }
/* Keep keyboard focus on the actual radio, not on its containing payment row. */
body .storefront-payment-method--single input:focus-visible,
body .storefront-payment-network input:focus-visible {
  border-color: #7fb3ff;
}
body .storefront-payment-method--single:not(label) { cursor:default; }
body .storefront-payment-network-hint { overflow-wrap:anywhere;text-align:right;font-size:12px; }
body .storefront-payment-coin { min-width:0;border:1px solid #335271;border-radius:10px;background:#152a42;transition:background-color .15s ease,border-color .15s ease; }
body .storefront-payment-coin:has(input:checked) { border-color:#397be9;background:#173659; }
body .storefront-payment-coin-summary { display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:0;padding:12px;cursor:pointer;list-style:none;border-radius:9px;background:transparent; }
body .storefront-payment-coin-summary::-webkit-details-marker,
body .storefront-payment-more-summary::-webkit-details-marker { display:none; }
body .storefront-payment-coin-summary:focus-visible,
body .storefront-payment-more-summary:focus-visible { border-radius:10px;
  border-color: #7fb3ff;
}
body .storefront-payment-coin-aside { display:flex;align-items:center;gap:8px;min-width:0;color:#abc4df; }
body .storefront-payment-coin-aside small { font-size:12px;text-align:right;overflow-wrap:anywhere; }
body .storefront-payment-coin-aside .ui-icon,
body .storefront-payment-more-count .ui-icon { width:18px;height:18px;flex:0 0 18px;transition:transform .15s ease; }
body .storefront-payment-coin[open]>.storefront-payment-coin-summary .ui-icon,
body .storefront-payment-more[open]>.storefront-payment-more-summary .ui-icon { transform:rotate(180deg); }
body .storefront-payment-networks { display:grid;gap:8px;padding:0 12px 12px; }
body .storefront-payment-network { display:flex;align-items:center;gap:12px;min-height:38px;padding:0 12px;border:1px solid #395572;border-radius:8px;background:#11243b;cursor:pointer;overflow-wrap:anywhere;transition:background-color .15s ease,border-color .15s ease; }
body .storefront-payment-network input { width:18px;height:18px;flex:0 0 18px;accent-color:#4284f5;margin:0; }
body .storefront-payment-network:has(input:checked) { border-color:#397be9;background:#183d62; }
body .storefront-payment-network--read-only { color:#bfd0e4;cursor:default; }
body .storefront-payment-more { margin:0;border:1px solid #335271;border-radius:10px;background:#10253a;transition:background-color .15s ease,border-color .15s ease; }
body .storefront-payment-more-summary { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0;padding:12px;color:#e5f1ff;font-size:14px;font-weight:600;cursor:pointer;list-style:none;border-radius:9px;background:transparent; }
body .storefront-payment-more-count { display:flex;align-items:center;gap:10px;color:#a5bed7;font-size:12px; }
body .storefront-payment-more>.storefront-payment-methods { padding:0 12px 12px;margin:0; }
body .storefront-payment-sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
/* Payment selection: pointer-only hover; checked radios and read-only network rows stay distinct. */
@media (hover: hover) and (pointer: fine) {
  body label.storefront-payment-method--single:hover { background:#1c3855;border-color:#5487ba; }
  body label.storefront-payment-method--single:has(input:checked):hover { background:#214568;border-color:#68a5ff; }
  body .storefront-payment-coin:hover { border-color:#5487ba;background:#1b3653; }
  body .storefront-payment-coin:has(input:checked):hover { border-color:#68a5ff;background:#1e4165; }
  body label.storefront-payment-network:hover { background:#1b3552;border-color:#5686ba; }
  body label.storefront-payment-network:has(input:checked):hover { background:#1e476d;border-color:#6aa6ff; }
  body .storefront-payment-more:hover { border-color:#5487ba;background:#1b3653; }
}
@media(max-width:480px){
  body .storefront-payment-coin-aside small {max-width:95px;}
}
@media(prefers-reduced-motion:reduce){
  body .storefront-payment-method,
  body .storefront-payment-coin,
  body .storefront-payment-coin-summary,
  body .storefront-payment-network,
  body .storefront-payment-more,
  body .storefront-payment-more-summary,
  body .storefront-payment-coin-aside .ui-icon,
  body .storefront-payment-more-count .ui-icon {transition:none;}
}

/* Same unframed two-column pattern as the canonical cart total, directly below it. */
body .storefront-payment-quote-preview {display:grid;gap:12px;margin:0 0 16px;padding:0;border:0;border-radius:0;background:transparent;}
body .storefront-payment-quote-preview .storefront-payment-quote-row {align-items:baseline;min-width:0;}
body .storefront-payment-quote-preview .storefront-payment-quote-row > span {min-width:0;flex:1 1 auto;color:#c1d5ea;font-size:14px;font-weight:600;}
body .storefront-payment-quote-preview .storefront-payment-quote-row > strong {min-width:0;max-width:62%;text-align:right;color:#fff;font-size:16px;font-weight:600;overflow-wrap:anywhere;}
body .storefront-payment-quote-preview .storefront-payment-quote-amount {color:#fff;font-size:16px;font-variant-numeric:tabular-nums;}
/* New payment dock uses the same quote rows without adding a second price calculator. */
body .storefront-cart-sticky-checkout .storefront-payment-sticky-quote { margin:0;gap:8px; }
body .storefront-cart-sticky-checkout .storefront-payment-sticky-quote .storefront-payment-quote-row { display:flex;justify-content:space-between;gap:12px; }
body .storefront-payment-page .storefront-cart-promo[data-cart-promo] > .storefront-cart-promo-error {flex-basis:100%;margin:0;}
body .account-topup-layout {grid-template-columns:minmax(0,680px);align-items:start;justify-content:start;}
body .account-topup-amount {display:grid;gap:8px;margin:0 0 6px;font-weight:700;color:#ecf4ff;}
body .account-topup-input-wrap {display:flex;align-items:center;gap:8px;max-width:280px;padding:0 12px;border:1px solid var(--m2-control-border);border-radius:10px;background:var(--m2-control-bg);color:#b9d4f4;transition:border-color var(--m2-motion-fast) ease;}
body .account-topup-input-wrap:hover {border-color:var(--m2-control-border-hover);}
body .account-topup-input-wrap:has(> input:focus) {border-color:var(--m2-action-border-hover);}
body .account-topup-input-wrap input {width:100%;min-height:46px;padding:0;border:0;background:transparent;color:#fff;font:inherit;font-size:16px;font-weight:700;}
body .account-topup-help {margin:0 0 22px;color:#a4bdd7;font-size:13px;}
body .account-topup-presets {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:-10px 0 18px;color:#a4bdd7;font-size:13px;}
body .account-topup-presets>span {margin-right:2px;}
body .account-topup-presets button {min-height:31px;padding:4px 10px;border:1px solid #426487;border-radius:7px;background:#17314d;color:#e5f0ff;font:inherit;font-weight:700;cursor:pointer;}
body .account-topup-presets button:hover,body .account-topup-presets button:focus-visible {border-color:#5a98ff;background:#20466f;}
body .account-topup-error {margin:-10px 0 18px;color:#ffb9bd;font-size:13px;font-weight:600;}
body .withdraw-balance-card {display:flex;align-items:end;justify-content:space-between;gap:14px;padding:17px 18px;margin:0 0 22px;border:1px solid #397be9;border-radius:10px;background:#173659;}
body .withdraw-balance-card span {color:#bdd8f7;font-weight:650;}
body .withdraw-balance-card strong {color:#fff;font-size:28px;line-height:1;font-variant-numeric:tabular-nums;}
body .withdraw-field {display:grid;gap:8px;margin:0 0 16px;color:#ecf4ff;font-size:14px;font-weight:700;}
body .withdraw-field small {color:#9db7d3;font-size:12px;font-weight:500;}
body .withdraw-field input {box-sizing:border-box;min-height:var(--m2-height-field);padding:11px 13px;border:1px solid var(--m2-control-border);border-radius:10px;background:var(--m2-control-bg);color:var(--m2-color-text);font:inherit;font-size:16px;line-height:1.4;transition:border-color var(--m2-motion-fast) ease;}
body .withdraw-field input:hover:not(:disabled) {border-color:var(--m2-control-border-hover);}
body .withdraw-field input:focus,body .withdraw-field input:focus:hover {border-color:var(--m2-action-border-hover);box-shadow:none;}
body .withdraw-confirm {display:flex;align-items:flex-start;gap:10px;margin:2px 0 18px;color:#cfe2f7;font-size:13px;line-height:1.45;cursor:pointer;}
body .withdraw-confirm input {width:17px;height:17px;flex:0 0 17px;margin:1px 0 0;accent-color:#2d73e7;}
body .withdraw-review-note {margin:2px 0 18px;padding:12px 14px;border-left:3px solid #5a98ff;background:#142940;color:#cfe2f7;font-size:13px;line-height:1.5;}
body .storefront-payment-head,body .storefront-payment-deadline {display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #2a4260;}
/* Shared transaction badge: semantic tones independent of localized labels. */
body .transaction-status-badge { display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;min-width:0;box-sizing:border-box;padding:5px 10px;border:1px solid var(--transaction-status-border,#526070);border-radius:8px;background:var(--transaction-status-bg,#303945);color:var(--transaction-status-text,#c4cdd7);font-size:12px;font-weight:500;line-height:1.3;text-align:center;overflow-wrap:anywhere; }
body .transaction-status-badge--pending { --transaction-status-bg:#49371a;--transaction-status-text:#f7d58c;--transaction-status-border:#88672f; }
body .transaction-status-badge--review { --transaction-status-bg:#183753;--transaction-status-text:#acd6ff;--transaction-status-border:#39658c; }
body .transaction-status-badge--success { --transaction-status-bg:#173d30;--transaction-status-text:#a0e8bf;--transaction-status-border:#387c59; }
body .transaction-status-badge--expired { --transaction-status-bg:#3c2c24;--transaction-status-text:#efbd98;--transaction-status-border:#815a40; }
body .transaction-status-badge--error { --transaction-status-bg:#482630;--transaction-status-text:#ffb4bf;--transaction-status-border:#98505e; }
body .transaction-status-badge--suspended { --transaction-status-bg:#352c4b;--transaction-status-text:#d9c7ff;--transaction-status-border:#745d99; }
body .storefront-payment-deadline strong {font-size:26px;font-variant-numeric:tabular-nums;color:#e6f2ff;}
body .topup-invoice-total {display:flex;align-items:end;justify-content:space-between;gap:16px;padding:17px 18px;margin:0 0 18px;border:1px solid #397be9;border-radius:10px;background:#173659;}
body .topup-invoice-total span {color:#bdd8f7;font-size:14px;font-weight:650;}
body .topup-invoice-total strong {color:#fff;font-size:30px;line-height:1;font-variant-numeric:tabular-nums;}
body .storefront-payment-data {display:grid;gap:14px;margin:22px 0;}
body .storefront-payment-data>div {min-width:0;display:grid;gap:7px;padding:16px;border:1px solid #284661;border-radius:10px;background:#15283e;}
body .storefront-payment-data>div>span {color:#acbeda;font-size:13px;}
body .storefront-payment-data > :where(div:not(.storefront-invoice-asset)) strong {color:#eff6ff;overflow-wrap:anywhere;word-break:break-word;}
body .storefront-payment-value-row {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
body .storefront-payment-value-row strong {min-width:0;}
body .payment-copy-button {display:inline-grid;place-items:center;box-sizing:border-box;flex:0 0 38px;width:38px;min-width:38px;max-width:38px;height:38px;min-height:38px;padding:0;border:1px solid #3886fa;border-radius:10px;background:#176bf2;color:#fff;box-shadow:none;cursor:pointer;transition:none;}
body .payment-copy-button .ui-icon {display:block;width:16px;height:16px;pointer-events:none;}
body .payment-copy-button .payment-copied-icon,body .payment-copy-button.is-copied .payment-copy-icon {display:none;}
body .payment-copy-button.is-copied .payment-copied-icon {display:block;}
body .payment-copy-button:hover,body .payment-copy-button:focus-visible {border-color:#78b2ff;background:#3484ff;color:#fff;}
body .payment-copy-button:focus-visible {
  border-color: #a8d2ff;
}
body .payment-copy-button.is-copied {border-color:#287963;background:#135d48;color:#f4fffb;}
body .storefront-payment-qr {display:grid;justify-items:center;gap:12px;margin:16px 0;padding:16px;border:0;border-radius:10px;background:#10263b;color:#dcecff;font-size:13px;font-weight:500;text-align:center;}
body .storefront-payment-critical {margin:20px 0 0;padding:14px 16px;border:1px solid #a5753f;border-radius:10px;background:#352817;color:#ffdea8;line-height:1.55;}
body .storefront-payment-buttons {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px;}
body .storefront-payment-buttons form,body .storefront-payment-buttons button {width:100%;min-width:0;}
body .storefront-payment-buttons button {min-height:45px;padding:9px 13px;border-radius:10px;font-weight:650;}
body .storefront-payment-cancel {border:1px solid #496687;background:#1a2f49;color:#ecf5ff;cursor:pointer;}
body .storefront-payment-cancel:hover {background:#243d59;}
body .storefront-payment-buttons[data-invoice-actions] .storefront-payment-cancel {border:1px solid #59616c;background:#343b45;color:#f1f4f8;cursor:pointer;}
body .storefront-payment-buttons[data-invoice-actions] .storefront-payment-cancel:not(:disabled):is(:hover,:focus-visible) {background:#454e59;border-color:#747e8b;color:#fff;}
/* The invoice has two equal native actions, in the document and in the dock. */
body .storefront-payment-buttons[data-invoice-actions] {grid-template-columns:repeat(2,minmax(0,1fr));}
body .storefront-payment-buttons[data-invoice-actions] button {box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:38px;min-height:38px;padding:0;font-family:inherit;font-size:13px;font-weight:600;line-height:1.25;white-space:normal;text-align:center;overflow-wrap:anywhere;}
body .storefront-payment-buttons[data-invoice-actions] button:focus-visible {
  border-color: #b7d6ff;
}
body .storefront-payment-buttons[data-invoice-actions] button:disabled {opacity:.6;cursor:not-allowed;}
body .storefront-invoice-confirm-dialog {overflow-wrap:anywhere;}
body .storefront-invoice-confirm-dialog > #invoice-confirm-description > strong {color:#eff6ff;}
body .storefront-invoice-confirm-dialog > .storefront-cart-alert {margin-top:12px;color:#ffd49b;font-size:12px;text-align:center;}
body .storefront-invoice-confirm-dialog .storefront-payment-buttons {margin-top:20px;}
body .storefront-payment-buttons button:disabled {opacity:.6;cursor:not-allowed;}
/* Payment summary moves below methods at the same 1000px dock breakpoint. */
@media(max-width:999.98px){body .storefront-payment-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){body .storefront-payment-buttons{grid-template-columns:1fr}body .storefront-payment-method-label{align-items:flex-start;flex-wrap:wrap}body .storefront-payment-value-row{align-items:center;flex-direction:row}}

/* Lucide UI system: edit icon geometry/color via CSS custom properties.
   Component-specific selectors can still override size for existing controls. */
:where(.ui-icon.lucide) {
  width: var(--my2-icon-size, 24px);
  height: var(--my2-icon-size, 24px);
  color: var(--my2-icon-color, currentColor);
  stroke-width: var(--my2-icon-stroke-width, 2);
}

/* CART-ITEM-ACTIONS-20261118: item badges and adjacent Lucide controls only. */
body .storefront-cart-item .storefront-cart-item-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #273a53;
  color: #e7f1ff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  margin-right: 8px;
  vertical-align: middle;
}
body .storefront-cart-item .storefront-cart-item-actions {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
body .storefront-cart-item .storefront-cart-item-actions > form {
  grid-column: auto;
  justify-self: auto;
  margin: 0;
}
body .storefront-cart-item .storefront-cart-item-actions .storefront-cart-remove {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}
body .storefront-cart-item .storefront-cart-item-actions .storefront-cart-remove svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
body .storefront-cart-item .storefront-cart-item-actions .wishlist-toggle--cart {
  position: relative;
  inset: auto;
  z-index: auto;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
  display: grid;
  place-items: center;
}
body .storefront-cart-item .storefront-cart-item-actions .wishlist-toggle--cart::before {
  inset: 0;
  border-radius: 10px;
  border-color: #4c6783;
  background: #192b41;
}
body .storefront-cart-item .storefront-cart-item-actions .wishlist-toggle--cart:is(:hover, :focus-visible)::before {
  border-color: rgba(224,240,255,.65);
  background: rgba(23,40,62,.92);
}
body .storefront-cart-item .storefront-cart-item-actions .wishlist-toggle--cart svg {
  width: 19px;
  height: 19px;
}

/* A narrow cart column uses a two-column cover/title row and the original
 * adaptive toolbar below it; the desktop top-price/bottom-actions split
 * applies only while the three-column card has adequate space. */
@container cart-items (max-width: 700px) {
  body .storefront-cart-item {
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  body .storefront-cart-item > a:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  body .storefront-cart-item-details {
    grid-column: 2;
    grid-row: 1;
  }
  body .storefront-cart-item-side {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  body .storefront-cart-price-row {
    display: flex;
    order: 2;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    margin-left: auto;
  }
  body .storefront-cart-price-row .storefront-cart-unit-price {
    grid-column: auto;
    grid-row: auto;
  }
  body .storefront-cart-price-row .storefront-cart-quantity {
    grid-column: auto;
    grid-row: auto;
    order: -1;
  }
  body .storefront-cart-item .storefront-cart-item-actions {
    grid-column: auto;
    grid-row: auto;
    order: 1;
    justify-self: auto;
    justify-content: flex-start;
  }
}
/* Mobile: full-width artwork and title precede a naturally wrapping
 * toolbar. Action buttons stay left; quantity + price move as a group to
 * the next line, right-aligned, whenever both groups cannot fit. */
@media (max-width: 600px) {
  body .storefront-cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  body .storefront-cart-item > a:first-child {
    flex: 0 0 100%;
    height: auto;
  }
  body .storefront-cart-item img {
    height: auto;
  }
  body .storefront-cart-item-details {
    flex: 0 0 100%;
  }
  body .storefront-cart-item-side {
    flex: 0 0 100%;
    min-width: 0;
  }
  body .storefront-cart-price-row {
    order: 2;
    flex: 0 0 auto;
    max-width: 100%;
    margin-left: auto;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  body .storefront-cart-item .storefront-cart-item-actions {
    order: 1;
    flex: 0 0 auto;
    align-self: center;
    justify-content: flex-start;
  }
}


/* CART-SUMMARY-PROMO-DISCLOSURE-01: cart-only order header and native disclosure. */
body .storefront-cart-summary-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 17px;
}
body .storefront-cart-summary .storefront-cart-summary-heading h2 {
  margin: 0;
}
body .storefront-cart-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #273a53;
  color: #e7f1ff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
body .storefront-cart-page .storefront-cart-promo {
  display: block;
  padding: 10px 12px;
  border: 1px solid #29415c;
  border-radius: 10px;
  background: #14283f;
}
body .storefront-cart-promo-disclosure { width: 100%; }
body .storefront-cart-promo-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  color: #d7e7fa;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
body .storefront-cart-promo-disclosure > summary::-webkit-details-marker { display: none; }
body .storefront-cart-promo-disclosure > summary svg:last-child {
  margin-left: auto;
  transition: transform .16s ease;
}
body .storefront-cart-promo-disclosure[open] > summary svg:last-child { transform: rotate(180deg); }
body .storefront-cart-promo-disclosure > summary:focus-visible {


  border-radius: 4px;
  border-color: #a6d1ff;
}
body .storefront-cart-promo-disclosure > form {
  padding-top: 12px;
}
body .storefront-cart-promo .storefront-cart-promo-input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
body .storefront-cart-promo-disclosure .storefront-cart-promo-fields { align-items: stretch; }
body .storefront-cart-promo .storefront-cart-promo-error:empty { display: none; }
body .storefront-cart-promo-applied {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #a4d7be;
}
body .storefront-cart-promo-applied > svg { color: #a4d7be; }
body .storefront-cart-promo-applied strong { margin: 0; }
body .storefront-cart-promo[data-cart-promo]:has([data-cart-promo-remove]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
body .storefront-cart-promo[data-cart-promo] .storefront-cart-promo-applied { margin: 0; }
body .storefront-cart-promo[data-cart-promo] [data-cart-promo-remove] { flex: 0 0 auto; margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  body .storefront-cart-promo-disclosure > summary svg:last-child { transition: none; }
}


/* CART-CHECKOUT-LEGAL-CONSENT-01: informative links follow the checkout action. */
body .storefront-cart-page .storefront-cart-checkout-consent {
  margin: 11px 0 0;
  color: #b9cde3;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}
body .storefront-cart-page .storefront-cart-checkout-consent a {
  color: #a7ceff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body .storefront-cart-page .storefront-cart-checkout-consent a:hover {
  color: #fff;
}
body .storefront-cart-page .storefront-cart-checkout-consent a:focus-visible {


  border-radius: 2px;
  border-color: #a6d1ff;
}


/* CART-REFUND-DISCLOSURE-01: policy disclosure between order lines and total. */
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure,
body .storefront-cart-page .storefront-cart-refund-disclosure {
  margin: 16px 0 0;
  padding: 10px 0;
  border-top: 1px solid #29405e;
  border-bottom: 1px solid #29405e;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  color: #d6e9ff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  border-radius: 6px;
  transition: color .16s ease, background-color .16s ease;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary::-webkit-details-marker,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary::-webkit-details-marker {
  display: none;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary svg,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  transition: transform .16s ease;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure[open] > summary > svg:last-child,
body .storefront-cart-page .storefront-cart-refund-disclosure[open] > summary > svg:last-child {
  transform: rotate(180deg);
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:focus-visible,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:focus-visible,
body .storefront-cart-sticky-checkout .storefront-cart-refund-details a:focus-visible,
body .storefront-cart-page .storefront-cart-refund-details a:focus-visible {


  border-radius: 3px;
  border-color: #a6d1ff;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-details,
body .storefront-cart-page .storefront-cart-refund-details {
  padding-top: 11px;
  color: #b9cde3;
  font-size: 12px;
  line-height: 1.6;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-details p,
body .storefront-cart-page .storefront-cart-refund-details p {
  margin: 0;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-details a,
body .storefront-cart-page .storefront-cart-refund-details a {
  color: #a7ceff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-details a:hover,
body .storefront-cart-page .storefront-cart-refund-details a:hover {
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary svg,
  body .storefront-cart-page .storefront-cart-refund-disclosure > summary svg {
    transition: none;
  }
}


/* CART-SUMMARY-TOTAL-STYLE-02: keep discount and amount within one total panel. */
body .storefront-cart-summary strong {
  font-weight: 500;
}
body .storefront-cart-summary .storefront-cart-total {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
body .storefront-cart-summary .storefront-cart-total-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body .storefront-cart-summary .storefront-cart-total .storefront-cart-discount {
  width: 100%;
  align-items: baseline;
}
body .storefront-cart-summary .storefront-cart-total .storefront-cart-discount strong {
  font-size: 14px;
  color: #aee8c5;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:hover,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:hover,
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:focus-visible,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:focus-visible {
  color: #a7d0ff;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:hover svg,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:hover svg,
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:focus-visible svg,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:focus-visible svg {
  color: #a7d0ff;
}
@media (prefers-reduced-motion: reduce) {
  body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary,
  body .storefront-cart-page .storefront-cart-refund-disclosure > summary { transition: none; }
}


/* CART-PROMO-FINISH-03: consistent input states, color-only disclosures, clean separators. */
body .storefront-cart-page .storefront-cart-promo-disclosure > summary:hover {
  color: #a7d0ff;
}
body .storefront-cart-page .storefront-cart-promo-disclosure > summary:hover svg {
  color: #a7d0ff;
}
body .storefront-cart-page .storefront-cart-promo-disclosure > summary:focus-visible {
  color: #a7d0ff;
}
body .storefront-cart-page .storefront-cart-promo-disclosure .storefront-cart-promo-fields {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"] {
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--m2-control-border);
  border-radius: 10px;

  background: var(--m2-control-bg);
  color: var(--m2-color-text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-transform: none;
  appearance: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"]::placeholder {
  color: var(--m2-color-placeholder);
  opacity: 1;
  text-transform: none;
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"]:hover {
  border-color: var(--m2-control-border-hover);
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"]:focus {
  border-color: var(--m2-action-border-hover);
  box-shadow: none;
}
body .storefront-cart-page .storefront-cart-promo-disclosure .storefront-cart-promo-button {
  flex: 0 0 auto;
  min-height: 38px;
  height: 38px;
}
body .storefront-cart-page .storefront-cart-total {
  border-top: 0;
}
@media (prefers-reduced-motion: reduce) {
  body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"] {
    transition: none;
  }
}


/* CART-PROMO-INPUT-CONTROLS-04: deliberate cart-only promo and warranty controls. */
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary > svg:first-child,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary > svg:first-child {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #a4d7be;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary > span,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary > span {
  flex: 1 1 auto;
  min-width: 0;
}
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:hover > svg:first-child,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:hover > svg:first-child,
body .storefront-cart-sticky-checkout .storefront-cart-refund-disclosure > summary:focus-visible > svg:first-child,
body .storefront-cart-page .storefront-cart-refund-disclosure > summary:focus-visible > svg:first-child {
  color: #b9eacd;
}
body .storefront-cart-page .storefront-cart-total .storefront-cart-discount > span {
  font-weight: 600;
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"] {
  text-transform: uppercase;
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"]:focus::placeholder {
  opacity: 0;
}
body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"]::placeholder {
  text-transform: none;
  transition: opacity .12s ease;
}
body .storefront-cart-page .storefront-cart-promo[data-cart-promo] {
  border-color: #355677;
  background: #132a44;
}
body .storefront-cart-page .storefront-cart-promo-disclosure .storefront-cart-promo-button {
  color: #fff;
  background: #216ce5;
  border-color: #347feb;
  font-weight: 600;
}
body .storefront-cart-page .storefront-cart-promo-disclosure .storefront-cart-promo-button:hover,
body .storefront-cart-page .storefront-cart-promo-disclosure .storefront-cart-promo-button:focus-visible {
  background: #347ff5;
  border-color: #88baff;
}
body .storefront-cart-page .storefront-cart-promo[data-cart-promo]:has([data-cart-promo-remove]) {
  border-color: #32695e;
  background: #15372f;
}
body .storefront-cart-page .storefront-cart-promo[data-cart-promo] .storefront-cart-promo-applied strong {
  color: #fff;
}
body .storefront-cart-page .storefront-cart-promo[data-cart-promo] .storefront-cart-promo-applied span {
  color: #b5efd0;
}
body .storefront-cart-page .storefront-cart-promo[data-cart-promo] [data-cart-promo-remove] {
  flex: 0 0 auto;
  margin-left: auto;
}
body .storefront-cart-page .storefront-cart-promo-remove-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #a34d4d;
  border-radius: 9px;
  color: #fff;
  background: #7f1d1d;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body .storefront-cart-page .storefront-cart-promo-remove-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: inherit;
}
body .storefront-cart-page .storefront-cart-promo-remove-button:hover {
  color: #fff;
  background: #952727;
  border-color: #f28b82;
}
body .storefront-cart-page .storefront-cart-promo-remove-button:focus-visible {
  color: #fff;
  border-color: #f28b82;


}
body .storefront-cart-page .storefront-cart-promo-remove-button:disabled {
  opacity: .6;
  cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
  body .storefront-cart-page .storefront-cart-promo-remove-button,
  body .storefront-cart-page .storefront-cart-promo-disclosure input[name="promo_code"]::placeholder {
    transition: none;
  }
}

/* CART-STICKY-CHECKOUT-01 — cart-only secondary viewport CTA.
   The main order form remains the sole checkout/CSRF source. */
body .storefront-cart-sticky-checkout[hidden] { display: none; }
body .storefront-cart-sticky-checkout {
  position: fixed;
  z-index: 170;
  inset: auto 0 0;
  box-sizing: border-box;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid #365775;
  background: linear-gradient(155deg, #172c45, #101d2e);
  box-shadow: none;
  color: #f1f7ff;
  /* Instant visibility switch at the original summary's contact line;
     no fade, slide, clipping transition, or delayed hide/show. */
  visibility: hidden;
  pointer-events: none;
}
body .storefront-cart-sticky-checkout.is-visible {
  visibility: visible;
  pointer-events: auto;
}
/* Match each page's natural summary: /cart/ stacks below 1200px,
 * /cart/payment/ stacks below 1000px. Keep both SSR-hidden when wider. */
@media (min-width: 1200px) {
  body .storefront-cart-sticky-checkout[data-cart-sticky-checkout] { display: none; }
}
@media (min-width: 1000px) {
  body .storefront-cart-sticky-checkout[data-payment-sticky-checkout] { display: none; }
  body .storefront-cart-sticky-checkout[data-invoice-sticky-checkout] { display: none; }
}
body .storefront-cart-sticky-checkout-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 9px;
}
body .storefront-cart-sticky-checkout[data-invoice-sticky-checkout] .storefront-payment-buttons { margin:0; }
body .storefront-cart-sticky-info,
body .storefront-cart-sticky-actions {
  min-width: 0;
  display: grid;
  gap: 9px;
}
body .storefront-cart-sticky-info .storefront-cart-summary-heading {
  margin-bottom: 0;
}
body .storefront-cart-sticky-info .storefront-cart-summary-heading h2 {
  margin: 0;
  color: #f1f7ff;
  font-size: 20px;
  line-height: 1.35;
}
/* Native product disclosure: same heading, item rows and chevron language
 * as the original summary/guarantee; constrained on short viewports so
 * checkout remains reachable above the mobile safe area. */
body .storefront-cart-sticky-items-disclosure {
  min-width: 0;
}
body .storefront-cart-sticky-items-disclosure > summary {
  list-style: none;
  cursor: pointer;
}
body .storefront-cart-sticky-items-disclosure > summary::-webkit-details-marker {
  display: none;
}
body .storefront-cart-sticky-items-disclosure > summary > svg:last-child {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-left: auto;
  color: #d6e9ff;
  transition: transform .16s ease;
}
body .storefront-cart-sticky-items-disclosure[open] > summary > svg:last-child {
  transform: rotate(180deg);
}
body .storefront-cart-sticky-items-disclosure > summary:hover,
body .storefront-cart-sticky-items-disclosure > summary:focus-visible {
  color: #a7d0ff;
}
body .storefront-cart-sticky-items-disclosure > summary:hover > svg:last-child,
body .storefront-cart-sticky-items-disclosure > summary:focus-visible > svg:last-child {
  color: #a7d0ff;
}
body .storefront-cart-sticky-items-disclosure > summary:focus-visible {


  border-radius: 3px;
  border-color: #a6d1ff;
}
/* Explicit closed state wins over the global .storefront-cart-summary-items
 * display:grid declaration, including browsers with different details UA CSS. */
body .storefront-cart-sticky-items-disclosure:not([open]) > .storefront-cart-sticky-items {
  display: none;
}
body .storefront-cart-sticky-items {
  max-height: min(34vh, 300px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 12px;
  padding: 0 4px 4px 0;
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) {
  body .storefront-cart-sticky-items-disclosure > summary > svg:last-child {
    transition: none;
  }
}
/* Reuse canonical refund disclosure styles; only margin differs in dock. */
body .storefront-cart-sticky-checkout .storefront-cart-sticky-guarantee {
  margin: 0;
}
body .storefront-cart-sticky-discount[hidden] {
  display: none;
}
body .storefront-cart-sticky-discount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: #aee8c5;
  font-size: 14px;
  font-weight: 600;
}
body .storefront-cart-sticky-discount strong {
  color: #aee8c5;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}
body .storefront-cart-sticky-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}
body .storefront-cart-sticky-total strong {
  min-width: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
body .storefront-cart-sticky-checkout .storefront-cart-sticky-submit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #3886fa;
  border-radius: 10px;
  background: #216ce5;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
body .storefront-cart-sticky-checkout .storefront-cart-sticky-submit:not(:disabled):hover {
  background: #3484ff;
  border-color: #78b2ff;
}
body .storefront-cart-sticky-checkout .storefront-cart-sticky-submit:disabled {
  cursor: not-allowed;
  opacity: .5;
  filter: grayscale(.3);
  box-shadow: none;
}
body .storefront-cart-sticky-checkout .storefront-cart-sticky-submit:focus-visible {
  border-color: #b7d6ff;
}
/* Keep the existing back-to-top control above the visible checkout bar. */
body:has(.storefront-cart-sticky-checkout.is-visible) .premium-floating-to-top {
  bottom: var(--cart-sticky-cta-height, 116px);
}

