/** GAMESPSN 2026 — owner-approved COLOR-ONLY rebrand.
 * Uses a dedicated important-color layer to beat legacy unlayered !important
 * declarations without modifying layout rules or escalating selector specificity.
 * No geometry, content, JS, catalog, cart, order, stock, tax or gateway changes.
 * A 16% dark overlay on small white-text pink buttons preserves the pink token
 * while improving contrast. Progress fills remain the exact #F000ED token.
 */
@layer gamespsn-brand {
body.gl-brand-2026, body.gl-brand-2026 .gl-official-scope {
  --brand-purple-deep: #3201BC !important;
  --brand-purple-primary: #6203E3 !important;
  --brand-violet-bright: #9808FE !important;
  --brand-gradient: linear-gradient(105deg,#3201BC 0%,#6203E3 45%,#9808FE 100%) !important;
  --action-primary: #FFCE58 !important;
  --action-secondary: #F000ED !important;
  --action-secondary-paint: linear-gradient(rgba(23,17,36,.16),rgba(23,17,36,.16)) !important;
  --surface-product: #F8F6FF !important;
  --surface-secondary: #F2EDFF !important;
  --surface-popup: #170849 !important;
  --surface-popup-card: #25105D !important;
  --popup-outline: #8052D4 !important;
  --ink: #171124 !important;
  --paper: #FFFFFF !important;
  --muted-light: rgba(23,17,36,.76) !important;
  --muted-dark: #F2EDFF !important;
  --line-light: rgba(50,1,188,.22) !important;
  --line-dark: rgba(248,246,255,.30) !important;
  --gl-bg: var(--brand-purple-deep) !important;
  --gl-surface: var(--surface-popup) !important;
  --gl-surface-2: var(--surface-popup-card) !important;
  --gl-nav: var(--brand-purple-deep) !important;
  --gl-line: var(--line-dark) !important;
  --gl-text: var(--paper) !important;
  --gl-muted: var(--muted-dark) !important;
  --gl-accent: var(--action-secondary) !important;
  --gl-accent-text: var(--paper) !important;
  --gl-gold: var(--action-primary) !important;
  --gl-gold-text: var(--ink) !important;
  --gl-focus: 0 0 0 3px rgba(152,8,254,.35) !important;
  --gs-canvas: var(--brand-purple-deep) !important;
  --gs-page-background: transparent !important;
  --gs-surface: var(--surface-product) !important;
  --gs-surface-quiet: var(--surface-secondary) !important;
  --gs-card-gradient: linear-gradient(var(--surface-product),var(--surface-product)) !important;
  --gs-summary-gradient: linear-gradient(var(--surface-product),var(--surface-product)) !important;
  --gs-field: var(--surface-secondary) !important;
  --gs-border: var(--line-light) !important;
  --gs-border-soft: var(--line-light) !important;
  --gs-border-active: var(--brand-purple-primary) !important;
  --gs-text: var(--paper) !important;
  --gs-muted: var(--muted-dark) !important;
  --gs-faint: var(--muted-dark) !important;
  --gs-link: var(--paper) !important;
  --gs-icon: var(--brand-purple-primary) !important;
  --gs-hover-border: var(--brand-purple-primary) !important;
  --gs-badge-text: var(--paper) !important;
  --gs-badge-surface: var(--action-secondary) !important;
  --gs-badge-border: var(--action-secondary) !important;
  --gs-accent-start: var(--brand-purple-deep) !important;
  --gs-accent-mid: var(--brand-purple-primary) !important;
  --gs-accent-end: var(--brand-violet-bright) !important;
  --gs-gradient: var(--brand-gradient) !important;
  --gs-white: var(--paper) !important;
  --gs-on-white: var(--ink) !important;
  --gs-action-shadow: 0 4px 16px rgba(23,8,73,.18) !important;
  --gs-shadow: 0 12px 30px rgba(23,8,73,.18) !important;
  --gs-focus: 0 0 0 3px rgba(98,3,227,.24) !important;
}
body.gl-brand-2026 {
  background-color: var(--brand-purple-deep) !important;
  background-image: var(--brand-gradient) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 :is(#main.gl-home,.gl-woo-page,.gl-pdp-v1430,.gl-account-page) {
  background-color: transparent !important;
  background-image: none !important;
}

/* Header, native commerce headers, footer and existing mobile menu; layout untouched. */
body.gl-brand-2026 :is(.gl-site-header,.gl-cart-commerce-header,.gl-checkout-commerce-header,.gl-checkout-header) {
  background-color: var(--brand-purple-deep) !important;
  background-image: var(--brand-gradient) !important;
  color: var(--paper) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 :is(.gl-site-footer,.gl-site-nav,.gl-nav-links ul) {
  background: var(--brand-purple-deep) !important;
  color: var(--paper) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 :is(.gl-header-action,.gl-menu-toggle,.gl-submenu-toggle,.gl-cart-mini-icon,.gl-pdp-mobile-search-toggle) {
  background: rgba(23,8,73,.22) !important;
  color: var(--paper) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 :is(.gl-site-logo,.gl-brand-text,.gl-auth-brand,.gl-auth-mobile-brand) {
  color: var(--paper) !important;
}
body.gl-brand-2026 .gl-brand-text>span {
  color: var(--paper) !important;
}
body.gl-brand-2026 .gl-brand-mark path[stroke] {
  stroke: var(--paper) !important;
}
body.gl-brand-2026 .gl-brand-mark circle[fill] {
  fill: var(--brand-violet-bright) !important;
}
body.gl-brand-2026 .gl-search-form {
  background: var(--surface-product) !important;
  border-color: var(--line-light) !important;
  box-shadow: none !important;
}
body.gl-brand-2026 .gl-search-form input[type=search] {
  background: transparent !important;
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-search-form input::placeholder {
  color: var(--muted-light) !important;
}
body.gl-brand-2026 .gl-search-submit {
  background: var(--brand-purple-deep) !important;
  color: var(--paper) !important;
  border-color: transparent !important;
}
body.gl-brand-2026 :is(.gl-nav-links a,.gl-nav-extra a,.gl-footer-grid h2,.gl-footer-grid a,.gl-footer-brand p,.gl-footer-bottom,.gl-cart-secure,.gl-checkout-secure) {
  color: var(--paper) !important;
}
body.gl-brand-2026 :is(.gl-nav-links a:hover,.gl-nav-extra a:hover,.gl-footer-grid a:hover) {
  color: var(--paper) !important;
  text-decoration: underline;
}
body.gl-brand-2026 .gl-footer-bottom {
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 .gl-search-results {
  background: var(--surface-product) !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .gl-search-results :is(a,strong,.gl-search-empty,.gl-search-section-title) {
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-search-results :is(small,.gl-search-all) {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 :is(.gl-search-result:hover,.gl-search-result.gl-search-active,.gl-search-category:hover) {
  background: var(--surface-secondary) !important;
}

/* Light card surfaces. Text aliases are local; surrounding section titles stay white. */
body.gl-brand-2026 :is(.gl-game-card,.gl-pdp-related-card,.gl-pdp-summary,.gl-pdp-facts,.gl-pdp-short-copy,.gl-pdp-how-disclosure,.gl-pdp-notes-disclosure,.gl-pdp-fact-tooltip,.gl-shop-sidebar,.woocommerce ul.products li.product,.cart_totals,.woocommerce-cart-form tr.cart_item,#gl-cart-mobile-detail-host,.gl-checkout-summary,#customer_details,.gl-checkout-payment-section,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.gl-account-shortcut,.gl-account-recent-order,.gl-auth-form-panel,.woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password,.gl-ty-hero,.gl-ty-email,.gl-ty-meta,.gl-ty-support,.woocommerce-customer-details address,.woocommerce-table--order-details,.woocommerce-table--order-downloads,.gl-order-pay-v1437 form#order_review>table,.gl-post-summary) {
  --gs-text: var(--ink) !important;
  --gs-muted: var(--muted-light) !important;
  --gs-faint: var(--muted-light) !important;
  --gs-link: var(--brand-purple-deep) !important;
  --gl-text: var(--ink) !important;
  --gl-muted: var(--muted-light) !important;
  --gl-line: var(--line-light) !important;
  --gl-surface: var(--surface-product) !important;
  --gl-surface-2: var(--surface-secondary) !important;
  --gs-success: #126B37 !important;
  --gs-warning: #795400 !important;
  --gs-danger: #AB1739 !important;
  background-color: var(--surface-product) !important;
  background-image: none !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 :is(.gl-game-card,.gl-pdp-related-card,.gl-pdp-summary,.gl-pdp-facts,.gl-pdp-short-copy,.gl-pdp-how-disclosure,.gl-pdp-notes-disclosure,.gl-pdp-fact-tooltip,.gl-shop-sidebar,.woocommerce ul.products li.product,.cart_totals,.woocommerce-cart-form tr.cart_item,#gl-cart-mobile-detail-host,.gl-checkout-summary,#customer_details,.gl-checkout-payment-section,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.gl-account-shortcut,.gl-account-recent-order,.gl-auth-form-panel,.woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password,.gl-ty-hero,.gl-ty-email,.gl-ty-meta,.gl-ty-support,.woocommerce-customer-details address,.woocommerce-table--order-details,.woocommerce-table--order-downloads,.gl-order-pay-v1437 form#order_review>table,.gl-post-summary) :where(h1,h2,h3,h4,label,dt,dd,summary) {
  color: var(--ink) !important;
}
body.gl-brand-2026 :is(#main,#gl-auth-document,.gl-search-results) :is(input[type=text],input[type=search],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=url],select,textarea),
body.gl-brand-2026 .select2-container .select2-selection,
body.gl-brand-2026 .select2-dropdown {
  background-color: var(--surface-secondary) !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 :is(#main,#gl-auth-document) :is(input,textarea)::placeholder {
  color: var(--muted-light) !important;
}
body.gl-brand-2026 .select2-selection__rendered,
body.gl-brand-2026 .select2-results__option {
  color: var(--ink) !important;
}
body.gl-brand-2026 .select2-results__option--highlighted[aria-selected] {
  background: var(--brand-purple-deep) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 input:is([type=checkbox],[type=radio]) {
  accent-color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 :is(input,select,textarea):focus-visible {
  outline-color: var(--brand-purple-deep) !important;
  box-shadow: var(--gs-focus) !important;
}
body.gl-brand-2026 :is(a,button,summary):focus-visible {
  outline-color: var(--paper) !important;
}

/* Homepage: same real hero, platform cards, single tabbed collection, benefits and gift banner. */
body.gl-brand-2026 #main.gl-home .gl-hero-main {
  background: var(--brand-gradient) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 #main.gl-home .gl-hero-main::after {
  background: linear-gradient(90deg,#3201BC 0%,rgba(50,1,188,.94) 34%,rgba(50,1,188,.58) 56%,rgba(50,1,188,.04) 100%) !important;
}
body.gl-brand-2026 #main.gl-home .gl-hero-title-accent {
  background: none !important;
  color: var(--paper) !important;
  -webkit-text-fill-color: var(--paper) !important;
}
body.gl-brand-2026 #main.gl-home :is(.gl-hero-content h1,.gl-hero-content p,.gl-eyebrow,.gl-hero-trust,.gl-hero-trust svg,.gl-section-heading h2,.gl-section-heading>a) {
  color: var(--paper) !important;
}
body.gl-brand-2026 #main.gl-home :is(.gl-benefits,.gl-bottom-promo,.gl-promo-tile) {
  background: rgba(50,1,188,.32) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 #main.gl-home .gl-bottom-promo::after {
  background: linear-gradient(90deg,transparent 4%,#3201BC 25%,rgba(50,1,188,.12)) !important;
}
body.gl-brand-2026 #main.gl-home :is(.gl-benefits strong,.gl-benefits small,.gl-bottom-promo h2,.gl-bottom-promo p,.gl-promo-tile strong) {
  color: var(--paper) !important;
}
body.gl-brand-2026 #main.gl-home .gl-benefits svg {
  color: var(--paper) !important;
}
body.gl-brand-2026 #main.gl-home .gl-product-tabs {
  background: rgba(23,8,73,.30) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 #main.gl-home .gl-product-tabs button {
  background: transparent !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 #main.gl-home .gl-product-tabs button[aria-selected=true] {
  background-color: var(--action-secondary) !important;
  background-image: var(--action-secondary-paint) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 #main.gl-home .gl-platform-card {
  background: var(--brand-purple-deep) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 #main.gl-home .gl-platform-card::after {
  background: linear-gradient(90deg,rgba(50,1,188,.95) 8%,rgba(50,1,188,.70) 40%,rgba(50,1,188,.12)) !important;
}
body.gl-brand-2026 :is(.gl-game-art,.gl-pdp-related-art,.gl-pdp-gallery-thumb) {
  background: var(--surface-secondary) !important;
}
/* Product art keeps native pixels; the surrounding CSS surface is pale. */
body.gl-brand-2026 .woocommerce ul.products li.product a img {background-color:var(--surface-secondary)!important}
body.gl-brand-2026 :is(.gl-game-name,.gl-pdp-related-name,.woocommerce ul.products li.product .woocommerce-loop-product__title) {
  color: var(--ink) !important;
}
body.gl-brand-2026 :is(.gl-home-fact,.gl-game-kind,.gl-pdp-related-meta,.gl-catalog-product-meta) {
  color: var(--muted-light) !important;
}
body.gl-brand-2026 :is(.gl-game-price,.gl-game-price ins,.gl-pdp-related-price,.woocommerce ul.products li.product .price) {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 :is(.gl-game-card,.gl-pdp-related-card,.woocommerce ul.products li.product) del {
  color: var(--muted-light) !important;
}

/* Product and catalog; preserve native art and semantic stock colors. */
body.gl-brand-2026 .gl-pdp-summary :is(.gl-pdp-title,.gl-pdp-price,.gl-pdp-fact-visible-value,.gl-pdp-fact-trigger,.gl-pdp-short-copy h2,summary) {
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-pdp-summary :is(.gl-pdp-price-label,.gl-pdp-delivery-line,.gl-pdp-fact-label,.gl-pdp-short-copy,.gl-pdp-how-disclosure,.gl-pdp-notes-disclosure) {
  color: var(--muted-light) !important;
}
body.gl-brand-2026 .gl-pdp-summary :is(.gl-pdp-facts,.gl-pdp-short-copy,.gl-pdp-how-disclosure,.gl-pdp-notes-disclosure) {
  background: var(--surface-secondary) !important;
}
body.gl-brand-2026 .gl-pdp-description {
  background: transparent !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 .gl-pdp-description :is(h2,h3,h4,p,a,.gl-pdp-read-more,.gl-pdp-prose) {
  color: var(--paper) !important;
}
body.gl-brand-2026 .gl-pdp-description::before {
  background: var(--line-dark) !important;
}
body.gl-brand-2026 .gl-pdp-description.is-collapsed .gl-pdp-prose::after {
  background: linear-gradient(transparent,rgba(98,3,227,.92)) !important;
}
body.gl-brand-2026 .gl-pdp-gift-promo {
  background: rgba(50,1,188,.30) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 .gl-pdp-gift-copy :is(h2,p) {
  color: var(--paper) !important;
}
body.gl-brand-2026 .gl-shop-sidebar :is(h2,h3,legend,label,.gl-filter-option,.gl-filter-clear) {
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-shop-sidebar .gl-filter-option:has(input:checked) {
  background: var(--surface-secondary) !important;
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 :is(.gl-filter-toggle,.gl-filter-chip,.woocommerce-ordering select,.woocommerce-pagination .page-numbers) {
  background: var(--surface-secondary) !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .woocommerce-pagination .page-numbers.current {
  background: var(--brand-purple-deep) !important;
  color: var(--paper) !important;
}

/* Cart and pinned mobile bar. No move, clone or total calculation. */
body.gl-brand-2026 #main.gl-cart-v1421,
body.gl-brand-2026 .gl-cart-shell {
  background: transparent !important;
}
body.gl-brand-2026 :is(.gl-cart-heading,.gl-checkout-heading) :is(h1,p,a) {
  color: var(--paper) !important;
}
body.gl-brand-2026 .woocommerce-cart-form tr.cart_item td {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 tr.cart_item :is(td.product-name>a,.gl-cart-current-price,.gl-cart-fixed-qty) {
  color: var(--ink) !important;
}
body.gl-brand-2026 tr.cart_item :is(.gl-cart-product-meta,.gl-cart-original-price,.gl-cart-footer-facts) {
  color: var(--muted-light) !important;
}
body.gl-brand-2026 .gl-cart-item-footer {
  background: var(--surface-secondary) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .gl-cart-fixed-qty {
  background: var(--surface-secondary) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 :is(.cart_totals,#gl-cart-mobile-detail-host) :is(th,td,.gl-cart-summary-title,.gl-cart-trust p,.gl-cart-coupon-form>label) {
  background-color: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 :is(.gl-cart-total-hero,.gl-checkout-total-hero) {
  background: var(--brand-gradient) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 :is(.gl-cart-total-hero,.gl-checkout-total-hero) :is(span,strong,bdi) {
  color: var(--paper) !important;
}
body.gl-brand-2026 :is(.gl-cart-actual-savings,.gl-checkout-actual-savings) {
  background: rgba(23,8,73,.30) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 .gl-cart-mobile-sticky {
  background: var(--brand-gradient) !important;
  color: var(--paper) !important;
  box-shadow: 0 -8px 28px rgba(23,8,73,.28) !important;
}
body.gl-brand-2026 .gl-cart-mobile-detail-toggle {
  background: var(--surface-popup) !important;
  color: var(--paper) !important;
  border-color: var(--popup-outline) !important;
}
body.gl-brand-2026 #gl-cart-mobile-detail-host {
  background: var(--surface-product) !important;
  color: var(--ink) !important;
  box-shadow: 0 -14px 36px rgba(23,8,73,.30) !important;
}
body.gl-brand-2026 .gl-cart-coupon-details {
  background: var(--surface-secondary) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .gl-cart-coupon-details>summary {
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-cart-coupon-details>summary::after {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 :is(.gl-cart-steps,.gl-checkout-steps) {
  background: rgba(23,8,73,.25) !important;
  border-color: var(--line-dark) !important;
}
body.gl-brand-2026 :is(.gl-cart-step,.gl-checkout-step) {
  color: var(--paper) !important;
}
body.gl-brand-2026 :is(.gl-cart-step.is-active,.gl-checkout-step.is-active) {
  background: var(--brand-purple-primary) !important;
  color: var(--paper) !important;
  box-shadow: none !important;
}

/* Compact Checkout and native payment wrapper. Provider logos/iframe untouched. */
body.gl-brand-2026 .gl-checkout-summary :is(h3,th,td,.gl-checkout-product-name,.gl-checkout-step-trigger),
body.gl-brand-2026 #customer_details :is(h3,label,summary,.gl-checkout-step-trigger),
body.gl-brand-2026 .gl-checkout-payment-section :is(h3,.gl-checkout-step-trigger) {
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-checkout-summary :is(.gl-checkout-product-meta,.gl-checkout-regular-price,.gl-checkout-trust,.gl-checkout-trust p),
body.gl-brand-2026 #customer_details :is(.gl-checkout-step-hint,.gl-checkout-billing-trigger-hint) {
  color: var(--muted-light) !important;
}
body.gl-brand-2026 #order_review :is(table,tbody,tr,td,th) {
  background-color: transparent !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .gl-checkout-summary :is(.product-quantity,.gl-checkout-coupon-panel,.gl-checkout-trust) {
  background: var(--surface-secondary) !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 :is(.gl-checkout-step-number,.gl-checkout-billing-state,.gl-checkout-billing-required) {
  background: var(--brand-purple-deep) !important;
  color: var(--paper) !important;
  border-color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 :is(.gl-checkout-step-action,.gl-checkout-coupon-toggle),
body.gl-brand-2026 .gl-checkout-billing-trigger-title::before {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 #customer_details .gl-checkout-billing-details {
  background: var(--surface-secondary) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 #payment,
body.gl-brand-2026 #payment ul.payment_methods {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 #payment ul.payment_methods>li {
  background: var(--surface-secondary) !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 #payment ul.payment_methods>li:has(input:checked) {
  background: var(--surface-secondary) !important;
  border-color: var(--brand-purple-deep) !important;
  box-shadow: inset 0 0 0 1px var(--brand-purple-deep) !important;
}
body.gl-brand-2026 #payment ul.payment_methods>li>label {
  color: var(--ink) !important;
}
body.gl-brand-2026 #payment .payment_box,
body.gl-brand-2026 #payment .form-row.place-order {
  background: var(--surface-product) !important;
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 #payment .payment_box::before {
  border-bottom-color: var(--surface-product) !important;
}
body.gl-brand-2026 #payment :is(.woocommerce-terms-and-conditions-wrapper,.woocommerce-terms-and-conditions-checkbox-text,.woocommerce-privacy-policy-text) {
  color: var(--ink) !important;
}
body.gl-brand-2026 #payment :is(.woocommerce-terms-and-conditions-link,.woocommerce-privacy-policy-link) {
  color: var(--brand-purple-deep) !important;
}

/* Account and native login/signup/reset documents. */
body.gl-brand-2026 #gl-auth-document {
  background: var(--surface-product) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-art {
  background: var(--surface-popup) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-art-caption {
  background: rgba(23,8,73,.88) !important;
  color: var(--paper) !important;
  border-color: var(--popup-outline) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-art-caption :is(h2,p) {
  color: var(--paper) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-motion {
  background: var(--surface-popup-card) !important;
  color: var(--paper) !important;
  border-color: var(--popup-outline) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-form-panel :is(h1,h2,p,label,.gl-auth-switch,.gl-auth-fullpage) {
  color: var(--ink) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-form-panel :is(.gl-auth-back,a) {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-mobile-brand :is(.gl-brand-text,.gl-brand-text>span) {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 #gl-auth-document .gl-auth-mobile-brand .gl-brand-mark path[stroke] {
  stroke: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 #gl-auth-modal {
  background: var(--surface-popup) !important;
  border-color: var(--popup-outline) !important;
  box-shadow: 0 20px 60px rgba(12,4,45,.35) !important;
}
body.gl-brand-2026 .woocommerce-MyAccount-navigation :is(a,li) {
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--brand-purple-deep) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 .woocommerce-MyAccount-content :is(p,h2,h3,h4,label,th,td,address) {
  color: var(--ink) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .woocommerce-MyAccount-content :is(a:not(.button),.gl-account-shortcut strong) {
  color: var(--brand-purple-deep) !important;
}
body.gl-brand-2026 .woocommerce-MyAccount-content :is(table,thead,tbody,tfoot,tr,td,th,.gl-account-shortcut,.gl-account-recent-order,fieldset) {
  background: var(--surface-secondary) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .woocommerce-MyAccount-content .woocommerce-orders-table td::before {
  color: var(--muted-light) !important;
}

/* Receipts and Order Pay: theme-owned surfaces, no gateway dependency. */
body.gl-brand-2026.gl-ty-receipt-view {
  --glty-canvas: var(--brand-purple-deep) !important;
  --glty-surface: var(--surface-product) !important;
  --glty-surface-low: var(--surface-secondary) !important;
  --glty-card: linear-gradient(var(--surface-product),var(--surface-product)) !important;
  --glty-border: var(--line-light) !important;
  --glty-separator: var(--line-light) !important;
  --glty-white: var(--paper) !important;
  --glty-muted: var(--muted-dark) !important;
  --glty-faint: var(--muted-dark) !important;
  --glty-link: var(--paper) !important;
  --glty-accent: var(--brand-purple-primary) !important;
}
body.gl-brand-2026 .gl-checkout-received .gl-checkout-heading :is(h1,p,a) {
  color: var(--paper) !important;
}
body.gl-brand-2026 .gl-ty :is(.gl-ty-hero,.gl-ty-email,.gl-ty-meta,.gl-ty-support) :is(h2,h3,p,strong,span) {
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-ty :is(.woocommerce-table--order-details,.woocommerce-table--order-downloads) :is(td,th) {
  color: var(--ink) !important;
  background: var(--surface-secondary) !important;
  border-color: var(--line-light) !important;
}
body.gl-brand-2026 .gl-ty .woocommerce-customer-details address {
  color: var(--ink) !important;
  background: var(--surface-product) !important;
}
body.gl-brand-2026 .gl-order-pay-v1437 form#order_review>table :is(th,td) {
  color: var(--ink) !important;
  background: var(--surface-product) !important;
}
body.gl-brand-2026 .gl-order-pay-v1437 form#order_review>table thead th {
  background: var(--surface-secondary) !important;
}

/* Keep semantic errors/success separate from promotional pink. */
body.gl-brand-2026 #main :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
  background-color: var(--surface-product) !important;
  color: var(--ink) !important;
}
body.gl-brand-2026 .gl-pdp-summary .gl-pdp-stock:not(.gl-pdp-stock--out):not(.gl-pdp-stock--backorder),
body.gl-brand-2026 .gl-cart-image-save {
  color: #126B37 !important;
}
body.gl-brand-2026 .gl-ty .gl-ty-hero--success .gl-ty-icon {
  color: #126B37 !important;
}
body.gl-brand-2026 .gl-ty .gl-ty-hero--pending .gl-ty-icon {
  color: #795400 !important;
}
body.gl-brand-2026 .gl-ty .gl-ty-hero--danger .gl-ty-icon {
  color: #AB1739 !important;
}

/* Action roles: purchase/browse = yellow; promotions/auth = pink; utilities = quiet.
 * Never paint every WooCommerce .button as a purchase action. */
body.gl-brand-2026 :is(
  .gl-hero-actions .gl-btn-primary,.gl-bottom-promo .gl-btn-primary,
  .gl-pdp-gift-link,.gl-card-buy.add_to_cart_button,.single_add_to_cart_button,
  .woocommerce ul.products li.product .add_to_cart_button,.gl-pdp-related-buy,
  .gl-cart-rec-add,a.checkout-button,#place_order,.glpm-primary,
  .woocommerce-orders-table a.pay,.gl-ty-actions a[href*="order-pay"],
  .return-to-shop .button,.error404 .gl-btn-primary
) {
  background-color:var(--action-primary)!important;
  background-image:none!important;
  color:var(--ink)!important;
  border-color:transparent!important;
  box-shadow:0 4px 14px rgba(23,8,73,.16)!important;
  text-shadow:none!important;
}
body.gl-brand-2026 :is(.gl-card-buy.add_to_cart_button,.single_add_to_cart_button,
  a.checkout-button,#place_order,.glpm-primary,.gl-hero-actions .gl-btn-primary,
  .gl-bottom-promo .gl-btn-primary,.gl-cart-rec-add):hover:not(:disabled):not(.disabled) {
  background-color:var(--action-primary)!important;color:var(--ink)!important;
  filter:brightness(.97)!important;
}
body.gl-brand-2026 :is(button[name=apply_coupon],.gl-cart-coupon-fields button,
  .gl-checkout-coupon-panel button[type=submit],.glpm-option button[data-glpm-action=choose],
  .gl-sale-badge,.gl-pdp-discount,.gl-pdp-related-discount,.onsale,.gl-cart-foot-sale,.glpm-just,
  .woocommerce-form-login__submit,.woocommerce-form-register__submit,
  .woocommerce form.login button[type=submit],.woocommerce form.register button[type=submit],
  .woocommerce form.lost_reset_password button[type=submit],#gl-auth-native button[type=submit]) {
  background-color:var(--action-secondary)!important;
  background-image:var(--action-secondary-paint)!important;
  color:var(--paper)!important;border-color:transparent!important;
  box-shadow:none!important;text-shadow:none!important;
}
body.gl-brand-2026 :is(button[name=apply_coupon],.glpm-option button[data-glpm-action=choose],
  .woocommerce-form-login__submit,.woocommerce-form-register__submit):hover:not(:disabled) {
  filter:brightness(.94)!important;
}
body.gl-brand-2026 :is(.gl-btn-outline,.gl-filter-close,
  .woocommerce ul.products li.product .button:not(.add_to_cart_button),
  .gl-card-buy:not(.add_to_cart_button),.gl-shop-sidebar .gl-btn-primary,
  .woocommerce-MyAccount-content .button:not(.pay),.woocommerce-EditAccountForm button[type=submit],
  .woocommerce-address-fields button[type=submit],.gl-ty-action--quiet,
  .gl-ty-action--primary:not([href*="order-pay"])) {
  background-color:var(--surface-secondary)!important;background-image:none!important;
  color:var(--brand-purple-deep)!important;border-color:var(--line-light)!important;
  box-shadow:none!important;text-shadow:none!important;
}

/* Approved dark Cart Popup; all art and gift conditions stay native. */
body.gl-brand-2026 .glpm {
  --pm-border: var(--popup-outline) !important;
  --pm-muted: var(--surface-secondary) !important;
  --pm-accent: var(--action-secondary) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 .glpm-backdrop {
  background: rgba(12,4,45,.66) !important;
}
body.gl-brand-2026 .glpm-dialog {
  background: var(--surface-popup) !important;
  border-color: var(--popup-outline) !important;
  box-shadow: 0 20px 60px rgba(12,4,45,.35) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-head,.glpm-footer) {
  background: var(--surface-popup) !important;
  border-color: rgba(128,82,212,.50) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-line,.glpm-promo,.glpm-option,.glpm-smart-option,.glpm-qty,.glpm-line-art,.glpm-head-image,.glpm-selected-image,.glpm-selected) {
  background: var(--surface-popup-card) !important;
  border-color: rgba(128,82,212,.50) !important;
}
body.gl-brand-2026 .glpm :is(h2,h3,.glpm-line-name,.glpm-option-text a,.glpm-option-text span,.glpm-line-end>strong,.glpm-summary,.glpm-summary strong,.glpm-qty button) {
  color: var(--paper) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-promo-head p,.glpm-line-info small,.glpm-option-text small,.glpm-option-text del,.glpm-footer>small,.glpm-step-text,.glpm-milestones,.glpm-quiet,.glpm-empty,.glpm-selected-copy>small) {
  color: var(--surface-secondary) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-gift-mark,.glpm-spark) {
  background: var(--surface-popup-card) !important;
  color: var(--action-secondary) !important;
  border-color: var(--popup-outline) !important;
  box-shadow: none !important;
}
body.gl-brand-2026 .glpm .glpm-progress {
  background: rgba(242,237,255,.20) !important;
}
body.gl-brand-2026 .glpm .glpm-progress>span {
  background: var(--action-secondary) !important;
}
body.gl-brand-2026 .glpm .glpm-smart-tabs {
  background: var(--surface-popup) !important;
  border-color: var(--popup-outline) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-smart-tabs button,.glpm-gift-tabs button) {
  background: transparent !important;
  color: var(--surface-secondary) !important;
  border-color: rgba(128,82,212,.50) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-smart-tabs button[aria-selected=true],.glpm-gift-tabs button[aria-pressed=true]) {
  background: var(--surface-popup-card) !important;
  color: var(--paper) !important;
  border-color: var(--action-secondary) !important;
}
body.gl-brand-2026 .glpm :is(.glpm-secondary,.glpm-more,.glpm-first,.glpm-option button[data-glpm-action=add]) {
  background: var(--surface-popup-card) !important;
  color: var(--paper) !important;
  border-color: var(--popup-outline) !important;
  box-shadow: none !important;
}
body.gl-brand-2026 .glpm :is(.glpm-more,.glpm-first,.glpm-actions>button.glpm-secondary) {
  background: transparent !important;
}
body.gl-brand-2026 .glpm .glpm-milestone.is-done b {
  background-color: var(--action-secondary) !important;
  background-image: var(--action-secondary-paint) !important;
  color: var(--paper) !important;
}
body.gl-brand-2026 .glpm .glpm-primary {
  background: var(--action-primary) !important;
  color: var(--ink) !important;
}
body.gl-brand-2026 .glpm button[data-glpm-action=choose] {
  background-color: var(--action-secondary) !important;
  background-image: var(--action-secondary-paint) !important;
  color: var(--paper) !important;
}
@media(max-width:800px) {
body.gl-brand-2026 #main.gl-home .gl-hero-main::after {
  background: linear-gradient(0deg,rgba(50,1,188,.98),rgba(50,1,188,.72) 55%,rgba(50,1,188,.06)) !important;
}
}
/* Verified screenshot defects: contextual foreground/background pairs. */
body.gl-brand-2026 .gl-cart-count {
  background-color:var(--action-secondary)!important;
  background-image:var(--action-secondary-paint)!important;
  color:var(--paper)!important;border-color:transparent!important;
}
body.gl-brand-2026 .gl-checkout-eyebrow {color:var(--paper)!important}
body.gl-brand-2026 .gl-site-logo :is(strong,span) {color:var(--paper)!important}
body.gl-brand-2026 #gl-auth-document .gl-auth-mobile-brand :is(strong,span) {color:var(--brand-purple-deep)!important}

/* Native notices retain their semantic role. No pale success ink on pale panels. */
body.gl-brand-2026 .gl-checkout-savings-banner {
  background:var(--surface-secondary)!important;color:#126B37!important;
  border-color:rgba(18,107,55,.38)!important;box-shadow:none!important;
}
body.gl-brand-2026 .gl-checkout-savings-banner :is(span,strong,bdi,svg) {color:inherit!important}
body.gl-brand-2026 #payment .woocommerce-terms-and-conditions {
  background:var(--surface-secondary)!important;color:var(--ink)!important;
  border-color:var(--line-light)!important;
}
body.gl-brand-2026 #payment .woocommerce-terms-and-conditions :is(h1,h2,h3,h4,p,li,span,strong,label) {color:var(--ink)!important}
body.gl-brand-2026 #payment :is(.woocommerce-terms-and-conditions,.woocommerce-terms-and-conditions-wrapper) a {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 #main :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) a {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 :is(#customer_details,.gl-checkout-summary,.gl-checkout-payment-section,.gl-auth-form-panel,.woocommerce-MyAccount-content) :is(input,select,textarea) {color-scheme:light}
body.gl-brand-2026 :is(#customer_details,#payment) :is(input[type=radio],input[type=checkbox]) {color-scheme:light;accent-color:var(--brand-purple-deep)!important}
body.gl-brand-2026 #payment .payment_box :is(label,small,p) {color:var(--ink)!important}
body.gl-brand-2026 #payment .form-row.place-order :is(label,.woocommerce-terms-and-conditions-checkbox-text) {color:var(--ink)!important}
body.gl-brand-2026 .gl-checkout-trust :is(svg,.gl-cart-trust-icon) {color:var(--brand-purple-deep)!important}

/* Cart footer facts and genuine WooCommerce recommendation cards. */
body.gl-brand-2026 .gl-cart-item-footer :is(.gl-cart-foot-type,.gl-cart-foot-delivery) > span {color:var(--ink)!important}
body.gl-brand-2026 :is(.gl-cart-product-meta,.gl-cart-footer-facts) svg {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-cart-rec {
  background:var(--surface-product)!important;color:var(--ink)!important;
  border-color:var(--line-light)!important;
}
body.gl-brand-2026 .gl-cart-rec-img {background:var(--surface-secondary)!important}
body.gl-brand-2026 .gl-cart-rec-title {color:var(--ink)!important}
body.gl-brand-2026 .gl-cart-rec-price,
body.gl-brand-2026 .gl-cart-rec-price :is(ins,.amount,bdi) {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-cart-rec-price del,
body.gl-brand-2026 .gl-cart-rec-price del :is(.amount,bdi) {color:var(--muted-light)!important}
body.gl-brand-2026 .gl-cart-recs-head :is(h2,a) {color:var(--paper)!important}
body.gl-brand-2026 .woocommerce-cart-form .product-remove a.remove {background:var(--surface-secondary)!important;color:var(--ink)!important;border-color:var(--line-light)!important}
body.gl-brand-2026 .gl-cart-image-save {background:var(--surface-product)!important;color:#126B37!important;border-color:var(--line-light)!important}
body.gl-brand-2026 :is(.gl-cart-trust,.gl-checkout-trust) svg {color:var(--brand-purple-deep)!important}

/* Product fact icons are information, not sales accents. Platform artwork is untouched. */
body.gl-brand-2026 .gl-pdp-summary .gl-pdp-fact:not([data-gl-pdp-fact="platform"]) .gl-pdp-fact-icon {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-pdp-notes-disclosure summary svg {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-pdp-sale-savings {background:transparent!important;color:var(--brand-purple-deep)!important;border-color:transparent!important}
body.gl-brand-2026 .gl-pdp-related-savings {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-pdp-summary .gl-pdp-price del,
body.gl-brand-2026 .gl-pdp-summary .gl-pdp-price del :is(.amount,bdi) {color:var(--muted-light)!important}
body.gl-brand-2026 .gl-pdp-fact-tooltip {color:var(--ink)!important}
body.gl-brand-2026 .gl-pdp-fact-tooltip :is(p,span,strong) {color:var(--ink)!important}

/* Receipt canvas vs named pale panels: do not leak dark ink across the whole route. */
body.gl-brand-2026 .gl-ty {color:var(--paper)!important}
body.gl-brand-2026 .gl-ty :is(.gl-ty-hero,.gl-ty-email,.gl-ty-meta,.gl-ty-support,.woocommerce-table--order-details,.woocommerce-table--order-downloads,.woocommerce-customer-details address) {
  --glty-white:var(--ink)!important;--glty-muted:var(--muted-light)!important;
  --glty-faint:var(--muted-light)!important;--glty-link:var(--brand-purple-deep)!important;
  --ty-white:var(--ink)!important;--ty-muted:var(--muted-light)!important;
  color:var(--ink)!important;
}
body.gl-brand-2026 .gl-ty :is(.woocommerce-order-details__title,.woocommerce-column__title) {color:var(--paper)!important}
body.gl-brand-2026 .gl-ty :is(.woocommerce-table--order-details,.woocommerce-table--order-downloads,address,.gl-ty-support) a {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-ty .gl-ty-email-icon {color:var(--brand-purple-deep)!important}
/* Gateway-neutral top-level callback surfaces. No provider class/id or payment dependency. */
body.gl-brand-2026 .gl-checkout-received .woocommerce-order.gl-ty > :is(section,article,div):not(:is(.gl-ty-hero,.gl-ty-email,.gl-ty-meta,.gl-ty-actions,.gl-ty-support,.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-notices-wrapper)) {
  --glty-white:var(--ink)!important;--glty-muted:var(--muted-light)!important;
  --ty-white:var(--ink)!important;--ty-muted:var(--muted-light)!important;
  background-color:var(--surface-product)!important;background-image:none!important;
  color:var(--ink)!important;border-color:var(--line-light)!important;
}
body.gl-brand-2026 .gl-checkout-received .woocommerce-order.gl-ty > :is(section,article,div):not(:is(.gl-ty-hero,.gl-ty-email,.gl-ty-meta,.gl-ty-actions,.gl-ty-support,.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-notices-wrapper)) :is(h1,h2,h3,h4,p,dl,dt,dd) {color:var(--ink)!important}
body.gl-brand-2026 .gl-checkout-received .woocommerce-order.gl-ty > :is(section,article,div):not([class*="gl-ty-"]) :is(a.button,button) {
  background:var(--surface-secondary)!important;color:var(--brand-purple-deep)!important;
  border-color:var(--line-light)!important;
}
body.gl-brand-2026 .gl-order-pay-v1437 #payment {
  background:var(--surface-product)!important;color:var(--ink)!important;
  border-color:var(--line-light)!important;
}
body.gl-brand-2026 :is(.woocommerce-MyAccount-content,.gl-ty) :is(.order-total,.product-total) .amount {color:var(--ink)!important}

/* Preserve illustrated gift banner geometry; only restore the per-breakpoint fade. */
@media(max-width:800px) {
 body.gl-brand-2026 #main.gl-home .gl-bottom-promo::after {background:linear-gradient(90deg,transparent,#3201BC 28%,rgba(50,1,188,.12))!important}
}
@media(max-width:590px) {
 body.gl-brand-2026 #main.gl-home .gl-bottom-promo::after {background:linear-gradient(0deg,#3201BC 35%,rgba(50,1,188,.8) 55%,transparent)!important}
}
html[dir=rtl] body.gl-brand-2026 #main.gl-home .gl-bottom-promo::after {background:linear-gradient(270deg,transparent 4%,#3201BC 25%,rgba(50,1,188,.12))!important}
@media(max-width:590px) {html[dir=rtl] body.gl-brand-2026 #main.gl-home .gl-bottom-promo::after {background:linear-gradient(0deg,#3201BC 35%,rgba(50,1,188,.8) 55%,transparent)!important}}

@media(forced-colors:active) { body.gl-brand-2026 :is(button,.button,.glpm-primary,.gl-card-buy) {forced-color-adjust:auto!important} }

/* Explicit child text paints for legacy nested panels. */
body.gl-brand-2026 .gl-pdp-short-copy :is(p,li,div),
body.gl-brand-2026 .gl-pdp-summary :is(.gl-pdp-how-body,.gl-pdp-notes-body),
body.gl-brand-2026 .gl-pdp-summary :is(.gl-pdp-how-body,.gl-pdp-notes-body) :is(p,li,span) {color:var(--ink)!important}
body.gl-brand-2026 .gl-pdp-short-copy a {color:var(--brand-purple-deep)!important}
body.gl-brand-2026 .gl-catalog-card-meta {color:var(--muted-light)!important}
body.gl-brand-2026 .gl-pdp-stock--ok .gl-pdp-stock-text {color:#126B37!important}


/* Price amounts have explicit legacy colors: paint the actual descendants. */
body.gl-brand-2026 #main.gl-cart-v1421 tr.cart_item .product-subtotal :is(span,bdi) {color:var(--ink)!important}
body.gl-brand-2026 #main.gl-cart-v1421 tr.cart_item .product-subtotal del,
body.gl-brand-2026 #main.gl-cart-v1421 tr.cart_item .product-subtotal del span {color:var(--muted-light)!important}
body.gl-brand-2026 #main.gl-cart-v1421 .woocommerce-cart-form thead th {color:var(--ink)!important;background:var(--surface-product)!important}
body.gl-brand-2026 :is(.gl-game-card,.gl-pdp-related-card,.woocommerce ul.products li.product) .price :is(span,bdi,ins),
body.gl-brand-2026 .gl-pdp-price :is(.amount,bdi) {color:var(--brand-purple-deep)!important}

/* Focus rings are paint-only and do not shift the box model. */
body.gl-brand-2026 :is(a,button,summary,input,select,textarea):focus-visible {outline:2px solid var(--paper)!important;outline-offset:3px!important}
body.gl-brand-2026 :where(.gl-game-card,.gl-pdp-related-card,.woocommerce ul.products li.product,.gl-pdp-summary,.gl-shop-sidebar,.woocommerce-MyAccount-navigation,.cart_totals,.gl-checkout-summary,#customer_details,.gl-checkout-payment-section,.woocommerce-MyAccount-content,#gl-auth-document .gl-auth-form-panel) :is(a,button,summary,input,select,textarea):focus-visible {outline-color:var(--brand-purple-deep)!important}
}
