/* GAMESPSN purchase header — restore official RC10.74 Checkout source styling.
 * One original WooCommerce logo and progress nav, four purchase routes. Desktop
 * retains the official single-row header. Only mobile receives the requested
 * centered logo + separate progress row. No basket duplicate in Cart header.
 * Do not style footer, cart content, checkout fields, gateways or order status. */
@layer gamespsn-brand {
  body.gl-brand-2026 header.gl-unified-commerce-header {
    display:block!important;
    min-height:72px!important;height:auto!important;
    background:var(--gs-x-header-bg,var(--gs-color-surface-raised))!important;
    border-bottom:1px solid var(--gs-x-header-border,var(--gs-color-border))!important;
    position:sticky!important;top:var(--wp-admin--admin-bar--height,0px)!important;
    z-index:115!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header > .gl-checkout-commerce-header__inner {
    box-sizing:border-box!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    grid-template-rows:auto!important;gap:24px!important;
    width:min(1100px,calc(100% - 36px))!important;max-width:1100px!important;
    min-height:72px!important;height:auto!important;
    margin-inline:auto!important;padding:0!important;
    align-items:center!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-site-logo {
    display:inline-flex!important;grid-column:1!important;grid-row:1!important;
    justify-self:start!important;align-self:center!important;
    min-width:0!important;margin:0!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-steps {
    box-sizing:border-box!important;display:inline-flex!important;
    grid-column:2!important;grid-row:1!important;
    justify-self:center!important;align-items:center!important;
    width:auto!important;max-width:100%!important;min-width:0!important;
    gap:3px!important;padding:3px!important;margin:0!important;
    border:1px solid var(--gs-color-border)!important;border-radius:999px!important;
    background:var(--gs-color-surface)!important;
    white-space:nowrap!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step {
    box-sizing:border-box!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important;
    gap:8px!important;min-height:38px!important;padding:5px 11px!important;
    font-size:12px!important;font-weight:750!important;line-height:1.25!important;
    border:1px solid transparent!important;border-radius:999px!important;
    color:var(--gs-color-text-body)!important;white-space:nowrap!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step.is-active {
    background:var(--gs-color-selected-bg)!important;
    border-color:var(--gs-color-focus)!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step-icon {
    box-sizing:border-box!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important;
    flex:0 0 26px!important;width:26px!important;height:26px!important;
    border:1px solid var(--gs-color-border)!important;border-radius:50%!important;
    background:var(--gs-color-surface)!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step-icon svg {width:18px!important;height:18px!important;}
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step.is-active .gl-checkout-step-icon {
    border-color:var(--gs-color-focus)!important;background:var(--gs-color-selected-bg)!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step-connector {
    flex:0 0 17px!important;width:17px!important;height:1px!important;
    background:var(--gs-color-border)!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-steps[data-stage="delivery"] .gl-checkout-step.is-active:last-child {
    color:var(--gs-color-success,#53D6A0)!important;
    border-color:var(--gs-color-success,#53D6A0)!important;
  }
  body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-secure {
    box-sizing:border-box!important;display:inline-flex!important;
    grid-column:3!important;grid-row:1!important;
    justify-self:end!important;align-self:center!important;
    gap:7px!important;min-width:0!important;
    font-size:12px!important;white-space:nowrap!important;
    color:var(--gs-color-text-secondary)!important;
  }
  @media (max-width:600px) {
    body.gl-brand-2026 header.gl-unified-commerce-header {
      /* Mobile WordPress admin bar scrolls away; never reserve its stale top offset. */
      top:0!important;
      height:auto!important;min-height:112px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header > .gl-checkout-commerce-header__inner {
      grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
      grid-template-rows:48px 43px!important;
      width:calc(100% - 24px)!important;max-width:100%!important;
      gap:5px 0!important;
      min-height:112px!important;height:auto!important;
      padding:9px 0 11px!important;
      align-content:center!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-site-logo {
      grid-column:2!important;grid-row:1!important;
      justify-self:center!important;align-self:center!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-site-logo img.gl-approved-wordmark {
      display:block!important;width:170px!important;max-width:170px!important;
      height:auto!important;max-height:35px!important;
      object-fit:contain!important;object-position:center!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-steps {
      grid-column:1/4!important;grid-row:2!important;
      display:flex!important;justify-self:stretch!important;
      justify-content:space-between!important;align-items:center!important;
      width:100%!important;max-width:100%!important;min-width:0!important;
      height:43px!important;min-height:43px!important;
      padding:4px 9px!important;gap:6px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step {
      flex:0 0 auto!important;gap:6px!important;
      min-height:33px!important;padding:3px 4px!important;
      font-size:11.5px!important;font-weight:650!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step-icon {
      flex:0 0 18px!important;width:18px!important;height:18px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step-icon svg {
      width:14px!important;height:14px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step-connector {
      flex:1 1 auto!important;width:auto!important;min-width:8px!important;
      max-width:none!important;height:1px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-secure {display:none!important;}
  }
  @media (max-width:359px) {
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-site-logo img.gl-approved-wordmark {
      width:150px!important;max-width:150px!important;max-height:32px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-steps {
      padding:4px 7px!important;gap:4px!important;
    }
    body.gl-brand-2026 header.gl-unified-commerce-header .gl-checkout-step {
      padding:3px 2px!important;gap:4px!important;font-size:11px!important;
    }
  }
}
