/* ==========================================================================
   Global Mobiles — phone & tablet layer
   --------------------------------------------------------------------------
   EVERY rule in this file lives inside @media (max-width:1024px). Nothing here
   can reach the desktop layout. 1024px is the cut so iPhone, Android and iPad
   PORTRAIT (820) get the app treatment, while iPad LANDSCAPE (1180) keeps the
   desktop layout it already renders well at.

   What it does, and why:
     the stock header spent 342px — 40% of an iPhone screen — on a ticker, a
     "For Business" strip, a logo row, an icon row and a tagline, and hid the
     search box entirely. This replaces that with a 2-row sticky header
     (actions + full-width search) plus a fixed bottom tab bar, so search, cart
     and account are always one thumb away.
   ========================================================================== */

@media (max-width: 1024px) {

  :root{
    --gm-navy:#1d2769;
    --gm-navy-2:#2a3382;
    --gm-gold:#f5b301;      /* storefront accent (dark yellow) — matches the desktop search button */
    --gm-gold-ink:#192273;  /* readable text on the lime */
    --gm-badge:#ff8a5b;     /* same cart count colour as the desktop header */
    --gm-line:#e6e8f2;
    --gm-ink:#12162e;
    --gm-muted:#6b7290;
    --gm-tabbar-h:60px;
  }

  /* ---- Reclaim the 342px ------------------------------------------------ */
  /* Marketing chrome that costs more than it earns on a phone. */
  .gm-an-track, .header-top, .header__bottom { display:none !important; }

  /* The template's own slide-in menu is superseded by .gm-mnav. Left in place
     it sits at left:592px on a 402px screen and drags the page into horizontal
     scroll — the classic "why does my site wobble sideways" bug. */
  .offcanvas__area{ display:none !important; }
  html, body{ overflow-x:hidden; }
  /* `hidden` turns <body> into a scroll container, which silently breaks the
     sticky header (the search scrolled away). `clip` stops sideways wobble
     WITHOUT that side effect — Safari 16+, Chrome 90+, Firefox 81+. */
  @supports (overflow:clip){ html, body{ overflow-x:clip; } }

  /* The stock mid-header becomes our compact app bar. */
  .header{ position:sticky; top:0; z-index:1000; }
  .header-mid{ padding:0 !important; }
  .header-mid .container{ padding-left:12px; padding-right:12px; }
  /* The whole desktop mid-header goes: our .gm-mhead replaces it. Hiding only
     its inner .row left the wrapper's own 61px of padding behind. */
  .header-mid .heade-mid-inner{ display:none !important; }

  /* ---- Row 1: menu · logo · account · cart ------------------------------ */
  .gm-mhead{
    display:flex; align-items:center; gap:10px;
    height:56px; color:#fff;
  }
  .gm-mhead__burger,
  .gm-mhead__act{
    flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border:0; background:transparent; padding:0;
    color:#fff; border-radius:10px; position:relative; cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .gm-mhead__burger:active, .gm-mhead__act:active{ background:rgba(255,255,255,.14); }
  .gm-mhead__burger svg, .gm-mhead__act svg{ width:23px; height:23px; }
  .gm-mhead__logo{ flex:1 1 auto; min-width:0; display:flex; align-items:center; }
  .gm-mhead__logo img{ height:26px; width:auto; display:block; }
  .gm-mhead__badge{
    position:absolute; top:3px; right:2px; min-width:18px; height:18px; padding:0 5px;
    background:var(--gm-badge); color:#fff; border-radius:99px;
    font:800 11px/18px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    text-align:center; box-shadow:0 0 0 2px var(--gm-navy-2);
  }

  /* ---- Row 2: full-width search ----------------------------------------- */
  .gm-msearch{ padding:0 0 10px; }
  .gm-msearch form{ display:flex; align-items:center; gap:0; }
  .gm-msearch input{
    flex:1 1 auto; min-width:0; height:44px;
    border:0; border-radius:10px 0 0 10px; padding:0 14px;
    /* 16px is not cosmetic: iOS zooms the whole page on focus below 16px. */
    font-size:16px; line-height:44px; color:var(--gm-ink); background:#fff;
  }
  .gm-msearch input:focus{ outline:none; box-shadow:inset 0 0 0 2px var(--gm-gold); }
  .gm-msearch button{
    flex:0 0 auto; width:52px; height:44px; border:0; cursor:pointer;
    border-radius:0 10px 10px 0; background:var(--gm-gold); color:var(--gm-gold-ink);
    display:inline-flex; align-items:center; justify-content:center;
  }
  .gm-msearch button svg{ width:20px; height:20px; }

  /* ---- Bottom tab bar --------------------------------------------------- */
  /* The one piece that makes the store feel like an app: cart and account are
     always visible, never more than one tap away, on every page. */
  .gm-tabbar{
    position:fixed; left:0; right:0; bottom:0; z-index:1200;
    display:flex; align-items:stretch;
    background:#fff; border-top:1px solid var(--gm-line);
    box-shadow:0 -2px 14px rgba(18,22,46,.08);
    padding-bottom:env(safe-area-inset-bottom);   /* iPhone home indicator */
  }
  .gm-tabbar a{
    flex:1 1 0; min-width:0; height:var(--gm-tabbar-h);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    color:var(--gm-muted) !important; text-decoration:none !important;
    font:600 10.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    position:relative; -webkit-tap-highlight-color:transparent;
  }
  .gm-tabbar a svg{ width:23px; height:23px; }
  .gm-tabbar a.is-active{ color:var(--gm-navy) !important; }
  .gm-tabbar a.is-active::before{
    content:''; position:absolute; top:0; left:22%; right:22%; height:3px;
    background:var(--gm-navy); border-radius:0 0 3px 3px;
  }
  .gm-tabbar .gm-tb-badge{
    position:absolute; top:6px; left:calc(50% + 5px); min-width:17px; height:17px; padding:0 5px;
    background:#d33; color:#fff; border-radius:99px;
    font:800 10.5px/17px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    text-align:center;
  }
  /* Keep the tab bar off the last row of content and clear of the chat bubble. */
  body{ padding-bottom:calc(var(--gm-tabbar-h) + env(safe-area-inset-bottom)) !important; }
  #chat-widget-container, .gm-chat-bubble, [id*="chat"][class*="widget"]{
    bottom:calc(var(--gm-tabbar-h) + 12px + env(safe-area-inset-bottom)) !important;
  }

  /* ---- Slide-in department drawer --------------------------------------- */
  .gm-mnav-bg{
    position:fixed; inset:0; z-index:1300; background:rgba(12,15,33,.5);
    opacity:0; visibility:hidden; transition:opacity .2s ease, visibility .2s;
  }
  .gm-mnav-bg.is-open{ opacity:1; visibility:visible; }
  .gm-mnav{
    position:fixed; top:0; bottom:0; left:0; z-index:1301;
    width:min(86vw, 360px); background:#fff;
    transform:translateX(-100%); transition:transform .24s cubic-bezier(.32,.72,0,1);
    display:flex; flex-direction:column; overscroll-behavior:contain;
  }
  .gm-mnav.is-open{ transform:translateX(0); }
  .gm-mnav__head{
    flex:0 0 auto; background:var(--gm-navy); color:#fff;
    padding:calc(14px + env(safe-area-inset-top)) 16px 14px;
    display:flex; align-items:center; justify-content:space-between; gap:10px;
  }
  .gm-mnav__who{ display:flex; flex-direction:column; gap:2px; min-width:0; }
  .gm-mnav__who b{ font:700 15px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-mnav__who span{ font-size:12px; opacity:.75; }
  .gm-mnav__close{
    width:40px; height:40px; border:0; background:rgba(255,255,255,.12); color:#fff;
    border-radius:10px; font-size:20px; line-height:1; cursor:pointer; flex:0 0 auto;
  }
  .gm-mnav__body{ flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .gm-mnav__sec{
    font:700 10.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    letter-spacing:.12em; text-transform:uppercase; color:#9aa0b4;
    padding:18px 18px 8px;
  }
  .gm-mnav a.gm-mnav__row,
  .gm-mnav button.gm-mnav__row{
    display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
    min-height:50px; padding:13px 18px; border:0; background:transparent; text-align:left;
    color:var(--gm-ink) !important; text-decoration:none !important;
    font:600 15px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    border-bottom:1px solid #f2f3f8; cursor:pointer;
  }
  .gm-mnav .gm-mnav__row:active{ background:#f4f6fc; }
  .gm-mnav .gm-mnav__row .n{ font-size:12px; font-weight:700; color:#9aa0b4; }
  .gm-mnav .gm-mnav__row.is-danger{ color:#b3261e !important; }
  /* Trade-In card at the top of the drawer (gm-tradein-promo visibility work). */
  .gm-mnav a.gm-mnav__trade{
    display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:10px;
    margin:14px 14px 2px; padding:13px 16px; border-radius:14px;
    background:var(--gm-gold); color:var(--gm-gold-ink) !important; text-decoration:none !important;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  }
  .gm-mnav__trade b{ grid-column:1; font-size:15px; font-weight:800; }
  .gm-mnav__trade span{ grid-column:1; font-size:12px; font-weight:600; opacity:.8; margin-top:2px; }
  .gm-mnav__trade i{ grid-column:2; grid-row:1 / 3; font-style:normal; font-size:26px; font-weight:700; line-height:1; }
  .gm-mnav a.gm-mnav__trade:active{ filter:brightness(.95); }

  /* ---- Touch sizing sweep ------------------------------------------------ */
  /* Every text input at 16px+ so iOS never zooms the page on focus. */
  input[type=text], input[type=email], input[type=tel], input[type=number],
  input[type=password], input[type=search], input:not([type]), select, textarea{
    font-size:16px !important;
  }
  .gm-mini-search, #shopCatFilter, #priceMin, #priceMax{ font-size:16px !important; }

  /* ---- Shop page on a phone --------------------------------------------- */
  /* Abt's panel links are compact because they are clicked with a mouse. Ours
     are tapped, so the department bar and every link in the panel get a real
     44px target — the menu is the primary way around the store on a phone. */
  .gm-shopnav__sub a{ min-height:40px; display:inline-flex; align-items:center; }
  .gm-shopnav__sub{ margin-bottom:14px; }
  .breadcrumb__area{ padding-top:14px !important; padding-bottom:0 !important; }
  .breadcrumb{ margin-bottom:6px; font-size:12.5px; }

  /* Product cards: 2 per row reads far better than 1 huge or 3 cramped. */
  .shop-area .product__item, .product-item-wrapper{ margin-bottom:14px; }

  /* Sticky buy bar on the product page */
  .gm-buybar{
    position:fixed; left:0; right:0; bottom:calc(var(--gm-tabbar-h) + env(safe-area-inset-bottom));
    z-index:1150; background:#fff; border-top:1px solid var(--gm-line);
    box-shadow:0 -2px 14px rgba(18,22,46,.10);
    display:flex; align-items:center; gap:12px; padding:10px 14px;
  }
  .gm-buybar__price{
    flex:0 0 auto; display:flex; flex-direction:column; line-height:1.15;
    font:800 18px/1.15 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    color:var(--gm-ink);
  }
  .gm-buybar__price small{ font-size:11px; font-weight:600; color:var(--gm-muted); }
  .gm-buybar__btn{
    flex:1 1 auto; height:48px; border:0; border-radius:10px; cursor:pointer;
    background:var(--gm-navy); color:#fff;
    font:700 15px/48px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    text-align:center; text-decoration:none !important;
  }
  .gm-buybar__btn[disabled]{ background:#aeb3c9; cursor:not-allowed; }

  /* ---- Checkout / forms -------------------------------------------------- */
  .gm-tabbar ~ * .checkout-btn, .tp-btn-square-lg{ min-height:48px; }

  /* ---- Touch targets ----------------------------------------------------- */
  /* Apple asks for 44px, Material for 48dp. These were the real offenders on a
     phone: the cart drawer's quantity steppers and delete, and the footer link
     columns, all of which are used with a thumb. */
  .gm-ci-qty button, .gm-ci-qty > button, .gm-drawer-x, .gm-ci-del{
    min-width:40px !important; min-height:40px !important;
    display:inline-flex !important; align-items:center; justify-content:center;
  }
  /* These three belong to the CART drawer in gm-site.js — deliberately not
     renamed. Our own menu is .gm-mnav so the two can never collide again. */
  .gm-drawer-cont, .gm-drawer-checkout{ min-height:48px !important; }
  .footer__links a, .gm-foot-chip{
    display:inline-block; padding:10px 6px; line-height:1.3;
  }
  .gm-wish{ width:40px !important; height:40px !important; }
  .gm-catbar a{ min-height:40px; }
  .product__filter .nav-link{ min-width:40px; min-height:40px; }
  .gm-mhead__logo{ height:44px; }
  .gm-soc{ width:44px !important; height:44px !important; }
}

/* Phones only — tablets keep the roomier grid the template already gives them */
@media (max-width: 767px){
  .shop-area .col-lg-4.col-md-6, .shop-area .col-xl-3, .shop-area .col-md-6{
    width:50%; flex:0 0 50%; max-width:50%; padding-left:6px; padding-right:6px;
  }
  .shop-area .row{ margin-left:-6px; margin-right:-6px; }
  .product__content h5, .product__content h4{ font-size:13px; line-height:1.35; }
  .product__price, .price{ font-size:14px; }
  .cart-btn{ min-height:42px; font-size:13px; }
}

/* iPad portrait — 3 across is the sweet spot at 820px */
@media (min-width: 768px) and (max-width: 1024px){
  .shop-area .col-lg-4.col-md-6, .shop-area .col-xl-3{
    width:33.3333%; flex:0 0 33.3333%; max-width:33.3333%;
  }
}

@media (max-width: 1024px){
  /* Shop by brand A–Z inside the mobile drawer */
  .gm-mnav__row.is-toggle{
    width:100%;text-align:left;background:none;border:0;font:inherit;cursor:pointer;
    display:flex;justify-content:space-between;align-items:center}
  .gm-mnav__row.is-toggle::after{content:'\25be';margin-left:8px;opacity:.55;transition:transform .18s ease}
  .gm-mnav__row.is-toggle.is-on::after{transform:rotate(180deg)}
  .gm-mnav__az{
    padding:9px 18px 4px;font-size:11px;font-weight:700;letter-spacing:.1em;
    color:#1b2358;background:#f4f5fa;border-top:1px solid #e9ebf3}
}

/* ==========================================================================
   Phase 1 (2026-09-29) — Amazon-style frame for phone & iPad portrait
   ========================================================================== */
@media (max-width: 1024px){
  :root{ --gm-tabbar-h:62px; --gm-head-h:150px; }

  /* Guest: "Sign in ›" text instead of a bare icon, top right. */
  .gm-mhead__acct.is-guest{ width:auto; padding:0 6px; gap:0; }
  .gm-mhead__acct.is-guest svg{ display:none; }
  .gm-mhead__signin{ font:700 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#fff; white-space:nowrap; }
  .gm-mhead__signin b{ font-weight:800; margin-left:1px; }

  /* Department row you swipe, under the search (Amazon). Collapses while
     scrolling down, comes back on the first scroll up. */
  .gm-mdepts{
    display:flex; gap:4px; overflow-x:auto; overscroll-behavior-x:contain;
    scrollbar-width:none; -webkit-overflow-scrolling:touch;
    margin:-2px -12px 0; padding:0 12px 8px; max-height:44px;
    transition:max-height .22s ease, padding .22s ease, opacity .18s ease;
  }
  .gm-mdepts::-webkit-scrollbar{ display:none; }
  .gm-mdepts a{
    flex:0 0 auto; display:inline-flex; align-items:center; min-height:34px; padding:0 11px;
    color:#e3e7ff !important; text-decoration:none !important; white-space:nowrap; border-radius:99px;
    font:600 13.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  }
  .gm-mdepts a.is-on{ background:rgba(255,255,255,.16); color:#fff !important; }
  .gm-mdepts a.gm-mdepts__trade{ background:var(--gm-gold); color:var(--gm-gold-ink) !important; font-weight:800; }
  /* Pinned yellow buttons (AI CHAT + Trade-In) — 2026-11-22 audit:
     · the row was max-height:44px but its links are min-height:40px + 8px
       padding = 48px, so the pills were clipped at the bottom and the row
       became vertically scrollable (the pill "jumped" under a finger);
     · selecting a category scrolled the row and pushed Trade-In off screen;
     · on shop results the whole row was hidden, Trade-In with it. */
  .gm-mdepts{ max-height:none; overflow-y:hidden; align-items:center; }
  .gm-mdepts__pin{
    position:sticky; left:-12px; z-index:2; flex:0 0 auto; display:inline-flex; gap:6px; align-items:center;
    margin-left:-12px; padding:0 16px 0 12px;
    /* Same blue as the header gradient at this spot, fading out on the right so
       the scrolling categories slide softly underneath (no visible box). */
    background:linear-gradient(90deg, #2842cd 0, #2842cd calc(100% - 16px), rgba(40,66,205,0) 100%);
  }
  .gm-mdepts__pin [hidden]{ display:none !important; }
  .gm-mdepts .gm-mdepts__ai{
    flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:0 12px;
    border:0; border-radius:99px; cursor:pointer; background:var(--gm-gold); color:var(--gm-gold-ink);
    font:800 13.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; letter-spacing:.2px;
    -webkit-tap-highlight-color:transparent;
  }
  .gm-mdepts .gm-mdepts__ai svg{ width:15px; height:15px; }
  .gm-mdepts .gm-mdepts__ai[aria-expanded="true"]{ box-shadow:0 0 0 2px #fff; }
  .gm-mdepts .gm-mdepts__ai:active, .gm-mdepts a.gm-mdepts__trade:active{ filter:brightness(.93); }
  .gm-trade-off .gm-mdepts__trade, .gm-trade-off .gm-mnav__trade{ display:none !important; }
  /* Shop results: the category row stays hidden (filter chips replace it), but
     the two yellow buttons remain. */
  .gm-mshop .gm-mdepts{ display:flex !important; }
  .gm-mshop .gm-mdepts > a{ display:none !important; }
  .gm-mshop .gm-mdepts:not(:has(.gm-mdepts__pin > :not([hidden]))){ display:none !important; }
  /* No collapse on scroll: changing the header's height shifts the page, the
     browser compensates, and that reads as another scroll — the row flickered.
     On shop results the filter chips take its place (as on Amazon). */
  .gm-mshop .gm-mdepts{ display:none; }

  /* Bottom menu: Home · Shop · Cart (raised, centre) · Wishlist · Account */
  .gm-tabbar{ transition:transform .24s cubic-bezier(.32,.72,0,1); will-change:transform; }
  .gm-scroll-down .gm-tabbar, .gm-typing .gm-tabbar{ transform:translateY(calc(100% + 30px)); }
  .gm-tabbar a{ font-size:11px; }
  .gm-tabbar a.gm-tb-center{ overflow:visible; }
  .gm-tb-bubble{
    width:52px; height:52px; margin-top:-22px; border-radius:50%;
    background:var(--gm-navy); color:#fff; display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 16px -6px rgba(29,39,105,.7), 0 0 0 4px #fff;
  }
  .gm-tb-bubble svg{ width:25px !important; height:25px !important; }
  .gm-tabbar a.gm-tb-center.is-active::before{ display:none; }
  .gm-tabbar a.gm-tb-center .gm-tb-badge{
    top:-16px; left:calc(50% + 8px); background:var(--gm-gold); color:var(--gm-gold-ink);
    box-shadow:0 0 0 2px #fff;
  }

  /* Chat bubble: smaller, above the bottom menu, never on top of a tab. */
  html [data-rushstack-chat]{
    bottom:calc(var(--gm-tabbar-h) + 14px + env(safe-area-inset-bottom)) !important;
    right:14px !important; transform:none !important;
    transition:bottom .24s cubic-bezier(.32,.72,0,1);
  }
  html.gm-scroll-down [data-rushstack-chat]{ bottom:calc(14px + env(safe-area-inset-bottom)) !important; }
  html.gm-typing [data-rushstack-chat]{ display:none !important; }
  /* The template's round back-to-top sat on the bottom menu. */
  .progress-wrap{ display:none !important; }
  /* The shop's floating search duplicated the pinned one. */
  #gmFloatSearch{ display:none !important; }
  /* Cookie banner sits above the bottom menu instead of covering it. */
  .gmc{ bottom:calc(var(--gm-tabbar-h) + 10px + env(safe-area-inset-bottom)) !important; }

  /* Product buy bar follows the bottom menu. */
  .gm-buybar{ transition:bottom .24s cubic-bezier(.32,.72,0,1); }
  .gm-scroll-down .gm-buybar{ bottom:0; padding-bottom:calc(10px + env(safe-area-inset-bottom)); }

  /* Readable minimums (audit: 17–44 labels under 11px per page). */
  .gm-card-brand, .gm-card-variant, .gm-chip, .breadcrumb, .product__result p{ font-size:12px !important; }

  @media (prefers-reduced-motion:reduce){
    .gm-tabbar, .gm-mdepts, [data-rushstack-chat], .gm-buybar{ transition:none !important; }
  }
}

/* ---- Shop results on phone / iPad portrait (gm-shop.js adds html.gm-mshop) ---- */
@media (max-width: 1024px){
  /* The desktop toolbar, chip row and breadcrumb give way to one pinned bar. */
  .gm-mshop .product-lists-top, .gm-mshop #shopChips, .gm-mshop .breadcrumb__area{ display:none !important; }
  .gm-mshop .shop-area{ padding-top:0 !important; }
  .gm-mbar{
    position:sticky; top:calc(var(--gm-head-h) - 1px); z-index:900;
    margin:0 -12px 8px; background:#fff; border-bottom:1px solid var(--gm-line);
    box-shadow:0 6px 14px -12px rgba(18,22,46,.35);
    transition:top .22s ease;
  }
  .gm-mbar-chips{
    display:flex; gap:7px; align-items:center; overflow-x:auto; scrollbar-width:none;
    padding:9px 12px; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
  }
  .gm-mbar-chips::-webkit-scrollbar{ display:none; }
  .gm-mbar-chips > span{ display:contents; }
  .gm-mchip{
    position:relative; flex:0 0 auto; display:inline-flex; align-items:center; gap:6px;
    min-height:36px; padding:0 13px; border:1px solid #d7dbea; border-radius:99px; background:#fff;
    color:var(--gm-ink); white-space:nowrap; cursor:pointer;
    font:600 13.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  }
  .gm-mchip svg{ width:17px; height:17px; }
  .gm-mchip.on{ background:var(--gm-navy); border-color:var(--gm-navy); color:#fff; }
  .gm-mchip.on b{ font-size:16px; line-height:1; opacity:.85; }
  .gm-mchip-f i{
    font-style:normal; min-width:18px; height:18px; padding:0 5px; border-radius:99px;
    background:var(--gm-gold); color:var(--gm-gold-ink); font-size:11px; font-weight:800; line-height:18px; text-align:center;
  }
  .gm-mchip-sort select{ position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; font-size:16px; }
  .gm-mbar-info{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:0 12px 8px; font:500 13px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-muted);
  }
  .gm-mbar-info b{ color:var(--gm-ink); }
  .gm-mview{ display:inline-flex; border:1px solid #d7dbea; border-radius:9px; overflow:hidden; flex:0 0 auto; }
  .gm-mview button{ width:40px; height:34px; border:0; background:#fff; color:var(--gm-muted); display:flex; align-items:center; justify-content:center; cursor:pointer; }
  .gm-mview button + button{ border-left:1px solid #d7dbea; }
  .gm-mview button.on{ background:#eef0fb; color:var(--gm-navy); }
  .gm-mview svg{ width:19px; height:19px; }
  .sr-only{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

  /* Rows: picture left, details right */
  .gm-mlist{ display:grid; grid-template-columns:1fr; gap:0; margin:0 -12px; background:var(--gm-line); }
  .gm-mlist .product__item{ margin:0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
  /* the grid's grey background draws the divider lines; fill the empty cells
     after the last product (odd count in 2 or 3 columns) with white */
  .gm-mlist::after{ content:""; background:#fff; grid-column:auto / -1; }
  .gm-mrow{ display:flex; gap:12px; align-items:flex-start; background:#fff; padding:12px; margin-bottom:1px !important; }
  .gm-mrow-pic{ position:relative; flex:0 0 38%; max-width:170px; aspect-ratio:1/1; border-radius:10px; background:#f5f6fa; overflow:hidden; }
  .gm-mrow-pic a{ display:block; width:100%; height:100%; }
  .gm-mrow-pic img{ width:100%; height:100%; object-fit:contain; display:block; mix-blend-mode:multiply; }
  .gm-mrow-pic .gm-wish{ position:absolute; top:6px; right:6px; }
  .gm-mrow-info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; padding:0 !important; text-align:left !important; }
  .gm-mrow-brand{ font:700 11.5px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; letter-spacing:.06em; text-transform:uppercase; color:var(--gm-muted); }
  .gm-mrow-title{ margin:0 !important; font:600 15px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif !important;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .gm-mrow-title a{ color:var(--gm-ink) !important; }
  .gm-mrow-fit{ font:600 12.5px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#2e3a8c; }
  .gm-mrow-fit::before{ content:'✓ '; }
  .gm-mrow-price{ margin:2px 0 0 !important; display:flex; align-items:baseline; gap:6px; }
  .gm-mrow-price span{ font:800 21px/1.1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink); }
  .gm-mrow-price sup{ font-size:12px; top:-.55em; margin-left:1px; }
  .gm-mrow-price em{ font-style:normal; font:500 12.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-muted); }
  .gm-mrow-meta{ font:500 13px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#4a5270; }
  .gm-mrow-meta b{ color:var(--gm-ink); font-weight:700; }
  .gm-mrow-stock{ color:#15803d; font-weight:700; }
  .gm-mrow-stock.is-low{ color:#b45309; } .gm-mrow-stock.is-out{ color:#b42318; }
  .gm-mrow-eta{ font:500 13px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink); min-height:1px; }
  .gm-mrow-eta b{ color:#15803d; }
  .gm-mrow-btn{
    margin-top:7px !important; align-self:flex-start; min-height:40px; padding:0 22px !important; width:auto !important;
    border:0; border-radius:99px !important; background:var(--gm-gold) !important; color:var(--gm-gold-ink) !important;
    font:700 14px/40px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif !important; text-transform:none !important;
    display:inline-flex !important; align-items:center; justify-content:center; text-decoration:none !important; letter-spacing:0 !important;
  }
  .gm-mrow-btn.is-ghost{ background:#fff !important; border:1.5px solid var(--gm-navy); color:var(--gm-navy) !important; }
  /* Tiles (grid view): 2 across on phones */
  .gm-mlist.is-tiles{ grid-template-columns:1fr 1fr; gap:1px; }
  .gm-mtile{ background:#fff; padding:10px; display:flex; flex-direction:column; gap:8px; }
  .gm-mtile .gm-mrow-pic{ flex:none; max-width:none; width:100%; }
  .gm-mtile .gm-mrow-title{ font-size:13.5px !important; -webkit-line-clamp:2; }
  .gm-mtile .gm-mrow-price span{ font-size:18px; }
  .gm-mempty{ background:#fff; padding:44px 20px; text-align:center; display:flex; flex-direction:column; gap:6px; color:var(--gm-muted); }
  .gm-mempty b{ color:var(--gm-ink); font-size:16px; }
  .gm-mshop #shopMoreLoader{ padding:18px !important; }
  .gm-mshop #shopEnd{ font-size:13px !important; color:var(--gm-muted) !important; }
}
/* iPad portrait: rows in two columns, tiles in three */
@media (min-width: 700px) and (max-width: 1024px){
  .gm-mlist.is-rows{ grid-template-columns:1fr 1fr; gap:1px; }
  .gm-mlist.is-tiles{ grid-template-columns:repeat(3,1fr); }
  .gm-mrow-pic{ flex-basis:40%; }
}

/* The desktop condensing header leaves a spacer sized for the TALL desktop
   header; under the phone shell that was a 40px empty band on every page. */
@media (max-width: 1024px){
  html.gm-mobile .gm-hdr-spacer{ display:none !important; height:0 !important; }
}

/* ==========================================================================
   Phase 2 — filter panel, back to top, product page (≤1024px)
   ========================================================================== */
@media (max-width: 1024px){
  /* Filter panel: slides up from the bottom and fills the screen, like Amazon's. */
  #shopDrawer.gm-sheet{
    top:auto !important; left:0 !important; right:0 !important; bottom:0 !important;
    width:100% !important; max-width:none !important; height:calc(100% - 44px - env(safe-area-inset-top)) !important;
    border-radius:18px 18px 0 0; transform:translateY(105%) !important;
    transition:transform .3s cubic-bezier(.32,.72,0,1) !important; z-index:1400 !important;
    display:flex !important; flex-direction:column; background:#fff;
    box-shadow:0 -18px 40px -16px rgba(12,15,33,.45);
  }
  #shopDrawer.gm-sheet.open{ transform:translateY(0) !important; }
  #shopDrawerBg{ z-index:1399 !important; }
  .gm-sheet .gm-drawer-head{
    position:relative; display:flex !important; align-items:center; gap:10px;
    padding:20px 14px 12px 18px !important; border-bottom:1px solid var(--gm-line);
    font:800 18px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink);
  }
  .gm-sheet .gm-drawer-head > span:not(.gm-sheet-grab){ flex:1 1 auto; }
  .gm-sheet-grab{ position:absolute; top:7px; left:50%; width:40px; height:5px; margin-left:-20px; border-radius:9px; background:#d4d7e4; }
  .gm-sheet-clear{ border:0; background:none; color:#2e3a8c; font:700 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; padding:12px 8px; cursor:pointer; }
  .gm-sheet #shopDrawerClose{ width:44px; height:44px; border-radius:12px; border:0; background:#f1f2f7; font-size:24px; line-height:1; cursor:pointer; }
  .gm-sheet .gm-drawer-body{ flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:6px 18px 20px !important; }
  .gm-sheet .product-widget{ margin-bottom:18px !important; padding-bottom:16px; border-bottom:1px solid #f0f1f6; }
  .gm-sheet .product-widget .pt-title, .gm-sheet .product-widget h4, .gm-sheet .product-widget .widget-title{ font-size:13px !important; letter-spacing:.08em; text-transform:uppercase; color:var(--gm-muted) !important; }
  .gm-sheet a, .gm-sheet label, .gm-sheet .single-widget-category a{ min-height:44px; display:flex; align-items:center; }
  .gm-sheet-foot{ flex:0 0 auto; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--gm-line); background:#fff; }
  .gm-sheet-show{ width:100%; min-height:50px; border:0; border-radius:99px; background:var(--gm-navy); color:#fff; font:700 16px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; cursor:pointer; }
  html.gm-sheet-open, html.gm-sheet-open body{ overflow:hidden !important; }
  html.gm-sheet-open .gm-tabbar, html.gm-sheet-open [data-rushstack-chat]{ visibility:hidden; }

  /* Back to top */
  .gm-totop{
    position:fixed; left:50%; transform:translateX(-50%); z-index:1150;
    bottom:calc(var(--gm-tabbar-h) + 14px + env(safe-area-inset-bottom));
    display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 16px;
    border:0; border-radius:99px; background:#fff; color:var(--gm-navy);
    box-shadow:0 8px 22px -8px rgba(12,15,33,.45), 0 0 0 1px var(--gm-line);
    font:700 13.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; cursor:pointer;
    transition:bottom .24s cubic-bezier(.32,.72,0,1);
  }
  .gm-totop svg{ width:17px; height:17px; }
  .gm-totop[hidden]{ display:none !important; }
  html.gm-scroll-down .gm-totop{ bottom:calc(14px + env(safe-area-inset-bottom)); }

  /* Product page, Amazon order: brand · title · photos · price · stock · delivery ·
     compatibility · condition · buy. The info column is flattened so its pieces
     can sit around the gallery. */
  .gm-mobile .breadcrumb__area{ display:none !important; }
  .gm-pd-top{ display:flex !important; flex-direction:column; gap:10px !important; padding-bottom:28px !important; }
  .gm-pd-info{ display:contents !important; }
  .gm-pd-info > *{ order:30; margin-top:0; }
  .gm-pd-brand{ order:1; margin:6px 0 0 !important; }
  .gm-pd-title{ order:2; font-size:21px !important; line-height:1.28 !important; letter-spacing:-.01em !important; margin:0 !important; }
  .gm-pd-sub{ order:3; margin:0 !important; font-size:13px !important; }
  .gm-pd-gallery{ order:4; width:100%; max-width:none !important; }
  .gm-pd-price{ order:6; font-size:28px !important; margin:4px 0 0 !important; }
  .gm-pd-stockbox{ order:7; }
  .gm-pd-eta{ order:8; }
  .gm-pd-compat{ order:9; }
  .gm-pd-cond{ order:10; }
  .gm-pd-buy{ order:11; }
  .gm-pd-contact{ order:12; }
  .gm-pd-sellers{ order:13; }
  .gm-pd-perks{ order:14; }
  .gm-pd-main{ min-height:0 !important; aspect-ratio:1/1; border-radius:16px !important; }
  .gm-pd-thumbs{ flex-direction:row !important; overflow-x:auto !important; scrollbar-width:none; gap:8px !important; }
  .gm-pd-thumb{ width:58px !important; flex:0 0 58px !important; }
  .gm-pd-dots{ display:flex; justify-content:center; gap:6px; margin-top:8px; }
  .gm-pd-dots i{ width:7px; height:7px; border-radius:50%; background:#cfd3e3; }
  .gm-pd-dots i.on{ background:var(--gm-navy); width:18px; border-radius:9px; }
  .gm-pd-eta{
    display:flex; align-items:flex-start; gap:10px; padding:11px 13px; border-radius:12px;
    background:#f3f8f4; color:var(--gm-ink); font:500 14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  }
  .gm-pd-eta b{ color:#15803d; }
  .gm-pd-eta svg{ width:20px; height:20px; flex:0 0 auto; color:#15803d; margin-top:1px; }
  .gm-pd-eta small{ display:block; color:var(--gm-muted); font-size:12.5px; }
}
@media (min-width: 700px) and (max-width: 1024px){
  /* iPad portrait: picture and buy box side by side would be cramped at 820px —
     keep one column but cap the photo so price and buttons stay in view. */
  .gm-pd-gallery{ max-width:560px !important; margin-inline:auto; }
}

/* Shop tab (/departments/ on phones & iPad portrait) */
@media (max-width: 1024px){
  html.gm-snav-on main > *:not(.gm-snav){ display:none !important; }
  .gm-snav{ padding:14px 14px 28px; background:#f5f6fb; min-height:60vh; }
  .gm-snav-loading{ padding:40px 10px; text-align:center; color:var(--gm-muted); font-size:15px; }
  .gm-snav-head{ display:flex; flex-direction:column; gap:6px; margin-bottom:6px; }
  .gm-snav-crumbs{ font:500 13px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-muted); }
  .gm-snav-crumbs a{ color:#2e3a8c !important; font-weight:600; }
  .gm-snav-head h1{ margin:0; font:800 24px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink); letter-spacing:-.01em; }
  .gm-snav-all{ align-self:flex-start; display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border-radius:99px;
    background:var(--gm-navy); color:#fff !important; font:700 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; text-decoration:none !important; }
  .gm-snav-sec{ margin:18px 2px 8px; font:800 12px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; letter-spacing:.1em; text-transform:uppercase; color:var(--gm-muted); }
  .gm-snav-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
  .gm-snav-tile{ display:flex; flex-direction:column; gap:6px; min-height:104px; padding:13px; border-radius:14px; background:#fff;
    border:1px solid var(--gm-line); text-decoration:none !important; color:var(--gm-ink) !important; }
  .gm-snav-tile:active{ background:#eef0fb; }
  .gm-snav-ic{ width:38px; height:38px; border-radius:11px; background:linear-gradient(145deg,#e8ebfa,#d3d9f3); color:var(--gm-navy);
    display:flex; align-items:center; justify-content:center; font:800 17px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-snav-n{ font:700 15px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-snav-c{ margin-top:auto; font:500 12.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-muted); }
  .gm-snav-series{ background:#fff; border:1px solid var(--gm-line); border-radius:14px; padding:12px 13px; margin-bottom:10px; }
  .gm-snav-series-h{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; min-height:32px; text-decoration:none !important; color:var(--gm-ink) !important; }
  .gm-snav-series-h b{ font:700 16px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-snav-series-h em{ font-style:normal; font-weight:600; font-size:13px; color:var(--gm-muted); }
  .gm-snav-series-h span{ font:600 13px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#2e3a8c; white-space:nowrap; }
  .gm-snav-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
  .gm-snav-chips a{ display:inline-flex; align-items:center; gap:5px; min-height:38px; padding:0 13px; border-radius:99px; border:1px solid #d7dbea;
    background:#f7f8fd; color:var(--gm-ink) !important; text-decoration:none !important; font:600 13.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-snav-chips a span{ color:var(--gm-muted); font-weight:500; font-size:12px; }
}
@media (min-width: 700px) and (max-width: 1024px){
  .gm-snav{ padding:20px 24px 40px; }
  .gm-snav-grid{ grid-template-columns:repeat(3,1fr); }
}

/* ==========================================================================
   Phase 3 — cart page, account grid, checkout (≤1024px)
   ========================================================================== */
@media (max-width: 1024px){
  html.gm-mcart-on main > *:not(.gm-mcart){ display:none !important; }
  .gm-mcart{ background:#fff; min-height:60vh; padding-bottom:24px; }
  .gm-mcart-tabs{ display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; padding:0 12px; background:var(--gm-navy); }
  .gm-mcart-tabs::-webkit-scrollbar{ display:none; }
  .gm-mcart-tabs button{ flex:0 0 auto; min-height:46px; padding:0 12px; border:0; background:none; color:#d9ddf7;
    font:600 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; border-bottom:3px solid transparent; cursor:pointer; }
  .gm-mcart-tabs button[aria-selected="true"]{ color:#fff; border-bottom-color:var(--gm-gold); }
  .gm-mcart-msg{ margin:14px 14px 0; padding:12px 14px; border:1.5px solid #2e3a8c; border-left-width:6px; border-radius:10px;
    font:700 14.5px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink); }
  .gm-mcart-sub{ padding:16px 14px 6px; font:500 18px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink); }
  .gm-mcart-sub b{ font-weight:800; }
  .gm-mcart-go{ display:block; width:calc(100% - 28px); margin:8px 14px 4px; min-height:52px; border:0; border-radius:99px;
    background:var(--gm-gold); color:var(--gm-gold-ink); font:700 16.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; cursor:pointer; }
  .gm-mcart-go[disabled]{ opacity:.5; cursor:not-allowed; }
  .gm-mcart-all{ margin:8px 14px 0; min-height:40px; border:0; background:none; padding:0; color:#2e3a8c;
    font:600 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; cursor:pointer; }
  .gm-mcart-list{ margin-top:10px; border-top:1px solid var(--gm-line); }
  .gm-mci{ display:flex; gap:12px; padding:14px 14px; border-bottom:1px solid var(--gm-line); background:#fafbfd; align-items:flex-start; }
  .gm-mci.is-off{ opacity:.6; }
  .gm-mci-tick{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:28px; min-height:44px; margin:-8px -4px 0 -6px; }
  .gm-mci-tick input{ width:20px; height:20px; accent-color:var(--gm-navy); cursor:pointer; }
  .gm-mci-img{ flex:0 0 30%; max-width:130px; aspect-ratio:1/1; border-radius:10px; background:#fff; overflow:hidden; display:block; border:1px solid var(--gm-line); }
  .gm-mci-img img{ width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
  .gm-mci-info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:4px; }
  .gm-mci-name{ color:var(--gm-ink) !important; text-decoration:none !important; font:600 15px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .gm-mci-cond{ align-self:flex-start; font:600 12px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#4a5270; background:#eef1f8; padding:4px 8px; border-radius:6px; }
  .gm-mci-price{ font:800 19px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:var(--gm-ink); }
  .gm-mci-price em{ font-style:normal; font-size:12px; font-weight:700; color:#2e3a8c; }
  .gm-mci-stock{ font:600 13px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#15803d; }
  .gm-mci-stock .is-low{ color:#b45309; }
  .gm-mci-acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
  .gm-mci-qty{ display:inline-flex; align-items:center; border:2.5px solid var(--gm-gold); border-radius:99px; background:#fff; }
  .gm-mci-qty button{ width:40px; height:38px; border:0; background:none; font-size:20px; line-height:1; color:var(--gm-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .gm-mci-qty button[disabled]{ opacity:.35; }
  .gm-mci-qty b{ min-width:26px; text-align:center; font:700 16px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-mci-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 14px; border:1px solid #c9cedf; border-radius:99px;
    background:#fff; color:var(--gm-ink) !important; text-decoration:none !important; font:600 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; cursor:pointer; }
  .gm-mci-btn.is-pri{ background:var(--gm-gold); border-color:var(--gm-gold); color:var(--gm-gold-ink) !important; }
  .gm-mci-ic{ width:40px; padding:0; }
  .gm-mcart-empty{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:48px 20px; text-align:center; color:var(--gm-muted);
    font:500 14.5px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-mcart-empty b{ color:var(--gm-ink); font-size:18px; }
  .gm-mcart-empty a{ margin-top:6px; display:inline-flex; align-items:center; min-height:44px; padding:0 20px; border-radius:99px; background:var(--gm-navy); color:#fff !important; text-decoration:none !important; font-weight:700; }
  .gm-mtoast{ position:fixed; left:50%; bottom:calc(var(--gm-tabbar-h) + 22px + env(safe-area-inset-bottom)); transform:translate(-50%,20px); opacity:0;
    z-index:2000; max-width:calc(100% - 32px); padding:11px 18px; border-radius:12px; background:#12162e; color:#fff; pointer-events:none;
    font:600 14px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; transition:opacity .2s, transform .2s; word-break:break-all; }
  .gm-mtoast.show{ opacity:1; transform:translate(-50%,0); }
  .gm-mcart-back{ display:flex; align-items:center; min-height:44px; padding:0 14px; color:#2e3a8c !important; text-decoration:none !important;
    font:700 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; background:#fff; border-bottom:1px solid var(--gm-line); }

  /* Account: tile grid instead of the sidebar */
  html.gm-acgrid-on .gm-ac-sb{ display:none !important; }
  html.gm-acgrid-on .gm-ac-app{ display:block !important; }
  .gm-acgrid{ padding:0 0 16px; }
  .gm-acgrid[hidden], .gm-acback[hidden]{ display:none !important; }
  .gm-acgrid-hi{ margin:0 -12px 14px; padding:16px 16px 18px; background:var(--gm-navy); color:#dfe3ff;
    font:500 14px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; display:flex; flex-direction:column; }
  .gm-acgrid-hi b{ color:#fff; font-size:21px; font-weight:800; }
  .gm-acgrid-hi span{ opacity:.8; font-size:13px; }
  .gm-acgrid-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .gm-acgrid-t{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-height:96px; padding:14px; border-radius:14px;
    border:1px solid var(--gm-line); background:#fff; text-align:left; cursor:pointer; color:var(--gm-ink); }
  .gm-acgrid-t:active{ background:#eef0fb; }
  .gm-acgrid-t b{ font:700 15px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }
  .gm-acgrid-ic{ width:40px; height:40px; border-radius:11px; background:#eef0ff; color:var(--gm-navy); display:flex; align-items:center; justify-content:center; font-size:18px; }
  .gm-acgrid-ic svg{ width:22px; height:22px; }
  .gm-acgrid-t.is-out .gm-acgrid-ic{ background:#fdecea; color:#b42318; }
  .gm-acback{ display:flex; align-items:center; min-height:44px; margin:0 0 6px; padding:0; border:0; background:none; color:#2e3a8c; cursor:pointer;
    font:700 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; }

}
@media (min-width: 700px) and (max-width: 1024px){
  .gm-acgrid-tiles{ grid-template-columns:repeat(3,1fr); }
  .gm-mci-img{ flex-basis:22%; }
}

/* Phase 2/3 polish */
@media (max-width: 1024px){
  .gm-sheet .gm-drawer-head .gm-sheet-clear{ font-size:14.5px !important; width:auto !important; height:auto !important; background:none !important; color:#2e3a8c !important; }
  .gm-sheet .gm-drawer-head > span:not(.gm-sheet-grab){ font-size:18px !important; font-weight:800 !important; }
  /* Chat: above the product buy bar; not on the cart (Amazon shows none there). */
  html.gm-has-buybar [data-rushstack-chat]{ bottom:calc(var(--gm-tabbar-h) + 84px + env(safe-area-inset-bottom)) !important; }
  html.gm-has-buybar.gm-scroll-down [data-rushstack-chat]{ bottom:calc(84px + env(safe-area-inset-bottom)) !important; }
  html.gm-mcart-on [data-rushstack-chat]{ display:none !important; }
}


/* ---- Phase 1 review fixes ---- */
@media (max-width: 1024px){
  /* Logo must shrink before it runs under "Sign in" (iPhone SE, 360px Androids). */
  .gm-mhead__logo{ overflow:hidden; }
  .gm-mhead__logo img{ max-width:100%; height:auto !important; max-height:26px; object-fit:contain; object-position:left center; }
  /* Tap targets ≥ 44px and text ≥ 12px in the new UI */
  .gm-mchip{ min-height:42px; }
  .gm-mview button{ width:46px; height:42px; }
  .gm-mrow-pic .gm-wish{ width:44px !important; height:44px !important; }
  .gm-mrow-btn{ min-height:44px; line-height:44px !important; }
  .gm-mdepts a{ min-height:40px; }
  .gm-tabbar a{ font-size:12px; }
  .gm-mrow-brand{ font-size:12px; }
  /* Count + view switch now scroll with the list (the pinned bar is chips only). */
  .gm-mbar{ margin-bottom:0; }
  .gm-mbar-info{ padding:10px 0 10px; margin:0; }
  /* Cookie banner: above the raised cart bubble; chat hidden until answered. */
  .gmc{ bottom:calc(var(--gm-tabbar-h) + 30px + env(safe-area-inset-bottom)) !important; }
  body:has(.gmc) [data-rushstack-chat]{ display:none !important; }
}
@media (max-width: 380px){
  .gm-mhead{ gap:6px; }
  .gm-mhead__logo img{ max-height:22px; }
  .gm-mhead__signin{ font-size:13px; }
  .gmc-box{ padding:14px !important; }
  .gmc p{ font-size:13px !important; line-height:1.45 !important; }
  .gmc h2{ font-size:15px !important; }
  .gmc-btn{ flex-basis:40% !important; min-height:44px; }
}
@media (max-width: 1024px){
  /* Checkout: pinned total + Pay; no chat over the payment form. */
  html body:has(.gm-paybar) [data-rushstack-chat]{ display:none !important; }
  body:has(.gm-paybar) .co-wrap{ padding-bottom:90px; }
}
@media (max-width: 1024px){
  /* iPad portrait kept the desktop 2-column gallery (82px thumbs + photo), so the
     horizontal thumb row was squeezed into the 82px column. One column: photo,
     then the thumbnail strip under it. */
  .gm-pd-gallery{ display:grid !important; grid-template-columns:1fr !important; gap:10px !important; }
  .gm-pd-main{ grid-row:1; }
  .gm-pd-thumbs{ grid-row:2; max-height:none !important; }
  .gm-snav-chips a{ min-height:44px; }
}

/* ---- Phase 2/3 review fixes ---- */
@media (max-width: 1024px){
  /* Runaway endless scroll (Chrome/Android): scroll anchoring locked onto the
     footer/sentinel, so every appended batch dragged the page to the new
     bottom and triggered the next load. Anchor on the product rows instead. */
  .gm-mshop footer, .gm-mshop .gmx-ft, .gm-mshop #shopSentinel, .gm-mshop #shopMoreLoader,
  .gm-mshop #shopEnd, .gm-mshop #shopMoreBtnWrap, .gm-mshop .tp-pagination{ overflow-anchor:none; }
  /* Chat never on top of the filter panel. */
  html.gm-sheet-open [data-rushstack-chat]{ display:none !important; }
  /* Tap targets ≥ 44px */
  .gm-mchip{ min-height:44px; }
  .gm-mview button{ width:46px; height:44px; }
  .gm-totop{ min-height:44px; }
  .gm-sheet-clear{ min-height:44px; padding:0 10px !important; }
  .gm-snav-series-h{ min-height:44px; align-items:center; }
  .gm-snav-crumbs a{ display:inline-flex; align-items:center; min-height:44px; }
  .gm-snav-all{ min-height:44px; }
  .gm-mci-qty button{ width:44px; height:44px; }
  .gm-mci-btn{ min-height:44px; }
  .gm-mci-ic{ width:44px; }
  .gm-mci-tick{ width:44px; min-height:44px; margin:-10px -10px 0 -12px; }
  /* Text ≥ 12px */
  .gm-sheet .gm-fit-pill span, .gm-sheet .gm-fit-tile-c, .gm-sheet .gm-fit-tab span, .gm-sheet .n{ font-size:12px !important; }
  .gm-buybar__price small{ font-size:12px; }
  /* Product page: no category trail or duplicate SKU/UPC above the photo
     (both are still in the details further down). */
  .gm-pd-sub, .gm-pd-ids{ display:none !important; }
}
@media (max-width: 1024px){
  /* Shop tab — department artwork */
  .gm-snav-art{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:12px; }
  .gm-snav-artc{ position:relative; display:block; border-radius:16px; overflow:hidden; background:#eef2fb;
    box-shadow:0 1px 3px rgba(18,22,46,.08); }
  .gm-snav-artc:active{ transform:scale(.99); }
  .gm-snav-artc img{ display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
  .gm-snav-artn{ position:absolute; left:7%; bottom:8%; padding:5px 11px; border-radius:99px; background:rgba(255,255,255,.93);
    color:#1b2358; font:700 12.5px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; box-shadow:0 2px 8px rgba(18,22,46,.12); }
}
@media (min-width: 700px) and (max-width: 1024px){
  .gm-snav-art{ grid-template-columns:1fr 1fr; gap:16px; }
}
@media (max-width: 1024px){
  /* Category tiles: name only (owner, 2026-09-29) — no letter badge. */
  .gm-snav-tile{ min-height:72px; justify-content:space-between; gap:8px; padding:14px; }
  .gm-snav-n{ font-size:16px; }
}


/* ==========================================================================
   Chat (RushStack widget) on phones & iPad — 2026-09-29
   The widget's window is positioned relative to its launcher, 360×520. On a
   phone that put its header and close button ABOVE the top of the screen, and
   the old scale(.82) made it a small floating box with a 21px close button.
   Now: open = a real screen (header + close at the top, message box at the
   bottom) on phones, a large anchored panel on iPad. The window is the root's
   div child whose inline style shows display:flex while open.
   ========================================================================== */
@media (max-width: 1024px){
  html [data-rushstack-chat] > button{ width:56px !important; height:56px !important; }
  html [data-rushstack-chat] input, html [data-rushstack-chat] textarea{ font-size:16px !important; }  /* no iOS zoom */
  html [data-rushstack-chat] #nt-close{ min-width:44px !important; min-height:44px !important; font-size:28px !important;
    display:inline-flex !important; align-items:center !important; justify-content:center !important; }
  /* open: never hidden by the page's own rules */
  html body [data-rushstack-chat]:has(> div[style*="display: flex"]){ display:block !important; z-index:2147483600 !important; }
  html body:has([data-rushstack-chat] > div[style*="display: flex"]) .gm-tabbar,
  html body:has([data-rushstack-chat] > div[style*="display: flex"]) .gm-buybar,
  html body:has([data-rushstack-chat] > div[style*="display: flex"]) .gm-totop{ display:none !important; }
}
@media (max-width: 767px){
  html [data-rushstack-chat] > div[style*="display: flex"]{
    position:fixed !important; top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
    width:100% !important; max-width:none !important; height:100% !important; height:100dvh !important; max-height:none !important;
    border-radius:0 !important; padding-top:env(safe-area-inset-top) !important; background:#1626a2 !important;
  }
  html [data-rushstack-chat] > div[style*="display: flex"] > div:last-child{ background:#fafafa !important; padding-bottom:calc(16px + env(safe-area-inset-bottom)) !important; overflow-y:auto; }
  html [data-rushstack-chat] > div[style*="display: flex"] > div:first-child{ padding:12px 12px 12px 16px !important; }
  /* the round launcher sits under the full-screen chat — hide it while open */
  html [data-rushstack-chat]:has(> div[style*="display: flex"]) > button{ display:none !important; }
}
@media (min-width: 768px) and (max-width: 1024px){
  html [data-rushstack-chat] > div[style*="display: flex"]{
    position:fixed !important; right:20px !important; left:auto !important; top:auto !important;
    bottom:calc(88px + env(safe-area-inset-bottom)) !important; width:420px !important; max-width:calc(100vw - 40px) !important;
    height:min(640px, calc(100dvh - 180px)) !important; max-height:none !important;
  }
}


/* Footer on phones & iPad (owner, 2026-09-30): NO footer on any page, home
   included — only one small legal line at the very bottom (copyright, Privacy,
   Terms, Accessibility, Cookie settings). The bottom menu and the ☰ menu carry
   every other link. The laptop keeps the full footer. */
@media (max-width: 1024px){
  html.gm-mobile .footer__area{ display:none !important; }
  html.gm-mobile .gmx-ft{ display:block !important; background:transparent !important;
    padding:14px 16px 18px !important; margin:0 !important; border:0 !important; min-height:0 !important; }
  html.gm-mobile .gmx-ft .footer-grid,
  html.gm-mobile .gmx-ft .footer-bottom > span{ display:none !important; }
  html.gm-mobile .gmx-ft .footer-bottom{ display:flex !important; flex-direction:column; align-items:center;
    gap:6px; padding:12px 0 0 !important; margin:0 !important; border-top:1px solid #e6e8ee !important;
    text-align:center; font-size:11px !important; line-height:1.4; color:#8a90a0 !important; background:transparent !important; }
  html.gm-mobile .gmx-ft .footer-bottom p{ margin:0 !important; font-size:11px !important; color:#8a90a0 !important; }
  html.gm-mobile .gmx-ft .footer-bottom > div{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 12px; }
  html.gm-mobile .gmx-ft .footer-bottom a{ font-size:11px !important; color:#6b7280 !important;
    text-decoration:none; padding:0 !important; min-height:0 !important; }

  /* Home, phones & iPad only: no floating product labels, no "G · departments"
     badge, no four-point benefits strip (the laptop keeps all three). */
  .gm-home .hero .float-label, .gm-home .hero .hero-badge,
  .gm-home .benefits{ display:none !important; }
}
@media (min-width: 768px) and (max-width: 1024px){
  html [data-rushstack-chat]:has(> div[style*="display: flex"]) > button{ display:none !important; }
}

/* Department drill-down: A→Z letter headers on long brand lists (2026-09-30). */
@media (max-width: 1024px){
  .gm-snav-letter{ margin:14px 2px 6px; font-size:13px; font-weight:800; color:#263c97;
    letter-spacing:.04em; border-bottom:1px solid #e6e8ee; padding-bottom:4px; }
  .gm-snav-letter + .gm-snav-grid{ margin-top:0; }
}
