/*
 * Halaman pesan online toko kue — profil toko_kue (Onzet, ONZ-049, 13 Okt 2026).
 *
 * Desain pilihan Wais (dibuat dengan AI pembuat tampilan, lalu dipasang ke data
 * POS): kertas krem, tinta coklat, SATU aksen raspberry. Hijau WhatsApp hanya
 * untuk ikon WA. Semua warna/huruf/jarak sebagai variabel di :root supaya mudah
 * diganti bila owner kelak memilih warna merek.
 */
:root {
    --bg: #FAF6EF;
    --surface: #fffdf9;
    --white: #fff;
    --ink: #2B1C14;
    --secondary: #76604F;
    --muted: #a18b7c;
    --line: #E7DCCD;
    --accent: #B23A48;
    --accent-dark: #8F2A37;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --r-lg: 24px;
    --sp: 18px;
    --nav-height: 70px;
    --ease: 180ms;
    --shadow: 0 12px 36px rgba(62, 36, 26, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e9e4dd; color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .44; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
.choice:focus-within { outline: 3px solid #3975c4; outline-offset: 3px; }
a { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.app { max-width: 560px; min-height: 100vh; margin: 0 auto; background: var(--bg); box-shadow: 0 0 50px rgba(52, 33, 20, .07); position: relative; overflow: clip; }
main { min-height: calc(100vh - 145px); }
.screen { padding: 0 var(--sp) 170px; }
.soft { color: var(--secondary); font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { margin: 18px; padding: 14px; border-radius: 11px; background: #fff2df; color: #69492d; font-size: 13px; }

.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.section-intro h2 { font: 26px/1.15 var(--serif); margin: 0; }
.section-intro .tiny { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--secondary); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 800; color: var(--accent); margin-bottom: 7px; }
.small-link { font-weight: 800; color: var(--accent); font-size: 12px; background: none; border: 0; padding: 7px 0; text-decoration: underline; text-underline-offset: 3px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 16px; border-radius: 11px; border: 0; font-weight: 800; font-size: 13px; text-decoration: none; transition: transform var(--ease), background var(--ease); }
.button:active { transform: scale(.985); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.soft-button { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.button.full { width: 100%; }
.spaced { margin-top: 10px; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.icon { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.small { width: 19px; height: 19px; }
.icon.big { width: 35px; height: 35px; }

/* ── Kepala & status toko ───────────────────────────────────────────── */
.closure { padding: 12px 18px; background: #FCE6E8; color: #7C2933; border-bottom: 1px solid #efbfc5; font-size: 11px; font-weight: 700; }
.topbar { position: relative; z-index: 8; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.brand-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #111; }
.brand-text { min-width: 0; }
.brand-title { color: #6C2423; font: 28px/1 var(--serif); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-caption { margin-top: 5px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 10px; color: var(--secondary); max-width: 250px; }
.shop-pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 100px; color: #235a37; font-size: 11px; font-weight: 800; background: #e0f2e4; white-space: nowrap; }
.shop-pill::before { content: ''; display: block; width: 7px; height: 7px; border-radius: 100%; background: #278c4f; }
.shop-pill.closed { color: #8d2b34; background: #f7dce1; }
.shop-pill.closed::before { background: #c13a50; }

/* ── Beranda ───────────────────────────────────────────────────────── */
.hero-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 21px 0 12px; }
.hero-heading h1 { font: 28px/1.12 var(--serif); margin: 0; }
.hero-heading p { font-size: 11px; color: var(--secondary); margin: 5px 0 0; }
.hero-heading .mini-badge { font-size: 10px; border: 1px solid var(--line); border-radius: 40px; padding: 6px 9px; font-weight: 700; color: var(--secondary); white-space: nowrap; }

.carousel { position: relative; }
.slide-viewport { overflow: hidden; border-radius: var(--r-lg); touch-action: pan-y pinch-zoom; background: #51302a; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; width: 100%; height: 270px; scroll-snap-align: start; overflow: hidden; color: #fff; }
.slide img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 43%; filter: saturate(1.09); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 17, 15, .88), rgba(42, 20, 17, .50) 49%, transparent 99%); }
.slide-info { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 24px 21px 26px; max-width: 88%; }
.slide-info .overline { font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .16em; color: #fce3c3; }
.slide-info h2 { font: 30px/1.05 var(--serif); margin: 9px 0; max-width: 260px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.slide-info p { max-width: 245px; font-size: 11px; line-height: 1.65; margin: 0 0 16px; color: #fcf1e9; }
.slide-info button { border: 0; min-height: 41px; padding: 10px 13px; font-weight: 800; background: #fff8f1; color: #47241e; border-radius: 8px; font-size: 11px; }
.slide-numbers { position: absolute; right: 13px; top: 12px; z-index: 3; background: rgba(45, 19, 15, .55); color: #fff; border-radius: 30px; font-size: 10px; padding: 5px 9px; font-weight: 700; }
.carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 1px 22px; }
.carousel-dots { display: flex; gap: 7px; align-items: center; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 20px; background: #d7c5b7; }
.dot.active { width: 23px; background: var(--accent); }
.slide-arrows { display: flex; gap: 7px; }
.slide-arrows button { width: 37px; height: 37px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 50%; font-size: 22px; line-height: 1; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 26px; }
.feature { min-width: 0; }
.feature-photo { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #e9d1c0; border: 0; padding: 0; width: 100%; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-photo .initial { display: grid; place-items: center; width: 100%; height: 100%; background: #f2e6dc; font: 34px var(--serif); color: #94644e; }
.feature-name { font-weight: 800; font-size: 11px; line-height: 1.45; margin: 8px 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 30px; overflow-wrap: anywhere; }
.feature .price { font-size: 12px; color: var(--accent); }

/* Kategori beranda: bisa digeser untuk menampilkan semua kategori. */
.category-slider { margin: 0 -18px 27px; min-width: 0; }
.category-mini { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 18px 9px; touch-action: pan-x pan-y; }
.category-mini::-webkit-scrollbar { display: none; }
.category-card { flex: 0 0 101px; min-width: 0; min-height: 125px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px 7px 9px; text-align: center; color: var(--ink); transition: border-color var(--ease), transform var(--ease); }
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-card:active { transform: scale(.98); }
.category-card img { height: 63px; width: 63px; max-width: 100%; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 9px; background: #e6d1bf; }
.category-card b { font-size: 10px; line-height: 1.32; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 27px; overflow-wrap: anywhere; }
.category-card span { font-size: 9px; display: block; color: var(--secondary); margin-top: 4px; }
.category-card .category-placeholder { display: grid; place-items: center; width: 63px; height: 63px; border-radius: 50%; background: #f2e6dc; margin: 0 auto 9px; font: 26px var(--serif); color: #94644e; }
.category-slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 18px 0; }
.category-slide-hint { font-size: 10px; color: var(--secondary); }
.category-slide-actions { display: flex; align-items: center; gap: 7px; }
.category-slide-actions button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 21px; line-height: 1; }
.category-slide-actions button:disabled { opacity: .3; }
.new-section { border-top: 1px solid var(--line); padding-top: 22px; }

/* ── Daftar menu ───────────────────────────────────────────────────── */
.screen-title { padding: 26px 0 17px; }
.screen-title h1 { font: 35px/1.08 var(--serif); margin: 0 0 8px; }
.screen-title p { font-size: 12px; color: var(--secondary); margin: 0; }
.search-wrapper { position: relative; margin-bottom: 14px; }
.search-wrapper svg { position: absolute; left: 15px; top: 15px; }
.search-input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 13px 0 44px; font-size: 16px; color: var(--ink); }
.category-sticky { position: sticky; top: 0; z-index: 7; background: var(--bg); padding: 10px 0 14px; margin: 0 -18px 4px; border-bottom: 1px solid var(--line); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 18px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); padding: 10px 15px; min-height: 43px; font-size: 11px; font-weight: 800; color: var(--secondary); }
.chip.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.menu-section { padding-top: 22px; scroll-margin-top: 85px; }
.menu-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.menu-section-heading h2 { font: 25px/1.2 var(--serif); margin: 0; overflow-wrap: anywhere; }
.menu-section-heading span { font-size: 10px; color: var(--secondary); white-space: nowrap; }

.menu-item { display: flex; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.menu-media { border: 0; background: #ecded4; padding: 0; flex: none; width: 116px; height: 123px; border-radius: 12px; overflow: hidden; }
.menu-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.menu-main { min-width: 0; flex: 1; }
.menu-name { font-size: 13px; line-height: 1.55; margin: 0 0 6px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.menu-description { color: var(--secondary); line-height: 1.6; font-size: 11px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.menu-footer .price { font-size: 14px; }
.add-btn { background: #fff; border: 1px solid var(--accent); color: var(--accent); border-radius: 9px; min-height: 43px; font-size: 11px; font-weight: 800; padding: 9px 11px; white-space: nowrap; }
.view-product { font-size: 11px; color: var(--accent); font-weight: 800; border: 0; background: none; padding: 0 0 3px; text-decoration: underline; text-underline-offset: 3px; }
.stepper { display: flex; align-items: center; background: #fff; border: 1px solid #e8c2c3; border-radius: 9px; overflow: hidden; height: 44px; }
.stepper button { background: transparent; border: 0; width: 41px; height: 43px; color: var(--accent); font-weight: 800; font-size: 19px; }
.stepper output { min-width: 24px; font-size: 12px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.stepper.compact { height: 36px; }
.stepper.compact button { height: 35px; width: 35px; }
.max-note { font-size: 10px; color: var(--accent); margin: 5px 0 0; }
.empty { padding: 53px 15px; text-align: center; color: var(--secondary); background: #fff9f3; border-radius: 16px; margin: 18px 0; }
.empty .empty-illustration { margin: 0 auto 16px; width: 73px; height: 73px; border-radius: 100%; background: #f1e0d3; display: grid; place-items: center; color: #99685d; font: 40px var(--serif); }
.empty h3 { font: 25px/1.1 var(--serif); color: var(--ink); margin-bottom: 10px; }
.empty p { font-size: 12px; max-width: 280px; margin: 0 auto 18px; }

/* ── Navigasi bawah & bilah keranjang ──────────────────────────────── */
.bottom-nav { position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, 560px); height: calc(var(--nav-height) + env(safe-area-inset-bottom)); padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255, 253, 249, .98); border-top: 1px solid var(--line); box-shadow: 0 -7px 22px rgba(49, 29, 18, .04); }
.nav-tab { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; background: none; border: 0; color: #806e65; padding: 8px 1px; font-size: 10px; font-weight: 700; position: relative; min-height: 56px; }
.nav-tab.active { color: var(--accent); }
.nav-tab.active::before { content: ''; width: 22px; height: 3px; background: var(--accent); border-radius: 0 0 5px 5px; position: absolute; top: -5px; }
.nav-count { position: absolute; top: 5px; left: calc(50% + 7px); padding: 1px 5px; min-width: 18px; line-height: 16px; font-size: 9px; color: #fff; background: var(--accent); border: 2px solid var(--white); border-radius: 20px; font-weight: 800; }
.mini-cart { position: fixed; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 14; width: min(100%, 560px); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -5px 25px rgba(65, 31, 18, .055); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; }
.mini-cart .count { font-size: 10px; color: var(--secondary); }
.mini-cart .price { font-size: 19px; }
.mini-cart button { min-height: 44px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(152px + env(safe-area-inset-bottom)); z-index: 80; width: min(calc(100% - 36px), 520px); background: #33241f; color: #fff; border-radius: 10px; padding: 12px 15px; font-size: 12px; box-shadow: var(--shadow); }

/* ── Keranjang & struk ─────────────────────────────────────────────── */
.cart-line { display: flex; gap: 12px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-photo { width: 76px; height: 76px; flex: none; object-fit: cover; border-radius: 12px; background: #eadaca; }
.cart-text { flex: 1; min-width: 0; }
.cart-text h3 { font-size: 13px; line-height: 1.4; margin: 0 0 4px; overflow-wrap: anywhere; }
.cart-text small { display: block; color: var(--secondary); font-size: 10px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.cart-total-box { padding: 20px 0; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.cart-total-box b { font-size: 23px; font-variant-numeric: tabular-nums; }
.info-box { background: #fff2df; padding: 14px 15px; border-radius: 11px; font-size: 11px; color: #69492d; margin: 19px 0; }
.info-box p { margin: 6px 0 0; }
.back { display: flex; gap: 7px; align-items: center; background: transparent; border: 0; color: var(--secondary); font-size: 12px; font-weight: 800; min-height: 47px; padding: 12px 0; }
.progress { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--secondary); margin-top: 8px; }
.progress span.active { color: var(--accent); font-weight: 800; }
.progress i { height: 1px; flex: 1; background: var(--line); }
.progress-top { padding-top: 23px; }
.receipt { background: var(--white); padding: 19px 17px 24px; border: 1px solid var(--line); position: relative; margin: 18px 0 30px; }
.receipt::after { content: ''; position: absolute; left: -1px; right: -1px; top: 100%; height: 9px; background: linear-gradient(135deg, var(--bg) 5px, transparent 0) 0 0 / 12px 12px, linear-gradient(225deg, var(--bg) 5px, transparent 0) 0 0 / 12px 12px; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; }
.receipt-head h2 { font-size: 14px; margin: 0; }
.receipt-identity { text-align: center; padding: 16px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.receipt-identity small { display: block; font-size: 9px; font-weight: 600; color: var(--secondary); margin-top: 6px; }
.dashes { height: 1px; border: 0; border-top: 1px dashed #cbbab0; margin: 15px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 15px; padding: 6px 0; }
.receipt-line strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.receipt-line small { display: block; color: var(--secondary); font-size: 10px; }
.receipt-line .price { font-size: 12px; white-space: nowrap; }
.receipt-total { display: flex; align-items: center; justify-content: space-between; }
.receipt-total .price { font-size: 20px; }

/* ── Formulir ──────────────────────────────────────────────────────── */
.field { margin: 0 0 17px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .field-label { display: block; font-size: 12px; font-weight: 800; margin: 0 0 8px; padding: 0; color: var(--ink); }
.field label span, .field legend span, .field-label span { color: var(--accent); }
.field input:not([type=radio]), .field textarea, .field select { font-size: 16px; min-height: 49px; border: 1px solid #cbb9a8; border-radius: 9px; padding: 12px 13px; width: 100%; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 85px; }
.field-error { font-size: 11px; font-weight: 700; color: #aa2736; margin-top: 5px; }
.field [aria-invalid=true] { border-color: #aa2736 !important; background: #fffafb !important; }
.choice-row, .date-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice { position: relative; display: flex !important; align-items: center; justify-content: center; min-height: 48px; margin: 0 !important; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice.selected, .quick-date.active { border-color: var(--accent); color: var(--accent); background: #fff2f2; }
.date-chips { display: flex; gap: 8px; margin-bottom: 10px; }
.quick-date { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 11px; min-height: 42px; font-weight: 800; color: var(--ink); }
.date-row label { font-weight: 700; color: var(--secondary); }
.send-error { margin: 14px 0; background: #ffe5e8; color: #932a38; border-radius: 9px; padding: 13px; font-size: 12px; }
.total-inline { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.total-inline small { display: block; color: var(--secondary); font-size: 10px; }
.total-inline strong { font-size: 20px; font-variant-numeric: tabular-nums; }

/* ── Terkirim ──────────────────────────────────────────────────────── */
.success-icon { margin: 32px auto 20px; display: grid; place-items: center; width: 77px; height: 77px; border-radius: 50%; background: #e2f3e6; color: #246d41; }
.success-title { text-align: center; font: 34px/1.1 var(--serif); margin: 0 0 10px; }
.success-sub { text-align: center; color: var(--secondary); font-size: 12px; margin-bottom: 25px; }
.success-ticket { position: relative; background: #fff; border: 1px dashed #cebbb0; text-align: center; padding: 23px 20px; border-radius: 9px; margin: 0 0 24px; }
.success-ticket span { font-size: 10px; color: var(--secondary); font-weight: 800; letter-spacing: .09em; }
.success-ticket h2 { font: 30px var(--serif); margin: 3px 0 14px; }
.success-ticket strong { font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ticket-time { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--secondary); }
.preview-title { font-size: 13px; }
.wa-message { background: #fff; border-radius: 15px; border: 1px solid var(--line); padding: 17px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.75; margin: 13px 0 23px; }
.success-actions { display: grid; gap: 10px; }
.success-actions .button { width: 100%; }
.secondary-row { display: flex; align-items: center; justify-content: space-between; }

/* Cafe (ONZ-145): ajakan bayar di kasir + status pesanan tanpa pindah halaman. */
.pay-callout { background: var(--accent); color: #fff; border-radius: 16px; padding: 18px 18px 16px; margin: 0 0 18px; box-shadow: var(--shadow); }
.pay-callout b { display: block; font-size: 16px; margin-bottom: 8px; }
.pay-callout ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.pay-callout strong { font-size: 15px; letter-spacing: .02em; }
.pay-callout p { margin: 10px 0 0; font-size: 12px; opacity: .9; }
/* QRIS dari HP (ONZ-220) */
.qris-card { background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 16px; margin: 0 0 18px; text-align: center; }
.qris-card h2 { margin: 0 0 6px; font-size: 16px; }
.qris-tagihan { margin: 0 0 12px; font-size: 14px; color: var(--secondary); }
.qris-tagihan strong { color: var(--ink); font-size: 20px; }
.qris-gambar { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.qris-simpan { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--accent); }
.qris-langkah { text-align: left; margin: 0 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--secondary); }
.qris-lapor { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.qris-lapor:disabled { opacity: .6; cursor: default; }
.qris-catatan { margin: 10px 0 0; font-size: 13px; color: var(--secondary); }
.qris-catatan:empty { display: none; }
.qris-card.dilaporkan { border-color: #246d41; }
.qris-card.dilaporkan .qris-catatan { color: #246d41; font-weight: 700; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 12px; margin: 0 0 22px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-head h2 { margin: 0; font-size: 15px; }
.status-steps { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 0; }
.status-steps li { position: relative; padding: 0 0 14px 32px; color: var(--muted); font-size: 13px; }
.status-steps li:last-child { padding-bottom: 0; }
.status-steps li::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; box-sizing: border-box; }
.status-steps li:not(:last-child)::after { content: ''; position: absolute; left: 8px; top: 21px; bottom: 1px; width: 2px; background: var(--line); }
.status-steps li.done { color: var(--ink); }
.status-steps li.done::before { background: #246d41; border-color: #246d41; }
.status-steps li.done:not(:last-child)::after { background: #246d41; }
.status-steps li.current { color: var(--ink); font-weight: 800; }
.status-steps li.current::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff; background: var(--accent); }
.status-steps.cancelled li { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.status-now { background: #fff2df; color: #69492d; border-radius: 11px; padding: 11px 13px; }
.status-now strong { display: block; font-size: 13px; color: var(--ink); }
.status-now p { margin: 3px 0 0; font-size: 12px; }
.status-now.finished { background: #e2f3e6; color: #246d41; }
.status-now.cancelled { background: #fbe5e7; color: var(--accent-dark); }
.status-time { margin: 9px 0 0; font-size: 10px; color: var(--muted); text-align: right; }
/* Hitung mundur sesudah dibayar (ONZ-156): angka besar supaya tamu tahu berapa lama lagi. */
.countdown { text-align: center; background: var(--accent); color: #fff; border-radius: 14px; padding: 14px 14px 12px; margin: 0 0 12px; }
.countdown-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .92; }
.countdown-time { display: block; font-size: 56px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; margin: 4px 0 10px; }
.countdown-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.countdown-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width 1s linear; }
.countdown-note { margin: 9px 0 0; font-size: 12px; line-height: 1.45; opacity: .92; }
.countdown.lewat { background: #fff2df; color: #69492d; }
.countdown.lewat .countdown-time { font-size: 34px; color: var(--ink); }
.countdown.lewat .countdown-bar { background: #f3d9b8; }
.countdown.lewat .countdown-bar i { background: #c27a2c; }
@media (prefers-reduced-motion: reduce) { .countdown-bar i { transition: none; } }
/* Ambil lokasi GPS untuk pesanan antar (ONZ-156). */
.location-status { margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45; background: #f6efe6; color: var(--secondary); }
.location-status.ok { background: #e2f3e6; color: #246d41; }
.location-status.peringatan { background: #fff2df; color: #69492d; }
.location-status.galat { background: #fbe5e7; color: var(--accent-dark); }
#ps-ambil-lokasi:disabled { opacity: .7; }
.manual-map { margin: 0 0 14px; }
.manual-map summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--accent); padding: 6px 0; }
.manual-map[open] summary { margin-bottom: 8px; }

/* ── Riwayat pesanan ───────────────────────────────────────────────── */
.order-card { padding: 18px 16px; border: 1px solid var(--line); background: #fff; border-radius: 16px; margin-bottom: 12px; }
.order-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order-card-head strong { font: 21px var(--serif); }
.order-card-head span { font-size: 10px; color: var(--secondary); white-space: nowrap; }
.order-card p { color: var(--secondary); font-size: 12px; margin: 8px 0 14px; }
.order-card-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.order-card-actions .button { flex: 1 1 140px; min-height: 42px; font-size: 12px; }
.history-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; }

/* ── Jendela detail menu ───────────────────────────────────────────── */
.modal { position: fixed; z-index: 45; inset: 0; background: rgba(28, 15, 12, .64); display: flex; align-items: flex-end; justify-content: center; }
.modal-dialog { max-height: min(91vh, 920px); width: min(100%, 560px); overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); position: relative; animation: rise var(--ease) ease-out; }
.modal-photo { width: 100%; height: min(52vh, 380px); object-fit: cover; display: block; background: #dec1a7; }
.modal-nophoto { display: grid; place-items: center; height: 215px; background: #ecdfd1; color: #8c6853; font: 24px var(--serif); }
.modal-close { position: absolute; top: 15px; left: 16px; z-index: 3; border: 0; background: #fff; width: 43px; height: 43px; border-radius: 50%; box-shadow: 0 3px 12px rgba(0, 0, 0, .1); font-size: 24px; color: var(--ink); }
.modal-body { padding: 24px 19px 0; }
/* Nama menu satu kata panjang ("BLACKFORESTCAKE") tidak boleh terpotong di tengah
   kata karena berbagi baris dengan harga — harga turun ke baris berikutnya. */
.modal-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 14px; }
.modal-head > div { flex: 1 1 200px; min-width: 0; }
.modal-head h2 { font: 28px/1.15 var(--serif); margin: 8px 0 10px; overflow-wrap: break-word; }
.modal-category { font-size: 10px; letter-spacing: .12em; color: var(--accent); font-weight: 800; }
.modal-head .price { font-size: 21px; color: var(--accent); white-space: nowrap; padding-top: 23px; }
.modal-description { font-size: 13px; color: var(--secondary); line-height: 1.8; white-space: pre-line; margin: 13px 0 20px; }
.modal-separator { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.modal-cart { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.modal-qty-label { font-size: 13px; font-weight: 800; }
.modal-footer { padding: 0 19px; }
.scroll-lock { overflow: hidden; }
.ps-reservasi { margin: 10px 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.ps-reservasi summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 800; color: var(--accent-dark); background: var(--bg); }
.ps-reservasi summary::after { content: '+'; font-size: 20px; line-height: 1; }
.ps-reservasi[open] summary::after { content: '−'; }
.ps-reservasi summary::-webkit-details-marker { display: none; }
.ps-reservasi p { font-size: 13px; margin: 10px 0; }
.ps-reservasi p:empty { display: none; }
.ps-reservasi [hidden] { display: none; }
.ps-reservasi-jadwal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-reservasi-pilihan { min-width: 0; padding: 0; margin: 12px 0 16px; border: 0; }
.ps-reservasi-pilihan legend { padding: 0; font-weight: 800; }
.ps-reservasi-pilihan legend small { margin-left: 5px; color: var(--secondary); font-weight: 600; }
/* ONZ-222: titip menu dari keranjang saat reservasi */
.ps-reservasi-titip { min-width: 0; padding: 0; margin: 12px 0 16px; border: 0; }
.ps-reservasi-titip legend { padding: 0; font-weight: 800; }
.ps-reservasi-titip legend small { margin-left: 5px; color: var(--secondary); font-weight: 600; }
.ps-r-titip-pilih { display: flex; gap: 8px; align-items: center; font-weight: 700; }
#ps-r-titip-daftar { margin: 6px 0; padding-left: 20px; }
.ps-reservasi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 115px), 1fr)); gap: 8px; }
.ps-reservasi-card { position: relative; cursor: pointer; }
.ps-reservasi-card input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.ps-reservasi-card span { position: relative; display: grid; align-content: center; min-height: 60px; padding: 8px 24px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ps-reservasi-card small { color: var(--secondary); }
.ps-reservasi-card input:checked + span { color: var(--accent-dark); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--bg); }
.ps-reservasi-card input:checked + span::after { content: '✓'; position: absolute; top: 8px; right: 8px; font-weight: 800; }
.ps-reservasi-card input:focus-visible + span { outline: 3px solid #3975c4; outline-offset: 2px; }
@keyframes rise { from { transform: translateY(16px); opacity: .85; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 375px) {
    .slide { height: 245px; }
    .slide-info h2 { font-size: 27px; }
    .feature-grid { gap: 7px; }
    .screen { padding-left: 15px; padding-right: 15px; }
    .menu-media { width: 104px; height: 113px; }
    .menu-item { gap: 10px; }
    .menu-footer .price { font-size: 13px; }
    .brand-caption { max-width: 190px; }
    .brand-title { font-size: 24px; }
    .category-sticky, .category-slider { margin-left: -15px; margin-right: -15px; }
    .chip-row, .category-mini, .category-slider-controls { padding-left: 15px; padding-right: 15px; }
    .category-mini { scroll-padding-inline: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* ONZ-223: halaman status reservasi tamu (status-reservasi.php) + tautan dari formulir reservasi */
.sr-wadah { max-width: 520px; margin: 0 auto; padding: 20px 16px 40px; }
.sr-wadah h1 { margin: 0 0 12px; font-size: 1.4rem; }
.sr-wadah h2 { margin: 18px 0 8px; font-size: 1.05rem; }
.sr-wadah h2 small { margin-left: 5px; color: var(--secondary); font-weight: 600; font-size: .8rem; }
.sr-kode { margin: 0; font-weight: 800; font-size: 1.15rem; }
.sr-label { margin: 2px 0 12px; font-weight: 700; color: var(--primary); }
.sr-rincian { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 12px; }
.sr-rincian dt { color: var(--secondary); }
.sr-rincian dd { margin: 0; font-weight: 600; }
.sr-terbayar, .sr-dilaporkan { padding: 10px 12px; border-radius: 10px; background: rgba(46, 160, 67, .12); font-weight: 600; }
.sr-pilihan { display: grid; gap: 8px; margin: 10px 0; }
.sr-pilihan-item { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.sr-qris { display: block; width: 100%; max-width: 320px; margin: 10px auto; border-radius: 12px; }
.sr-bayar .button, #sr-muat-ulang { margin-top: 8px; }
