/* Purchase-critical invariants. Keep this narrow: tenant themes still own visual branding. */
html, body.store-shell { max-width: 100%; }
body.store-shell { overflow-x: clip; }
body.store-shell :focus-visible { outline: 3px solid var(--store-accent, #3874ff) !important; outline-offset: 3px !important; }
body.store-shell img, body.store-shell svg, body.store-shell video, body.store-shell canvas { max-width: 100%; }
body.store-shell :is(input, select, textarea):-webkit-autofill,
body.store-shell :is(input, select, textarea):-webkit-autofill:hover,
body.store-shell :is(input, select, textarea):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--store-ink, #31374a) !important;
  box-shadow: 0 0 0 1000px var(--store-surface, #fff) inset !important;
  caret-color: var(--store-ink, #31374a);
}

@media (forced-colors: active) {
  body.store-shell :focus-visible { outline-color: Highlight !important; }
  body.store-shell .checkout-mobile-action, body.store-shell .store-offline-banner { border: 1px solid CanvasText; }
}

@media (max-width: 575.98px) {
  body.store-shell :is(h1, h2, h3, h4, h5, h6, label, legend, .btn, .dropdown-item) { overflow-wrap: anywhere; }
  body.store-shell .product-launch-tile { height: auto; min-height: 18.75rem; width: min(15.625rem, calc(100vw - 3rem)); }
  body.store-shell .checkout-mobile-action { flex-wrap: wrap; }
  body.store-shell .checkout-mobile-action strong { white-space: normal; }
  body.store-shell .form-control, body.store-shell .form-select { font-size: 16px !important; min-height: 44px !important; }
  body.store-shell :is(button, summary, [role="button"], a.btn, .page-link, input[type="button"], input[type="submit"], input[type="reset"]) { min-height: 44px !important; }
  body.store-shell :is(.store-nav-toggle, .store-theme-toggle, .store-account, .product-card-configure) { min-height: 44px !important; min-width: 44px !important; }
  body.store-shell :is(.store-cart, .app-toast-close, .btn-close) { min-height: 44px !important; min-width: 44px !important; }
  body.store-shell .store-navigation :is(a, .store-nav-disabled) { min-height: 44px !important; }
  body.store-shell .checkout-mobile-action { display: flex; padding-bottom: calc(.75rem + env(safe-area-inset-bottom)) !important; position: fixed !important; }
  body:has(.view-cart-checkout :is(input, select, textarea):focus) .checkout-mobile-action { display: none !important; }
  body.store-shell.view-cart-checkout .store-content { padding-bottom: calc(7rem + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 520px) {
  body.store-shell .store-tile h2, body.store-shell .store-tile p { overflow-wrap: anywhere; }
  body.store-shell .store-tile p { -webkit-line-clamp: unset; }
}

@media (max-height: 500px) and (orientation: landscape) {
  body.store-shell .store-navigation { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); padding-top: .75rem; }
  body.store-shell .store-page-header-inner { padding-top: .75rem; }
  body.store-shell .store-content { padding-bottom: 1.5rem; padding-top: .75rem; }
  body.store-shell .appearance-publish-dialog { max-height: calc(100dvh - 1rem); }
}

@media (min-width: 992px) {
  body.store-shell .checkout-mobile-action { display: none !important; }
}
