/* The rider app (/rider) and the customer's map (/t): big buttons for a phone held on a scooter. */
:root { --paper: #F6F8F5; --ink: #1E2A2F; --mid: #66737A; --rule: #DCE3DE; --accent: #0E8C6B; --ok: #2F7D4F; --bad: #B23B3B; --warn: #C9A227; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: env(safe-area-inset-bottom); }
.appbar { position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
.appbar div { flex: 1; min-width: 0; } .appbar b { display: block; } .appbar small { opacity: .75; }
.appbar .back { color: var(--paper); text-decoration: none; font-size: 1.4rem; padding: 2px 8px 2px 0; }
.gps { font-size: .7rem; letter-spacing: .1em; background: var(--ok); color: #fff; padding: 3px 8px; border-radius: 999px; } .gps--weak { background: var(--warn); }
.map { height: 38vh; min-height: 220px; background: #e4e9e5; }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 32px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin: 0 0 4px; }
h1 { font: 650 1.6rem/1.15 system-ui, sans-serif; margin: 0 0 4px; }
h2 { font: 650 1.25rem/1.2 system-ui, sans-serif; margin: 0 0 4px; }
.addr { margin: 0 0 10px; }
.hint { font-size: .85rem; color: var(--mid); margin: 6px 0 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font: 500 .95rem system-ui, sans-serif; cursor: pointer; }
.btn--ghost { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.big { display: block; width: 100%; padding: 18px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: 600 1.15rem system-ui, sans-serif; cursor: pointer; }
.big--done { background: var(--ok); } .big:disabled { opacity: .6; }
.share { margin: 0 0 10px; font-size: .9rem; color: var(--ok); } .share:empty { display: none; } .share--bad { color: var(--bad); }
.msgs { max-height: 36vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 10px; }
.m { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); align-self: flex-start; overflow-wrap: anywhere; }
.m.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.m small { display: block; font-size: .7rem; opacity: .65; }
.m.sys { align-self: center; background: none; border: 0; color: var(--mid); font-size: .8rem; font-style: italic; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.quick button { font: inherit; font-size: .82rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; }
form.say { display: flex; gap: 8px; }
form.say input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); }
.job { display: block; text-decoration: none; color: inherit; }
.job .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--rule); white-space: nowrap; } .tag--go { background: var(--accent); color: #fff; } .tag--ok { background: #DDEBDD; }
.cod { display: inline-block; font-weight: 600; background: #FFF4D6; border: 1px solid #EBD38B; border-radius: 8px; padding: 2px 8px; margin: 0 0 8px; }
.empty { text-align: center; color: var(--mid); padding: 28px 0; }
.panel2 { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; display: grid; gap: 8px; }
.panel2 select, .panel2 input { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.codein { flex: 1; min-width: 0; font: 600 1.6rem/1 system-ui, sans-serif !important; letter-spacing: .4em; text-align: center; padding: 10px !important; border: 2px solid var(--ink) !important; border-radius: 10px; }
.row .codein + .btn { flex: none; }
.err { color: var(--bad); margin: 0; font-size: .9rem; } .err:empty { display: none; }
.ok { color: var(--ok); margin: 8px 0 0; font-size: .9rem; } .ok:empty { display: none; }
.link { background: none; border: 0; padding: 4px 0; color: var(--mid); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; justify-self: start; }
#more { justify-content: space-between; }
.hint.bad { color: var(--bad); }
.duty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { font: 600 1rem system-ui, sans-serif; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--rule); color: var(--ink); cursor: pointer; }
.switch.on { background: var(--ok); color: #fff; }
.signin .appicon { display: block; border-radius: 18px; margin: 8px 0 12px; }
.form1 { display: grid; gap: 10px; }
.form1 input:not(.codein) { font: inherit; font-size: 1.15rem; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.form1 .codein { width: 100%; }
.note { margin: 0 0 12px; }
.hint a { color: var(--ink); }

/* what the rider takes, their area, waiting orders */
.tag--far { background: #F3E3C4; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.svc .switch { min-width: 76px; padding: 8px 14px; }
.claim { margin-top: 10px; width: 100%; }
#radius { font: inherit; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; margin-bottom: 10px; }
.card .check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; text-align: left; font-size: 1rem; }
.check input[type=checkbox] { width: 24px; height: 24px; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.sel { font: inherit; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form1 input[type=file] { margin: 6px 0 12px; }
details > summary.btn { list-style: none; display: inline-block; }
details > summary.btn::-webkit-details-marker { display: none; }
/* Customer app */
.appbar--cust { background: var(--accent); }
.pinmap { position: relative; height: 230px; margin: 8px 0 4px; border-radius: 12px; overflow: hidden; background: #e4e9e5; }
.pinmap-map { position: absolute; inset: 0; }
.pinmap-pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 44px; margin: -44px 0 0 -17px; z-index: 500; pointer-events: none; transition: transform .15s; }
.pinmap-map.moving .pinmap-pin { transform: translateY(-8px); }
.pinmap .here { position: absolute; right: 8px; bottom: 8px; z-index: 600; background: #fff; padding: 8px 12px; font-size: .9rem; }
.form1 textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sizes { display: grid; gap: 8px; }
.size { display: block; position: relative; border: 2px solid var(--rule); border-radius: 12px; padding: 10px 12px 10px 40px; background: #fff; cursor: pointer; }
.size input { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; }
.size small { display: block; color: var(--mid); }
.size:has(input:checked) { border-color: var(--accent); }
.fare { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--accent); }
.fare b { font-size: 1.5rem; } .fare small { color: var(--mid); }
.row form { display: inline; margin: 0; }
.form1 input[type=checkbox], .form1 input[type=radio] { width: 22px; height: 22px; padding: 0; flex: none; accent-color: var(--accent); }
.form1 .check { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 1rem; }
.pinmap .here { top: 8px; bottom: auto; }
/* SOS and job offers */
.sosbtn { flex: none; background: var(--bad); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 6px 12px; font: 700 .85rem system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.sheet-bg { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 28, 31, .6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 640px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
.sheet h2 { margin: 0 0 8px; }
.sheet .txt { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; margin: 6px 0 12px; }
.sosgo { background: var(--bad); }
.offer .secs { float: right; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font: 700 1.2rem system-ui, sans-serif; color: var(--accent); }
.offer dl { margin: 10px 0 14px; } .offer dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin-top: 8px; } .offer dd { margin: 0; font-size: 1.05rem; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.zonealert { background: #FBE3E3; border-radius: 10px; padding: 10px 12px; }
.checkin { border: 2px solid var(--accent); }
.ckrow { display: grid; gap: 8px; margin-top: 12px; }
.ckrow .btn { width: 100%; }
/* Ordering: shop kinds, the menu, the cart and the bill */
.btn--small { padding: 6px 12px; font-size: .85rem; }
.btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.kinds { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 4px; padding-bottom: 4px; }
.kinds a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); text-decoration: none; font-size: .95rem; }
.kinds a.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kinds--tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; margin: 0 0 16px; }
.kinds--tiles a { border-radius: 14px; padding: 14px; border-width: 2px; }
.kinds--tiles a b { display: block; font-size: 1.1rem; } .kinds--tiles a small { color: var(--mid); font-size: .8rem; }
.shopcard.shut { opacity: .6; }
.shophead p { font-size: .95rem; }
.vegword { color: var(--ok); }
.vegdot { display: inline-block; width: 14px; height: 14px; border: 2px solid; border-radius: 3px; margin-right: 6px; vertical-align: -1px; position: relative; }
.vegdot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.vegdot--veg { color: var(--ok); } .vegdot--non { color: var(--bad); }
.mitem { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mtext { flex: 1; min-width: 0; } .mtext b { display: block; } .mprice { display: block; font-weight: 600; margin-top: 2px; }
.mside { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mphoto { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; background: var(--rule); }
.mside .btn { min-width: 92px; }
main.withcart { padding-bottom: 96px; }
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1500; width: calc(100% - 32px); max-width: 608px;
  display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.cline:first-child { border-top: 0; } .cline > span:first-child { flex: 1; min-width: 0; }
.qty { display: inline-flex; align-items: center; gap: 8px; } .qty .btn { width: 34px; height: 34px; padding: 0; }
.bill .total { font-size: 1.15rem; border-top: 2px solid var(--ink); }
.tips { display: flex; gap: 6px; flex-wrap: wrap; }
.tip input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tip span, .chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--rule); background: #fff; cursor: pointer; }
.tip input:checked + span, .chip input:checked + span { border-color: var(--accent); background: #E3F3EE; }
.tip input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--ink); }
.tip, .chip { position: relative; display: inline-block; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
/* Ratings and help */
.rate { display: grid; gap: 8px; border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 10px; }
.rate input[name=note] { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; }
.rate .btn { justify-self: start; }
.stars { position: relative; border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars legend { float: left; width: 100%; font-size: .9rem; margin-bottom: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: var(--rule); cursor: pointer; padding: 0 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--warn); }
.stars input:focus-visible + label { outline: 2px solid var(--ink); }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.msg { align-self: flex-end; max-width: 88%; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 8px 12px; }
.msg p { margin: 2px 0 0; overflow-wrap: anywhere; } .msg small { color: var(--mid); font-size: .72rem; }
.msg--them { align-self: flex-start; background: #E3F3EE; border-color: #BFE3D7; }
.tphoto { max-width: 220px; border-radius: 10px; align-self: flex-end; }
.form1 select { font: inherit; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.search { display: flex; gap: 8px; margin: 0 0 10px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); }

/* Favourites: the heart on a shop or a dish, and the saved-shop chips. */
.favform { display: inline; margin: 0; }
.fav { background: none; border: 0; padding: 4px 6px; font-size: 1.5rem; line-height: 1; color: var(--mid); cursor: pointer; min-width: 40px; min-height: 40px; }
.fav--on { color: #D64545; }
.favrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.favwrap { position: relative; }
.favwrap .favform { position: absolute; right: 8px; bottom: 8px; }
.favwrap .listfoot { padding-right: 44px; }
.favchips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.favchip { flex: none; max-width: 190px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.favchip b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favchip small { color: var(--mid); font-size: .8rem; }
.favchip.shut { opacity: .6; }
.favdish { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Several drops in one trip: the heading over the group, and the stop number on each card. */
.triphead { margin: 14px 0 6px; font-weight: 600; }
.job--trip { border-left: 4px solid var(--accent); }
.stopn { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-right: 6px; border-radius: 999px; background: var(--accent); color: #fff; text-align: center; font-size: .9em; }

/* The shop's own phone app: tabs along the bottom, and the "Can't take it" drawer. */
.withnav { padding-bottom: 76px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.tabbar a { flex: 1; text-align: center; padding: 14px 8px; text-decoration: none; color: var(--mid); font-weight: 600; }
.tabbar a.on { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.turndown { margin-top: 4px; }
.turndown summary { padding: 10px 0; color: var(--mid); cursor: pointer; }
.olines { margin: 8px 0; padding: 0; list-style: none; }
.olines li { padding: 3px 0; }

/* Relay by shared vehicle: the way picker when sending a parcel, and the carrier's own screens */
.ways .check small { display: block; color: var(--mid); margin-top: 2px; }
.ways .check b { font-weight: 600; }
#carrier .lbl small { font-weight: 400; color: var(--mid); }

/* The cargo marketplace: a greyed-out transporter, the receiver's code, and the thread with a transporter. */
.card--grey { opacity: .62; }
.card--grey .tag { background: #EEE; color: var(--mid); }
.codebig { font: 700 2rem/1 system-ui, sans-serif; letter-spacing: .3em; text-align: center; margin: 6px 0 2px; }
.thread { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; padding: 4px 0 10px; }
.thread .msg { margin: 0; }
.cargonav { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
