:root {
  color: #1f2937;
  background: #f9fafb;
  font-family: "Kanit", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --card: #fff;
  --muted: #64748b;
  --navigation-height: 62px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; padding-bottom: 92px; background: #f9fafb; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #60a5faaa; outline-offset: 2px; }
body.dialog-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

.restaurant-hero { background: #fff; border-bottom: 1px solid #e5e7eb; }
.restaurant-media { position: relative; display: grid; min-height: 138px; place-items: center; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #f8fafc); }
.restaurant-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; display: none; background: linear-gradient(90deg, #0f172a99, #0f172a1f); }
.restaurant-logo { position: relative; z-index: 1; display: block; width: 100%; max-height: 220px; object-fit: contain; background: #fff; }
.restaurant-hero.has-cover .restaurant-media { min-height: clamp(170px, 31vw, 300px); }
.restaurant-hero.has-cover .hero-shade { display: block; }
.restaurant-hero.has-cover .restaurant-logo { position: absolute; left: clamp(16px, 4vw, 32px); bottom: 16px; width: 78px; height: 78px; border: 3px solid #fff; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 18px #0f172a33; }
.restaurant-hero.no-branding .restaurant-media { min-height: 96px; }
.restaurant-heading { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: min(1100px, 100%); margin: auto; padding: 8px clamp(16px, 4vw, 32px) 10px; text-align: center; }
.restaurant-heading h1, .restaurant-heading p { margin: 0; }
.restaurant-heading h1 { margin: 2px 0; font-size: clamp(1.45rem, 5vw, 2rem); }
.eyebrow { color: var(--brand); font-weight: 700; }
#contextLabel { color: var(--muted); }
.v1-table-info { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); max-width: calc(100% - 190px); padding: 4px 12px; overflow: hidden; border-radius: 6px; background: #ffffffb3; box-shadow: 0 1px 3px #0000001a; color: #1f2937; font-size: 0.875rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.v1-hero-controls { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); display: flex; gap: 16px; }
.v1-icon-button { display: grid; width: 40px; height: 40px; padding: 8px; place-items: center; border: 0; border-radius: 999px; background: #ffffffcc; box-shadow: 0 2px 5px #00000020; cursor: pointer; transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
.v1-icon-button:hover { background: #fff; }
.v1-icon-button:active { transform: scale(0.9); box-shadow: 0 1px 2px #00000025; }
.v1-icon-button:disabled { opacity: 0.72; cursor: default; }
.v1-icon-button.pending { animation: v1-attention 2.5s ease-in-out infinite; }
.v1-icon-button img, .v1-icon-button svg { display: block; width: 24px; height: 24px; }
.v1-icon-button svg { fill: #000; }
.v1-icon-button#requestPaymentButton svg { fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.72; }
@keyframes v1-attention { 0%, 40%, 100% { opacity: 1; } 70% { opacity: 0.35; } }
.close-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #0000004d; box-shadow: 0 2px 5px #00000020; color: #fff; font-size: 1.5rem; cursor: pointer; }

main { width: min(1100px, 100%); margin: auto; padding: 14px 18px 18px; }
.notice { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #fed7aa; border-radius: 12px; background: #fff7ed; color: #9a3412; }
.state, .confirmation { padding: 42px 20px; border-radius: 18px; background: #fff; box-shadow: 0 5px 22px #0f172a0d; text-align: center; }
.spinner { display: inline-block; width: 32px; height: 32px; border: 4px solid #dbeafe; border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 500px; margin: 24px auto 0; }
.skeleton-grid i { display: block; height: 150px; border-radius: 10px; background: linear-gradient(100deg, #eef2f7 25%, #fff 40%, #eef2f7 55%); background-size: 200% 100%; animation: shimmer 1.25s infinite linear; }
@keyframes shimmer { to { background-position-x: -200%; } }

.menu-navigation { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 8px; min-height: var(--navigation-height); margin: -14px -18px 12px; padding: 8px max(18px, calc((100vw - 1100px) / 2 + 18px)); border-bottom: 1px solid #e5e7eb; background: #fff; box-shadow: 0 2px 8px #0f172a0d; }
.chips { display: flex; flex: 1; gap: 8px; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 9px 12px 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #374151; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip.active { border-bottom-color: #dc2626; color: #dc2626; font-weight: 600; }
.search-button { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: #f3f4f6; color: #374151; font-size: 1.75rem; line-height: 1; cursor: pointer; }

.menu-sections { display: grid; gap: 24px; }
.menu-section { scroll-margin-top: 80px; }
.category-heading { margin: 0 0 9px; color: #1f2937; font-size: 1.1rem; font-weight: 600; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-card { min-width: 0; overflow: hidden; padding: 14px; border: 1px solid #e5e7eb; border-radius: 9px; background: var(--card); box-shadow: 0 1px 4px #0f172a14; text-align: left; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, border-color 0.16s ease; }
.menu-card:hover { box-shadow: 0 4px 12px #0f172a1a; }
.menu-card:active { transform: scale(0.975); border-color: #93c5fd; }
.menu-card.unavailable { opacity: 0.6; cursor: not-allowed; }
.menu-image-wrap { position: relative; height: 128px; overflow: hidden; border-radius: 7px; background: #e5e7eb; }
.menu-card img { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: cover; background: #e2e8f0; }
.sold-out { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 7px; background: #ffffffb8; color: #b91c1c; font-size: 1rem; font-weight: 700; text-shadow: 0 1px #fff; }
.menu-card-content { padding-top: 10px; }
.menu-card h3 { margin: 0 0 4px; color: #1f2937; font-size: 1rem; line-height: 1.35; }
.menu-description { display: -webkit-box; min-height: 2.5em; margin: 0 0 5px; overflow: hidden; color: var(--muted); font-size: 0.86rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.price { color: #16a34a; font-size: 1.08rem; font-weight: 600; }

.primary { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.18s ease, transform 0.12s ease; }
.primary:hover { background: var(--brand-dark); }
.primary:active { transform: scale(0.99); }
.primary:disabled { opacity: 0.55; }
.full { width: 100%; }
.customer-action-slot { position: fixed; z-index: 10; inset-inline: 0; bottom: 0; display: flex; gap: 8px; align-items: stretch; justify-content: center; padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: #ffffffee; box-shadow: 0 -6px 22px #0f172a1c; backdrop-filter: blur(10px); }
.cart-button { display: flex; flex: 1 1 280px; justify-content: space-between; max-width: 520px; min-height: 50px; padding: 12px 18px; border: 1px solid #fff; border-radius: 12px; background: var(--brand); box-shadow: 0 5px 16px #0f172a28; color: #fff; font-size: 1rem; cursor: pointer; }
.cart-button:active { transform: scale(0.985); }
.service-request-types { display: grid; gap: 8px; margin: 16px 0; }
.service-request-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-request-types label { display: flex; min-height: 112px; padding: 16px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 1px solid transparent; border-radius: 12px; background: #f9fafb; box-shadow: 0 2px 5px #00000014; text-align: center; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease; }
.service-request-types label:active { transform: scale(0.97); }
.service-request-types label.selected { border-color: #60a5fa; background: #dbeafe; }
.service-request-types label.disabled { opacity: 0.55; cursor: default; }
.service-request-types input { position: absolute; opacity: 0; pointer-events: none; }
.service-request-types img { width: 40px; height: 40px; object-fit: contain; }
.cart-row.unavailable { border: 1px solid #fecaca; border-radius: 8px; padding-inline: 10px; background: #fff7f7; }

.sheet { width: min(620px, 100%); max-width: 100%; max-height: min(92vh, 92dvh); overflow: auto; padding: 0; border: 0; border-radius: 22px; opacity: 0; transform: translateY(12px) scale(0.985); }
.sheet[open] { opacity: 1; transform: none; animation: sheet-in 0.2s ease-out; }
.sheet.closing { opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.15s ease, transform 0.15s ease; }
.sheet::backdrop { background: #0f172a88; animation: backdrop-in 0.18s ease-out; }
.sheet.closing::backdrop { background: transparent; transition: background 0.15s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
.sheet form { position: relative; padding: 24px; }
.close-button { position: absolute; top: 14px; right: 14px; z-index: 2; }
.item-sheet { width: min(620px, 100%); height: min(92vh, 92dvh); max-height: min(92vh, 92dvh); overflow: hidden; }
.item-sheet[open] { display: flex; flex-direction: column; }
.item-sheet form { display: flex; width: 100%; min-height: 0; flex: 1 1 auto; padding: 0; flex-direction: column; overflow: hidden; }
.item-scroll-body { flex: 1 1 auto; min-height: 0; padding: 0 24px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.item-close { position: absolute; z-index: 4; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); left: auto; }
.item-image { display: block; width: calc(100% + 48px); max-width: none; height: clamp(150px, 32dvh, 320px); margin: 0 -24px 18px; object-fit: cover; }
.item-action-bar { display: flex; flex: 0 0 auto; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e7eb; background: #fff; box-shadow: 0 -3px 12px #0f172a12; }
.item-action-bar .quantity { flex: 0 0 auto; margin: 0; gap: 10px; }
.item-action-bar .primary { flex: 1 1 auto; min-width: 0; }
.field { display: grid; gap: 7px; margin: 15px 0; font-weight: 600; }
.field input, .field textarea, .search-field input { width: 100%; padding: 11px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; }
.option-group { margin: 16px 0; padding: 0; border: 0; }
.option-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.option-rule { color: var(--muted); font-size: 0.8rem; }
.option-rule.required { color: #b91c1c; font-weight: 700; }
.option-row, .total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 0; transition: opacity 0.14s ease, transform 0.12s ease; }
.option-row:last-child { border-bottom: 0; }
.option-row.selected { color: #1d4ed8; transform: translateX(2px); }
.option-row.unavailable { opacity: 0.55; }
.option-meta { display: flex; align-items: center; gap: 9px; }
.option-meta input { width: 16px; height: 16px; accent-color: #2563eb; }
.option-quantity { width: 72px; min-height: 42px; padding: 6px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; }
.option-quantity-controls { display: inline-flex; align-items: center; gap: 10px; }
.option-quantity-controls[hidden] { display: none; }
.option-quantity-controls button { width: 38px; height: 38px; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; color: #1f2937; font-size: 1.25rem; }
.option-quantity-controls b { min-width: 24px; text-align: center; }
.quantity { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0; }
.quantity button, .small-button { min-width: 42px; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 1.1rem; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e2e8f0; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 54px; }
.cart-heading h2 { margin-block: 0 12px; }
.text-button { min-height: 42px; padding: 6px 10px; border: 0; background: transparent; color: var(--brand); cursor: pointer; }
.text-button.danger { color: #b91c1c; }
.cart-empty { display: grid; gap: 5px; min-height: 160px; place-content: center; color: var(--muted); text-align: center; }
.cart-row small { display: block; margin-top: 4px; color: var(--muted); }
.cart-controls { display: flex; align-items: center; gap: 7px; }
.cart-controls .small-button { min-width: 36px; min-height: 36px; }
.remove-button { color: #b91c1c; }
.edit-button { color: var(--brand); }
.error-text { min-height: 1.4em; color: #b91c1c; }
.success-mark { display: grid; width: 72px; height: 72px; margin: 0 auto 10px; place-items: center; border: 4px solid #22c55e; border-radius: 50%; color: #16a34a; font-size: 3rem; line-height: 1; animation: result-pop 0.42s cubic-bezier(.2,.8,.2,1.2); }
.queue { display: block; color: var(--brand); font-size: 4rem; }
.confirmation { width: min(620px, calc(100% - 28px)); max-height: min(92vh, 92dvh); margin: auto; overflow-y: auto; border: 0; }
.confirmation::backdrop { background: #0f172a88; }
.confirmation[open] { animation: result-in 0.2s ease-out; }
.confirmation-mode { font-weight: 700; }
.order-summary { max-width: 420px; margin: 18px auto; padding: 10px 0; border-block: 1px solid #e2e8f0; text-align: left; }
.order-summary p { margin: 7px 0; }
.confirmation-total { color: #15803d; font-size: 1.3rem; font-weight: 700; }
.muted { color: var(--muted); }

.search-sheet { width: min(560px, 100%); }
.search-sheet h2 { margin: 0 52px 16px 0; }
.search-field { position: relative; display: block; }
.search-field input { min-height: 48px; font-size: 1rem; }
.search-field input { padding-right: 48px; }
.clear-search { position: absolute; top: 50%; right: 5px; width: 40px; height: 40px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #64748b; font-size: 1.45rem; }
.search-summary { margin: 12px 0 8px; font-size: 0.9rem; }
.search-results { display: grid; max-height: min(58vh, 520px); overflow-y: auto; }
.search-result { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid #e5e7eb; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.search-result img, .search-result-placeholder { width: 64px; height: 56px; border-radius: 7px; object-fit: cover; background: #e5e7eb; }
.search-result strong, .search-result small { display: block; }
.search-result small { margin-top: 3px; color: var(--muted); }
.search-result .price { white-space: nowrap; }
.search-result:disabled { opacity: 0.55; cursor: not-allowed; }
.search-empty { padding: 28px 8px; color: var(--muted); text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.toast-region { position: fixed; z-index: 40; top: max(14px, env(safe-area-inset-top)); left: 50%; width: min(420px, calc(100% - 28px)); pointer-events: none; transform: translateX(-50%); }
.toast { padding: 12px 16px; border-radius: 12px; background: #166534; box-shadow: 0 8px 24px #0f172a40; color: #fff; font-weight: 600; text-align: center; animation: toast-in 0.18s ease-out; }
.toast.leaving { opacity: 0; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.cart-hint { position: fixed; z-index: 39; bottom: calc(82px + env(safe-area-inset-bottom)); left: max(24px, env(safe-area-inset-left)); max-width: min(320px, calc(100% - 48px)); padding: 8px 16px; border: 2px solid #000; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px #0f172a24; color: #1f2937; font-size: 0.875rem; animation: v1-attention 2.5s ease-in-out infinite; }
.cart-hint::before { content: ""; position: absolute; bottom: -35px; left: 8px; border: 18px solid transparent; border-top-color: #000; }
.cart-hint::after { content: ""; position: absolute; bottom: -32px; left: 8px; border: 18px solid transparent; border-top-color: #fff; }

.message-dialog { width: min(400px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; }
.message-dialog::backdrop { background: #0f172a88; }
.message-content { padding: 24px; text-align: center; }
.message-content h2 { margin: 10px 0 6px; }
.message-content p { margin: 0 0 20px; color: var(--muted); white-space: pre-line; }
.message-icon { display: grid; width: 52px; height: 52px; margin: auto; place-items: center; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 1.65rem; font-weight: 700; }
.message-icon.warning { background: #fef3c7; color: #b45309; }
.message-icon.error { background: #fee2e2; color: #b91c1c; }
.message-icon.cancelled { border: 3px solid #94a3b8; background: #f1f5f9; color: #64748b; animation: result-pop 0.32s ease-out; }
.message-actions { display: flex; justify-content: center; gap: 10px; }
.message-actions button { min-width: 110px; }
.secondary { min-height: 48px; padding: 12px 18px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #334155; font-weight: 700; }

.bill-sheet { height: min(92vh, 760px); overflow: hidden; }
.bill-layout { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.bill-heading { position: relative; flex: 0 0 auto; padding: 20px 64px 14px 20px; border-bottom: 1px solid #e5e7eb; }
.bill-heading h2 { margin: 0; font-size: 1.2rem; }
.bill-scroll-body { min-height: 0; flex: 1 1 auto; padding: 16px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bill-state { display: grid; min-height: 220px; place-content: center; justify-items: center; gap: 12px; color: var(--muted); text-align: center; }
.bill-table { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.bill-orders { display: grid; gap: 14px; }
.bill-order { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.bill-order-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; background: #f8fafc; }
.bill-status { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 0.78rem; }
.bill-status.served { background: #dcfce7; color: #15803d; }
.bill-status.cancel, .bill-status.canceled { background: #fee2e2; color: #b91c1c; }
.bill-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 11px 12px; border-top: 1px solid #f1f5f9; }
.bill-item small { display: block; margin-top: 3px; color: var(--muted); }
.bill-item-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; text-align: right; }
.bill-item.cancelled { opacity: 0.55; text-decoration: line-through; }
.bill-footer { flex: 0 0 auto; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e7eb; background: #fff; box-shadow: 0 -3px 12px #0f172a12; }
.bill-total, .bill-subtotal, .bill-payment-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.bill-total strong { color: #15803d; font-size: 1.35rem; }
.bill-payment-status { color: var(--muted); font-size: 0.9rem; }
.bill-payment-status strong { color: #b45309; }
.bill-counter { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-weight: 700; text-align: center; }
@keyframes result-pop { from { opacity: 0; transform: scale(0.45); } 70% { transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes result-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

@media (max-width: 520px) {
  main { padding: 12px; }
  .menu-navigation { margin: -12px -12px 12px; padding-inline: 12px; }
  .restaurant-heading { padding: 11px 16px 13px; }
  .restaurant-logo { max-height: 180px; }
  .restaurant-hero.has-cover .restaurant-logo { left: 16px; width: 68px; height: 68px; }
  .menu-grid { gap: 10px; }
  .menu-card { padding: 10px; }
  .menu-card img { height: 100%; }
  .sheet { width: 100%; max-height: 100svh; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .item-sheet { height: 100svh; height: 100dvh; max-height: 100svh; max-height: 100dvh; border-radius: 0; }
  .bill-sheet { width: 100%; height: 100svh; height: 100dvh; max-height: 100svh; max-height: 100dvh; border-radius: 0; }
  .item-scroll-body { padding-inline: clamp(14px, 4vw, 24px); }
  .item-image { width: calc(100% + 2 * clamp(14px, 4vw, 24px)); height: clamp(120px, 27dvh, 250px); margin-inline: calc(-1 * clamp(14px, 4vw, 24px)); }
  .cart-row { grid-template-columns: 1fr; }
  .cart-controls { justify-content: flex-end; }
  .search-result { grid-template-columns: 56px 1fr; }
  .search-result img, .search-result-placeholder { width: 56px; height: 52px; }
  .search-result .price { grid-column: 2; }
  .customer-action-slot { gap: 6px; }
  .cart-button { flex-basis: 160px; padding-inline: 12px; }
}

@media (max-width: 370px) {
  body { padding-bottom: 150px; }
  main { padding-inline: 10px; }
  .menu-navigation { margin-inline: -10px; padding-inline: 10px; }
  .menu-grid { gap: 8px; }
  .menu-card { padding: 8px; }
  .menu-card h3 { font-size: 0.94rem; }
  .customer-action-slot { flex-wrap: wrap; }
  .cart-button { min-width: 170px; padding-inline: 10px; }
  .sheet form { padding-inline: 18px; }
  .item-action-bar { gap: 8px; padding-inline: 10px; }
  .item-action-bar .quantity button { min-width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
