/* LiteShop online store: clean, white, mobile-first. */
:root {
  --brand: #006AFF;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(0, 106, 255, 0.10);
  --brand-line: rgba(0, 106, 255, 0.35);
  --brand-text: #0058D6;
  --ink: #1F2328;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --bg-3: #EEF0F3;
  --ok: #0B7A3E;
  --ok-bg: #E8F6EE;
  --low: #8A5300;
  --low-bg: #FFF4E0;
  --bad: #B42318;
  --bad-bg: #FDECEA;
  --info-bg: #EEF4FF;
  --viber: #7360F2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.18);
  --font: Inter, "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", Roboto, "Myanmar Text", sans-serif;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html:lang(my) body { line-height: 1.75; }
main { flex: 1 0 auto; outline: none; padding-bottom: 32px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
html:lang(my) h1, html:lang(my) h2, html:lang(my) h3 { line-height: 1.6; }
a { color: var(--brand-text); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
.icon { flex: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.block { display: block; }
.prewrap { white-space: pre-line; overflow-wrap: anywhere; }
.noscript { padding: 24px; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  background: var(--bg-3); color: var(--ink); transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover:not(:disabled) { box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .08); }
.btn-secondary { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-2); }
.btn-outline { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-2); }
.btn-add { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.btn-add:hover:not(:disabled) { background: var(--brand); color: var(--brand-ink); }
.btn-add:disabled { background: var(--bg-3); color: var(--ink-3); opacity: 1; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-outline-danger { background: var(--bg); color: var(--bad); border-color: #F1B8B2; }
.btn-outline-danger:hover { background: var(--bad-bg); }
.btn-viber { background: var(--viber); color: #fff; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 12px 22px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1 1 auto; }
.link-btn {
  background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--brand-text); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: var(--bg-2); }

/* ---------- header ---------- */
.announce { background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 500; text-align: center; }
.announce p { padding: 8px 16px; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-decoration: none; color: var(--ink); padding: 6px 0; }
.logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-3); }
.logo-initials {
  display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.brand-name {
  font-weight: 700; font-size: 17px; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.brand-tag { font-size: 13px; color: var(--ink-3); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:lang(my) .brand-name, html:lang(my) .brand-tag { line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; margin-right: 4px; }
.lang-btn {
  min-width: 44px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.lang-btn[lang="my"] { font-size: 13px; }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cart-btn { padding: 0 8px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box; transform: translate(25%, -10%);
}
.cart-total { display: none; font-weight: 600; font-size: 14px; }
.orders-btn { display: none; }
@media (min-width: 480px) { .orders-btn { display: inline-flex; } }
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .cart-btn { padding: 0 14px 0 10px; border: 1px solid var(--line-2); }
  .cart-total:not(:empty) { display: inline; margin-left: 8px; }
  .cart-btn .cart-count { position: static; transform: none; border: 0; margin-left: -2px; }
  .brand-name { font-size: 19px; }
  .logo { width: 44px; height: 44px; }
}

/* ---------- banners / notices ---------- */
.banners { display: grid; gap: 8px; padding-top: 12px; }
.paused {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--low-bg); color: #5C3A00; font-size: 15px;
}
.paused .icon { margin-top: 2px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-2); font-size: 15px; margin: 12px 0;
}
.notice > .icon { margin-top: 2px; }
.notice-body { display: grid; gap: 4px; min-width: 0; }
.notice-warn { background: var(--low-bg); color: #5C3A00; }
.notice-info { background: var(--info-bg); color: #10316B; }
.notice-bad { background: var(--bad-bg); color: #7A1A12; }
.notice-good { background: var(--ok-bg); color: #0A5A2E; }
.change-list { margin: 4px 0 0; padding-left: 18px; }

/* ---------- catalog ---------- */
.catalog { padding-top: 16px; }
.hero { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 12 / 5; max-height: 340px; width: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero { aspect-ratio: 3 / 1; } }
.deals { margin: 0 -16px 12px; }
.deals-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.deals-row::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 auto; width: min(300px, 80vw); scroll-snap-align: start; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.promo-icon { color: var(--brand-text); margin-top: 2px; }
.promo-name { font-weight: 700; color: var(--brand-text); }
.promo-sentence { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.product-promos .promo-card { width: auto; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 720px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-input {
  width: 100%; height: 46px; padding: 0 44px 0 42px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg-2); font-size: 16px; appearance: none; -webkit-appearance: none;
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-input:focus { background: var(--bg); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-clear {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0;
  background: transparent; border-radius: 999px; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center;
}
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.sort { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; color: var(--ink-3); }
.sort-wrap { position: relative; display: inline-flex; }
.sort-select {
  height: 44px; padding: 0 34px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
  font-size: 15px; font-weight: 500; color: var(--ink); appearance: none; -webkit-appearance: none; max-width: 52vw; text-overflow: ellipsis;
}
.sort-select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sort-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 4px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2);
  position: relative;
}
.chip::after { content: ""; position: absolute; inset: -3px 0; } /* 44px tap target */
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--ink-3); }
.result-count { font-size: 14px; min-height: 1.5em; }
.cat-section { margin-bottom: 28px; }
.cat-title { font-size: 19px; font-weight: 700; margin: 4px 0 12px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; flex: 1 1 auto; border-radius: var(--radius); }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 2px; }
.card-link:hover .media img { transform: scale(1.03); }
.media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); color: #8B929B;
  font-weight: 600; font-size: clamp(28px, 9vw, 44px); letter-spacing: .02em; user-select: none;
}
.media-badges { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.sale-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px;
}
.sale-badge.inline { margin-left: 8px; vertical-align: middle; }
.promo-badge {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 600; line-height: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.promo-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.digital-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.card-body { display: grid; gap: 2px; padding: 0 2px; }
.card-name {
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html:lang(my) .card-name { line-height: 1.6; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price { font-weight: 700; font-size: 15px; }
.price.on-sale { color: var(--bad); }
.compare { color: var(--ink-3); font-size: 13px; }
.price-row.large .price { font-size: 24px; }
.price-row.large .compare { font-size: 16px; }
.card-meta { min-height: 22px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock-in { color: var(--ok); }
.stock-low { color: var(--low); }
.stock-out { color: var(--bad); }
.stock-back { color: var(--brand-text); }
.card.is-out .media img, .card.is-out .media-ph { opacity: .55; }
.card-action { min-height: 44px; }
.card-action .btn { width: 100%; }

/* stepper */
.stepper { display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); min-height: 44px; }
.stepper.compact { width: 100%; }
.card-action .stepper { width: 100%; border-color: var(--brand-line); background: var(--brand-soft); }
.stepper-btn {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.stepper-btn:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }
.stepper-btn:disabled { color: #B8BDC4; }
.stepper-value { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.line-side .stepper { width: 132px; }

/* empty / error */
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 10px; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-icon.bad { background: var(--bad-bg); color: var(--bad); }
.empty-title { font-size: 20px; font-weight: 700; outline: none; }
.empty .btn { margin-top: 8px; }

/* skeletons */
.sk { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 40%, var(--bg-2) 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--radius-sm); }
.sk-line { height: 14px; margin: 6px 0; width: 90%; }
.sk-line.short { width: 55%; }
.sk-input { flex: 1; height: 46px; border-radius: 999px; }
.sk-select { width: 120px; height: 46px; border-radius: 999px; }
.sk-chip { width: 84px; height: 40px; border-radius: 999px; flex: none; }
.sk-title { height: 28px; width: 70%; margin: 8px 0 16px; }
.sk-btn { height: 52px; border-radius: 999px; margin-top: 16px; }
.site-header .logo.sk { display: inline-block; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- product page ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 8px 0 4px -6px; padding: 0 8px 0 4px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px;
}
.back-link:hover { color: var(--ink); background: var(--bg-2); }
.product { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}
.gallery { min-width: 0; }
.gallery-stage { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-media { border-radius: 0; }
.gallery > .gallery-media { border-radius: var(--radius); }
.gallery-media .media-ph { font-size: clamp(48px, 18vw, 96px); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .gallery-nav { display: inline-flex; } }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.gdot.on { background: #fff; width: 18px; border-radius: 999px; }
.thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; }
@media (min-width: 900px) { .thumbs { display: flex; } .gallery-dots { display: none; } }
.thumb { width: 72px; height: 72px; flex: none; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }

.product-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.crumbs { font-size: 14px; }
.product-name { font-size: 24px; font-weight: 700; outline: none; overflow-wrap: anywhere; }
@media (min-width: 900px) { .product-name { font-size: 30px; } }
.product-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.product-stock:empty { display: none; }
.product-promos { display: grid; gap: 8px; }
.variants { display: grid; gap: 8px; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.variant-list { display: grid; gap: 8px; }
.variant {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: 1px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer; background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.variant:hover { border-color: var(--ink-3); }
.variant:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.variant:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.variant.is-out { cursor: not-allowed; color: var(--ink-3); background: var(--bg-2); }
.variant input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.variant-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.variant-name { font-weight: 600; }
.variant-price { display: grid; justify-items: end; font-weight: 700; white-space: nowrap; }
.variant-price .compare { font-weight: 400; }
.buybar { display: block; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .stepper { flex: none; }
@media (max-width: 899.98px) {
  .buybar {
    position: sticky; bottom: 0; z-index: 15; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(16, 24, 40, .06);
  }
}
.in-cart { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.in-cart:empty { display: none; }
.in-cart .icon { color: var(--ok); }
.product-tools { display: flex; gap: 8px; }
.product-tools .btn { margin-left: -12px; }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.description p { color: var(--ink-2); }
.meta-list { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.meta-list div { display: flex; gap: 8px; }
.meta-list dt { color: var(--ink-3); min-width: 90px; }
.meta-list dd { margin: 0; }
.field-error { color: var(--bad); font-size: 14px; font-weight: 500; margin-top: 4px; }

/* ---------- cart ---------- */
.cart-page { padding-bottom: 24px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 8px; }
.page-title { font-size: 26px; font-weight: 700; outline: none; margin: 4px 0 12px; }
.cart-head .page-title { margin: 0; }
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb info" "thumb side";
  gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .line { grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "thumb info side"; align-items: center; }
}
.line-thumb { grid-area: thumb; display: block; text-decoration: none; }
.line-thumb .media { border-radius: var(--radius-sm); }
.line-thumb .media-ph { font-size: 22px; }
.line-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.line-name { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.line-name:hover { text-decoration: underline; }
.line-variant, .line-unit { font-size: 14px; }
.line-side { grid-area: side; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 600px) { .line-side { flex-direction: column; align-items: flex-end; } }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.line.is-unavailable .line-name { color: var(--ink-3); text-decoration: line-through; }
.cart-summary { display: grid; gap: 12px; padding: 16px 0 0; }
.cart-summary.in-drawer { position: sticky; bottom: 0; background: var(--bg); padding: 16px 0 calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 8px; }
.meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); }
.meter-text { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }
.meter-bar { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.meter.done { background: var(--ok-bg); color: var(--ok); }
.meter.done .meter-bar span { background: var(--ok); }
.sum-rows { display: grid; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.sum-row.good { color: var(--ok); }
.promo-note, .blocker, .order-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.promo-note .icon, .blocker .icon, .order-note .icon { margin-top: 3px; }
.promo-note .icon { color: var(--brand-text); }
.blocker { color: #5C3A00; background: var(--low-bg); padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- checkout ---------- */
.checkout { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .checkout-side { position: sticky; top: calc(var(--header-h) + 16px); padding-top: 52px; }
}
.checkout-main { display: grid; gap: 16px; min-width: 0; }
.checkout-main .page-title { margin-bottom: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); display: grid; gap: 12px; }
.choice-set { display: grid; gap: 10px; }
.choice-set.invalid .choice { border-color: #F1B8B2; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; min-height: 56px; transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice-icon { color: var(--ink-2); flex: none; margin-top: 1px; }
.choice-main { display: grid; gap: 2px; min-width: 0; }
.choice-title { font-weight: 600; }
.choice-desc { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.pay-how { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); border: 1px dashed var(--brand-line); font-size: 14px; }
.pay-how-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pay-how-text { margin: 0; font-size: 15px; }
.pay-how p { margin: 0; }
.field { display: grid; gap: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 16px; line-height: 1.4;
}
textarea.input { resize: vertical; min-height: 72px; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.hint { font-size: 13px; color: var(--ink-3); }
.summary { gap: 14px; }
.summary .section-title { margin-bottom: 0; }
.summary-body { display: grid; gap: 12px; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; font-size: 15px; align-items: baseline; }
.mini-lines li.is-unavailable { color: var(--ink-3); }
.mini-qty { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mini-name { overflow-wrap: anywhere; }
.mini-total { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edit-cart { font-size: 14px; font-weight: 600; justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.place-status { font-size: 14px; color: var(--ink-2); text-align: center; }
.place-status:empty { display: none; }
.form-error .notice { margin: 0; }
.form-error:empty { display: none; }
.place-btn[aria-busy="true"] { opacity: .85; cursor: progress; }

/* ---------- order status ---------- */
.order-page .order-body { display: grid; gap: 16px; }
.thanks { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--ok-bg); color: #0A4D29; }
.thanks-icon { color: var(--ok); }
.thanks-title { font-size: 18px; font-weight: 700; }
.status-hero { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--brand-soft); }
.status-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.status-text { display: grid; gap: 4px; min-width: 0; }
.status-title { font-size: 26px; font-weight: 800; outline: none; letter-spacing: -.01em; }
.status-desc { font-size: 16px; color: var(--ink-2); }
.status-reason { font-size: 15px; font-weight: 500; }
.st-completed.status-hero { background: var(--ok-bg); }
.st-completed .status-icon { background: var(--ok); color: #fff; }
.st-cancelled.status-hero { background: var(--bad-bg); }
.st-cancelled .status-icon { background: var(--bad); color: #fff; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(11, 122, 62, .5); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(11, 122, 62, .45); } 70% { box-shadow: 0 0 0 8px rgba(11, 122, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 122, 62, 0); } }
.code-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.order-code { font-size: 24px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.save-code { grid-column: 1 / -1; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--brand); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-2); background: var(--bg); color: #fff; position: relative; z-index: 1;
}
.step.is-done .step-dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.step.is-current .step-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.step.is-current .step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.step.is-cancelled .step-dot { background: var(--bad); border-color: var(--bad); }
.step-text { display: grid; gap: 0; padding-top: 2px; min-width: 0; }
.step-label { font-weight: 600; }
.step.is-todo .step-label { color: var(--ink-3); font-weight: 500; }
.step.is-current .step-label { color: var(--ink); font-weight: 700; }
.step.is-cancelled .step-label { color: var(--bad); }
.step-time { font-size: 13px; color: var(--ink-3); }
.cancel-row { display: flex; justify-content: center; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-row .btn { flex: 1 1 140px; }
.details { margin: 0; display: grid; gap: 10px; }
.details div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.details dt { color: var(--ink-3); font-size: 15px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .details div { grid-template-columns: 1fr; gap: 0; } }

/* dialogs */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(17, 24, 39, .45); }
.modal-body { display: grid; gap: 12px; padding: 20px; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.modal-actions .btn { flex: 1 1 140px; }

/* ---------- my orders ---------- */
.order-list { list-style: none; margin: 16px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-list li + li { border-top: 1px solid var(--line); }
.order-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; text-decoration: none; color: inherit; }
.order-row:hover { background: var(--bg-2); }
.order-row-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.order-row-code { font-weight: 700; letter-spacing: .05em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.status-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-text); white-space: nowrap;
}
.status-chip.st-completed { background: var(--ok-bg); color: var(--ok); }
.status-chip.st-cancelled, .status-chip.st-missing { background: var(--bad-bg); color: var(--bad); }
.status-chip.st-ready, .status-chip.st-out_for_delivery { background: var(--low-bg); color: var(--low); }
.empty-orders { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.track-form { display: grid; gap: 6px; }
.track-row { display: flex; gap: 8px; }
.track-row .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.track-row .input::placeholder { letter-spacing: .06em; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 16px; font-size: 15px; }
.footer-inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.3fr 1fr .8fr; gap: 40px; } }
.footer-name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.footer-about { color: var(--ink-2); }
.footer-info, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-info li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); overflow-wrap: anywhere; }
.footer-info .icon { margin-top: 3px; color: var(--ink-3); }
.footer-info a { color: var(--ink); min-height: 32px; }
.footer-label { font-weight: 700; margin-bottom: 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.powered { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.powered a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; min-height: 44px; opacity: .85; }
.powered a:hover { color: var(--ink); }
.powered-mark { width: 14px; height: 14px; border-radius: 4px; background: url("/favicon.svg") center / cover no-repeat; filter: grayscale(1); opacity: .7; }
.powered-version { color: var(--ink-3); opacity: .7; font-variant-numeric: tabular-nums; }
body[data-mode="store"] .site-footer:not(:has(.footer-inner)) { margin-top: 0; padding-top: 0; background: transparent; border-top: 0; }
body[data-mode="store"] .site-footer:not(:has(.footer-inner)) .powered { text-align: center; border-top: 0; }
.closed-info { text-align: left; margin: 4px 0; }
body.has-cartbar .site-footer { padding-bottom: 96px; }

/* ---------- phone cart bar ---------- */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; }
.cartbar-inner {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; box-shadow: var(--shadow-lg); font-weight: 600;
}
.cartbar-count { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.cartbar-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cartbar-cta { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.cartbar.pulse .cartbar-inner { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (min-width: 900px) { .cartbar { display: none !important; } body.has-cartbar .site-footer { padding-bottom: 16px; } }

/* ---------- desktop drawer ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: slidein .22s ease-out; }
.drawer::backdrop { background: rgba(17, 24, 39, .4); }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-panel { position: relative; height: 100%; display: flex; flex-direction: column; }
.drawer-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.drawer-content { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px 0; display: flex; flex-direction: column; }
.drawer-content .lines { flex: 1 0 auto; }
.drawer-title { font-size: 22px; font-weight: 700; outline: none; }
.drawer .cart-head { padding-right: 48px; margin-top: 4px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
body.has-cartbar .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
body[data-route="product"] .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .toasts, body.has-cartbar .toasts, body[data-route="product"] .toasts { bottom: 24px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; min-height: 48px; padding: 8px 8px 8px 18px;
  background: #1F2328; color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 500;
  animation: toastin .2s ease-out;
}
.toast:not(:has(.toast-action)) { padding-right: 18px; }
.toast-action { color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- closed store ---------- */
.closed-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.closed-card { max-width: 460px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.closed-card h1 { font-size: 24px; font-weight: 700; outline: none; }
.closed-card .logo { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.closed-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.closed-lang { margin-top: 12px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sk { animation: none; }
  .card-link:hover .media img { transform: none; }
}

/* =================== Marketplace =================== */
.market-logo { background: transparent; border-radius: 10px; }
.mk-hero { background: linear-gradient(180deg, var(--brand-soft), rgba(255, 255, 255, 0)); padding: 28px 0 16px; }
.mk-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; outline: none; max-width: 720px; }
.mk-hero-body { color: var(--ink-2); margin-top: 6px; max-width: 640px; }
.mk-search { display: flex; gap: 8px; margin-top: 16px; max-width: 760px; }
.mk-search .search { max-width: none; }
.mk-search-input { height: 52px; background: var(--bg); box-shadow: var(--shadow); border-color: var(--line); }
.mk-search-btn { min-height: 52px; flex: none; }
@media (min-width: 900px) { .mk-hero { padding: 48px 0 24px; } .mk-hero-title { font-size: 36px; } }
@media (max-width: 420px) { .mk-search-btn { padding: 10px 14px; } }
.mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 8px; }
.mk-filters .chips { flex: 1 1 100%; margin-bottom: 0; }
@media (min-width: 900px) { .mk-filters .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 8px; } }
.city { color: var(--ink-2); }
.city-select { min-width: 150px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; }
.cat-chip .icon { color: var(--ink-3); }
.cat-chip[aria-pressed="true"] .icon { color: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.section-h2 { font-size: 20px; font-weight: 700; }
.see-all { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; flex: none; }
@media (max-width: 599px) { .section-h2 { font-size: 18px; } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.product-row { grid-auto-columns: minmax(160px, 200px); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.store-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.store-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.store-card-cover { position: relative; height: 84px; background: var(--bg-3); }
.store-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-card-paused { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--low-bg); color: #5C3A00; font-size: 12px; font-weight: 600; }
.store-card-body { display: flex; gap: 12px; padding: 0 14px 14px; align-items: flex-start; }
.store-card-body .logo { width: 48px; height: 48px; margin-top: -20px; border: 3px solid #fff; border-radius: 12px; box-sizing: content-box; flex: none; }
.store-card-text { display: grid; gap: 1px; min-width: 0; padding-top: 8px; }
.store-card-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card-meta, .store-card-areas, .store-card-count { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card-count { color: var(--ink-2); font-weight: 500; }
.sk-store { min-height: 150px; }
.load-more { display: flex; justify-content: center; margin: 24px 0 8px; }
.card-store { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 2px; min-width: 0; }
.store-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.store-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-city { font-size: 12px; color: var(--ink-3); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.facts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.facts .icon { margin-top: 2px; color: var(--ink-3); }
.facts strong { color: var(--ink); }
.mk-store-head { display: grid; gap: 14px; padding-bottom: 8px; }
.mk-store-banner { border-radius: var(--radius); overflow: hidden; aspect-ratio: 12 / 5; max-height: 280px; background: var(--bg-3); }
.mk-store-banner img { width: 100%; height: 100%; object-fit: cover; }
.mk-store-id { display: flex; gap: 14px; align-items: center; }
.mk-store-id.over-banner { padding: 0 12px; align-items: flex-start; }
.mk-store-id.over-banner .logo { margin-top: -40px; }
.mk-store-id.over-banner .mk-store-text { padding-top: 6px; }
.mk-store-id .logo { width: 72px; height: 72px; border-radius: 16px; border: 4px solid #fff; box-sizing: content-box; font-size: 24px; box-shadow: var(--shadow); }
.mk-store-text { min-width: 0; display: grid; gap: 2px; }
.mk-store-name { font-size: 24px; font-weight: 800; outline: none; overflow-wrap: anywhere; }
.mk-store-tag { color: var(--ink-2); }
.mk-store-about { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-store-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-store-actions .contact-row { display: contents; }
.mk-store-actions .contact-row .btn { flex: 0 1 auto; }
.mk-store .catalog { padding-top: 4px; }
.store-box { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.store-box .section-title { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html:lang(my) .store-box .section-title { text-transform: none; letter-spacing: 0; }
.store-box-head { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.store-box-head:hover .store-box-name { text-decoration: underline; }
.store-box-text { display: grid; flex: 1 1 auto; min-width: 0; }
.store-box-name { font-weight: 700; }
.more-from { margin-top: 32px; }
.shop-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin-bottom: 16px; }
.shop-group .lines .line:last-child { border-bottom: 0; }
.shop-group-head { padding: 12px 0 4px; border-bottom: 1px solid var(--line); }
.shop-group-link { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.shop-group-link .logo { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.shop-group-text { display: grid; min-width: 0; }
.shop-group-name { font-weight: 700; }
.shop-group-link:hover .shop-group-name { text-decoration: underline; }
.shop-group-loading { padding: 12px 0; }
.shop-group-sum { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-checkout { gap: 14px; }
.shop-checkout .shop-group-head { padding-top: 0; }
.shop-checkout-sum { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-totals li { align-items: center; }
.shop-totals .mini-qty { color: var(--ink-3); display: inline-flex; }
.sum-row.grand { font-size: 19px; }
.order-shop { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.order-shop .logo { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.order-row-shop { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.sell-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 52px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.sell-link:hover { background: #000; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.track-form select.input { appearance: auto; }

/* =================== Delivery zones =================== */
.loc-picker { display: grid; gap: 10px; }
.loc-row { display: grid; gap: 10px; }
@media (min-width: 600px) { .loc-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.loc-row .field { gap: 6px; }
.loc-town { display: grid; gap: 6px; }
.loc-search { min-height: 44px; padding: 8px 12px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-msg { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.loc-msg:empty { display: none; }
.loc-msg .icon { margin-top: 3px; flex: none; }
.deliver-to { display: grid; gap: 10px; padding: 12px 14px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.deliver-to-head { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.deliver-to-head > .icon { color: var(--ink-3); flex: none; }
.deliver-to-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.deliver-to-change { min-height: 36px; }
.dz-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0; }
.dz-msg .icon { margin-top: 3px; flex: none; }
/* Courier cash on delivery: "Pay 53,550 to Royal Express when your parcel arrives." / "pay … at the door". */
.rc-cod-footer { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.rc-cod-footer .icon { margin-top: 3px; flex: none; }
.cod-door { margin: 2px 0 6px; overflow-wrap: anywhere; }
.dz-ok { color: var(--ok); font-weight: 500; }
.dz-bad { color: #7A1A12; background: var(--bad-bg); padding: 8px 10px; border-radius: var(--radius-sm); }
.dz-info { color: var(--ink-2); }
.quote-box:empty { display: none; }
.quote-box { padding: 2px 0; }
#field-location.invalid .loc-picker select { border-color: var(--bad); }
.quote-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.quote-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-chip.ok { color: var(--ok); }
.quote-chip.no { color: var(--low); }
.card-store .quote-chip { flex-basis: 100%; }
.store-card-text .quote-chip { margin-top: 1px; }
.delivery-info { margin: 32px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; max-width: 760px; }
.delivery-info .section-title { margin: 0; }
.deliver-bar { border-top: 1px solid var(--line); background: var(--bg-2); }
.deliver-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 2px; border: 0; background: transparent;
  font-size: 14px; color: var(--ink); max-width: 100%;
}
.deliver-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliver-chip > .icon:first-child { color: var(--brand-text); }
.deliver-chip:hover strong { text-decoration: underline; }
.choice.is-disabled { cursor: not-allowed; background: var(--bg-2); color: var(--ink-3); border-style: dashed; }
.choice.is-disabled .choice-desc { color: var(--low); }
.dz-filter { display: inline-flex; align-items: center; gap: 6px; }
.dz-filter[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.loc-dialog { width: min(520px, calc(100vw - 24px)); }
.loc-dialog .loc-row { grid-template-columns: 1fr; }

/* carriers: fee breakdown, featured badge */
.fee-breakdown { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; }
.fee-breakdown summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; cursor: pointer; color: var(--brand-text); font-weight: 600; list-style: none; }
.fee-breakdown summary::-webkit-details-marker { display: none; }
.fee-breakdown summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--ink-3); }
.fee-breakdown[open] summary::after { content: "−"; }
.fee-breakdown .sum-rows { padding: 0 12px 10px; gap: 4px; }
.fee-breakdown .sum-row.total { font-size: 15px; padding-top: 6px; }
.store-card-featured { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #FFF8E1; color: #6B4E00; font-size: 12px; font-weight: 700; }
.fee-breakdown .sum-row > span:last-child { white-space: nowrap; }
.fee-breakdown .sum-row > span:first-child { min-width: 0; }

/* shared receipt (/r/{token}) */
.rc { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 24px; }
.rc-header { justify-content: space-between; }
.rc-header-title { font-weight: 700; font-size: 18px; }
.rc-shop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.rc-shop .logo { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
.rc-shop-text { display: grid; gap: 2px; min-width: 0; }
.rc-shop-name { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.rc-shop-address { overflow-wrap: anywhere; }
.rc-contact { grid-column: 1 / -1; margin-top: 8px; }
.rc-status { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--ok-bg); }
.rc-status-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--ok); color: #fff; }
.rc-status-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; outline: none; margin: 0; }
.rc-status-desc { margin: 2px 0 0; color: var(--ink-2); }
.rc-partial { background: var(--low-bg); }
.rc-partial .rc-status-icon { background: var(--low); }
.rc-refunded { background: var(--bg-3); }
.rc-refunded .rc-status-icon { background: var(--ink-2); }
.rc-voided { background: var(--bad-bg); }
.rc-voided .rc-status-icon { background: var(--bad); }
/* Still owed: on credit / partly paid, and courier COD before delivery. */
.rc-owed { background: var(--low-bg); }
.rc-owed .rc-status-icon { background: var(--low); }
.rc-due { background: var(--info-bg); }
.rc-due .rc-status-icon { background: #2F5BB7; }
.rc-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.rc-meta-right { text-align: right; }
.rc-meta-full { grid-column: 1 / -1; }
.rc-no { font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.rc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-line-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rc-line-name { overflow-wrap: anywhere; min-width: 0; }
.rc-line-total { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-line-sub { font-variant-numeric: tabular-nums; }
.rc-line-sub .good { color: var(--ok); }
.rc-refunded-line { color: var(--low); }
.rc-refund-row { color: var(--low); }
.rc-fulfil-row { display: flex; align-items: center; gap: 10px; }
.rc-delivery .section-title { display: flex; align-items: center; gap: 6px; }
.rc-tracking { display: grid; gap: 8px; margin-top: 8px; justify-items: start; }
.rc-tracking-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rc-tracking-no, .tracking-no { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.handover { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); justify-items: start; }
.handover p { margin: 0; }
.handover-company { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
.handover-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rc-actions { display: flex; justify-content: center; }
.rc-actions .btn { min-width: 220px; }
.rc-tz { text-align: center; margin: 0; }
/* Receipt designer (views/receipt_design.js) */
.rcd { --rcd-scale: 1; font-size: calc(1rem * var(--rcd-scale)); }
.rcd.rcd-compact { gap: 8px; }
.rcd-align-left { text-align: left; justify-content: flex-start; }
.rcd-align-center { text-align: center; justify-content: center; }
.rcd-align-right { text-align: right; justify-content: flex-end; }
.rcd-logo img { max-width: 100%; max-height: 160px; object-fit: contain; }
.rcd-header { display: grid; gap: 2px; }
.rcd-text p { margin: 0 0 4px; overflow-wrap: anywhere; }
.rcd-size-s { font-size: 0.85em; }
.rcd-size-m { font-size: 1em; }
.rcd-size-l { font-size: 1.25em; }
.rcd-size-xl { font-size: 1.6em; }
.rcd-bold { font-weight: 700; }
.rcd-title { margin: 0; font-size: 1.15em; }
.rcd-rule { border: 0; border-top: 1px dashed var(--border, #d0d4da); margin: 0; width: 100%; }
.rcd-rule-solid { border-top-style: solid; }
.rcd-space { height: 8px; }
.rcd-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.rcd-qr { display: flex; flex-wrap: wrap; }
.rcd-pay { display: grid; gap: 4px; justify-items: center; }
.rcd-pay p { margin: 0; }
.rcd-pay-img { width: min(240px, 70%); height: auto; border-radius: 8px; }
.rcd-promo p { margin: 0 0 4px; }
.rcd-code { font-size: 1.6em; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.rcd-cod { margin: 8px 0 0; }
.print-only { display: none; }
body[data-mode="receipt"] .site-footer .powered { text-align: center; border-top: 0; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 12pt; }
  .no-print, .site-header .lang, .skip-link, .cartbar, .toasts, #announce, #store-banner { display: none !important; }
  .print-only { display: block; }
  .site-header { position: static; box-shadow: none; border: 0; }
  .rc { padding: 0; gap: 10px; }
  .rc .panel { border: 1px solid #ccc; break-inside: avoid; }
  .rc-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rc-status-icon, .step-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: none !important; }
}

/* ---------- payment links (pay view on /r/{token}, views/pay.js) ---------- */
.pl-hero { align-items: flex-start; }
.pl-hero-text { min-width: 0; display: grid; gap: 2px; }
.pl-hero .rc-status-title { font-size: 24px; overflow-wrap: anywhere; }
.pl-open { background: var(--brand-soft); }
.pl-open .rc-status-icon { background: var(--brand); color: var(--brand-ink); }
.pl-checking { background: var(--info-bg); }
.pl-checking .rc-status-icon { background: #2F5BB7; }
.pl-cod .rc-status-icon, .pl-paid .rc-status-icon { background: var(--ok); }
.pl-closed { background: var(--bg-3); }
.pl-closed .rc-status-icon { background: var(--ink-2); }
.pl-expiry { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; color: var(--ink-2); }
.pl-for { margin: 4px 0 0; }
.pl-howvideo { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pl-howvideo:hover, .pl-howvideo:focus-visible { color: var(--ink); }
.pl-lines { gap: 12px; }
.pl-line { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
.pl-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); }
.pl-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.pl-line-text { min-width: 0; display: grid; gap: 2px; }
.pl-items .section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.pl-pay, .pl-details { display: grid; gap: 14px; min-width: 0; }
.pl-pay .btn-block { min-height: 52px; font-size: 17px; }
.pl-pay p, .pl-details p, .pl-submitted p, .pl-contact p { margin: 0; }
.pl-methods { border: 0; padding: 0; margin: 0; min-width: 0; }
.pl-methods legend { padding: 0; margin-bottom: 10px; }
.pl-secure { display: flex; gap: 4px; align-items: flex-start; }
.pl-submitted, .pl-contact { display: grid; gap: 10px; justify-items: start; }
.pl-message:empty { display: none; }
.pl-message .notice { margin: 0; }

/* ---------- QR payments (checkout + order page) ---------- */
.qr-box { display: grid; gap: 14px; margin-top: 12px; padding: 14px; border: 1px solid var(--brand-line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.qr-box[hidden] { display: none; }
.qr-pay { display: grid; gap: 12px; min-width: 0; }
.qr-amount { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.qr-amount span { color: var(--ink-2); font-size: 14px; }
.qr-amount strong { font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-chip {
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; max-width: 100%; overflow-wrap: anywhere;
}
.qr-chip:hover { border-color: var(--ink-3); }
.qr-chip.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); box-shadow: 0 0 0 1px var(--brand); }
.qr-chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.qr-card { display: grid; gap: 12px; justify-items: center; min-width: 0; }
.qr-img-btn {
  display: grid; justify-items: center; gap: 6px; width: 100%; max-width: 280px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: zoom-in; font: inherit; color: var(--ink-3);
}
.qr-img-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.qr-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; image-rendering: auto; }
.qr-zoom-hint { font-size: 13px; }
.qr-info { display: grid; gap: 6px; width: 100%; min-width: 0; }
.qr-info p { margin: 0; }
.qr-name { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; text-align: center; }
.qr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 15px; overflow-wrap: anywhere; }
.qr-number { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.qr-number strong { font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }
.qr-steps { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-bg); font-size: 14px; }
@media (min-width: 600px) {
  .qr-card { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; justify-items: stretch; }
  .qr-name { justify-content: flex-start; text-align: left; }
}

.proof-field.invalid .proof-pick { border-color: var(--bad); }
.proof-pick { justify-self: start; }
.proof-preview { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); min-width: 0; }
.proof-preview[hidden] { display: none; }
.proof-preview img { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; flex: none; background: #fff; }
.proof-meta { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.proof-name { color: var(--ink-2); overflow-wrap: anywhere; }
/* The screenshot check right after upload: one short message. */
.proof-check[hidden] { display: none; }
.proof-check .notice { margin: 0; }
.proof-check .notice p { margin: 0; overflow-wrap: anywhere; }
.proof-check .notice > div { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.proof-check .notice .btn { color: var(--ink); }
.proof-checking { align-items: center; }
.spinner { width: 18px; height: 18px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.btn-hint { margin: -6px 0 0; text-align: center; }

/* Payment link: pickup / delivery chosen by the customer, "Order updated" */
.pl-fulfil-choice { display: grid; gap: 14px; min-width: 0; }
.pl-fulfil-choice fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pl-fulfil-choice legend { padding: 0; margin-bottom: 10px; }
.pl-fulfil-choice p { margin: 0; }
.pl-fee { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-2); }
.pl-updated { margin: 0; }
.pl-flash { position: sticky; top: 8px; z-index: 5; box-shadow: var(--shadow); animation: toastin .25s ease-out; }

.qr-overlay { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: rgba(17, 24, 39, .92); color: #fff; }
.qr-overlay::backdrop { background: rgba(17, 24, 39, .92); }
.qr-overlay-body { display: grid; place-content: center; justify-items: center; gap: 10px; height: 100%; padding: 56px 16px 24px; text-align: center; box-sizing: border-box; }
.qr-overlay-img { width: min(92vw, 72dvh, 560px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 12px; padding: 12px; box-sizing: border-box; }
.qr-overlay-name { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.qr-overlay-acct { margin: 0; overflow-wrap: anywhere; }
.qr-overlay .muted { color: rgba(255, 255, 255, .75); }
.qr-overlay-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.qr-overlay-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.qr-status { display: grid; gap: 14px; min-width: 0; }
.qr-status-head { display: flex; gap: 12px; align-items: flex-start; }
.qr-status-head p { margin: 4px 0 0; color: var(--ink-2); }
.qr-status-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; flex: none; background: var(--brand-soft); color: var(--brand-text); }
.qr-status-title { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.qr-st-awaiting { border-color: var(--brand-line); }
.qr-st-checking .qr-status-icon, .qr-st-review .qr-status-icon { background: var(--info-bg); color: var(--brand-text); }
.qr-status-icon.is-busy svg { animation: qr-pulse 1.6s ease-in-out infinite; }
@keyframes qr-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .qr-status-icon.is-busy svg { animation: none; } }
.qr-st-confirmed { background: var(--ok-bg); border-color: transparent; }
.qr-st-confirmed .qr-status-icon { background: #fff; color: var(--ok); }
.qr-st-confirmed .qr-status-title { color: var(--ok); }
.qr-st-rejected { background: var(--low-bg); border-color: transparent; }
.qr-st-rejected .qr-status-icon { background: #fff; color: var(--low); }
.qr-st-rejected .qr-status-title { color: var(--low); }
.qr-facts { margin: 0; padding-left: 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.qr-form-title { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.qr-form { display: grid; gap: 14px; }

/* =================== Delivery details form (views/delivery-form.js) ===================
   Shared by the store checkout and the payment-link page. Mobile-first: one column; Name and
   Phone side by side from 560px. Every control has the same height as .input. */
.df { display: grid; gap: 14px; min-width: 0; }
.df-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .df-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.df-delivery { display: grid; gap: 14px; min-width: 0; }
.df-delivery[hidden] { display: none; }
.df-field { gap: 6px; min-width: 0; }
.df-field .field-label { margin-bottom: 0; }
.df-optional { font-weight: 400; color: var(--ink-3); }
.df textarea.input { min-height: 64px; }
.df-field.invalid .input, #field-location.invalid .area-input { border-color: var(--bad); }
.df-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.area-gps {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--bg); color: var(--brand-text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.area-gps:hover:not(:disabled) { border-color: var(--brand-line); background: var(--brand-soft); }
.area-gps:disabled { color: var(--ink-3); cursor: progress; }
.area-field { display: grid; gap: 6px; min-width: 0; }
.area-combo { position: relative; min-width: 0; }
.area-input { padding-right: 40px; text-overflow: ellipsis; }
.area-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; display: flex; transition: transform .15s; }
.area-combo.is-open .area-chevron { transform: translateY(-50%) rotate(180deg); }
.area-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: min(300px, 50vh); overflow-y: auto; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overscroll-behavior: contain;
}
.area-list[hidden] { display: none; }
.area-opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px;
  border-radius: 6px; cursor: pointer; font-size: 15px;
}
.area-opt:hover, .area-opt.is-active { background: var(--brand-soft); }
.area-opt[aria-selected="true"] .area-opt-main { font-weight: 700; color: var(--brand-text); }
.area-opt-main { min-width: 0; overflow-wrap: anywhere; }
.area-opt-sub { flex: none; color: var(--ink-3); font-size: 13px; }
.area-empty { padding: 12px; color: var(--ink-3); font-size: 14px; }
.area-gps-msg { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--ink-2); }
.area-gps-msg:empty { display: none; }
.area-gps-msg .icon { margin-top: 2px; flex: none; }
.df-quote { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; }
.df-quote:empty { display: none; }
.df-quote > .icon, .df-quote > .spinner { flex: none; margin-top: 2px; }
.df-quote-text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.df-quote-action { min-height: 0; padding: 0; margin-left: 6px; font-size: 14px; text-decoration: underline; }
.df-ok { background: #E8F5EE; color: var(--ok); font-weight: 600; }
.df-bad { background: var(--bad-bg); color: #7A1A12; }
.df-info, .df-busy { background: var(--bg-2); color: var(--ink-2); }
.df-quote .fee-breakdown { flex-basis: 100%; }
/* Payment link: the shop to pick up from (name, address, map). */
.pl-pickup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px; border-radius: var(--radius-sm); background: var(--bg-2); }
.pl-pickup > .icon { color: var(--brand-text); margin-top: 2px; }
.pl-pickup-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pl-pickup-text p { margin: 0; }
.pl-map { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; min-height: 32px; }

/* ---------- selling on Facebook: buy now, chat with the shop ---------- */
.buy-now-row:empty { display: none; }
.buy-now-row { margin-top: 8px; }
@media (max-width: 899.98px) { .buy-now { min-height: 44px; padding-top: 8px; padding-bottom: 8px; } }
.product-tools { flex-wrap: wrap; }
.chat-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; max-width: calc(100vw - 32px); padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.chat-fab-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.has-cartbar .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .chat-fab, body.has-cartbar .chat-fab { right: 24px; bottom: 24px; } }
.chat-links { display: grid; gap: 10px; }
.chat-links .btn { justify-content: flex-start; gap: 10px; }
.chat-messenger { background: #0866FF; color: #fff; }
.chat-viber { background: var(--viber); color: #fff; }
.chat-telegram { background: #1A73A8; color: #fff; }
.chat-whatsapp { background: #0F7A43; color: #fff; }
.chat-phone { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.chat-message { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 14px; overflow-wrap: anywhere; }
@media print { .chat-fab { display: none !important; } }

/* Digital goods (views/digital.js): checkout questions, codes on the order page / receipt. */
.dg-line-title { font-size: 15px; margin: 14px 0 6px; }
.dg-checkout .field { margin-top: 10px; }
.dg-line { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dg-masked { font-family: ui-monospace, Consolas, Menlo, monospace; color: var(--ink-3); overflow-wrap: anywhere; }
.dg-status { margin: 0 0 8px; font-weight: 600; }
.dg-code { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; }
.dg-field + .dg-field { margin-top: 8px; }
.dg-value-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dg-value { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; flex: 1 1 160px; min-width: 0; }
.dg-shot { max-width: 100%; border-radius: var(--radius-sm); margin-top: 8px; }
.dg-block .btn { margin-top: 8px; }

/* Stock reservations (views/holds.js): "We're holding these for you", "just sold out" with Remove / Reduce. */
.hold-slot:empty { display: none; }
.hold-slot .notice { margin: 12px 0; }
.hold-note .notice-body p { margin: 0; }
.hold-note .spinner { margin-top: 2px; }
.hold-conflict .notice-body { width: 100%; }
.hold-lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.hold-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 8px; border-top: 1px solid rgba(122, 26, 18, .15); }
.hold-line-text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.hold-line .btn { flex: none; }
.hold-conflict .contact-row { margin-top: 8px; }
.hold-qr-gate { margin: 0; }
.hold-order { margin: 0 0 12px; }
.hold-hint { margin: 4px 0 0; }
.pl-held { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
.pl-gone .change-list { margin-top: 8px; }

/* ---------- customer page (/m/{token}, views/member.js) ---------- */
.mb-hero { display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.mb-hello { margin: 0; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.mb-points { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.01em; color: var(--brand-text); outline: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mb-points-none { font-size: 22px; }
.mb-worth { margin: 0; font-weight: 600; }
.mb-earn { margin: 0; color: var(--ink-2); }
.mb-tier-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mb-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.mb-badge.is-none { background: var(--line); color: var(--ink-2); font-weight: 600; }
.mb-benefit { margin: 0; font-weight: 600; }
.mb-progress { display: grid; gap: 6px; }
.mb-progress p { margin: 0; }
.mb-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mb-bar-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.mb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mb-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 2px; min-width: 0; }
.mb-tile.is-saved { grid-column: 1 / -1; background: var(--ok-bg); border-color: transparent; }
.mb-tile-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mb-plan { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.mb-owed .bad { color: var(--bad); }
.mb-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mb-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mb-item:first-child { border-top: 0; padding-top: 0; }
.mb-item-main { display: grid; gap: 2px; min-width: 0; }
.mb-item-day { font-weight: 600; }
.mb-item-side { display: grid; gap: 2px; justify-items: end; text-align: right; flex: none; }
.mb-item-saved { color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-receipt { color: var(--brand-text); font-weight: 600; }
.mb-status { color: var(--ink-2); }
.mb-private { display: flex; gap: 6px; align-items: flex-start; }
.mb-private svg { flex: none; margin-top: 2px; }

/* Quotations + invoices (views/quote.js) */
.qt-qrs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.qt-qr { margin: 0; max-width: 180px; }
.qt-qr img { width: 160px; height: 160px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line, #e5e5e5); }
.qt .field { margin-bottom: 8px; }
.qt .field .input { width: 100%; box-sizing: border-box; }
/* Layaway page (views/layaway.js): paid / left to pay bar. */
.lw-bar { height: 8px; border-radius: 999px; background: var(--line, #e5e5e5); overflow: hidden; margin-bottom: 12px; }
.lw-bar-fill { height: 100%; background: var(--brand); border-radius: 999px; }
.lw .lw-pay, .lw .lw-receipt { width: 100%; justify-content: center; }

/* reseller portal (/w; reseller-app.js, views/reseller.js) */
.rs { display: grid; gap: 14px; padding-top: 12px; padding-bottom: 96px; }
.rs-title { font-size: 24px; font-weight: 700; outline: none; }
.rs-form { display: grid; gap: 8px; }
.rs-pin { font-size: 22px; letter-spacing: 6px; text-align: center; flex: 1; min-width: 0; }
.rs-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.rs-list { display: grid; gap: 10px; }
.rs-shop { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.rs-tabs { margin-top: 0; }
.rs-catalog { display: grid; gap: 12px; }
.rs-items { display: grid; gap: 10px; }
@media (min-width: 900px) { .rs-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rs-item { gap: 10px; }
.rs-item.is-out { opacity: .65; }
.rs-item-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.rs-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-2); }
.rs-item-text { display: grid; gap: 2px; min-width: 0; }
.rs-item-name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.rs-item-buy { display: flex; justify-content: flex-end; }
.rs-stock-low { color: #8A5300; }
.rs-stock-out { color: var(--bad); }
.rs-stock-in { color: var(--ok); }
.rs-cartbar { position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); }
.rs-cartbar .btn { justify-content: space-between; }
.rs-cartbar-sum { font-weight: 700; margin-left: auto; }
.rs-cart { display: grid; gap: 14px; }
.rs-lines { display: grid; gap: 10px; }
.rs-line { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rs-line-text { min-width: 0; overflow-wrap: anywhere; }
.rs-sum { gap: 6px; }
.rs-sum-row { display: flex; justify-content: space-between; gap: 12px; }
.rs-sum-total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 6px; }
.rs-late { color: var(--bad); }
.rs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rs-tile { display: grid; gap: 2px; padding: 10px; border-radius: 8px; background: var(--bg-2); min-width: 0; overflow-wrap: anywhere; }
.rs-aging { display: grid; gap: 4px; }
.rs-debt { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rs-debt.is-overdue { color: var(--bad); }
.rs-orders { display: grid; gap: 12px; }
.rs-order { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rs-order-head, .rs-order-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rs-order-foot strong { margin-right: auto; }
.rs-chip { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); }
.rs-chip-cancelled, .rs-chip-late { color: var(--bad); }
.rs-chip-completed { color: var(--ok); }
.rs-placed { display: grid; gap: 14px; }
.rs-pay { gap: 12px; }

/* Appointments: online booking page (views/book.js) + the customer's booking (views/booking.js). */
.bp-services { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bp-service { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; min-height: 56px; }
.bp-service.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.bp-times, .bk-times, .bp-days, .bk-days { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 8px; }
.bp-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.bp-msg { font-weight: 600; }
.bp-done .btn { margin-top: 8px; margin-inline-end: 8px; }
.book-link { white-space: nowrap; }
/* Table / room reservations (views/reserve.js, views/reservation.js). */
.rp-party { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.rp-party-n { min-width: 7em; text-align: center; font-size: 1.15rem; }
.rp-areas { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 8px; }
/* Call waiter (views/table_call.js, /t/{token}). */
.tc-page { padding-top: 24px; padding-bottom: 32px; }
.tc-title { font-size: 1.35rem; line-height: 1.35; margin: 0 0 20px; overflow-wrap: anywhere; }
.tc-actions { display: grid; gap: 12px; margin-bottom: 20px; }
.tc-btn { width: 100%; min-height: 64px; font-size: 1.1rem; white-space: normal; }
.tc-note-label { display: block; margin-bottom: 6px; color: var(--ink-2); }
.tc-note { width: 100%; }
.tc-done { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); }
.tc-warn { margin-top: 16px; color: var(--bad); }
.tc-muted { color: var(--ink-2); }
.tc-wifi-steps { list-style: none; padding-left: 0; } /* the steps carry their own "1." / "2." (en + my) */
/* QR ordering on the table page (views/table_order.js): mobile first, one column of cards; 2 columns from 640 px. */
.to-page { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.to-note { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2, #F3F4F6); }
.to-tabs { display: flex; gap: 8px; margin: 12px 0; }
.to-tab { flex: 1; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: inherit; font-weight: 600; color: var(--ink); }
.to-tab.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.to-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.to-cat { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: inherit; color: var(--ink); }
.to-cat.is-on { border-color: var(--ink); font-weight: 700; }
.to-items { display: grid; gap: 10px; }
@media (min-width: 640px) { .to-items { grid-template-columns: 1fr 1fr; } }
.to-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font: inherit; color: var(--ink); cursor: pointer; }
.to-item.is-out { opacity: .55; cursor: default; }
.to-item-img { flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--line); }
.to-item-ph { display: grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.to-item-body { display: grid; gap: 2px; min-width: 0; }
.to-item-name { font-weight: 600; overflow-wrap: anywhere; }
.to-item-price { color: var(--ink-2); }
.to-badge { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: .8rem; background: var(--line); }
.to-badge-out { background: var(--bad-bg, #FEE2E2); color: var(--bad); }
.to-sheet-back { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.to-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 16px 16px 24px; border-radius: 16px 16px 0 0; background: var(--bg); }
@media (min-width: 640px) { .to-sheet-back { align-items: center; } .to-sheet { border-radius: 16px; } }
.to-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.to-sheet-title { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.to-sheet-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); margin: 10px 0; }
.to-group { margin: 12px 0; padding: 0; border: 0; }
.to-group legend { font-weight: 700; margin-bottom: 6px; }
.to-req { color: var(--bad); font-weight: 400; }
.to-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.to-opt.is-out { opacity: .55; }
.to-opt-price { margin-left: auto; color: var(--ink-2); }
.to-qty { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0; }
.to-qty-n { min-width: 2ch; text-align: center; font-weight: 700; }
.to-wide { width: 100%; margin-top: 8px; }
.to-h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.to-cart { position: sticky; bottom: 0; padding: 12px 0 8px; background: var(--bg); border-top: 1px solid var(--line); }
.to-cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; }
.to-cart-name { overflow-wrap: anywhere; }
.to-cart-price { min-width: 7ch; text-align: right; }
.to-bill-sum { display: flex; justify-content: space-between; margin: 6px 0; }
.to-order, .to-bill { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.to-order-head { display: flex; justify-content: space-between; gap: 8px; }
.to-order.is-sent .to-order-head strong { color: var(--ok); }
.to-order.is-declined .to-order-head strong, .to-order.is-lapsed .to-order-head strong { color: var(--bad); }
.to-order-lines { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.to-order-lines .is-paid { text-decoration: line-through; }
.to-code { display: grid; gap: 8px; margin: 12px 0; }
.to-code-in { font-size: 1.4rem; letter-spacing: .3em; text-align: center; max-width: 12ch; }

/* Public repair tracking shares the register's compact panels and balance treatment. */
.rj { gap: 12px; }
.rj .panel, .rj .rc-status { border-radius: 16px; box-shadow: none; }
.rj .rc-status { align-items: flex-start; }
.rj .rc-status-icon { width: 40px; height: 40px; border-radius: 12px; }
.rj .rc-status-title { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.rj .rj-item { font-size: 1.16rem; overflow-wrap: anywhere; }
.rj .rj-money .total { background: #eaf1de; color: #202519; padding: 12px; border: 0; border-radius: 9px; }
.rj .sum-row { align-items: baseline; gap: 12px; }
.rj .sum-row > :last-child { text-align: end; }
.rj .rj-timeline .sum-row { position: relative; padding-inline-start: 18px; }
.rj .rj-timeline .sum-row::before { position: absolute; content: ''; inset-inline-start: 1px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.rj .rj-timeline .sum-row:not(:last-child)::after { position: absolute; content: ''; inset-inline-start: 4px; top: calc(.58em + 7px); bottom: calc(-.58em - 12px); width: 1px; background: var(--line); }
.rj .rj-answer .rc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rj .rj-answer .rc-actions > * { flex: 1 1 9rem; }
@media (max-width: 440px) {
  .rj { gap: 8px; }
  .rj .panel, .rj .rc-status { padding: 12px; }
  .rj .rj-timeline .sum-row { flex-wrap: wrap; row-gap: 2px; }
}
