/* EatsOne V343.12.48.85 — desktop-short-height RWD for common storefront pages.
 * In particular 1366x607. Do not scale all text or lock body height.
 * All product variants, cart, delivery fields, invoices, and payments keep their original event markup.
 */
@media (max-height:740px) and (min-width:900px){
  .site-header .nav-wrap{height:55px;gap:15px}
  .site-header .brand-logo{width:36px;height:36px;border-radius:9px}
  .site-header .brand-title{font-size:18px}
  .site-header .nav{gap:18px;font-size:13px}
  .hero{padding-top:30px;padding-bottom:20px}
  .hero-grid{gap:26px}
  .hero-title{font-size:clamp(36px,4.2vw,62px)}
  .hero-subtitle{margin:10px 0 14px}
  .hero-actions{margin-top:16px}
  .feature-row{margin-top:22px;gap:15px}
  .order-hybrid-page{padding-top:16px!important}
  .order-hybrid-page .order-hero-top{margin-bottom:12px!important;gap:12px}
  .order-hybrid-page .order-toolbar-card{padding:12px 15px!important;margin-bottom:12px!important}
  .order-hybrid-page .order-hybrid-grid{gap:13px!important}
  .order-hybrid-page .order-category-panel{padding:12px!important}
  .order-hybrid-page .order-left-sidebar,.order-hybrid-page .order-right-sidebar{gap:10px!important}
  .order-hybrid-page .order-left-sidebar{
    top:67px!important;max-height:calc(100vh - 76px)!important;max-height:calc(100dvh - 76px)!important;
    overflow-y:auto!important;overscroll-behavior:contain;
  }
  .order-hybrid-page .order-right-sidebar{min-width:0}
  .order-hybrid-page .order-right-sidebar :is(.order-cart-panel,.panel){
    top:67px!important;max-height:calc(100vh - 78px);max-height:calc(100dvh - 78px);
    overflow-y:auto;overscroll-behavior:contain;
  }
  .order-hybrid-page .order-category-list{gap:4px}
  .order-hybrid-page .order-category-list a{padding:7px 9px;border-radius:9px}
  .influencer-front83{margin-top:11px!important}
  .influencer-front-banner83{max-height:180px!important;object-fit:cover!important}
  .influencer-front-text83{padding:12px 15px!important;margin-top:7px!important}
  .influencer-front-text83 h1{font-size:24px!important;margin:4px 0!important}
  .influencer-front-text83 p{margin:5px 0!important;font-size:12px!important}
  .checkout-page-v152{padding-top:12px!important}
  .checkout-layout-v152{gap:14px;grid-template-columns:minmax(0,1fr) minmax(275px,315px)}
  .checkout-panel-v152{padding:14px 16px}
  .checkout-main-column-v152,.checkout-side-v152{gap:11px}
  .checkout-side-v152{top:64px;max-height:calc(100vh - 75px);max-height:calc(100dvh - 75px);overflow-y:auto;overscroll-behavior:contain}
  .checkout-summary-card-v152 .asset-checkout-footer{margin:12px -16px -14px}
}
/* Scroll within product detail — do not clip variant/add-on/checkout actions under 607px viewport. */
@media (max-height:740px) {
  .modal-card{max-height:100vh!important;max-height:100dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
  .modal-img{height:min(190px,31dvh)!important;object-fit:cover}
  .modal-content{padding-bottom:max(115px,env(safe-area-inset-bottom))!important}
  .v147-modal-card{max-height:calc(100vh - 16px)!important;max-height:calc(100dvh - 16px)!important}
  .v147-modal-scroll{max-height:calc(100vh - 90px)!important;max-height:calc(100dvh - 90px)!important;overflow-y:auto!important}
  .order-product-modal-v253,.product-modal-v253{max-height:100dvh!important}
}
/* Wider tables never force the whole page horizontally offscreen. */
.checkout-layout-v152,.order-hybrid-grid{min-width:0}
.checkout-layout-v152>*,.order-hybrid-grid>*{min-width:0}
@media (max-width:980px){
  .checkout-layout-v152{grid-template-columns:minmax(0,1fr)!important}
  .checkout-side-v152{position:static!important;max-height:none!important;overflow:visible!important}
}
