/* Tema Agi Mas: terang, biru (mengikuti gaya NgajiQuest: pita warna di atas, kartu putih lembut, kartu pastel, ikon garis). */
:root {
  --bg: #f3f8fe;
  --surface: #ffffff;
  --ink: #0b2545;      /* judul & ikon */
  --fg: #1d3655;       /* teks */
  --muted: #6a7f97;
  --line: #e3ebf5;
  --brand: #1e7be6;    /* pita atas & tombol */
  --brand-dark: #0f5bb5;
  --brand-ink: #ffffff;
  --t-blue: #e6f1fd;
  --t-yellow: #fff4d6;
  --t-green: #e3f5ea;
  --t-purple: #eee9fc;
  --sun: #e9a800;
  --wa: #1fa855;
  --wa-ink: #ffffff;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); overflow-x: hidden; overflow-x: clip; }   /* .band memakai 100vw: di Windows ikut lebar scrollbar -> jangan sampai bisa digeser ke samping */
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); padding-bottom: 130px; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b { color: var(--ink); font-weight: 700; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dim { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; margin: 16px 0; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }

/* Animasi pembuka */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #f7f7f7; transition: opacity .4s ease; overflow: hidden; }
.splash.done { opacity: 0; pointer-events: none; }
.splash-row { display: flex; align-items: flex-end; gap: 3%; width: min(90vw, 600px); }
.splash-text { flex: 0 0 57%; }
.splash-text img { display: block; width: 100%; height: auto; }
.splash-motor { flex: 0 0 37%; width: 37%; height: auto; will-change: transform; }
.splash-foot { position: absolute; left: 0; right: 0; bottom: max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.splash-bar { width: min(56vw, 240px); height: 4px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #1e7be6; transition: width .25s ease; }
.splash-foot p { margin: 0; font-size: .8rem; color: #5b6b80; }
.splash-foot .splash-ver { font-size: .72rem; color: #94a3b8; }

/* Skeleton loader */
.sk { border-radius: 16px; background: linear-gradient(100deg, #e9f0f8 30%, #f6f9fd 50%, #e9f0f8 70%) 0 0 / 250% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.sk-band { height: 190px; }
.sk-band .sk { background: rgba(255, 255, 255, .25); height: 16px; margin-top: 12px; animation: none; }
.sk-line { height: 18px; border-radius: 9px; margin: 24px 0 12px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w70 { width: 70%; }
.sk-hero { height: 190px; border-radius: 24px; margin-top: -84px; position: relative; }
.sk-promo { height: 124px; border-radius: 22px 22px 22px 6px; margin-top: 12px; }
.sk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-feat { height: 118px; }
@media (prefers-reduced-motion: reduce) { .sk, .maploading { animation: none; } }
/* Skeleton di dalam teks/komponen (alamat, jarak, harga, saran, rincian) */
.skt { display: inline-block; vertical-align: middle; height: .9em; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* untuk pembaca layar */
.lines .sk-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sug .sk-item { display: flex; gap: 12px; padding: 10px; align-items: flex-start; }
.sug .sk-item .sk-ic { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.sug .sk-item div { flex: 1; display: grid; gap: 6px; }

/* Bilah atas (layar selain Beranda) */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(243, 248, 254, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar h1 { font-size: 1.12rem; font-weight: 800; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.iconbtn:active { background: var(--t-blue); }

/* Beranda: pita biru + kartu hero menumpang */
.band { margin: 0 calc(50% - 50vw); padding: 22px calc(50vw - 50% + 4px) 104px; padding-top: max(14px, env(safe-area-inset-top)); background: var(--brand); color: #fff; border-radius: 0 0 0 0; }
.hero-side { position: absolute; right: 12px; top: 16px; bottom: 12px; width: 42%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hero-logo { flex: none; height: 38px; width: auto; padding: 4px 9px; border-radius: 12px; background: #f7f7f7; }
.band h1 { color: #fff; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }
.band p { color: rgba(255, 255, 255, .85); margin-top: 2px; }
.avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #dcebfd; color: var(--ink); flex: none; }
.promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 12px; padding: 16px; border: 1px solid #c6e5d9; border-radius: 20px; background: #e1f4eb; color: #103f32; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.promo:hover { border-color: #92c6b3; }
.last-track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1px solid #c5dff5; border-radius: 16px; background: #fff; color: #154f84; text-decoration: none; }
.last-track small { display: block; overflow-wrap: anywhere; color: var(--muted); }
.last-track:focus-visible { outline: 2px solid #176bc4; outline-offset: 3px; }
.promo:focus-visible { outline: 2px solid #13644d; outline-offset: 3px; }
.switch-mitra-dialog { box-sizing: border-box; width: min(440px, calc(100% - 32px)); padding: clamp(16px, 5vw, 24px); border: 0; border-radius: 20px; color: var(--ink); background: var(--surface); text-align: center; }
.switch-mitra-dialog::backdrop { background: #10284188; }
.switch-mitra-dialog h2 { margin: 12px 0 6px; }
.switch-mitra-dialog p { color: var(--muted); overflow-wrap: anywhere; }
.switch-mitra-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.order-receipt-saved { background: #edf8f2; }
.order-receipt-title { margin: 0 0 4px; color: #126447; font-weight: 800; }
.order-receipt #apiOrderTrack { margin-top: 10px; }
.promo-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #cceadd; }
.promo-mark .i { width: 26px; height: 26px; }
.promo-copy { display: grid; gap: 2px; }
.promo-copy small { font-size: .72rem; font-weight: 750; color: #306352; }
.promo-copy b { font-size: 1.1rem; line-height: 1.25; }
.promo-copy > span { font-size: .83rem; color: #306352; }
.promo-action { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 9px 13px; border-radius: 999px; background: #10513e; color: #fff; font-size: .8rem; font-weight: 750; }
.promo-action .i { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .promo { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 12px; }
  .promo-mark { width: 42px; height: 42px; }
  .promo-action { grid-column: 2; }
}
.hero { position: relative; margin-top: -84px; padding: 18px 18px 18px; border-radius: 24px; background: var(--t-blue); overflow: hidden; min-height: 190px; }
.hero > *:not(.hero-side) { position: relative; z-index: 1; max-width: 58%; }
.hero h2 { font-size: 1.45rem; line-height: 1.15; font-weight: 800; margin: 12px 0 6px; letter-spacing: -.01em; }
.hero p { color: #3c5675; font-size: .84rem; line-height: 1.45; margin-bottom: 14px; }
.hero-art { flex: 1; min-height: 0; width: 100%; height: auto; object-fit: contain; object-position: right bottom; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pill.soft { background: var(--t-blue); color: var(--brand-dark); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; background: var(--surface); border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); }
.stat b { font-size: 1.15rem; font-weight: 800; }
.stat b.sm { font-size: .92rem; line-height: 1.6; white-space: nowrap; }
.stat small { color: var(--muted); font-size: .74rem; }
.ti { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--ink); flex: none; }
.ti.blue { background: var(--t-blue); } .ti.yellow { background: var(--t-yellow); } .ti.green { background: var(--t-green); } .ti.purple { background: var(--t-purple); }
.stat .ti { width: 34px; height: 34px; border-radius: 11px; }
.stat .ti .i { width: 19px; height: 19px; }

.sec { font-size: 1.12rem; font-weight: 800; margin: 26px 0 4px; }
.sec-sub { font-size: .84rem; margin-bottom: 12px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.feat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; min-height: 124px; }
.feat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.feat .i { width: 28px; height: 28px; color: var(--ink); }
.feat .i.go { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--ink); }
.feat b { font-size: .98rem; }
.feat small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.feat.blue { background: var(--t-blue); } .feat.yellow { background: var(--t-yellow); } .feat.green { background: var(--t-green); } .feat.purple { background: var(--t-purple); }
.feat:active, .stat:active, .card.link:active { transform: scale(.98); }

.feat.teal { background: #dff4f1; } .feat.gray { background: #eef2f7; }
/* Jumlah kartu ganjil: kartu terakhir jadi strip selebar baris (ikon · judul & keterangan · panah) */
.feats > .feat:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; row-gap: 1px; align-items: center; padding: 14px 16px; }
.feats > .feat:last-child:nth-child(odd) .feat-top { display: contents; }
.feats > .feat:last-child:nth-child(odd) .feat-top .i:not(.go) { grid-column: 1; grid-row: 1 / span 2; }
.feats > .feat:last-child:nth-child(odd) .feat-top .go { grid-column: 3; grid-row: 1 / span 2; }
.feats > .feat:last-child:nth-child(odd) b { grid-column: 2; grid-row: 1; }
.feats > .feat:last-child:nth-child(odd) small { grid-column: 2; grid-row: 2; }
/* Pilihan Agi Beli */
.lbl { font-weight: 700; color: var(--ink); font-size: .86rem; margin-bottom: 8px; }
.segx { display: flex; gap: 8px; }
.segx button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--fg); font: 700 .84rem var(--font); cursor: pointer; text-align: center; }
.segx button .i { width: 18px; height: 18px; }
.segx button[aria-pressed=true] { border-color: var(--brand); background: var(--t-blue); color: var(--brand-dark); }
#catBox { margin-top: 12px; }
.nearcard .ti { flex: none; }
.nearcard .row b { color: var(--ink); }
.card.nearcard > p { margin-top: 8px; }
/* Ulasan */
.stars { display: flex; justify-content: center; gap: 8px; }
.stars button { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 14px; background: var(--bg); color: #c9d4e2; cursor: pointer; }
.stars button .i { width: 32px; height: 32px; }
.stars button.on { color: #f5b301; background: #fff4d6; }
.stars button.on .i { fill: #f5b301; }
.starlab { text-align: center; font-weight: 700; color: var(--ink); margin: 10px 0 14px; min-height: 1.5em; }
.revmsg { text-align: center; font-size: .85rem; font-weight: 600; margin-top: 10px; min-height: 1.2em; }
.revmsg.err { color: #c0392b; } .revmsg a { color: var(--brand); }
.thanks { text-align: center; padding: 28px 16px; }
.thanks-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: #fff4d6; color: #f5b301; }
.thanks-ic .i { width: 34px; height: 34px; fill: #f5b301; }
.thanks h3 { font-size: 1.3rem; margin-bottom: 4px; }
.thanks .btn { margin-top: 14px; }

/* Kartu putih */
.card { display: block; background: var(--surface); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); border: 0; }
.card > .row + * { margin-top: 12px; }
.headline { font-size: 1.75rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin: 8px 0 8px; }
.lead { margin-bottom: 12px; font-size: .9rem; }
.avail { font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.foot { margin: 20px 0 4px; color: var(--muted); font-size: .84rem; }
.foot b { margin-right: 6px; }

/* Driver */
.drvcard summary { list-style: none; cursor: pointer; }
.drvcard summary::-webkit-details-marker { display: none; }
.drvcard .chev { transition: transform .2s; }
.drvcard[open] .chev { transform: rotate(90deg); }
.avs { display: flex; }
.avs span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-left: -10px; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; border: 2px solid #fff; }
.avs span:first-child { margin-left: 0; }
.avs span.more { background: var(--t-blue); color: var(--brand-dark); }
.dlist { list-style: none; margin: 12px 0 0; padding: 0; }
.drvcard .dlist { border-top: 1px solid var(--line); padding-top: 6px; }
.dlist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.dlist.cards li { background: var(--surface); border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); }
.av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--t-blue); color: var(--brand-dark); font-weight: 800; }
.dlist li.off .av { background: #eef2f7; color: var(--muted); }
.dinfo { flex: 1; min-width: 0; }
.dinfo b { display: block; }
.dinfo > span { color: var(--muted); font-size: .8rem; }
.chip { flex: none; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 700; }
.chip.aktif { background: var(--t-green); color: #137a3f; }
.chip.istirahat { background: var(--t-yellow); color: #8a6200; }
.chip.offline { background: #eef2f7; color: var(--muted); }

/* Bantuan */
.adminnum { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-align: center; margin: 16px 0 14px; letter-spacing: .01em; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#copyMsg { text-align: center; margin-top: 8px; }
#copyMsg:empty { display: none; }
.chip.ver { background: var(--t-blue); color: var(--brand-dark); }
.iostip { margin-top: 14px; border: 1.5px dashed #b9d6f7; }
.iconbtn.sm { width: 36px; height: 36px; color: var(--muted); font-size: 1rem; }
/* Bagikan aplikasi */
.qrbox { display: grid; place-items: center; margin: 14px auto 6px; }
.qrbox svg { width: 200px; height: 200px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qrbox .qrnone { padding: 18px 16px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: .85rem; text-align: center; }
.qrurl { text-align: center; font-size: .78rem; color: var(--muted); word-break: break-all; margin-bottom: 12px; }
.qrurl:empty { display: none; }
#shareMsg { text-align: center; margin-top: 8px; }
#shareMsg:empty { display: none; }
/* Tentang aplikasi: teks selalu tampil; hanya "Teknologi yang digunakan" yang bisa dibuka */
.stackbox { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.stackbox summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); font-size: .9rem; min-height: 32px; }
.stackbox summary::-webkit-details-marker { display: none; }
.stackbox .chev { transition: transform .2s; }
.stackbox[open] .chev { transform: rotate(90deg); }
.stackbox .stack { margin-top: 10px; }
.stack { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .84rem; }
.stack dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.stack dd { margin: 0; color: var(--fg); }
#devBox { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.devline { text-align: center; font-size: .86rem; margin-bottom: 10px; }
.tarif { list-style: none; margin: 0; padding: 0; }
.tarif li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.tarif li span { display: block; }
.tarif li span:first-child { color: var(--ink); font-weight: 700; }
.tarif li span:last-child { color: var(--muted); }
.card > .tarif + p { margin-top: 10px; }
.steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 44px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--t-blue); color: var(--brand-dark); font-weight: 800; font-size: .85rem; }
.steps li:last-child { padding-bottom: 0; }
.steps b { display: block; font-size: .92rem; }
.steps span { color: var(--muted); font-size: .82rem; }
.rules { margin: 0; padding-left: 20px; color: var(--fg); font-size: .86rem; }
.rules li + li { margin-top: 6px; }

/* Form */
.formnote { margin: 4px 2px 0; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-weight: 700; color: var(--ink); font-size: .84rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; }
input::placeholder, textarea::placeholder { color: #9aabbf; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
input[type=range] { padding: 0; height: 28px; border: 0; background: none; accent-color: var(--brand); }
.big { font-size: 1.35rem; font-weight: 800; color: var(--brand-dark); }
.note-y { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--t-yellow); color: #6b5000; }
.note-y.rain { background: var(--t-blue); color: var(--brand-dark); font-weight: 600; }
.route { padding: 10px 14px; }
.stop { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.stop label { color: var(--muted); font-weight: 600; font-size: .74rem; margin-bottom: 2px; }
.stop input { background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 4px 0 8px; font-weight: 700; color: var(--ink); }
.stop input:focus { border-bottom-color: var(--brand); background: transparent; }
.stop.locked input, .stop.locked input:focus { border-bottom-color: transparent; cursor: default; }   /* mitra: alamat ambil terkunci */
.stop + .stop::before { content: ""; position: absolute; left: 6px; top: -22px; height: 40px; border-left: 2px dashed var(--line); }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.a { background: var(--wa); box-shadow: 0 0 0 4px var(--t-green); }
.dot.b { background: var(--sun); box-shadow: 0 0 0 4px var(--t-yellow); }
.pick { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; padding: 8px 0; border: 0; border-radius: 14px; background: var(--t-blue); color: var(--brand-dark); font: 700 .7rem var(--font); cursor: pointer; }
.pick:active { background: #d4e7fc; }
.pt { margin-top: 6px; color: #137a3f; font-size: .74rem; font-weight: 700; }
.lines { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: .84rem; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); }
.lines li span:last-child { color: var(--fg); font-weight: 600; }
.lines li.tot span { color: var(--ink); font-weight: 800; }
/* Pembanding tarif ojek online (antar penumpang) */
.band-cmp { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cmp-track { position: relative; height: 10px; margin: 8px 6px; }
.cmp-fill { position: absolute; inset: 0; border-radius: 99px; background: var(--t-yellow); border: 1px solid #f3d47a; }
.cmp-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(11, 37, 69, .3); }
.cmp-lab { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.band-cmp p { margin-top: 6px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font: 700 .98rem var(--font); cursor: pointer; white-space: nowrap; flex: none; }
.btn .i { width: 18px; height: 18px; }
.btn:active { background: var(--brand-dark); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .85rem; }
.btn.full { width: 100%; }
.btn.ghost { background: var(--t-blue); color: var(--brand-dark); }
.btn.wa { background: var(--wa); color: var(--wa-ink); }
.btn[aria-disabled=true], .btn:disabled { background: #dfe7f1; color: #8fa1b6; pointer-events: none; }

/* Navigasi bawah */
.tabs { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 536px; margin: 0 auto; padding: 8px; background: var(--surface); border-radius: 24px; box-shadow: 0 8px 28px rgba(11, 37, 69, .12); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 16px; color: #8a9bb0; font-size: .74rem; font-weight: 600; }
.tabs a .i { width: 24px; height: 24px; }
.tabs a[aria-current=page] { background: var(--t-blue); color: var(--brand); }
.tabs a[aria-current=page] span { color: var(--ink); font-weight: 800; }

/* Bilah harga bawah */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; padding: 14px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(11, 37, 69, .1); }
.price { font-size: 1.55rem; line-height: 1.1; font-weight: 800; color: var(--ink); }

/* Kirim */
.summary .sumroute { margin-top: 12px; }
.sumroute div { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); padding: 4px 0; }
.sumroute div + div { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 8px; }
.summary .muted { margin-top: 8px; }
.choose legend { font-weight: 800; color: var(--ink); padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.choose > p { clear: both; margin-bottom: 4px; }
.driver { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 8px 0 0; cursor: pointer; font-weight: 400; font-size: inherit; color: var(--fg); }
.driver.sel { border-color: var(--brand); background: var(--t-blue); } /* class, bukan :has() — WebView lama (Chrome < 105) belum mendukung :has() */
.driver.off { opacity: .5; cursor: not-allowed; }
.driver input { width: 20px; height: 20px; padding: 0; accent-color: var(--brand); flex: none; }
.driver .av { width: 40px; height: 40px; }
.av.any { background: var(--t-purple); color: var(--ink); }
.dinfo .near { display: inline-block; background: var(--t-green); color: #137a3f; border-radius: 999px; padding: 1px 8px; font-size: .68rem; font-weight: 800; margin-left: 6px; vertical-align: 2px; }
.preview summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.preview pre { white-space: pre-wrap; word-break: break-word; font: .82rem/1.55 var(--font); margin: 10px 0 0; color: var(--muted); }

/* Peta */
.mapsheet { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); }
.maptop { position: relative; z-index: 10; /* di atas peta & lapisan "Memuat peta…", supaya saran pencarian terlihat */ display: flex; align-items: center; gap: 6px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--bg); }
.mapsearch { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 3px rgba(11, 37, 69, .08); }
.mapsearch:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.mapsearch input { border: 0; background: none; padding: 12px 0; }
.mapsearch input:focus { background: none; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border-radius: 18px; box-shadow: 0 16px 40px rgba(11, 37, 69, .18); max-height: 60vh; overflow-y: auto; }
.sug button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.sug button:active, .sug button:hover { background: var(--t-blue); }
.sug .i { margin-top: 2px; color: var(--brand); width: 20px; height: 20px; }
.sug b { display: block; font-weight: 700; }
.sug small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.sug-note { padding: 12px; color: var(--muted); font-size: .85rem; }
.mapwrap { position: relative; flex: 1; }
#map { position: absolute; inset: 0; background: #eef2f6; }
.maplibregl-ctrl-attrib { margin-bottom: 26px !important; }
.maploading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: var(--muted); font-weight: 600; pointer-events: none; transition: opacity .3s;
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 70%) 0 0 / 250% 100%,
    linear-gradient(90deg, transparent 47%, #e2e8ef 47% 49%, transparent 49%) 0 0 / 180px 100%,
    linear-gradient(0deg, transparent 47%, #e2e8ef 47% 49%, transparent 49%) 0 0 / 100% 140px,
    #eef2f6;
  animation: shimmer 1.3s linear infinite; }
.maploading span { margin-top: 110px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: .85rem; } /* di bawah pin tengah */
.maploading.done { opacity: 0; }
.mappin { position: absolute; left: 50%; top: 50%; z-index: 5; width: 34px; height: 34px; margin: -34px 0 0 -17px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); box-shadow: 0 4px 12px rgba(11, 37, 69, .35); transition: margin .15s, background .2s; pointer-events: none; }
.mappin::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.mappin.lift { margin-top: -46px; }
.mappin.out { background: #9aa6b4; }
.gps { position: absolute; right: 14px; bottom: 34px; z-index: 5; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--surface); color: var(--brand); box-shadow: 0 4px 14px rgba(11, 37, 69, .2); cursor: pointer; }
.mapfoot { padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: var(--surface); border-radius: 24px 24px 0 0; margin-top: -18px; position: relative; z-index: 6; box-shadow: 0 -8px 28px rgba(11, 37, 69, .12); }
.mapfoot .addr { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.4; margin: 8px 0 14px; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Badge Netlify (200x64, kanan bawah) di versi web: naikkan bilah bawah agar tidak tertutup (lihat badge.js) */
.has-badge body { padding-bottom: 200px; }
.has-badge .tabs { bottom: 76px; }
.has-badge .sheet, .has-badge .mapfoot { padding-bottom: 76px; }

/* ---------- Responsif: tablet & layar lebar ---------- */
/* Layar baca (form, kirim, driver, bantuan) tetap nyaman: maks. 720px di tengah. */
#v-pesan, #v-kirim, #v-driver, #v-bantuan { max-width: 720px; margin: 0 auto; }
.sheet { padding-left: max(16px, calc(50vw - 360px)); padding-right: max(16px, calc(50vw - 360px)); }
@media (min-width: 640px) {
  body { font-size: 16px; }
  .band { padding-bottom: 120px; }
  .band h1 { font-size: 1.9rem; }
  .hero { margin-top: -96px; min-height: 250px; padding: 26px 26px 22px; }
  .hero h2 { font-size: 1.9rem; }
  .hero p { font-size: .95rem; max-width: 46ch; }
  .hero-side { width: 40%; right: 20px; top: 20px; bottom: 16px; }
  .hero-logo { height: 44px; }
  .feats { grid-template-columns: repeat(4, 1fr); }   /* 4 layanan satu baris, "Lainnya" jadi strip di bawahnya */
  .feat { min-height: 150px; }
  .sk-hero { margin-top: -96px; height: 250px; }
  .sk-row2 { grid-template-columns: repeat(3, 1fr); }
  .dlist.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dlist.cards li { margin-bottom: 0; }
  .headline { font-size: 2.1rem; }
}

/* Pembaruan aplikasi: bilah "versi baru tersedia" + jendela "Yang baru" */
.updbar { position: fixed; z-index: 60; left: 12px; right: 12px; top: max(10px, env(safe-area-inset-top)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--ink); color: #fff; font-size: .88rem; box-shadow: 0 8px 24px rgba(11, 37, 69, .25); }
.updbar[hidden] { display: none; }
.updbar b { color: #fff; }
.updacts { margin-top: 12px; flex-wrap: wrap; }
#updMsg { margin-top: 8px; }
#updMsg:empty { display: none; }
.newsdlg { width: min(420px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; border: 0; border-radius: 24px; padding: 24px 22px 20px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(11, 37, 69, .3); }
.newsdlg::backdrop { background: rgba(11, 37, 69, .45); }
.newshead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.newsdlg h2 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.newsdlg section { margin-top: 14px; }
.newsdlg h3 { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--brand-dark); margin-bottom: 6px; }
.newsdlg h3 .chip { background: var(--t-blue); color: var(--brand-dark); }
.newsdlg ul { padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: #33475e; }
.newsdlg .btn { margin-top: 20px; }
.newsdlg #newsNote { margin-top: 14px; }
.newsdlg #newsLater { margin-top: 8px; }
.newsprog { margin-top: 16px; }
/* Ulasan pelanggan di tab Ulasan: ringkasan bintang + daftar (nama kosong = Anonim) */
.pubhead { margin: 26px 4px 10px; font-size: 1.05rem; color: var(--ink); }
.pubsum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pubavg { text-align: center; min-width: 96px; }
.pubavg b { display: block; font-size: 2.4rem; line-height: 1; color: var(--ink); }
.pubavg span { color: #f5b301; font-size: 1rem; letter-spacing: 2px; }
.pubavg small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.pubbars { flex: 1; min-width: 170px; display: grid; gap: 4px; font-size: .76rem; color: var(--muted); }
.pubbars div { display: grid; grid-template-columns: 24px 1fr 62px; align-items: center; gap: 8px; }
.pubbars small { text-align: right; white-space: nowrap; font-size: .74rem; }
.pubbars i { display: block; height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.pubbars em { display: block; height: 100%; background: #f5b301; border-radius: 99px; }
.pubrev { background: #fff; border-radius: 18px; padding: 14px 16px; margin-top: 10px; box-shadow: 0 1px 2px rgba(11, 37, 69, .05); }
.pubrev .top { display: flex; align-items: center; gap: 10px; }
.pubrev .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--t-blue); color: var(--brand-dark); font-weight: 800; font-size: .85rem; flex: none; }
.pubrev .who { flex: 1; min-width: 0; }
.pubrev .who b { display: block; font-size: .9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pubrev .who span { color: #f5b301; font-size: .82rem; letter-spacing: 1px; }
.pubrev time { color: var(--muted); font-size: .74rem; flex: none; }
.pubrev p { margin-top: 8px; white-space: pre-wrap; word-break: break-word; font-size: .9rem; color: #33475e; }
#pubMore { margin: 12px auto 0; display: flex; }
.newsprog .track { height: 10px; border-radius: 99px; background: var(--t-blue); overflow: hidden; }
.newsprog .track i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .2s; }
.newsprog p { margin-top: 8px; font-size: .85rem; color: #33475e; }

/* Menu mitra di form Agi Beli: pilih jumlah, habis = abu-abu */
.menubox { padding: 16px; }
.mhd { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.mhd .ti { background: #f3e6d6; color: #7a4b1c; }
.mhd b { display: block; font-size: 1.02rem; color: var(--ink); }
.mhd small { color: var(--muted); font-size: .8rem; }
.mcat { margin: 14px 2px 4px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mitem { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.mitem:first-of-type { border-top: 0; }
.mitem .grow { min-width: 0; }
.mimg { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: #f3e6d6; }
.mitem.off .mimg { filter: grayscale(1); opacity: .55; }
.mitem b { display: block; font-size: .94rem; color: var(--ink); }
.mitem small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.mprice { font-weight: 700; font-size: .86rem; color: var(--brand-dark); }
.mstk { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--t-yellow); color: #8a6200; font-size: .7rem; font-weight: 700; }
.mitem.off b, .mitem.off .mprice { color: #9aa9bb; }
.mitem.off .mstk { background: #eef2f7; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; flex: none; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--brand-dark); font: 800 1.05rem var(--font); line-height: 1; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; color: var(--ink); }
.qty.has button[data-q="1"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.menumsg { margin-top: 8px; font-size: .84rem; font-weight: 600; color: #c0392b; }
.menumsg:empty { display: none; }
.menusum { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); font-weight: 700; color: var(--ink); font-size: .9rem; }
.pubpager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; }
.pubpager span { color: var(--muted); font-size: .86rem; }
.pubpager span b { color: var(--ink); }
.pubpager .btn { min-width: 46px; padding-inline: 0; }
.pubpager .btn:disabled { opacity: .35; }
.i.flip { transform: scaleX(-1); }

/* Pembayaran: tunai / QRIS bernominal */
.pay .payh { color: var(--ink); }
.paypick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 6px; }
.paypick label { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; }
.paypick label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.paypick label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.paypick input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
/* QRIS "Kartu Agi Mas": kepala biru + nominal, kartu putih berlogo QRIS & GPN (dari stiker resmi), kode pesanan. qrisImage() menggambar ulang kartu yang sama untuk disimpan. */
.qcard { width: min(340px, 100%); margin: 6px auto 14px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px -14px rgba(11, 37, 69, .35); border: 1px solid var(--line); }
.qhead { padding: 18px 20px 46px; color: #fff; background: linear-gradient(135deg, #3d9bff, #1e7be6 55%, #0f5bb5); }
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qtop b { font-size: 1.06rem; }
.qlogo { background: #fff; border-radius: 10px; padding: 4px 8px; line-height: 0; }
.qlogo img { height: 24px; width: auto; }
.qhead small { display: block; margin-top: 10px; font-size: .82rem; opacity: .9; }
.qamt { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.qbody { position: relative; margin: -30px 14px 0; padding: 16px 18px 18px; background: #fff; border-radius: 18px; box-shadow: 0 8px 24px -10px rgba(11, 37, 69, .3); }
.qlogos { display: flex; align-items: center; justify-content: space-between; }
.qlogos img { width: auto; }
.qrisqr { position: relative; width: min(220px, 100%); aspect-ratio: 1; margin: 16px auto 12px; }
.qrisqr svg { display: block; width: 100%; height: 100%; }
.qrisqr .qrnone { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; font-size: .8rem; }
.qmer { text-align: center; }
.qmer b { display: block; color: var(--ink); font-size: 1rem; }
.qmer small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.qfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px 16px; }
.qfoot small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.qcode { padding: 5px 12px; border-radius: 99px; background: var(--t-blue); color: var(--brand-dark); font-weight: 700; font-size: .82rem; }
.payamt { display: grid; justify-items: center; gap: 2px; text-align: center; margin: 4px 0 10px; }
.payamt b { font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
#qrisSave { margin: 10px auto 0; display: flex; width: max-content; }
#qrisSave[hidden] { display: none; }
.paid { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg); font-weight: 700; cursor: pointer; }
.paid input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }

/* Jam buka mitra */
.mhours { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--wa); }
.mclosed { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--t-yellow); color: var(--ink); font-size: .85rem; font-weight: 600; }

/* ---------- Keranjang & detail menu ---------- */
body.has-cart { padding-bottom: 210px; }
/* Bilah harga + keranjang yang bisa digeser ke atas (bottom sheet) */
.srow { display: flex; align-items: center; gap: 12px; }
.scart { margin: -6px -4px 12px; border-bottom: 1px solid var(--line); }
.sgrab { display: block; width: 100%; padding: 0 4px 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: grab; touch-action: none; }
.sgrab .handle { display: block; width: 44px; height: 5px; margin: 0 auto 10px; border-radius: 99px; background: #cfd9e6; }
.shead { display: flex; align-items: center; gap: 12px; }
.shead .grow { min-width: 0; }
.shead .grow b { display: block; font-size: .92rem; color: var(--ink); }
.shead .grow small { display: block; font-size: .76rem; color: var(--muted); }
.sic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--t-blue); color: var(--brand); }
.sic .i { width: 22px; height: 22px; }
.sic b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.stot { font-size: .95rem; color: var(--ink); white-space: nowrap; }
.chev { width: 18px; height: 18px; color: var(--muted); transform: rotate(-90deg); transition: transform .25s; }
.sheet.open .chev { transform: rotate(90deg); }
.slist { max-height: 0; overflow: hidden auto; transition: max-height .3s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; }
.sheet.open .slist { max-height: 58vh; }
.slist .citem:first-child { border-top: 0; }
.slist .menumsg { margin: 6px 0 4px; }
.sdim { position: fixed; inset: 0; z-index: 9; background: rgba(11, 37, 69, .38); }
.sdim[hidden] { display: none; }
.mopen { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.mopen .grow { display: block; min-width: 0; }
.mnote { color: #8a5426 !important; font-style: italic; }
.mimg.ph { display: grid; place-items: center; color: #8a5426; }
.mimg.ph.food { background: #fff0d4; color: #b26b00; }
.mimg.ph .i { width: 26px; height: 26px; }
/* halaman keranjang */
.citem { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.citem .mopen { flex: none; }
.citem .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.citem b { color: var(--ink); font-size: .94rem; }
.citem .mprice small { color: var(--muted); font-weight: 600; font-size: .74rem; }
.cnote { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 7px 10px; border: 1px dashed #d8c3a8; border-radius: 10px; background: #fffaf3; font: 500 .82rem var(--font); color: var(--ink); }
.cnote:focus { outline: 2px solid var(--brand); border-color: transparent; }
.citem .qty button .i { width: 16px; height: 16px; color: #c0392b; vertical-align: middle; }
#cartGo[aria-disabled=true], #next[aria-disabled=true] { opacity: .5; pointer-events: auto; }
/* detail menu: lembar bawah di HP, kotak di tengah di layar lebar */
.menudlg { width: min(440px, 100vw); max-width: 100vw; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: #fff; color: var(--ink); overflow: auto;
  box-shadow: 0 -12px 40px rgba(11, 37, 69, .25); }
.menudlg::backdrop { background: rgba(11, 37, 69, .5); }
@media (min-width: 700px) { .menudlg { margin: auto; border-radius: 26px; } }
.mdx { position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.mdpic { aspect-ratio: 4 / 3; max-height: 300px; width: 100%; background: #f3e6d6; display: grid; place-items: center; overflow: hidden; }
.mdpic img { width: 100%; height: 100%; object-fit: cover; }
.mdpic.ph { aspect-ratio: auto; height: 150px; }
.mdpic.ph.food { background: #fff0d4; color: #b26b00; }
.mdpic.ph .i { width: 56px; height: 56px; color: #8a5426; }
.mdbody { padding: 16px 20px 4px; display: flex; flex-direction: column; gap: 6px; }
.mdcat { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: #f3e6d6; color: #7a4b1c; font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.menudlg h2 { margin: 2px 0 0; font-size: 1.35rem; line-height: 1.2; }
.mdprice { margin: 0; display: flex; align-items: center; gap: 4px; }
.mdprice b { font-size: 1.15rem; color: var(--brand-dark); }
.mddesc { margin: 0; color: #4a5d75; font-size: .92rem; line-height: 1.45; }
.mdinfo { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: #f6f8fb; color: #33475e; font-size: .88rem; line-height: 1.55; white-space: pre-line; }
.mdbody .lbl { margin-top: 8px; }
#mdNote { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: 500 .9rem var(--font); color: var(--ink); }
#mdNote:focus { outline: 2px solid var(--brand); border-color: transparent; }
.mdbuy { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.mdbuy .btn { flex: 1; flex-direction: column; gap: 1px; justify-content: center; min-height: 54px; white-space: nowrap; font-size: .92rem; line-height: 1.15; text-align: center; }
.mdbuy .btn small { font-size: .82rem; font-weight: 800; opacity: .9; }
.mdbuy .btn:disabled { opacity: .5; cursor: default; }
.mdbuy .btn.danger { background: #c0392b; }
