body.mp-page.cart-is-empty .side-stack,
body.mp-page.cart-is-empty #accountChoicePanel,
body.mp-page.cart-is-empty #customerPanel,
body.mp-page.cart-is-empty #checkoutPanel { display: none !important; }
body.mp-page.cart-is-empty .layout { grid-template-columns: minmax(0, 1fr); }
.cart-empty .btn { margin-top: 12px; }
.product-reviews-jump { display: inline-block; margin-bottom: 14px; color: var(--accent-2); font-size: .85rem; text-underline-offset: 4px; }
.review-reward-banner { margin-block: 14px; padding: 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft, var(--surface-2)); color: var(--text); font-size: .85rem; line-height: 1.9; }
.review-reward-banner[hidden], #reviewRewardSaving[hidden] { display: none; }
body.mp-home[data-theme] .qs-item { display: grid; gap: 12px; padding: 18px; }
.quick-weight-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-weight { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); padding: 10px 12px; font: inherit; font-size: .8rem; cursor: pointer; min-height: 44px; }
.quick-weight[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.quick-weight:disabled { opacity: .45; cursor: not-allowed; }
.quick-order-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-selected-price { color: var(--accent-2); font-size: .86rem; }
body.mp-overlay-open #supportWidget { visibility: hidden; pointer-events: none; }
.quick-cart-link { color: var(--accent-2); font-size: .8rem; margin-inline-start: auto; }
body.mp-home .qs-header { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 12px; }
body.mp-home .qs-header > span { min-width: 0; text-align: start; }
/* Reserve a column for closing instead of overlaying the header content. */
body.mp-home .qs-header .qs-close { position: static; inset: auto; transform: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.quick-cart-link { background: var(--accent-soft); padding: 5px 8px; border-radius: 8px; }
body .storefront-nav, .product-buybar { display: none; }
/* Feedback must never intercept a tap on the controls beneath it. */
body.mp-page .toast { pointer-events: none; }
@media (max-width: 768px) {
  body .storefront-nav { display: flex; position: fixed; inset: auto 0 0; z-index: 2900; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(10, 35, 70, .06); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); min-height: 64px; box-sizing: border-box; gap: 0; }
  .storefront-nav > a { flex: 1; display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; text-decoration: none; color: var(--text-soft); font-size: .68rem; }
  .storefront-nav > a[aria-current="page"] { color: var(--accent-2); }
  .storefront-nav-icon { font-size: 25px; line-height: 1.1; }
  .storefront-nav-icon svg { width: 23px; height: 23px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
  .storefront-cart-count { position: absolute; top: 0; inset-inline-end: calc(50% - 25px); background: var(--action-color); color: #fff; border-radius: 12px; padding: 0 5px; font-size: .65rem; }
  .storefront-cart-count[hidden] { display: none; }
  body.mp-page #mpSiteFooter { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.mp-home .account-chip, body.mp-page :is(.account-chip, .account-pill) { min-width: 44px; max-width: 70px; min-height: 38px; padding-inline: 10px; font-size: .75rem; border-radius: 12px; }
  body.mp-page .main-header-inner { min-height: 62px; }
  body.mp-home.mp-header-compact:not(.mp-search-active) .main-header-inner { padding-block: 5px !important; gap: 5px !important; }
  body.mp-home.mp-header-compact:not(.mp-search-active) .header-search { height: 38px !important; }
  body.mp-home.mp-header-compact:not(.mp-search-active) .categories-bar { display: none; }
  body.mp-page .media img { max-height: 230px; aspect-ratio: 1.5; }
  body.mp-page .media { padding: 10px; }
  body.mp-page .info h1 { font-size: clamp(1.35rem, 5.4vw, 1.8rem); line-height: 1.8; }
  body.mp-page .info { padding: 20px; }
  #sizeOptions { scroll-margin-top: 100px; }
  body.mp-has-buybar .product-buybar { display: flex; position: fixed; bottom: calc(64px + env(safe-area-inset-bottom)); inset-inline: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--border); z-index: 2901; box-shadow: 0 -4px 18px rgba(10, 35, 70, .05); }
  body.mp-has-buybar .product-buybar[hidden] { display: none; }
  .product-buybar > span { color: var(--accent-2); font-size: .8rem; }
  .product-buybar .btn { min-height: 44px; font-size: .8rem; white-space: nowrap; }
  body.mp-has-buybar #mpSiteFooter { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  body.mp-page .toast { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
  body.mp-has-buybar .toast { bottom: calc(154px + env(safe-area-inset-bottom)); }
  body:has(:is(textarea, input:not([type]), input:is([type="text"], [type="search"], [type="email"], [type="tel"], [type="password"], [type="number"], [type="url"])):focus) .product-buybar,
  body:has(:is(textarea, input:not([type]), input:is([type="text"], [type="search"], [type="email"], [type="tel"], [type="password"], [type="number"], [type="url"])):focus) .storefront-nav { display: none; }
  .quick-order-actions { flex-wrap: wrap; }
  body.mp-home .qs-header { gap: 8px; padding-inline: 12px; }
}
