/* Applies to the two ordering surfaces only. No hostname/restaurant-specific overrides. */
.ax-kiosk-experience{--kx-surface:rgba(255,255,255,.84);--kx-line:rgba(148,163,184,.4)}
html[data-theme=dark] .ax-kiosk-experience{--kx-surface:rgba(22,32,50,.94);--kx-line:rgba(148,163,184,.35)}
.ax-kiosk-experience :is(.dish,.sheet,.drawer-card){background:var(--kx-surface);border-color:var(--kx-line)}
@supports(backdrop-filter:blur(12px)){.ax-kiosk-experience :is(.sheet,.drawer-card){backdrop-filter:blur(16px)}}
.ax-kiosk-experience #menu .dish :is(.pic,.dish-image){position:relative!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:4/3!important;overflow:hidden!important;background:transparent!important;flex:none!important}
.ax-kiosk-experience #menu .dish :is(.pic,.dish-image)>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;padding:0!important;border:0!important;box-shadow:none!important}
.ax-kiosk-experience #menu :is(.body,.dish-body){position:relative;background:transparent;min-width:0}
.ax-kiosk-experience :is(.cartRow,.cart-row){display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 0;min-width:0}
.ax-kiosk-experience :is(.cart-line-main,.cart-line-detail){min-width:0}
.ax-kiosk-experience .cart-line-photo{width:64px!important;height:64px!important;object-fit:contain!important;flex:none;float:left;margin-right:10px;border-radius:10px;background:transparent!important}
.ax-kiosk-experience :is(.cartRow,.cart-row) :is(b,.cart-row-name,.cart-choice){overflow-wrap:anywhere;white-space:normal}
.kx-line-actions{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1}
.kx-line-actions button,.kx-promotion-link{min-height:44px;border:1px solid #94a3b8;border-radius:10px;padding:8px 12px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.kx-line-note{grid-column:1/-1;flex-basis:100%;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}
.kx-full-name summary{cursor:pointer}.kx-full-name div{font-weight:400}
.kx-cart-icon{font-size:1.4em;line-height:1;flex:none}
.ax-kiosk-experience #cartBtn{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}
.ax-kiosk-experience #cartBtn :is(.cartAmount,#cartBarTotal){margin-left:auto}
.ax-kiosk-experience :is(#cartOverlay .sheet,#cartPanel .drawer-card){width:min(760px,calc(100% - 24px))!important;max-height:90vh!important;max-height:90dvh!important;overflow:auto!important;box-sizing:border-box;border-radius:20px!important;padding:16px!important}
.ax-kiosk-experience :is(.cart-dialog-head,#cartPanel .drawer-head){position:sticky;top:-16px;z-index:10;background:var(--kx-surface);padding:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ax-kiosk-experience :is(#cartCloseX,#closeCart){min-width:44px;min-height:44px}
.kx-promotion-link{display:inline-flex;align-items:center;text-decoration:none;font-size:.9rem}.kx-promotion-link[hidden]{display:none!important}
.kx-note-overlay{position:fixed;inset:0;z-index:100010;background:rgba(15,23,42,.65);display:grid;place-items:center;padding:12px}
.kx-note-panel{width:min(500px,100%);max-height:90vh;overflow:auto;box-sizing:border-box;padding:20px;background:#f8fafc;color:#172033;border-radius:20px}
.kx-note-panel textarea{width:100%;box-sizing:border-box;min-height:120px;font:inherit;margin:0 0 14px;padding:10px}
.kx-promotion-panel{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1100px,100%);height:92vh;height:92dvh;background:#edf2fa;color:#172033;border-radius:18px;overflow:hidden}.kx-promotion-panel>header{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 14px}.kx-promotion-panel button{min-width:44px;min-height:44px;border:1px solid #94a3b8;border-radius:10px;background:white;color:#172033;font-size:24px}.kx-promotion-panel iframe{width:100%;height:100%;border:0}
@media(max-width:480px){.ax-kiosk-experience :is(#cartOverlay .sheet,#cartPanel .drawer-card){width:100%!important;max-height:94dvh!important}.ax-kiosk-experience .cart-line-photo{width:50px!important;height:50px!important}.kx-line-actions button{flex:1}.ax-kiosk-experience :is(.qty button,.add,.dish-add){min-width:44px;min-height:44px}}
@media(max-height:500px) and (orientation:landscape){.ax-kiosk-experience :is(header.top,header.topbar){position:relative!important;top:auto!important}.ax-kiosk-experience .page{padding-bottom:140px}.ax-kiosk-experience :is(#cartOverlay .sheet,#cartPanel .drawer-card){max-height:94vh!important;max-height:94dvh!important}}

/* Phone browsing: the full multi-row header must not cover the menu while scrolling.
   Keep the existing fixed cart footer and tablet/desktop layout. */
@media (max-width: 767px), (max-width: 960px) and (max-height: 520px) {
  body.kiosk-takeaway-page > header.top { position: relative !important; top: auto !important; }
  body.kiosk-takeaway-page > header.top .cats { touch-action: pan-x pan-y; }
}
