/* v1418 — Food mobile cart stabilization. No DOM mutation. */
@media (max-width: 639px) {
  /* The header cart is now the only mobile cart entry point. */
  body [data-food-mobile-sticky-cart] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body > [data-food-cart-drawer] {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  body > [data-food-cart-drawer] > aside,
  body > [data-food-cart-drawer] > [data-food-light-surface="cart-drawer"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0f172a !important;
  }

  body [data-food-cart-drawer] [data-food-cart-scroll-body] {
    display: block !important;
    flex: 1 1 0% !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    background: #fff !important;
    color: #0f172a !important;
  }

  body [data-food-cart-drawer] [data-food-cart-footer] {
    flex: 0 0 auto !important;
    position: relative !important;
    inset: auto !important;
    margin-top: 0 !important;
    background: #fff !important;
    color: #0f172a !important;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
  }

  /* Restore close, minus, plus and remove controls in the light cart. */
  body [data-food-cart-drawer] button {
    visibility: visible !important;
  }
  body [data-food-cart-drawer] button svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #0f172a !important;
    stroke: currentColor !important;
    -webkit-text-fill-color: initial !important;
  }
  body [data-food-cart-drawer] button svg path,
  body [data-food-cart-drawer] button svg line,
  body [data-food-cart-drawer] button svg polyline,
  body [data-food-cart-drawer] button svg circle {
    visibility: visible !important;
    opacity: 1 !important;
    stroke: currentColor !important;
  }
  body [data-food-cart-drawer] [data-food-cart-scroll-body] button {
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }
  body [data-food-cart-drawer] [data-food-cart-scroll-body] button.text-rose-700,
  body [data-food-cart-drawer] [data-food-cart-scroll-body] button.text-rose-700 svg {
    color: #be123c !important;
    -webkit-text-fill-color: #be123c !important;
  }
}
