/* Shared mobile checkout layout. Payment and order data stay in their existing forms. */
@media (max-width: 760px) {
  :is(.order-form, .cart-order-form, [data-membership-form], [data-membership-lookup], [data-tracking-form]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select),
  .checkout-flow .custom-select [data-select-button],
  .checkout-flow .delivery-date-control [data-date-display] {
    font-family: var(--font-family-ui, "Segoe UI", Arial, sans-serif) !important;
    font-size: 16px !important;
    line-height: 1.4;
    min-height: 48px;
    scroll-margin-block: 18px;
  }
  .checkout-name-row,
  .cart-form-row,
  .membership-fields {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }
  body.cart-is-open > .site-header { visibility: hidden; }
  body.cart-is-open .support-chat { visibility: hidden; }
  .cart-drawer,
  .cart-drawer.open {
    inset: var(--form-viewport-top, 0px) 0 auto !important;
    height: var(--form-viewport-height, 100dvh) !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .cart-drawer .cart-card.checkout-wizard {
    box-sizing: border-box;
    width: 100%;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: max(14px, env(safe-area-inset-top)) 18px max(12px, env(safe-area-inset-bottom)) !important;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    scroll-padding-block: 18px;
    transform: none !important;
  }
  .checkout-wizard .checkout-header { margin-bottom: 12px; }
  .checkout-wizard .checkout-header h2 { font-size: 28px; }
  .checkout-wizard .checkout-close { min-width: 44px; min-height: 44px; }
  .checkout-wizard .checkout-bottom { bottom: -12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .form-keyboard-open .checkout-bottom { position: static !important; }
  .form-keyboard-open .checkout-bottom :is(.cart-summary, .square-quote, .checkout-action-note) { display: none !important; }
  .form-keyboard-open .checkout-wizard .checkout-eyebrow { display: none; }
  .form-keyboard-open .checkout-wizard .checkout-header { margin-bottom: 8px; }
}
