/* tablett' customer app — mobile first, one column, thumb-reachable actions. */

:root {
  --o: #F26522;
  --o2: #FF8A3D;
  --o-soft: #fff3ec;
  --o-line: #ffd9c4;
  --ink: #1d232b;
  --ink2: #4b5563;
  --muted: #8a93a0;
  --line: #eef0f3;
  --bg: #f6f7f9;
  --card: #fff;
  --ok: #12833f;
  --ok-soft: #eaf8ef;
  --bad: #c62828;
  --bad-soft: #fdecec;
  --warn: #9a5b00;
  --warn-soft: #fff6e0;
  --r: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
  --nav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #eceef1; }
body {
  margin: 0 auto;
  max-width: 520px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  position: relative;
}
body.has-bar { padding-bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom)); }
a { color: var(--o); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(100deg, var(--o) 0%, #f5712c 55%, var(--o2) 100%);
  color: #fff;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
}
.top .logo img { height: 24px; display: block; }
.top .title { font-weight: 700; font-size: 17px; }
.top .back { color: #fff; display: flex; align-items: center; margin-left: -6px; padding: 6px; }

/* ---------------------------------------------------------------- home hero */
.hero {
  background: linear-gradient(100deg, var(--o) 0%, #f5712c 55%, var(--o2) 100%);
  color: #fff; padding: 6px 16px 22px;
  border-radius: 0 0 26px 26px;
}
.hero h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 4px; font-weight: 800; letter-spacing: -.2px; }
.hero p { margin: 0 0 16px; opacity: .95; font-size: 14.5px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 0 14px; height: 52px;
  box-shadow: 0 8px 24px rgba(120, 40, 0, .22);
}
.search svg { flex: none; color: var(--muted); }
.search input {
  border: 0; outline: 0; flex: 1; height: 100%; font-size: 16px; background: transparent; min-width: 0;
  color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #9aa2ad; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search .clear { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px; }
.hero .hint { font-size: 12.5px; opacity: .9; margin-top: 8px; }

.photo {
  margin: 16px 16px 0; border-radius: var(--r); overflow: hidden; position: relative;
  aspect-ratio: 16 / 8.2; background: #f2d6c6 url("/static/brand/welcome.jpg") center 45% / cover no-repeat;
  box-shadow: var(--shadow);
}
.photo .chips {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.photo .chips span {
  font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px);
  border-radius: 20px; padding: 3px 9px;
}

/* ---------------------------------------------------------------- sections */
.sec { padding: 0 16px; margin-top: 20px; }
.sec h2 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
.sec h2 small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 12px;
}

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how .step {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 10px; text-align: left; position: relative;
}
.how .ic {
  width: 36px; height: 36px; border-radius: 11px; background: var(--o-soft); color: var(--o);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.how .n {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: var(--o);
  background: var(--o-soft); border-radius: 20px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.how b { display: block; font-size: 13px; line-height: 1.3; }
.how span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* ---------------------------------------------------------------- product rows */
.plist { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.prod { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.prod:last-child { border-bottom: 0; }
.prod .thumb {
  flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--o-soft);
  display: flex; align-items: center; justify-content: center; color: var(--o);
}
.prod .thumb.rx { background: #eef4ff; color: #3b5bdb; }
.prod .body { flex: 1; min-width: 0; }
.prod .nm { font-weight: 700; font-size: 15px; line-height: 1.3; }
.prod .mt { font-size: 12.5px; color: var(--muted); margin-top: 1px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod .foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 17px; }
.mrp { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.offp { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .2px; }
.tag.rx { background: #eef4ff; color: #3b5bdb; }
.tag.ban { background: var(--bad-soft); color: var(--bad); }
.tag.out { background: #f1f3f5; color: #6b7280; }
.prod .act { margin-left: auto; }

.btn-add {
  border: 1.5px solid var(--o); color: var(--o); background: #fff; font-weight: 700;
  border-radius: 10px; height: 36px; padding: 0 18px; cursor: pointer;
}
.btn-add:active { background: var(--o-soft); }
.stepper {
  display: inline-flex; align-items: center; background: var(--o); color: #fff;
  border-radius: 10px; height: 36px; overflow: hidden;
}
.stepper button {
  border: 0; background: transparent; color: #fff; width: 36px; height: 36px;
  font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1;
}
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ic {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--o-soft);
  color: var(--o); display: flex; align-items: center; justify-content: center;
}
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 14px; height: 52px; font-weight: 700; font-size: 16px; cursor: pointer;
  background: linear-gradient(100deg, var(--o), var(--o2)); color: #fff;
  box-shadow: 0 6px 18px rgba(242, 101, 34, .32);
}
.btn:disabled { background: #cfd4da; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.line { background: #fff; color: var(--o); border: 1.5px solid var(--o); box-shadow: none; }
.btn.danger { background: #fff; color: var(--bad); border: 1.5px solid #f3c2c2; box-shadow: none; }
.btn.sm { height: 42px; font-size: 14.5px; border-radius: 12px; }

/* ---------------------------------------------------------------- sticky cart bar */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); width: min(520px, 100%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 10px 12px; z-index: 25;
}
.cartbar a {
  display: flex; align-items: center; gap: 12px; color: #fff; border-radius: 14px;
  padding: 10px 14px; background: linear-gradient(100deg, var(--o), var(--o2));
  box-shadow: 0 8px 24px rgba(242, 101, 34, .38);
}
.cartbar .cnt { font-size: 12.5px; opacity: .92; }
.cartbar .amt { font-weight: 800; font-size: 16px; }
.cartbar .go { margin-left: auto; font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- bottom nav */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 30;
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; position: relative;
}
.nav a.on { color: var(--o); }
.nav .badge {
  position: absolute; top: 8px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--o); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff;
}

/* ---------------------------------------------------------------- cart + summary */
.line { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line.problem { background: #fffafa; }
.line .amt { font-weight: 800; text-align: right; white-space: nowrap; }
.line .amt .mrp { display: block; font-weight: 500; }
.line .rm { border: 0; background: none; color: var(--bad); font-size: 12.5px; font-weight: 600; padding: 0; cursor: pointer; }

.sum .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.sum .row.big { font-size: 18px; font-weight: 800; border-top: 1px dashed #e4e7eb; margin-top: 6px; padding-top: 10px; }
.sum .neg { color: var(--ok); font-weight: 600; }
.save {
  display: flex; align-items: center; gap: 12px; background: var(--ok-soft); color: var(--ok);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid #c9ecd6;
}
.save b { font-size: 18px; display: block; line-height: 1.2; }
.save span { font-size: 12.5px; }
.save .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff;
            display: flex; align-items: center; justify-content: center; }

.note { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
.alert { border-radius: 12px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 10px; }
.alert.info { background: #eef4ff; color: #2c4a9a; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert svg { flex: none; margin-top: 1px; }

/* delivery fee, free-delivery nudge, minimum order */
.sum .row.meds { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; }
.sum .free { color: var(--ok); font-weight: 700; }
.feenote { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink2);
           background: var(--bg); border-radius: 10px; padding: 8px 10px; margin-top: 10px; line-height: 1.4; }
.feenote svg { flex: none; margin-top: 1px; color: var(--muted); }
.nudge { background: #fff; border: 1.5px dashed var(--o-line); border-radius: 14px; padding: 12px 14px;
         margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.nudge .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--o-soft); color: var(--o);
             display: flex; align-items: center; justify-content: center; }
.nudge .tx { flex: 1; min-width: 0; }
.nudge b { display: block; font-size: 15px; line-height: 1.3; }
.nudge span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.nudge.got { border: 1px solid #c9ecd6; background: var(--ok-soft); }
.nudge.got .ic { background: #fff; color: var(--ok); }
.nudge.got b { color: var(--ok); }
.meter { height: 6px; border-radius: 3px; background: var(--o-soft); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--o), var(--o2)); }
.minblock { background: var(--warn-soft); border: 1.5px solid #f3d58a; border-radius: 14px; padding: 14px;
            margin-bottom: 12px; }
.minblock b { display: block; font-size: 16px; color: #6b3f00; line-height: 1.3; }
.minblock span { display: block; font-size: 13px; color: var(--warn); margin-top: 3px; }
.minblock .meter { background: #fbe7b5; }
.minblock .meter i { background: #e0a100; }
.minblock a { display: inline-flex; margin-top: 12px; font-weight: 700; font-size: 14px; }

/* WhatsApp sign-in code */
.otpbox { margin-top: 10px; }
.otpbox .sent { font-size: 13.5px; color: var(--ink2); margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.otpbox .sent svg { flex: none; color: #25a244; margin-top: 1px; }
.input.otpcode { letter-spacing: 12px; font-size: 24px; text-align: center; font-weight: 800;
              font-variant-numeric: tabular-nums; padding-left: 24px; }
.otprow { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.linkbtn { border: 0; background: none; color: var(--o); font-weight: 700; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); cursor: default; font-weight: 600; }
.btn.wa { background: #1fa855; box-shadow: 0 6px 16px rgba(31, 168, 85, .28); margin-top: 10px; }
.btn.wa:disabled { background: #cfd4da; box-shadow: none; }
.verified { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); border: 1px solid #c9ecd6;
            border-radius: 12px; padding: 10px 12px; }
.verified .ic { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--ok); color: #fff;
                display: flex; align-items: center; justify-content: center; }
.verified b { display: block; font-size: 15.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.verified span { display: block; font-size: 12px; color: var(--ok); font-weight: 600; }
.verified b span { display: inline; font-size: inherit; color: inherit; font-weight: inherit; }
.verified .linkbtn { margin-left: auto; white-space: nowrap; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink2); }
.field .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input {
  width: 100%; border: 1.5px solid #e3e6ea; border-radius: 12px; padding: 12px 13px;
  font-size: 16px; background: #fff; outline: 0;
}
.input:focus { border-color: var(--o); box-shadow: 0 0 0 3px rgba(242, 101, 34, .14); }
textarea.input { resize: vertical; min-height: 84px; }
.phone { display: flex; align-items: stretch; }
.phone .cc {
  display: flex; align-items: center; padding: 0 12px; border: 1.5px solid #e3e6ea; border-right: 0;
  border-radius: 12px 0 0 12px; background: #f8f9fa; color: var(--ink2); font-weight: 600;
}
.phone .input { border-radius: 0 12px 12px 0; }
.locbtn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 1.5px solid var(--o-line);
  color: var(--o); background: var(--o-soft); border-radius: 10px; padding: 7px 12px; font-weight: 700;
  font-size: 13.5px; cursor: pointer;
}
.locbtn.ok { color: var(--ok); background: var(--ok-soft); border-color: #c9ecd6; }
.locmsg { display: block; font-size: 12px; color: var(--muted); margin: 6px 2px 0; }

.pay { display: grid; gap: 10px; }
.pay label {
  display: flex; gap: 12px; align-items: center; border: 1.5px solid #e3e6ea; border-radius: 14px;
  padding: 12px 14px; cursor: pointer; background: #fff; margin: 0;
}
.pay input { accent-color: var(--o); width: 20px; height: 20px; margin: 0; flex: none; }
.pay label:has(input:checked) { border-color: var(--o); background: var(--o-soft); }
.pay b { display: block; font-size: 15px; color: var(--ink); }
.pay span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pay .ic { margin-left: auto; color: var(--o); }

.rxbox { border: 1.5px dashed var(--o-line); border-radius: 14px; padding: 14px; background: #fffbf8; }
.rxbox .btns { display: flex; gap: 8px; margin-top: 10px; }
.rxbox .btns label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0;
  border-radius: 12px; height: 44px; font-weight: 700; font-size: 14px; cursor: pointer;
  background: var(--o); color: #fff;
}
.rxbox .btns label.alt { background: #fff; color: var(--o); border: 1.5px solid var(--o); }
.rxbox input[type=file] { display: none; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs .t { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative;
             background: #eee; box-shadow: var(--shadow); }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 12px; border: 0;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}

.bottom-cta {
  position: fixed; left: 50%; transform: translateX(-50%); width: min(520px, 100%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: #fff; padding: 10px 16px; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16, 24, 40, .06); z-index: 29;
}
.bottom-cta.flush { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 35; }
.bottom-cta .alert { margin-bottom: 8px; }
body.cta { padding-bottom: calc(var(--nav-h) + 90px + env(safe-area-inset-bottom)); }
body.nonav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- tracking */
.status-card { text-align: left; }
.status-card .no { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.status-card .st { font-size: 21px; font-weight: 800; margin: 2px 0 2px; }
.status-card .when { font-size: 12.5px; color: var(--muted); }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 11px; top: 24px; bottom: -2px; width: 2px; background: #e6e8eb;
}
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--o); }
.timeline .dot {
  flex: none; width: 24px; height: 24px; border-radius: 12px; border: 2px solid #dfe3e7; background: #fff;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.timeline li.done .dot { background: var(--o); border-color: var(--o); color: #fff; }
.timeline li.now .dot { box-shadow: 0 0 0 5px rgba(242, 101, 34, .18); }
.timeline .lb { font-weight: 600; color: var(--muted); padding-top: 1px; }
.timeline li.done .lb { color: var(--ink); }
.timeline .tm { margin-left: auto; font-size: 12px; color: var(--muted); padding-top: 3px; }

.code {
  border: 2px dashed var(--o); background: var(--o-soft); border-radius: var(--r); padding: 14px;
  text-align: center; margin-bottom: 12px;
}
.code .lbl { font-size: 13px; font-weight: 700; color: var(--o); letter-spacing: .4px; text-transform: uppercase; }
.code .digits { font-size: 44px; font-weight: 800; letter-spacing: 14px; margin: 2px 0 2px 14px; color: var(--ink);
                font-variant-numeric: tabular-nums; }
.code .sub { font-size: 13px; color: var(--ink2); }

.shop { display: flex; gap: 12px; align-items: flex-start; }
.shop .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--o-soft); color: var(--o);
            display: flex; align-items: center; justify-content: center; }
.shop .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.shop b { display: block; font-size: 15.5px; }
.shop span { font-size: 13px; color: var(--ink2); }

.items .it { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.items .it:last-child { border-bottom: 0; }
.items .it .q { color: var(--muted); margin-left: 4px; }

.upi { display: flex; gap: 14px; align-items: center; }
.upi .qr { flex: none; width: 132px; background: #fff; border-radius: 10px; padding: 4px; border: 1px solid var(--line); }
.upi .qr svg { display: block; width: 100%; height: auto; }

.refresh { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.refresh .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: var(--ok);
                  margin-right: 6px; animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- my orders */
.orow { display: block; color: inherit; }
.orow .top2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.orow .no { font-weight: 700; }
.orow .dt { font-size: 12.5px; color: var(--muted); }
.orow .what { font-size: 13.5px; color: var(--ink2); margin: 6px 0 8px;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .bot { display: flex; align-items: center; gap: 8px; }
.orow .tot { font-weight: 800; }
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.chip.PLACED, .chip.ACCEPTED { background: #eef4ff; color: #3b5bdb; }
.chip.PACKED, .chip.PICKED_UP { background: var(--o-soft); color: var(--o); }
.chip.DELIVERED { background: var(--ok-soft); color: var(--ok); }
.chip.CANCELLED, .chip.REJECTED { background: #f1f3f5; color: #6b7280; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 90px); transform: translateX(-50%) translateY(20px);
  background: #1d232b; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px;
  opacity: 0; transition: .2s; pointer-events: none; z-index: 50; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
        border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { height: 78px; background: linear-gradient(90deg, #f1f2f4 25%, #f8f9fa 50%, #f1f2f4 75%);
        background-size: 200% 100%; animation: sk 1.2s infinite; border-bottom: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

@media (min-width: 521px) {
  body { box-shadow: 0 0 0 1px #e3e6ea; }
}

/* ---------------------------------------------------------------- prescription orders (29 Sep 2026) */
.rxentry {
  display: flex; align-items: center; gap: 12px; margin: 16px 16px 0; padding: 14px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink);
  border: 1.5px solid var(--o-line);
}
.rxentry .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; color: #fff;
               background: linear-gradient(135deg, var(--o), var(--o2));
               display: flex; align-items: center; justify-content: center; }
.rxentry .tx { flex: 1; min-width: 0; }
.rxentry b { display: block; font-size: 15.5px; line-height: 1.3; }
.rxentry small { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.35; margin-top: 2px; }
.rxentry .go { flex: none; color: var(--o); }
.rxentry:active { background: var(--o-soft); }

.rxhow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.rxhow div { background: var(--o-soft); color: #7a3410; border-radius: 12px; padding: 9px 8px;
             font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; }
.rxhow .n { display: flex; margin: 0 auto 4px; width: 20px; height: 20px; border-radius: 10px;
            background: var(--o); color: #fff; font-size: 11px; align-items: center; justify-content: center; }

.tickrow { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.tickrow input { accent-color: var(--o); width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.tickrow b { display: block; font-size: 14.5px; line-height: 1.35; }
.tickrow small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.remind-on { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); }
.remind-on .bell { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--ok-soft);
                   color: var(--ok); display: flex; align-items: center; justify-content: center; }
.remind-on a, .remind-link a { font-weight: 700; }
.remind-link { text-align: center; }

.quote { border: 2px solid var(--o); }
.quote .qsub { font-size: 12.5px; color: var(--muted); margin: 1px 0 8px; }
.quote .qnote { background: var(--warn-soft); color: #6b3f00; border-radius: 10px; padding: 8px 10px;
                font-size: 13.5px; margin-bottom: 8px; }
.quote .ql { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
             border-bottom: 1px solid var(--line); font-size: 14.5px; }
.quote .ql:last-child { border-bottom: 0; }
.quote .ql .q { color: var(--muted); margin-left: 4px; }
.quote .ql .am { font-weight: 700; text-align: right; white-space: nowrap; }
.quote .ql .mrp { display: block; font-weight: 500; }
.quote .qsave { background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13.5px;
                border-radius: 10px; padding: 7px 10px; margin: 8px 0 2px; }

/* ---------------------------------------------------------------- order again */
.orow { padding: 0; overflow: hidden; }
.orow > a { display: block; color: inherit; padding: 14px 14px 12px; }
.orow .kind { font-size: 11px; font-weight: 700; color: #3b5bdb; background: #eef4ff; border-radius: 20px;
              padding: 2px 8px; margin-left: 4px; vertical-align: 1px; }
.orow .trk { margin-left: auto; font-weight: 700; font-size: 13.5px; color: var(--o); }
.orow .again { width: auto; margin: 0 14px 14px; padding: 0 16px; height: 40px; }
.btn.again svg { flex: none; }
.items .dl { font-size: 13px; color: var(--ink2); margin-top: 8px; }
.chip.RX_REVIEW, .chip.QUOTED { background: var(--warn-soft); color: var(--warn); }
