/* Popqod menu page. Colours come from the site's own palette (CSS variables set by menu.js). */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg,#070608);color:var(--ink,#f3ece0);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Tahoma,"Noto Naskh Arabic","Noto Sans Arabic",sans-serif;min-height:100vh;padding-bottom:96px}
body.jm-lock{overflow:hidden}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
.jm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:8px clamp(20px,5vw,76px);position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.jm-brand{display:flex;align-items:center;gap:10px;min-width:0}
.jm-logo{height:var(--logo-h,46px);width:auto;max-width:none;object-fit:contain}
.jm-name{font-weight:700;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jm-sub{color:var(--accent);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.jm-hr{display:flex;align-items:center;gap:8px;flex:none}
.jm-table{border:1px solid var(--accent);color:var(--accent);border-radius:999px;padding:3px 12px;font-size:13px;font-weight:600}
.jm-lang{border:1px solid var(--line);border-radius:999px;padding:4px 12px;font-size:13px;color:var(--muted)}
.jm-tools{padding:12px 16px 4px;display:grid;gap:10px;max-width:760px;margin:0 auto}
.jm-search{width:100%;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel);outline:none}
.jm-search:focus{border-color:var(--accent)}
.jm-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.jm-chips::-webkit-scrollbar{display:none}
.jm-chip{flex:none;padding:8px 16px;border-radius:999px;border:1px solid var(--line);color:var(--muted);background:transparent;white-space:nowrap}
.jm-chip.sm{padding:5px 12px;font-size:13px}
.jm-chip.on{background:var(--accent);border-color:var(--accent);color:#16110a;font-weight:600}
.jm-list{max-width:760px;margin:0 auto;padding:6px 16px 20px;display:grid;gap:12px}
.jm-cat{margin:18px 0 2px;font-size:20px;color:var(--accent);font-weight:700}
.jm-dish{display:grid;gap:0;background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.jm-dish.has-img{grid-template-columns:116px 1fr}
.jm-dimg{width:116px;height:100%;min-height:116px;object-fit:cover;display:block}
.jm-dbody{padding:12px 14px;display:grid;gap:5px;align-content:start;min-width:0}
.jm-dname{font-weight:700;font-size:17px}
.jm-ddesc{color:var(--muted);font-size:14px}
.jm-ding{color:var(--muted);font-size:12.5px;opacity:.85}
.jm-tags{display:flex;flex-wrap:wrap;gap:5px}
.jm-tag{font-size:11.5px;padding:2px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.jm-dfoot{display:flex;align-items:center;gap:10px;margin-top:4px;flex-wrap:wrap}
.jm-price{font-weight:700;color:var(--accent)}
.jm-was{margin-inline-start:8px;font-weight:400;font-size:.88em;color:var(--muted);opacity:.85}.jm-dish.is-offer{border-color:var(--accent)}
.jm-kcal{color:var(--muted);font-size:12px}
.jm-dfoot .jm-addwrap{margin-inline-start:auto}
.jm-add{background:var(--accent);color:#16110a;border-radius:999px;padding:7px 18px;font-weight:700}
.jm-addwrap{display:inline-flex;align-items:center;gap:10px}
.jm-q{width:32px;height:32px;border-radius:50%;border:1px solid var(--accent);color:var(--accent);font-size:20px;line-height:1;display:grid;place-items:center}
.jm-qn{min-width:18px;text-align:center}
.jm-dish.compact{margin:2px 0 6px}
.jm-dish.compact.has-img{grid-template-columns:84px 1fr}
.jm-dish.compact .jm-dimg{width:84px;min-height:84px}
.jm-empty,.jm-hint{text-align:center;color:var(--muted);padding:26px 8px}
.jm-empty-menu{display:grid;justify-items:center;gap:10px;max-width:420px;margin:40px auto;padding:36px 22px;border:1px dashed var(--line);border-radius:18px}
.jm-empty-ico{line-height:0;color:var(--accent)}
.jm-empty-t{margin:0;color:var(--ink);font-size:20px;font-weight:700}
.jm-empty-s{margin:0;color:var(--muted)}
.jm-empty-home{margin-top:6px;color:var(--accent);font-weight:700}
.jm-hint{border:1px dashed var(--line);border-radius:14px;margin-top:8px}
.jm-bar{position:fixed;inset-inline:0;bottom:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 60%,transparent);pointer-events:none}
.jm-bar.empty{display:none}
.jm-bar>*{pointer-events:auto}
.jm-fab{display:inline-flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--accent);color:var(--accent);border-radius:999px;padding:12px 20px;font-weight:700;box-shadow:0 6px 24px rgba(0,0,0,.45)}
.jm-fico{font-size:16px}
.jm-fab,.jm-cartbtn{white-space:nowrap;font-size:15px;padding:11px 16px}
.jm-dish.compact .jm-kcal{display:none}
.jm-dish.compact .jm-dfoot{justify-content:space-between}
.jm-cartbtn{display:inline-flex;align-items:center;gap:10px;background:var(--accent);color:#16110a;border-radius:999px;padding:12px 20px;font-weight:700;margin-inline-start:auto;box-shadow:0 6px 24px rgba(0,0,0,.45)}
.jm-cn{background:#16110a;color:var(--accent);border-radius:50%;min-width:24px;height:24px;display:grid;place-items:center;font-size:13px}
.jm-back{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:40}
.jm-sheet{position:fixed;inset-inline:0;bottom:0;z-index:50;max-height:88vh;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;max-width:640px;margin:0 auto;box-shadow:0 -10px 40px rgba(0,0,0,.5)}
.jm-shead{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);font-size:17px}
.jm-x{font-size:26px;line-height:1;color:var(--muted);padding:0 6px}
.jm-sbody{padding:14px 18px calc(18px + env(safe-area-inset-bottom));overflow:auto;display:grid;gap:10px;align-content:start}
.jm-line{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.jm-lname small{color:var(--muted)}
.jm-lq{display:inline-flex;align-items:center;gap:8px}
.jm-lsum{font-weight:700;color:var(--accent);min-width:64px;text-align:end}
.jm-in{width:100%;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel);outline:none;resize:vertical}
.jm-in:focus{border-color:var(--accent)}
.jm-total{display:flex;justify-content:space-between;font-size:18px;padding-top:4px}
.jm-total b{color:var(--accent)}
.jm-msg{color:#e58a8a;min-height:1em;margin:0;font-size:14px}
.jm-send{width:100%;background:var(--accent);color:#16110a;border-radius:14px;padding:14px;font-weight:800;font-size:16px}
.jm-send:disabled{opacity:.6}
.jm-done{text-align:center;display:grid;gap:8px;padding:12px 0}
.jm-done h3{margin:0;font-size:22px}
.jm-done p{margin:0;color:var(--muted)}
.jm-check{width:64px;height:64px;margin:0 auto;border-radius:50%;background:var(--accent);color:#16110a;display:grid;place-items:center;font-size:34px;font-weight:700}
.jm-ono{color:var(--accent)!important;font-weight:700;font-size:18px}
.jm-wbody{padding-bottom:10px}
/* The chat: a column that scrolls; nothing in it may shrink (cards keep their full height on every phone). */
.jm-feed{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto;padding:2px;overscroll-behavior:contain}
.jm-feed>*{flex:0 0 auto}
/* The waiter sheet is tall and its chat takes all the free height (not half the screen), so suggested dishes show in full. */
.jm-sheet.is-waiter{height:88vh;height:88dvh}.jm-sheet.is-waiter .jm-sbody{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.jm-sheet.is-waiter .jm-feed{flex:1 1 auto;min-height:0;max-height:none}.jm-sheet.is-waiter .jm-sug,.jm-sheet.is-waiter .jm-wform{flex:0 0 auto}
/* Dish card in the chat: photo at the start, name beside it, price + Add under the name, note pen below. */
.jm-cc{display:flex;gap:10px;align-items:flex-start;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:14px}.jm-cc.is-offer{border-color:var(--accent)}
.jm-cc-img{flex:0 0 64px;width:64px;height:64px;border-radius:10px;object-fit:cover;display:block}.jm-cc-img.noimg{display:grid;place-items:center;font-size:24px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.jm-cc-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}
.jm-cc-name{font-weight:700;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.jm-cc-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.jm-cc-row .jm-price{white-space:nowrap}.jm-cc-row .jm-addwrap{margin-inline-start:auto}
.jm-pen-sm{padding:0;width:30px;height:30px;justify-content:center;font-size:15px;flex:0 0 auto}.jm-cc .jm-nrow{margin-top:0}
.jm-cc .jm-add{padding:6px 14px}.jm-cc .jm-q{width:30px;height:30px}.jm-cc .jm-addwrap{gap:8px}.jm-cc .jm-nbox{margin:0}
.jm-m{max-width:88%;padding:10px 14px;border-radius:16px;font-size:15px;white-space:pre-wrap}
.jm-m.bot{background:var(--panel);border:1px solid var(--line);border-end-start-radius:4px;justify-self:start;align-self:flex-start}
.jm-m.me{background:var(--accent);color:#16110a;border-end-end-radius:4px;justify-self:end;align-self:flex-end}
.jm-m.err{color:#e5b8b8}
.jm-sug{display:flex;flex-wrap:wrap;gap:8px}
.jm-wform{display:flex;gap:8px;align-items:center}
.jm-wsend{background:var(--accent);color:#16110a;border-radius:12px;padding:11px 18px;font-weight:700}
.jm-toast{position:fixed;inset-inline:0;bottom:92px;margin:0 auto;width:max-content;max-width:90vw;background:var(--accent);color:#16110a;padding:8px 18px;border-radius:999px;font-weight:600;z-index:80;opacity:0;transform:translateY(8px);transition:.25s}
.jm-toast.on{opacity:1;transform:none}
@media (min-width:720px){.jm-sheet{border-radius:22px;bottom:24px;border-bottom:1px solid var(--line)}}
.jm-dl{color:var(--accent);font-weight:700;text-decoration:underline}
.jm-note{text-align:center;color:var(--muted);font-size:13px;padding:18px 8px 4px}
textarea.jm-in{min-height:78px;resize:vertical}

.jm-title{margin:14px 16px 0;text-align:center;font-size:13px;font-weight:600;color:var(--accent);letter-spacing:.12em;text-transform:uppercase}

/* Display (view-only) menu. */
body.jm-body-display{padding-bottom:40px}
.jm-display .jm-title{display:none}
.jm-dsp{max-width:720px;margin:0 auto;padding:8px 24px 48px}
.jm-dgrp{margin-top:44px}
.jm-dtitle{font:400 36px/1.2 "Brush Script MT","Segoe Script","Lucida Handwriting",cursive;color:var(--accent);text-align:center}
.jm-dline{width:260px;max-width:70%;height:2px;margin:12px auto 26px;background:linear-gradient(to right,var(--accent),color-mix(in srgb,var(--accent) 40%,transparent),transparent)}
.jm-ditem{padding:14px 0}
.jm-drow{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.jm-dname{font:700 14px/1.4 Arial,Helvetica,sans-serif;color:var(--accent);text-transform:uppercase}
.jm-dprice{font:400 14px Arial,Helvetica,sans-serif;color:var(--accent);white-space:nowrap}
.jm-ddesc{margin-top:8px;font:400 12px/1.7 Arial,Helvetica,sans-serif;color:#9a9a9a;max-width:80%}
[dir=rtl] .jm-dtitle{font-family:"Noto Naskh Arabic","Segoe UI",Tahoma,serif;font-weight:700;font-size:30px}
.jm-dbanner{display:block;width:calc(100% + 48px);margin:0 -24px 34px;height:230px;object-fit:cover}
.jm-dgrp:first-child .jm-dbanner{margin-top:-8px}
.jm-dgrp:first-child{margin-top:0}
.jm-scan{text-align:center;padding:40px 20px}
.jm-scan .jm-lang{margin:18px auto;display:inline-block;padding:10px 22px}
.jm-scanv{width:100%;max-width:420px;border-radius:14px;margin:16px auto;display:block}
.jm-scan a{color:var(--accent)}

/* 86: sold out for now */
.jm-out{display:inline-block;padding:5px 12px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}
.jm-dish.is-out .jm-dimg,.jm-dish.is-out .jm-dname,.jm-dish.is-out .jm-ddesc,.jm-dish.is-out .jm-price,.jm-ditem.is-out .jm-dname,.jm-ditem.is-out .jm-ddesc{opacity:.45}
.jm-dish.is-out .jm-dimg{filter:grayscale(1)}
.jm-ditem.is-out .jm-drow{align-items:center}

.jm-line .jm-dn{grid-column:1/-1;margin:2px 0 0;padding:8px 10px;font-size:13px}
.jm-nbox{margin:8px 0 0}
.jm-pen{display:inline-flex;align-items:center;gap:2px;font-size:13px;color:var(--muted,#9a8f7e);padding:4px 10px;border:1px dashed var(--line);border-radius:999px;background:transparent}
.jm-pen.on{color:var(--accent);border-color:var(--accent);border-style:solid}
.jm-nrow{margin-top:6px}
.jm-nrow .jm-in{padding:8px 10px;font-size:13px}
.jm-zfee{display:flex;justify-content:space-between;align-items:center;padding:6px 2px;color:var(--muted)}
select.jm-in{appearance:auto;min-height:44px;color:var(--ink);font-weight:600}
select.jm-in.is-empty{color:var(--accent);border-color:var(--accent)}
select.jm-in option{background:var(--panel);color:var(--ink)}
select.jm-in option[value='']{color:var(--accent)}
