/* =====================================================================
   Look & feel. Brand colours are the variables right below.
   ===================================================================== */
:root {
  --p: #8b1a10;      /* primary (buttons, headings) */
  --a: #ffc907;      /* accent (top bar)            */
  --a2: #fff3c4;     /* light accent                */
  --i: #3b2e9e;      /* secondary                   */
  --g: #1a8f3c;      /* success / place order       */
  --r: #d92b1c;      /* danger                      */
  --bg: #fff8e7; --c: #fff; --t: #2b1d16; --mu: #7a6a60; --b: #eadfc8;
  --sh: 0 2px 10px rgba(60, 30, 0, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; height: 100% }
html { -webkit-text-size-adjust: none; text-size-adjust: none }   /* stop Android WebView from enlarging text */
body { background: var(--bg); color: var(--t); font: 16px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", sans-serif; -webkit-user-select: none; user-select: none; overflow: hidden }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; touch-action: manipulation }
input, select, textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text }
h2 { margin: 4px 0 14px; font-size: 22px; color: var(--p) }
h3 { margin: 0 0 6px; color: var(--p) }
.mu { color: var(--mu) } .small { font-size: 14px }
#app { height: 100%; display: flex; flex-direction: column }

/* ---------- common pieces ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none }
.brand .bm { width: 36px; height: 36px; border-radius: 10px; display: block }
.brand b { font-size: 20px; color: var(--p); letter-spacing: -.3px }
.brand.big { flex-direction: column; gap: 10px }
.brand.big .bm { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 6px 18px rgba(139, 26, 16, .3) }
.brand.big b { font-size: 34px }
.card { background: var(--c); border: 1px solid var(--b); border-radius: 16px; padding: 14px; box-shadow: var(--sh) }
.btn { display: inline-block; text-align: center; background: var(--p); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 800 }
.btn.g { background: var(--g) } .btn.r { background: var(--r) } .btn.i { background: var(--i) }
.btn.o { background: #fff; color: var(--p); border: 2px solid var(--p) }
.btn.big { padding: 15px 20px; font-size: 18px; width: 100% }
.btn.small { font-size: 14px; padding: 9px 12px }
.btn:disabled { opacity: .45 }
.linkbtn { color: var(--i); font-weight: 700; margin-top: 14px; display: block; width: 100%; text-align: center; padding: 6px }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--b); font-weight: 700; white-space: nowrap }
.chip.on { background: var(--p); border-color: var(--p); color: #fff }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.lang { border: 2px solid var(--p); border-radius: 999px; background: #fff; color: var(--p); font-weight: 800; padding: 6px 12px; flex: none; white-space: nowrap }
.veg, .nonveg { width: 14px; height: 14px; border: 2px solid var(--g); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex: none }
.veg:after, .nonveg:after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g) }
.nonveg { border-color: var(--r) } .nonveg:after { background: var(--r) }
.sw { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #ccc; flex: none; transition: .2s }
.sw:after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s }
.sw.on { background: var(--g) } .sw.on:after { left: 23px }
.ed { border: 1.5px solid var(--b); border-radius: 10px; padding: 7px 10px; font-weight: 700; color: var(--i); background: #fff }
.lock { display: flex; gap: 10px; align-items: center; background: #ecebff; color: var(--i); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-top: 12px }
.empty { color: var(--mu); text-align: center; padding: 28px 10px } .empty .e { font-size: 42px }
.mbtns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap } .mbtns .btn { flex: 1 }
.form label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 5px; color: var(--mu) }
.form input, .form select, .form textarea { width: 100%; padding: 11px 12px; border: 2px solid var(--b); border-radius: 10px; background: #fff }
.form textarea { font-family: ui-monospace, Consolas, monospace; font-size: 15px; resize: vertical }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--p) }
.form h3 { margin-top: 4px }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.tg { display: flex !important; align-items: center; gap: 10px; color: var(--t) !important }
.logobox { border: 2px dashed var(--b); border-radius: 12px; min-height: 90px; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff }
.logobox img { max-width: 100%; max-height: 160px; image-rendering: pixelated }
.okline { color: var(--g); font-weight: 700; margin: 8px 2px 0 }
.code { font: 800 32px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 3px; color: var(--p); text-align: center; background: var(--a2); border-radius: 12px; padding: 12px; margin: 10px 0 }
.warn { border-color: #f0c36d; background: #fffaf0 }
.prline { display: flex; gap: 8px; align-items: center } .prline span { flex: 1 }

/* ---------- setup wizard ---------- */
.setup { height: 100%; overflow: auto; background: linear-gradient(180deg, var(--a) 0 210px, var(--bg) 210px) }
.stop { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)) }
.steps { max-width: 620px; margin: 0 auto; padding: 0 16px; color: var(--p); font-weight: 600 }
.sbar { height: 8px; background: rgba(139, 26, 16, .15); border-radius: 9px; margin: 8px 0 0; overflow: hidden }
.sbar i { display: block; height: 100%; background: var(--p); border-radius: 9px; transition: .3s }
.sbody { max-width: 620px; margin: 14px auto 40px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--sh); border: 1px solid var(--b); text-align: left }
.sbody > .brand { display: flex; margin: 4px auto 0; align-items: center }
.sbody .tag { text-align: center; color: var(--i); font-weight: 700; margin: 6px 0 18px }
.sbody > h2 { text-align: center } .sbody > p.mu { text-align: center }
.langs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 20px }
.snav { margin-top: 22px }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px }
.choice button { border: 2px solid var(--b); border-radius: 14px; padding: 14px 8px; font-weight: 700; font-size: 14px; background: #fff }
.choice button span { display: block; font-size: 28px; margin-bottom: 4px }
.choice button.on { border-color: var(--p); background: var(--a2); color: var(--p) }
.done { font-size: 64px; text-align: center }

/* ---------- login ---------- */
.login { min-height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, var(--a) 0 40%, var(--bg) 40%); position: relative }
.ltop { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px }
.shopname { margin: 14px 0 0; font-weight: 800; font-size: 18px; color: var(--t); background: rgba(255, 255, 255, .7); padding: 6px 14px; border-radius: 999px }
.lgf { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--sh); border: 1px solid var(--b); width: 100%; max-width: 380px; margin-top: 18px }
.lgf h3 { text-align: center; font-size: 22px; margin-bottom: 8px }
.lgf label { display: block; font-weight: 700; font-size: 14px; color: var(--mu); margin: 12px 0 5px }
.lgf input { width: 100%; padding: 13px 14px; border: 2px solid var(--b); border-radius: 12px; background: #fff; font-size: 17px }
.lgf input:focus { outline: none; border-color: var(--p) }
.lgf.bad { animation: sh .35s }
.pw { position: relative } .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 20px; padding: 6px }
.hint { margin-top: 16px; font-size: 13px; color: var(--mu); text-align: center }
@keyframes sh { 25% { transform: translateX(-8px) } 75% { transform: translateX(8px) } }

/* ---------- main shell ---------- */
.top { background: var(--a); display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); flex: none; box-shadow: 0 2px 0 rgba(139, 26, 16, .15); z-index: 3 }
.top .sn { font-weight: 700; color: var(--i); font-size: 14px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none }
.tabs button { padding: 10px 14px; border-radius: 12px; font-weight: 700; color: var(--p); white-space: nowrap }
.tabs button.on { background: var(--p); color: #fff }
.who { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--p); border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 700; white-space: nowrap; flex: none }
.who button { background: var(--p); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 700 }
.main { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; position: relative }
.bnav { display: none }
.pad { padding: 16px; max-width: 1200px; margin: 0 auto }

/* ---------- new order ---------- */
.pos { display: grid; grid-template-columns: 1fr 380px; height: 100% }
.pick { overflow: auto; padding: 14px 14px 30px }
.srch { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--b); background: #fff; margin-bottom: 10px }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none }
.cats::-webkit-scrollbar { display: none }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px }
.it { position: relative; background: #fff; border: 2px solid var(--b); border-radius: 14px; padding: 12px; text-align: left; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--sh) }
.it .n { font-weight: 700; font-size: 15.5px; display: flex; gap: 6px; align-items: flex-start } .it .n i { margin-top: 3px }
.it .p { font-weight: 800; color: var(--p); font-size: 17px; margin-top: 8px }
.it.in { border-color: var(--g); background: #f1fbf3 } .it.off { opacity: .45 }
.it .q { position: absolute; top: -8px; right: -6px; background: var(--g); color: #fff; border-radius: 999px; min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; padding: 0 7px; border: 2px solid #fff }
.gh { grid-column: 1/-1; font-weight: 800; color: var(--i); margin: 8px 2px 0; font-size: 15px; text-transform: uppercase; letter-spacing: .5px }
.cart { background: #fff; border-left: 1px solid var(--b); display: flex; flex-direction: column; min-height: 0 }
.cart .hd { padding: 14px 16px 8px; display: flex; align-items: center; justify-content: space-between }
.cart .hd b { font-size: 19px; color: var(--p) } .hb { display: flex; gap: 6px } .cclose { display: none }
.types { display: grid; gap: 6px; padding: 0 12px 10px }
.types button { border: 2px solid var(--b); border-radius: 12px; padding: 8px 2px; font-size: 13px; font-weight: 700; line-height: 1.1 }
.types button span { display: block; font-size: 20px }
.types button.on { border-color: var(--p); background: var(--a2); color: var(--p) }
.lines { flex: 1; overflow: auto; padding: 0 12px; min-height: 60px }
.ln { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px dashed var(--b) }
.ln .t { flex: 1; min-width: 0 } .ln .t b { display: block; font-size: 15px } .ln .t small { color: var(--mu) }
.stp { display: flex; align-items: center; border: 2px solid var(--g); border-radius: 10px; overflow: hidden }
.stp button { width: 34px; height: 34px; font-size: 20px; font-weight: 800; color: var(--g) }
.stp span { min-width: 26px; text-align: center; font-weight: 800 }
.ln .a { width: 64px; text-align: right; font-weight: 800 }
.cf { padding: 10px 12px 12px; border-top: 1px solid var(--b); background: #fffdf6 }
.tblh { font-weight: 700; font-size: 13px; color: var(--mu); margin: 0 2px 6px }
.tbls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; max-height: 118px; overflow: auto }
.tbls button { border: 2px solid var(--b); border-radius: 10px; padding: 8px 0; font-weight: 800; font-size: 17px; background: #fff }
.tbls button.on { background: var(--p); border-color: var(--p); color: #fff }
.pays { display: grid; gap: 6px; margin-bottom: 10px }
.pays button { border: 2px solid var(--b); border-radius: 10px; padding: 9px 0; font-weight: 700; background: #fff }
.pays button.on { border-color: var(--i); background: #ecebff; color: var(--i) }
.sub { display: flex; justify-content: space-between; color: var(--mu); font-weight: 600; margin: 0 2px 4px; font-size: 14px }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 2px 10px }
.tot span { color: var(--mu); font-weight: 600 } .tot b { font-size: 28px; color: var(--p) }
.cbar { display: none }

/* ---------- orders ---------- */
.ohead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px }
.ohead h2 { margin: 0 auto 0 0 }
.olist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px }
.od { background: #fff; border: 2px solid var(--b); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px }
.od.cancel { border-style: dashed; background: #fbf7f6; color: #8a8380 } .od.cancel .tok { background: #bbb }
.od .h { display: flex; align-items: center; gap: 10px }
.tok { background: var(--p); color: #fff; font-weight: 900; font-size: 22px; border-radius: 12px; padding: 4px 12px; min-width: 62px; text-align: center }
.od .h .m { flex: 1; min-width: 0 } .od .h .m b { display: block } .od .h .m small { color: var(--mu) }
.st { font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 4px 10px; text-transform: uppercase; white-space: nowrap }
.st.new { background: var(--a2); color: #8a5b00 } .st.ready { background: #dff5e5; color: var(--g) } .st.done { background: #eee; color: #555 } .st.cancel { background: #fde2df; color: var(--r) }
.od ul { margin: 0; padding: 0 0 0 2px; list-style: none; font-size: 15px }
.od li { display: flex; gap: 8px; padding: 2px 0; font-size: 15px; line-height: 1.35 } .od li b { min-width: 28px; color: var(--i); flex: none } .od li span { min-width: 0; overflow-wrap: anywhere }
.od .f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--b); padding-top: 8px }
.od .f .amt { font-weight: 800; margin-right: auto }
.od .f button { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px }
.sbtn { background: var(--g); color: #fff } .pbtn { background: var(--a2); color: var(--p) } .xbtn { color: var(--r); border: 1.5px solid #f2c1bb !important }

/* ---------- reports ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px }
.kpi { background: #fff; border: 1px solid var(--b); border-radius: 16px; padding: 14px; box-shadow: var(--sh) }
.kpi small { color: var(--mu); font-weight: 700; font-size: 13px; text-transform: uppercase } .kpi b { display: block; font-size: 26px; color: var(--p); margin-top: 4px }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 10.5px; color: var(--mu) }
.bars i { display: block; width: 100%; background: var(--a); border-radius: 5px 5px 0 0; min-height: 2px; border: 1px solid #e0ac00 }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px }
.tbl td, .tbl th { padding: 8px 6px; border-bottom: 1px solid var(--b); text-align: left } .tbl th { color: var(--mu); font-size: 12.5px; text-transform: uppercase }
.tbl .n { text-align: right }
.payrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--b) } .payrow .nb { font-weight: 600; text-align: right }

/* ---------- menu & settings ---------- */
.mcat { margin-bottom: 12px } .mh { display: flex; align-items: center; gap: 8px } .mh h3 { flex: 1; color: var(--i); margin: 0 } .mh small { color: var(--mu); font-weight: 600 }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--b) }
.mrow .t { flex: 1; min-width: 0 } .mrow .t b { display: block } .mrow .t small { color: var(--mu) }
.mrow .pr { font-weight: 800; width: 72px; text-align: right }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start }
.sgrid > div > .card { margin-bottom: 14px }
.prow { text-align: left; margin-bottom: 8px } .prow small { display: block; font-weight: 400 }

/* ---------- popup, bill preview, toast ---------- */
#modal { position: fixed; inset: 0; background: rgba(30, 15, 5, .55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 20 }
#modal.on { display: flex }
.mb { background: #fff; border-radius: 20px; max-width: 480px; width: 100%; max-height: 92%; overflow: auto; padding: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3) }
.mb h3 { font-size: 21px; margin-bottom: 10px }
.okb { display: flex; align-items: center; gap: 12px; background: #e7f7ec; border-radius: 14px; padding: 12px; margin-bottom: 12px; color: var(--g); font-weight: 800; font-size: 18px }
.okb .tk { background: var(--g); color: #fff; border-radius: 12px; padding: 6px 12px; font-size: 24px }
.rwrap { min-height: 120px; overflow: auto }
.rcpt { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 12px 10px; margin: 0 auto; font: 12.5px/1.32 "Courier New", Consolas, monospace; white-space: pre; color: #000; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); max-width: 100%; overflow: hidden }
.rcpt .rc { text-align: center } .rcpt .rb { font-weight: bold } .rcpt .rg { font-size: 1.7em; line-height: 1.15 }
.rcpt .rl { text-align: center; padding-bottom: 4px } .rcpt .rl img { max-width: 75%; image-rendering: pixelated }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #2b1d16; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .25s; z-index: 40; pointer-events: none; max-width: 90%; text-align: center }
#toast.on { opacity: 1; transform: translateX(-50%) }
/* printing animation (demo videos only) */
.prn { position: fixed; inset: 0; background: rgba(30, 15, 5, .6); z-index: 30; display: flex; align-items: center; justify-content: center; flex-direction: column }
.prn .dev { width: 240px; height: 120px; background: #3a3a3e; border-radius: 18px 18px 12px 12px; position: relative; z-index: 2; box-shadow: 0 8px 24px rgba(0, 0, 0, .4) }
.prn .dev:before { content: ""; position: absolute; left: 30px; right: 30px; top: 14px; height: 8px; background: #111; border-radius: 4px }
.prn .ppr { width: 190px; overflow: hidden; height: 0; animation: out 2.4s ease-out forwards; margin-top: -108px; z-index: 3; position: relative; display: flex; flex-direction: column; justify-content: flex-end }
.prn .ppr .rcpt { font-size: 6.4px; padding: 6px 4px; border-radius: 0; width: 100% !important }
@keyframes out { to { height: 320px; margin-top: -350px } }
.prn p { color: #fff; font-weight: 800; font-size: 20px; margin-top: 26px; z-index: 2 }

/* ---------- phone layout ---------- */
@media (max-width: 760px) {
  .top { padding: 8px 10px; gap: 8px; padding-top: calc(8px + env(safe-area-inset-top)) }
  .top .brand b, .top .sn, .tabs { display: none }
  .top .brand .bm { width: 34px; height: 34px }
  .top .lang { margin-left: auto; padding: 5px 9px; font-size: 14px }
  .who { font-size: 14px; padding: 3px 3px 3px 10px } .who button { padding: 6px 10px; font-size: 13px }
  .bnav { display: flex; flex: none; background: #fff; border-top: 1px solid var(--b); padding-bottom: env(safe-area-inset-bottom); z-index: 3 }
  .bnav button { flex: 1; padding: 8px 0 7px; font-size: 11.5px; font-weight: 700; color: var(--mu); display: flex; flex-direction: column; align-items: center; gap: 2px }
  .bnav button span { font-size: 21px } .bnav button.on { color: var(--p) }
  .pos { display: block }
  .pick { height: 100%; padding: 12px 12px 90px }
  .grid { grid-template-columns: 1fr 1fr; gap: 9px }
  .it { min-height: 84px; padding: 10px }
  .cart { position: absolute; inset: 0; transform: translateY(100%); transition: transform .28s; z-index: 5; border: 0 }
  .cart.open { transform: none } .cclose { display: inline-block }
  .cbar { display: flex; position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--g); color: #fff; border-radius: 14px; padding: 13px 16px; align-items: center; justify-content: space-between; font-weight: 800; font-size: 17px; box-shadow: 0 6px 18px rgba(26, 143, 60, .35); z-index: 4 }
  .kpis { grid-template-columns: 1fr 1fr }
  .two, .sgrid, .row2 { grid-template-columns: 1fr }
  .olist { grid-template-columns: minmax(0, 1fr) }
  .od { min-width: 0 } .od .h .m b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .pad { padding: 12px }
  .sbody { margin: 10px 10px 30px; padding: 18px }
  .choice { grid-template-columns: 1fr }
  .choice button { display: flex; align-items: center; gap: 10px; text-align: left } .choice button span { margin: 0; font-size: 24px }
  .brand.big .bm { width: 70px; height: 70px } .brand.big b { font-size: 28px }
  #toast { bottom: 80px }
}

/* ---------- licence ---------- */
.tbanner { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; background: #ecebff; color: var(--i); font-weight: 700; font-size: 14px; padding: 6px 12px; border-bottom: 1px solid #d8d5ff }
.tbanner.warn { background: #fff1d6; color: #8a4b00; border-color: #f3d39a }
.tbanner button { background: var(--i); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700 }
.tbanner.warn button { background: #8a4b00 }
.lic { font-weight: 800; border-radius: 999px; padding: 2px 9px; font-size: 13px }
.lic.trial { background: #ecebff; color: var(--i) } .lic.ok { background: #dff5e5; color: var(--g) } .lic.bad { background: #fde2df; color: var(--r) }
.mono { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .5px }
.keyin { font: 700 20px/1.2 ui-monospace, Consolas, monospace !important; letter-spacing: 2px; text-transform: uppercase; text-align: center }
.consent { display: flex !important; gap: 10px; align-items: flex-start; background: #f6f4ff; border-radius: 12px; padding: 12px; color: var(--t) !important; font-weight: 600 !important; line-height: 1.35; margin-top: 16px !important }
.consent input { width: 22px !important; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--p) }
.help { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 }
.help a { text-decoration: none }
.lgf.form h3 { margin-bottom: 6px }
@media (max-width: 760px) { .tbanner { font-size: 13px; gap: 8px; padding: 6px 8px } }

.links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 14px }
a { color: var(--i); font-weight: 700 }
.hint a { color: var(--i) }

.keyin::placeholder { text-transform: none; letter-spacing: 0; font: 400 15px system-ui, sans-serif }

/* ---------- easy ordering: type bar, quick bar, minus on tiles ---------- */
.typebar, .qbar { display: none }
.it .minus { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--g); color: var(--g); font-weight: 900; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 60vh; overflow: auto }
.tgrid button { border: 2px solid var(--b); border-radius: 14px; padding: 16px 0; font-weight: 900; font-size: 24px; background: #fff; color: var(--p) }
.tgrid button.on { background: var(--p); border-color: var(--p); color: #fff }
@media (max-width: 760px) {
  .pick { padding-top: 0; padding-bottom: 160px }
  .typebar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 10px 0 8px; margin-bottom: 4px }
  .typebar button { border: 2px solid var(--b); border-radius: 12px; padding: 10px 2px; font-weight: 800; background: #fff; font-size: 14.5px; white-space: nowrap }
  .typebar button.on { background: var(--p); border-color: var(--p); color: #fff }
  .cbar { display: none !important }
  .qbar { display: block; position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--b); padding: 8px 10px 10px; z-index: 4; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08) }
  .qpay { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 8px }
  .qpay button { border: 2px solid var(--b); border-radius: 10px; padding: 7px 0; font-weight: 700; background: #fff; font-size: 14px }
  .qpay button.on { border-color: var(--i); background: #ecebff; color: var(--i) }
  .qrow { display: flex; gap: 8px }
  .qcart { flex: 1; text-align: left; border: 2px solid var(--b); border-radius: 12px; padding: 6px 12px; font-weight: 700; background: #fffdf6; line-height: 1.2 }
  .qcart b { font-size: 19px; color: var(--p) } .qcart small { display: block; color: var(--i); font-size: 12.5px; font-weight: 700 }
  .qplace { flex: 1.25; background: var(--g); color: #fff; border-radius: 12px; font-weight: 800; font-size: 17px; padding: 12px 6px }
  .tgrid button { padding: 14px 0; font-size: 22px }
}

/* ---- order cards: fixed sizes (no Android text boosting) ---- */
.od, .od * { max-height: none } .od .h .m b { font-size: 16px } .od .h .m small { font-size: 13px } .od .f .amt { font-size: 15px }
/* ---- menu quick add (like FoodOrder) ---- */
.addbox { margin-bottom: 12px } .addbox h3 { margin: 0 0 10px }
.addr { display: grid; grid-template-columns: 2fr 2fr 1.4fr 1fr auto; gap: 8px; align-items: center }
.addr input, .addr select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 2px solid var(--b); background: #fff; font-size: 15px; min-width: 0 }
.addbox .chips .chip { cursor: pointer } .chip .x { margin-left: 6px; color: var(--r); font-weight: 900 }
#qcn, #qca { grid-column: span 2 }
.addbox:first-child .addr { grid-template-columns: 2fr 2fr auto }
.addbox:first-child #qcn, .addbox:first-child #qca { grid-column: auto }
@media (max-width: 760px) { .addr, .addbox:first-child .addr { grid-template-columns: 1fr 1fr } .addr button { grid-column: 1 / -1 } .addr #qn, .addr #qa { grid-column: 1 / -1 } }
/* ---- printer connect box ---- */
.btbox { border: 2px dashed var(--b); border-radius: 14px; padding: 12px; margin: 12px 0; background: #fffdf7 }
.btbox .btst { margin-top: 6px; line-height: 1.4 }
/* ---- bill design ---- */
.bsd { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 }
.bsr { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--b) }
.bsr select { padding: 8px; border-radius: 8px; border: 2px solid var(--b); background: #fff; font-size: 14px }
.chk { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; margin: 0 } .chk input { width: 18px; height: 18px }
.rcpt.pic { padding: 6px; width: min(340px, 100%) } .rcpt.pic img { width: 100%; display: block; image-rendering: auto }
.prn .ppr .rcpt.pic { padding: 2px }
/* ---- contact box (trial / key ended, activation, help) ---- */
.cbox { border: 2px solid #F2C200; background: #FFF8E1; border-radius: 16px; padding: 14px; text-align: center; margin: 6px 0 4px }
.cbox .ct { font-weight: 800; color: var(--p, #8B1A10); font-size: 15px; line-height: 1.35 }
.cbox .cnum { display: block; font-size: 28px; font-weight: 900; letter-spacing: .5px; color: #2b2420; text-decoration: none; margin: 6px 0 10px }
.cbox .cbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px } .cbox .cbtns .btn { text-decoration: none; justify-content: center; text-align: center }
.cbox .cbtns .btn:only-child { grid-column: 1 / -1 }
.cbox .cweb { display: block; margin-top: 10px; font-weight: 700; color: #3a2fa0; text-decoration: none; overflow-wrap: anywhere }
.cbox .cdev { margin-top: 10px; font-size: 12.5px; color: #6b625c } .cbox .mono { font-family: monospace; color: #2b2420 }
.cbox.big .cnum { font-size: 32px }
/* ---- language picker ---- */
.langpick { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px }
.langpick .lp { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--b, #e8dcc4); background: #fff; font-size: 19px; cursor: pointer; font-family: inherit; color: inherit }
.langpick .lp.on { border-color: #8B1A10; background: #FFF3D6 } .langpick .lp span { color: #8B1A10; font-weight: 900; font-size: 20px }
/* login / lock: never cut the top on small phones; language button scrolls with the page */
.login { justify-content: flex-start !important }
.login > :first-child { margin-top: auto } .login > :last-child { margin-bottom: auto }
.ltop { position: static !important; align-self: flex-end; margin: 0 0 6px }
@media (max-width: 420px) {
  .cbox .cnum, .cbox.big .cnum { font-size: 24px; white-space: nowrap }
  .cbox .cbtns .btn { padding-left: 6px; padding-right: 6px; white-space: nowrap; font-size: 15px }
  .login { padding: 14px }
}
.cbox .cnum { white-space: nowrap }
/* ---- customer token slip ---- */
.rcpt.slip { text-align: center; margin-bottom: 10px } .rcpt.slip .big { font-size: 2em; font-weight: 900; line-height: 1.15; margin: 1px 0 }
.sliplbl { font-size: 13px; font-weight: 800; color: #8B1A10; margin: 4px 0 6px; text-align: center }
/* ---- Jain / no onion / no garlic / remarks (like FoodOrder) ---- */
.srow { display: flex; gap: 8px; align-items: flex-start } .srow .srch { flex: 1; min-width: 0 }
.jt { flex: none; padding: 11px 12px; border-radius: 12px; border: 2px solid #2e7d32; background: #fff; color: #2e7d32; font-weight: 800; font-size: 14px; white-space: nowrap; font-family: inherit }
.jt.on { background: #2e7d32; color: #fff }
.jn { background: #e8f5e9; color: #1b5e20; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 10px }
.jb { align-self: flex-start; font-size: 11px; font-weight: 800; color: #2e7d32; border: 1.5px solid #2e7d32; border-radius: 6px; padding: 0 5px; line-height: 1.5; margin-top: 4px }
.jb.in { display: inline-block; margin: 0 0 0 4px; vertical-align: middle }
.ln { flex-wrap: wrap }
.ln .lo { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
.ln .lo button { padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--b); background: #fff; font-size: 13px; font-weight: 700; color: #5b524c; font-family: inherit; cursor: pointer }
.ln .lo button.on { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20 }
.ln .lo .nb { border-style: dashed; color: #3a2fa0 }
.ln .lo .lrem { flex: 1 1 160px; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 2px solid var(--b); font-size: 14px }
.orem { padding: 10px 4px 12px } .orem label { display: block; font-size: 13px; font-weight: 800; color: #5b524c; margin-bottom: 4px }
.orem input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--b); font-size: 14px; background: #fff }
.jtg { padding: 6px 9px; border-radius: 8px; border: 1.5px solid var(--b); background: #fff; font-size: 12.5px; font-weight: 800; color: #9a918b; white-space: nowrap; font-family: inherit; cursor: pointer }
.jtg.on { border-color: #2e7d32; color: #2e7d32; background: #e8f5e9 }
.qj { white-space: nowrap }
.addbox:not(:first-child) .addr { grid-template-columns: 2fr 2fr 1.4fr 1fr auto auto }
@media (max-width: 760px) { .addbox:not(:first-child) .addr { grid-template-columns: 1fr 1fr } .qj { grid-column: 1 / -1 } }
.od li em { display: block; font-style: normal; font-size: 13px; color: #2e7d32; font-weight: 700 }
.onote { margin-top: 6px; padding: 6px 10px; background: #fff8e1; border-radius: 8px; font-size: 14px; font-weight: 700; color: #6b4f00 }
/* ---- several shops on one device ---- */
.newshop { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; width: min(400px, 100%) }
.newshop .btn { flex: 1 1 180px; background: #fff }
.shopname.sw2 { border: 0; cursor: pointer; font-family: inherit; font-size: inherit } .shopname.sw2 small { color: #3a2fa0; font-weight: 800; margin-left: 4px }
.shoplist { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; max-height: 55vh; overflow: auto }
.shoplist .lp { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--b, #e8dcc4); background: #fff; font-size: 17px; cursor: pointer; font-family: inherit; color: inherit; text-align: left }
.shoplist .lp.on { border-color: #8B1A10; background: #FFF3D6 } .shoplist .lp span { color: #8B1A10; font-weight: 900; font-size: 20px }
/* ---- free trial gift pop-up ---- */
.gift { text-align: center; padding: 6px 4px 2px }
.gift .gbox { font-size: 64px; line-height: 1; margin: 4px 0 10px; animation: gpop .6s ease-out }
.gift h2 { color: #8B1A10; margin: 0 0 8px; font-size: 22px } .gift p { margin: 6px 0 } .gift .btn { margin-top: 14px; width: 100% }
@keyframes gpop { 0% { transform: scale(.3) rotate(-15deg); opacity: 0 } 70% { transform: scale(1.15) rotate(5deg); opacity: 1 } 100% { transform: scale(1) } }
.webnote { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: #eef4ff; color: #2a3a7a; font-size: 13px; line-height: 1.4 }
