/* 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-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-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-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-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}}
