/* Popup presentation only. Shared tokens remain the source of all colors. */
@layer gamespsn-brand {
  body.gl-brand-2026 #gl-premium-cart-root .glpm-qty {
    display:inline-flex;align-items:center;gap:0!important;
    height:40px!important;padding:0!important;overflow:hidden;
    border:1px solid var(--gs-x-popup-border,var(--gs-color-border))!important;
    border-radius:10px!important;box-shadow:none!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-qty button {
    appearance:none!important;display:grid;place-items:center;
    width:40px!important;min-width:40px!important;height:38px!important;
    min-height:0!important;padding:0!important;margin:0!important;
    border:0!important;border-radius:0!important;background:transparent!important;
    box-shadow:none!important;line-height:1!important;font-size:14px!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-qty button svg {
    width:12px!important;height:12px!important;display:block;flex:none;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-qty button:disabled {opacity:.35!important;cursor:not-allowed}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-qty button:focus-visible {
    outline:2px solid var(--gs-x-popup-focus,var(--gs-color-focus))!important;outline-offset:-4px!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-qty strong {
    min-width:26px!important;text-align:center;font-size:13px!important;line-height:1!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-line {min-width:0}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-line-art {overflow:hidden!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-just {
    top:auto!important;bottom:0;max-width:100%;box-sizing:border-box;
    font-size:7px!important;line-height:1.3;padding:3px 4px!important;
    border-radius:0 0 7px 7px;letter-spacing:0;font-weight:600;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-line-info small {
    font-size:10px!important;font-weight:400!important;line-height:1.45;
    color:var(--gs-x-popup-muted,var(--gs-color-text-secondary))!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-line-info small+small {
    font-size:9px!important;margin-top:3px;white-space:normal;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-facts {
    display:flex!important;align-items:center;flex-wrap:wrap;column-gap:9px;row-gap:4px;
    min-width:0;font-weight:400!important;line-height:1.45!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-facts .glpm-fact {
    display:inline-flex!important;align-items:center;gap:4px;min-width:0;
    font-size:inherit!important;font-weight:400!important;line-height:inherit!important;
    color:inherit!important;white-space:nowrap;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-facts .glpm-fact-text {
    display:inline!important;min-width:0;font:inherit!important;color:inherit!important;
    white-space:normal;overflow-wrap:anywhere;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-fact-icon {
    width:13px!important;height:13px!important;min-width:13px;flex:0 0 13px;opacity:.85;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-mark {
    display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;
    justify-self:center;align-self:center;gap:2px;min-width:0;max-width:40px;
    font-size:9px!important;font-weight:500;line-height:1.2;white-space:nowrap;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-mark svg {
    width:14px!important;height:14px!important;flex:0 0 14px;display:block;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-gift-mark {
    display:grid!important;place-items:center;box-sizing:border-box;overflow:hidden;
    flex:0 0 32px!important;width:32px!important;height:32px!important;
    min-width:32px!important;min-height:32px!important;border-radius:9px!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-gift-mark svg {width:17px!important;height:17px!important;display:block;flex:none}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-milestone b {width:22px!important;height:22px!important;min-width:22px;font-size:11px!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-milestone svg {width:12px!important;height:12px!important}

  /* Gift alternatives form one tidy shelf with equal, compact selection actions. */
  body.gl-brand-2026 #gl-premium-cart-root .glpm-option-grid:not(.glpm-smart-grid) {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-intro {margin:12px 0 9px;font-size:12px;line-height:1.4}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option {
    display:flex!important;flex-direction:column;align-items:stretch;gap:8px;
    min-width:0;padding:10px!important;border-radius:11px;box-sizing:border-box;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-image {
    display:grid!important;place-items:center;grid-row:auto;width:100%!important;
    height:90px!important;min-height:0;overflow:hidden;border-radius:7px;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-image img {
    width:100%!important;height:100%!important;max-width:100%;object-fit:contain!important;
    object-position:center!important;display:block;border:0!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-text {display:grid;gap:6px;min-width:0}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-text>a {
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    font-size:12px!important;line-height:1.4!important;min-height:2.8em;font-weight:650;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-option-text .glpm-facts {font-size:9px!important;gap:4px 7px;white-space:normal;overflow:visible}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-option-text .glpm-fact-icon {width:11px!important;height:11px!important;min-width:11px;flex-basis:11px}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-option button:is([data-glpm-action=add],[data-glpm-action=choose]) {
    min-height:36px!important;height:auto!important;padding:6px 10px!important;
    display:flex!important;align-items:center;justify-content:center;
    font-size:11px!important;line-height:1.35!important;font-weight:600!important;
    width:100%;max-width:160px;align-self:center;margin-top:auto;box-sizing:border-box;
  }
  body.gl-brand-2026 #gl-premium-cart-root :is(.glpm-more,.glpm-first) {
    display:flex;align-items:center;justify-content:center;width:auto!important;
    max-width:calc(100% - 16px)!important;min-height:38px!important;margin:10px auto 0!important;
    padding:6px 15px!important;font-size:11px!important;line-height:1.35!important;
    font-weight:500!important;border-radius:9px!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-gift-warning {
    margin:10px 0;padding:8px 10px;border-inline-start:2px solid var(--gs-x-popup-border,var(--gs-divider-soft,var(--gs-color-border)));
    color:var(--gs-x-popup-muted,var(--gs-color-text-secondary));font-size:11px;line-height:1.5;
  }

  /* The total is always visible; the breakdown is a native disclosure at every width. */
  body.gl-brand-2026 #gl-premium-cart-root .glpm-footer {padding:12px 16px!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details {
    margin:0 0 10px;border:1px solid;border-radius:11px;overflow:hidden;
    color:var(--gs-x-popup_details-text,var(--gs-x-popup-text,var(--gs-color-text-body)))!important;
    background:var(--gs-x-popup_details-bg,var(--gs-x-popup-bg,var(--gs-color-surface)))!important;
    border-color:var(--gs-x-popup_details-border,var(--gs-x-popup-border,var(--gs-border-soft,var(--gs-color-border))))!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details[open] {
    color:var(--gs-x-popup_details-active_text,var(--gs-x-popup_details-text,var(--gs-x-popup-text,var(--gs-color-text-body))))!important;
    background:var(--gs-x-popup_details-active_bg,var(--gs-x-popup_details-bg,var(--gs-x-popup-bg,var(--gs-color-surface))))!important;
    border-color:var(--gs-x-popup_details-active_border,var(--gs-x-popup_details-border,var(--gs-x-popup-border,var(--gs-border-soft,var(--gs-color-border)))))!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary {
    display:flex!important;align-items:center;gap:8px;min-height:48px;padding:9px 12px;
    box-sizing:border-box;cursor:pointer;list-style:none!important;line-height:1.4;
    color:inherit!important;background:transparent!important;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary::-webkit-details-marker {display:none}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary::marker {content:''}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-total {display:flex;flex-direction:row;align-items:baseline;gap:9px;min-width:0;white-space:nowrap}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-total>small {font-size:12px;font-weight:400;color:var(--gs-x-popup_details-muted,var(--gs-x-popup-muted,var(--gs-color-text-secondary)))!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-total>strong {font-size:19px;line-height:1.2;font-weight:700;color:inherit!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-label {display:inline-flex;align-items:center;margin-inline-start:auto;min-width:0;font-size:11px;font-weight:550;white-space:nowrap}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-chevron {width:14px!important;height:14px!important;flex:0 0 14px;color:var(--gs-x-popup_details-icon,currentColor)!important;transition:transform .15s}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details[open] .glpm-detail-chevron {transform:rotate(180deg)}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary:focus-visible {outline:2px solid var(--gs-x-popup_details-focus,var(--gs-x-popup-focus,var(--gs-color-focus)))!important;outline-offset:-3px;border-radius:10px}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details:not([open])>.glpm-detail-body {display:none!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-body {
    max-height:24dvh;overflow:auto;overscroll-behavior:contain;padding:10px 12px;
    border-top:1px solid var(--gs-x-popup_details-active_border,var(--gs-x-popup_details-border,var(--gs-x-popup-border,var(--gs-divider-soft,var(--gs-color-border)))));
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-body .glpm-summary {
    display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:0 0 6px;font-size:12px;
  }
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-body .glpm-summary strong {font-size:13px!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-fee-breakdown {display:grid;gap:6px;font-size:11px;line-height:1.5;margin:8px 0}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-fee-breakdown>div {display:flex;align-items:baseline;justify-content:space-between;gap:16px}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-fee-breakdown strong {font-size:11px;font-weight:500;white-space:nowrap}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details :is(.glpm-summary,.glpm-summary strong,.glpm-fee-breakdown,.glpm-fee-breakdown strong) {color:inherit!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-body>small {display:block;font-size:10px;line-height:1.5;margin:8px 0 2px;color:var(--gs-x-popup_details-muted,var(--gs-x-popup-muted,var(--gs-color-text-secondary)))!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-actions {gap:8px!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-actions .glpm-secondary {min-height:40px!important;padding:7px 9px!important;font-size:11px!important;line-height:1.35!important;font-weight:550!important;display:flex;align-items:center;justify-content:center}
}
@media(max-width:700px) {
  @layer gamespsn-brand {
    body.gl-brand-2026 #gl-premium-cart-root .glpm-line {grid-template-columns:50px minmax(0,1fr) 40px!important}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-line-end {grid-column:2 / -1!important;min-width:0}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-option-grid:not(.glpm-smart-grid) {grid-template-columns:1fr}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option {display:grid!important;grid-template-columns:58px minmax(0,1fr);gap:7px 10px;padding:9px!important}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-image {grid-column:1;grid-row:1 / 3;width:58px!important;height:76px!important;align-self:center}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-text {grid-column:2;grid-row:1;gap:5px}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option .glpm-option-text>a {min-height:0}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-option button:is([data-glpm-action=add],[data-glpm-action=choose]) {min-height:40px!important}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-reward-option button[data-glpm-action=choose] {grid-column:2!important;grid-row:2!important;max-width:140px;justify-self:center;margin-top:0}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-footer {padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-detail-total>strong {font-size:18px}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-actions {gap:6px!important}
    body.gl-brand-2026 #gl-premium-cart-root .glpm-actions :is(a,button) {min-height:40px!important;padding:7px 8px!important;font-size:12px!important}
    body.gl-brand-2026 #gl-premium-cart-root #glpm-checkout {min-height:44px!important}
  }
}
@media(prefers-reduced-motion:reduce) {.glpm-detail-chevron{transition:none!important}}

/* 2.0.22.21: compact reward alternatives and a single savings summary. */
@layer gamespsn-brand {
  body.gl-brand-2026 #gl-premium-cart-root .glpm-savings-breakdown {display:grid;gap:5px;font-size:11px;line-height:1.5;margin:8px 0;color:inherit}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-savings-breakdown[hidden] {display:none!important}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-savings-breakdown>div {display:flex;justify-content:space-between;align-items:baseline;gap:12px}
  body.gl-brand-2026 #gl-premium-cart-root .glpm-savings-breakdown strong {white-space:nowrap;font-weight:500;color:inherit!important}
}

/* 2.0.22.24: original total placement, one compact saving below amount. */
@layer gamespsn-brand {
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:8px!important;row-gap:2px!important;flex:1 1 auto!important;min-width:0!important;white-space:normal!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>small{grid-column:1!important;grid-row:1 / span 2!important;align-self:center!important;text-align:start!important;padding:0!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>strong{grid-column:2!important;grid-row:1!important;justify-self:end!important;white-space:nowrap!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>.glpm-savings{grid-column:2!important;grid-row:2!important;justify-self:end!important;display:block!important;min-width:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;font-size:11px!important;font-weight:500!important;line-height:1.35!important;color:var(--gs-x-popup-success,var(--glpm-good,var(--gs-color-savings)))!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:end!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>.glpm-savings[hidden]{display:none!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total:has(>.glpm-savings[hidden]){grid-template-rows:auto!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total:has(>.glpm-savings[hidden])>small{grid-row:1!important;}
}

/* 2.0.22.23: approved single compact gift badge, unchanged. */
@layer gamespsn-brand {
body.gl-brand-2026 #gl-premium-cart-root .glpm-line.glpm-is-free .glpm-reward-mark{display:inline-flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;align-self:center!important;justify-self:end!important;box-sizing:border-box!important;width:max-content!important;min-width:0!important;max-width:none!important;gap:4px!important;padding:6px!important;border-radius:7px!important;background:color-mix(in srgb,var(--gs-x-popup-icon,var(--glpm-link,var(--o5-link,var(--gs-color-link)))) 13%,transparent)!important;color:var(--gs-x-popup-icon,var(--glpm-link,var(--o5-link,var(--gs-color-link))))!important;font-size:10px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-line.glpm-is-free .glpm-reward-mark svg{width:22px!important;height:22px!important;flex:0 0 22px!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-line.glpm-is-free .glpm-reward-mark>span{white-space:nowrap!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-line.glpm-is-free{grid-template-columns:62px minmax(0,1fr) minmax(80px,auto) 68px!important;}
@media(max-width:700px){body.gl-brand-2026 #gl-premium-cart-root .glpm-line.glpm-is-free{grid-template-columns:50px minmax(0,1fr) 68px!important;}}
}

/* 2.0.22.25: approved mobile-only cart footer; desktop and cart contents unchanged. */
@layer gamespsn-brand {
@media(max-width:700px) {
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details{box-sizing:border-box!important;border:1px solid var(--gs-x-popup_details-border,var(--gs-x-popup-border,var(--gs-border-soft,var(--gs-color-border))))!important;border-radius:11px!important;padding:0!important;margin:0 0 10px!important;background:var(--gs-x-popup_details-bg,var(--gs-x-popup-bg,var(--gs-color-surface)))!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details[open]{background:var(--gs-x-popup_details-active_bg,var(--gs-x-popup_details-bg,var(--gs-x-popup-bg,var(--gs-color-surface))))!important;border-color:var(--gs-x-popup_details-active_border,var(--gs-x-popup_details-border,var(--gs-x-popup-border,var(--gs-border-soft,var(--gs-color-border)))))!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary{box-sizing:border-box!important;padding:9px 10px!important;min-height:48px!important;gap:5px!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total{grid-template-columns:max-content minmax(0,1fr)!important;column-gap:8px!important;row-gap:2px!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>small{text-transform:none!important;letter-spacing:0!important;font-weight:400!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>strong{justify-self:start!important;font-size:clamp(19px,5.6vw,24px)!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>.glpm-savings{justify-self:start!important;text-align:start!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-label{margin:0!important;flex-shrink:0!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-footer .glpm-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-footer .glpm-actions :is(button,a).glpm-secondary{box-sizing:border-box!important;border:1px solid var(--gs-x-popup-secondary_border,var(--gs-x-popup-border,var(--gs-color-border)))!important;background:var(--gs-x-popup-secondary_bg,var(--gs-x-popup-bg,var(--gs-color-surface)))!important;border-radius:8px!important;color:var(--gs-x-popup-secondary_text,var(--glpm-text,var(--gs-color-text-primary)))!important;min-height:44px!important;font-size:11px!important;font-weight:600!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-footer .glpm-actions :is(button,a).glpm-secondary:is(:hover,:active,:focus-visible){border-color:var(--gs-x-popup-focus,var(--gs-color-focus))!important;color:var(--gs-x-popup-secondary_text,var(--glpm-text,var(--gs-color-text-primary)))!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-footer .glpm-actions :is(button,a).glpm-secondary:focus-visible{outline:2px solid var(--gs-x-popup-focus,var(--gs-color-focus))!important;outline-offset:2px!important;}
}
}

/* 2.0.22.27 — desktop total grouping only; mobile <=700px untouched. */
@layer gamespsn-brand {
@media (width > 700px) {
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total{grid-template-columns:max-content minmax(0,1fr)!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>strong{justify-self:start!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-total>.glpm-savings{justify-self:start!important;text-align:start!important;}
body.gl-brand-2026 #gl-premium-cart-root .glpm-order-details>summary .glpm-detail-label{margin-inline-start:auto!important;flex-shrink:0!important;}
}
}
