/* Public top bar on phones: brand + menu + cart + sign in + sign up must fit one row (they overflowed at 375px, hiding the menu button). */
@media (max-width:480px){
  .site-header:not(.mxa-bar){gap:8px}
  .site-header:not(.mxa-bar)>.brand{font-size:20px!important;letter-spacing:-.5px!important}
  .site-header:not(.mxa-bar)>.brand{width:auto!important;min-width:0!important;gap:0!important}
  .site-header:not(.mxa-bar) .brand-symbol{margin:0!important;margin-inline-end:8px!important;width:26px!important;height:26px!important}
  .site-header:not(.mxa-bar) .account-nav,.site-header:not(.mxa-bar) .guest-header-suite{gap:6px!important}
  .site-header:not(.mxa-bar) .auth-actions{gap:6px;padding-inline-start:0;margin-inline-start:0;border:0}
  .site-header:not(.mxa-bar) .auth-join{padding-inline:11px;gap:0}
  .site-header:not(.mxa-bar) .auth-join .icon{display:none!important}
  .site-header:not(.mxa-bar) .auth-signin{width:40px;padding-inline:0;justify-content:center}
  .site-header:not(.mxa-bar) .auth-signin .icon{display:block!important;width:18px!important;height:18px!important;opacity:1!important;visibility:visible!important}
  .site-header:not(.mxa-bar) .auth-signin span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (max-width:480px){
  .site-header:not(.mxa-bar)>.brand{font-size:0!important}
  .site-header:not(.mxa-bar) .brand-dot{display:none}
}

/* store-cards.css forces the desktop nav open with !important at every width, so the mobile menu panel covered the whole page.
   Restore the intended behaviour from responsive.css: hidden until the Menu button opens it. */
@media (max-width:1100px){
  html.responsive-ready body>header.site-header:not(.mxa-bar) #site-navigation{display:none!important;margin:0!important}
  html.responsive-ready body.mobile-nav-open>header.site-header:not(.mxa-bar) #site-navigation{display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:flex-start;gap:6px!important}
  html.responsive-ready body.mobile-nav-open>header.site-header:not(.mxa-bar) #site-navigation>a{display:flex!important;min-height:48px;padding:13px 16px!important;font-size:15px!important;white-space:normal!important;border-radius:9px!important}
}
/* Logged-in top bar on phones: the staff Dashboard pill, bell, avatar, cart, wallet and the Menu
   button were forced onto one non-wrapping row (~470-640px), which pushed the Menu button off the
   screen and gave the page a horizontal scroll. Collapse the pill to its icon (text stays available
   to screen readers), drop the wallet balance text where the row has no room for it (the balance
   stays on the wallet page and in the avatar menu), tighten the row, and on ultra-narrow screens
   move the wallet circle into the avatar menu. The avatar and notification dropdowns, which anchor
   to small header widgets and open half off-screen on phones, become fixed sheets under the bar.
   Cascade note: store-cards.css forces the row with ".home-discovery header.site-header", so the
   header overrides below repeat that shape to win the !important tie. */
@media (max-width:700px){
  .site-header:not(.mxa-bar) .crypto-wallet-balance{display:none!important}
}
@media (max-width:600px){
  .site-header:not(.mxa-bar) .staff-shortcut span,
  .site-header:not(.mxa-bar) .staff-shortcut .creator-review-count{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
  .site-header:not(.mxa-bar) .staff-shortcut{padding:0 10px!important;gap:0!important;justify-content:center!important;min-width:34px!important}
  .site-header .account-dropdown .account-menu,.site-notif-menu{position:fixed!important;top:70px!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important}
  header.site-header:not(.mxa-bar),.home-discovery header.site-header:not(.mxa-bar){gap:12px!important;padding-left:14px!important;padding-right:14px!important}
  .site-header:not(.mxa-bar)>.account-nav{gap:8px!important}
  .site-header:not(.mxa-bar) .user-header-suite{gap:6px!important}
}
@media (max-width:340px){
  .site-header:not(.mxa-bar) .header-crypto-wallet-pill{display:none!important}
}
