/* Customer ordering page. Phone first; on a desktop it stays a 640px column.
   Logical properties (inline-start/end) everywhere, so dir="rtl" mirrors the whole layout for Arabic. */
body { background: var(--bg); }
.page { max-width: var(--page); margin: 0 auto; padding-bottom: 120px; }
body.locked { overflow: hidden; }

/* Language strip: every language in its own script. */
.langbar { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 100vmax var(--brand); clip-path: inset(0 -100vmax); } /* full-bleed band, no overflow */
.langs { display: flex; gap: 2px; overflow-x: auto; padding: 0 var(--s-2); scrollbar-width: none; scroll-snap-type: x proximity; }
.langs::-webkit-scrollbar { display: none; }
.langs button {
  flex: none; min-height: 44px; padding: 0 var(--s-3); border: 0; background: none; color: inherit; opacity: .78;
  font: 600 var(--t-sm)/1 var(--font-body); white-space: nowrap; position: relative; scroll-snap-align: start;
}
.langs button[lang="ar"] { font-family: "Noto Sans Arabic", var(--font-body); font-size: 15px; }
.langs button:hover { opacity: 1; }
.langs button.on { opacity: 1; font-weight: 700; }
.langs button.on::after { content: ""; position: absolute; inset-inline: var(--s-3); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--signal); }
.langs button:focus-visible { outline-color: var(--signal); outline-offset: -3px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-4) 0; }
.who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.logo { width: 48px; height: 48px; border-radius: var(--r-md); flex: none; object-fit: contain; }
.top h1 { margin: 0; font-size: 44px; color: var(--brand); overflow-wrap: anywhere; }
.place { margin: 6px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.35; }
.demo-badge { display: inline-block; margin-inline-start: 4px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font: 700 12px/1.4 var(--font-body); letter-spacing: .02em; vertical-align: 1px; }
.top .plate { border: 0; flex: none; }
.top .plate:not([disabled]):hover { background: var(--brand-deep); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), inset 0 0 0 4px var(--brand-deep); }
.top .plate[disabled] { cursor: default; opacity: 1; }
.plate .bag { display: grid; place-items: center; height: 34px; color: var(--signal); }
.plate .bag svg { width: 28px; height: 28px; }
.intro { text-wrap: pretty; margin: var(--s-4) var(--s-4) 0; max-width: 34ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink); }

/* Section tabs */
.tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); margin-top: var(--s-5); box-shadow: 0 1px 0 var(--line); }
.tabs-in { display: flex; gap: var(--s-1); overflow-x: auto; padding: 0 var(--s-2); scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; min-height: var(--tap); padding: 0 var(--s-3); border: 0; background: none; color: var(--ink-2);
  font-weight: 600; font-size: var(--t-sm); position: relative; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; inset-inline: var(--s-3); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }

/* Menu */
.menu { padding: 0 var(--s-4); }
.loading, .fail { padding: var(--s-10) 0; color: var(--ink-2); }
.fail b { display: block; color: var(--ink); font-size: var(--t-lg); margin-bottom: var(--s-1); }
.cat { scroll-margin-top: 56px; }
.cat h2 { margin: var(--s-10) 0 0; font-size: 34px; line-height: 1; color: var(--brand); }
:lang(ar) .cat h2, :lang(zh-Hans) .cat h2, :lang(hi) .cat h2, :lang(ko) .cat h2 { font-size: var(--t-2xl); line-height: 1.25; }
.cat-note { margin: var(--s-1) 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.items { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.items li + li { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 1fr 104px; gap: var(--s-4); padding: var(--s-4) 0; }
.row-open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: none; border-radius: var(--r-md); }
.row-text { min-width: 0; }
.row-text h3 { margin: 0; font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
[dir="rtl"] .en { text-align: right; }
.en { display: block; margin-top: 1px; font: 600 var(--t-sm)/1.3 var(--font-body); color: var(--ink-3); letter-spacing: .01em; }
.row-text p { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); margin-top: var(--s-2); font-weight: 700; }
.tag { padding: 0 5px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 18px; color: var(--ok); box-shadow: inset 0 0 0 1px currentColor; }
.in-order { color: var(--signal-text); font-size: var(--t-sm); font-weight: 700; }
.art { position: relative; width: 104px; height: 104px; border-radius: var(--r-lg); background: var(--surface); display: grid; place-items: center; overflow: visible; }
.art svg { width: 86%; height: 86%; }
.art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.add {
  position: absolute; inset-inline-end: -6px; bottom: -6px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--bg); background: var(--brand); color: var(--brand-ink); display: grid; place-items: center;
}
.add:hover { background: var(--brand-deep); }
.add svg { width: 20px; height: 20px; }
.row.sold { opacity: .55; }
.row.sold .art::after { content: attr(data-sold); position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.row-open:hover ~ .row-text h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.foot { padding: var(--s-10) var(--s-4) 0; color: var(--ink-2); font-size: var(--t-sm); }
.foot p { margin: 0 0 var(--s-2); }
a.maps { white-space: nowrap; }
.foot a, .d-where a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }

/* Sticky order bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: var(--shadow-bar); }
.bar-btn {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; max-width: calc(var(--page) - 32px); margin: 0 auto;
  min-height: 56px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-md); background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.bar-btn:hover { background: var(--brand-deep); }
.count { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; font: 800 16px/1 "Big Shoulders", var(--font-display); }
.count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.bar-label { flex: 1; text-align: start; font-size: var(--t-md); }
.bar-total { font-size: var(--t-md); }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(11, 20, 30, .5); opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: var(--page); margin: 0 auto;
  max-height: calc(100dvh - 24px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(100%); transition: transform .28s var(--ease);
}
.sheet.show { transform: none; }
.sheet-scroll { position: relative; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.sheet-body { padding: var(--s-5) var(--s-4) var(--s-4); }
.sheet-foot { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.sheet-foot.col { flex-direction: column; align-items: stretch; }
.x { position: absolute; top: var(--s-3); inset-inline-end: var(--s-3); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.x:hover { background: var(--surface); }

.item-art { height: 220px; background: var(--surface); display: grid; place-items: center; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.item-art svg { width: 200px; height: 200px; }
.item-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.item-name { margin: 0; font-size: 34px; line-height: 1; color: var(--brand); }
:lang(ar) .item-name, :lang(zh-Hans) .item-name, :lang(hi) .item-name, :lang(ko) .item-name { font-size: var(--t-2xl); line-height: 1.25; }
.item-name .en { margin-top: 6px; font-size: var(--t-sm); }
.item-desc { margin: var(--s-2) 0 0; color: var(--ink-2); }
.item-desc:empty { display: none; }
.item-base { margin: var(--s-2) 0 0; font-weight: 700; }

.group { margin: var(--s-6) 0 0; padding: 0; border: 0; min-width: 0; }
.group legend { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); width: 100%; padding: 0; font-weight: 700; font-size: var(--t-lg); }
.group legend span { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); text-align: end; }
.group.missing legend span { color: var(--danger); }
.group.missing .choices { box-shadow: 0 0 0 2px var(--danger); border-radius: var(--r-md); }
.choices { margin-top: var(--s-2); }
.choice { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-1); border-bottom: 1px solid var(--line); cursor: pointer; }
.choice:last-child { border-bottom: 0; }
.choice:has(input:disabled) { color: var(--ink-3); cursor: default; }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.choice input[type=checkbox] { border-radius: 5px; }
.choice input:disabled { border-color: var(--line); }
.choice input:checked { border-color: var(--brand); background: var(--brand); }
.choice input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--brand-ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice span { flex: 1; }
.choice em { font-style: normal; color: var(--ink-2); font-size: var(--t-sm); }

.note-label { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); font-weight: 700; font-size: var(--t-lg); }
.note-label span { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); align-self: baseline; }
.note-hint { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chip { min-height: 44px; padding: 0 var(--s-4); border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); font-size: var(--t-sm); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 9px; height: 5px; margin-inline-end: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-3px) rotate(-45deg); }
.note { display: block; width: 100%; margin-top: var(--s-3); padding: var(--s-3); border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); resize: vertical; min-height: 56px; font-size: var(--t-md); }
.note:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }

.stepper { display: flex; align-items: center; flex: none; border-radius: var(--r-md); background: var(--surface); }
.stepper button { width: 48px; height: 52px; border: 0; background: none; font-size: 24px; line-height: 1; border-radius: var(--r-md); }
.stepper button:hover { background: var(--surface-2); }
.stepper button[disabled] { color: var(--ink-3); opacity: .5; cursor: default; background: none; }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; }
.btn.grow { flex: 1; min-height: 52px; justify-content: space-between; }

/* Cart */
.cart-title { margin: 0; font-size: 34px; padding-inline-end: 48px; line-height: 1; color: var(--brand); }
:lang(ar) .cart-title, :lang(zh-Hans) .cart-title, :lang(hi) .cart-title, :lang(ko) .cart-title { font-size: var(--t-2xl); line-height: 1.25; }
.cart-table { margin: var(--s-1) 0 0; color: var(--ink-2); }
.lines { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.cline { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.cline .stepper button { width: 40px; height: 44px; font-size: 20px; }
.cline .stepper output { min-width: 18px; }
.line-text { min-width: 0; padding-top: 10px; }
.line-text button { padding: 0; border: 0; background: none; text-align: start; font-weight: 700; }
.line-text button:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-text p { margin: 2px 0 0; font-size: var(--t-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.line-price { padding-top: 10px; font-weight: 600; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-4) 0 0; font-size: var(--t-lg); }
.sum b { font: 800 var(--t-2xl) "Big Shoulders", var(--font-display); }
.empty { padding: var(--s-6) 0; color: var(--ink-2); }
.err { margin: var(--s-3) 0 0; padding: var(--s-3); border-radius: var(--r-md); background: #fbeceb; color: var(--danger); font-weight: 600; font-size: var(--t-sm); }
.pay-note { margin: var(--s-2) 0 0; text-align: center; font-size: var(--t-sm); color: var(--ink-2); }

/* Takeaway: name and pickup time */
.pickup { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 2px solid var(--ink); }
.pickup h3 { margin: 0; font-size: var(--t-2xl); line-height: 1; color: var(--brand); }
:lang(ar) .pickup h3, :lang(zh-Hans) .pickup h3, :lang(hi) .pickup h3, :lang(ko) .pickup h3 { font-size: var(--t-xl); line-height: 1.3; }
.pu-where { margin: var(--s-2) 0 0; color: var(--ink); font-weight: 600; }
.pu-where span { color: var(--ink-2); font-weight: 400; font-size: var(--t-sm); }
.pu-label { display: block; margin-top: var(--s-5); font-weight: 700; font-size: var(--t-lg); }
.pu-input { display: block; width: 100%; min-height: 52px; margin-top: var(--s-2); padding: 0 var(--s-3); border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-size: 17px; }
.pu-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.pu-input.bad { border-color: var(--danger); }
.pu-hint { margin: var(--s-1) 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.pu-err { margin: var(--s-1) 0 0; color: var(--danger); font-weight: 700; font-size: var(--t-sm); }
.pu-when { margin: var(--s-5) 0 0; padding: 0; border: 0; min-width: 0; }
.pu-when legend { padding: 0; font-weight: 700; font-size: var(--t-lg); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.slot { position: relative; display: grid; place-items: center; min-height: 52px; padding: var(--s-2); border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: center; }
.slot.asap { grid-column: 1 / -1; justify-items: start; text-align: start; padding-inline: var(--s-4); }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot b { font-weight: 700; }
.slot small { display: block; color: var(--ink-2); font-size: var(--t-sm); font-weight: 400; }
.slot:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.slot:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--bg)); }
.slot:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Demo pay step */
.pay-to { margin: 0; color: var(--ink-2); padding-inline-end: 48px; }
.pay-amount { margin: var(--s-1) 0 0; font: 900 56px/1 "Big Shoulders", var(--font-display); color: var(--brand); }
.methods { margin: var(--s-6) 0 0; padding: 0; border: 0; }
.methods legend { padding: 0; font-weight: 700; font-size: var(--t-lg); margin-bottom: var(--s-2); }
.method { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-4); margin-top: var(--s-2); border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; }
.method:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.method input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; }
.method input:checked { border-color: var(--brand); }
.method input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* Table picker */
.table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-5); }
.table-grid button { min-height: 60px; border: 0; border-radius: var(--r-md); background: var(--surface); font: 800 var(--t-2xl)/1 "Big Shoulders", var(--font-display); }
.table-grid button:hover { background: var(--surface-2); }
.table-grid button.on { background: var(--brand); color: var(--signal); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 30; transform: translate(-50%, 12px); width: max-content; max-width: calc(100vw - 32px); text-align: center; margin: 0; padding: 10px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; font-size: var(--t-sm); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Confirmation: a kitchen docket */
.done { max-width: 480px; margin: 0 auto; padding: var(--s-6) var(--s-4) var(--s-12); }
.docket {
  position: relative; background: var(--bg); padding: var(--s-5) var(--s-5) var(--s-8);
  border-radius: var(--r-md) var(--r-md) 0 0;
  --zig: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
}
.done-wrap { filter: drop-shadow(0 8px 18px rgba(18,28,38,.12)) drop-shadow(0 1px 2px rgba(18,28,38,.08)); }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.d-head .cafe { font: 900 var(--t-2xl)/.95 var(--font-wordmark); text-transform: uppercase; color: var(--brand); margin: 0; }
.d-head .when { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.d-num { text-align: end; }
.d-num small { display: block; color: var(--ink-2); font-size: var(--t-sm); }
.d-num b { font: 900 40px/1 "Big Shoulders", var(--font-display); font-variant-numeric: tabular-nums; }
.d-status { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-5) 0 0; padding: var(--s-4) 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.d-status h2 { margin: 0; font-size: var(--t-2xl); line-height: 1.05; }
:lang(ar) .d-status h2, :lang(zh-Hans) .d-status h2, :lang(hi) .d-status h2, :lang(ko) .d-status h2 { font-size: var(--t-xl); line-height: 1.3; }
.d-status p { margin: var(--s-1) 0 0; color: var(--ink-2); }
.plate.pickup b { font-size: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
.steps li { padding-top: var(--s-2); border-top: 4px solid var(--surface-2); }
.steps li.on { color: var(--ink); border-top-color: var(--brand); }
.d-lines { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.d-lines li { display: grid; grid-template-columns: 30px 1fr auto; gap: var(--s-2); padding: var(--s-2) 0; }
.d-lines .q { font-weight: 700; }
.d-lines p { margin: 1px 0 0; font-size: var(--t-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.d-total { display: flex; justify-content: space-between; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--ink); font-weight: 700; font-size: var(--t-lg); }
.d-where { margin: var(--s-4) 0 0; font-size: var(--t-sm); color: var(--ink); }
.d-foot { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }
.done-actions { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.done .waiting { text-align: center; padding: var(--s-12) 0; color: var(--ink-2); }
.done .waiting .spinner { margin: 0 auto var(--s-3); color: var(--brand); width: 28px; height: 28px; }

@media (min-width: 700px) {
  .langs { justify-content: center; }
  .top { padding-top: var(--s-10); }
  .top h1 { font-size: 56px; }
  .row { grid-template-columns: 1fr 128px; }
  .art { width: 128px; height: 128px; }
  .sheet { bottom: 50%; border-radius: var(--r-sheet); transform: translateY(calc(50% + 40px)); opacity: 0; transition: transform .25s var(--ease), opacity .2s; max-height: min(86dvh, 820px); max-width: 520px; }
  .sheet.show { transform: translateY(50%); opacity: 1; }
  .sheet-foot { border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
}
