/* Дизайн: бял фон, черен текст, медено-жълто, заоблени бутони.
   Визията е една и съща за всеки магазин – той сменя само логото, иконката и името.
   Шрифт: Comfortaa (идва с приставката, лиценз в fonts/OFL.txt); магазинът може да сложи свой
   (WooCommerce → OrderNest → „Лого и адрес“). */

@font-face {
  font-family: "Comfortaa";
  src: url("fonts/comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f7f5f0;          /* полета, леки фонове */
  --ink: #222222;
  --black: #111111;
  --muted: #696969;
  --line: #e6e3dc;
  --honey: #eab81a;          /* основният цвят */
  --honey-dark: #b88a00;
  --honey-soft: #fdf5d8;
  --on-honey: #111111;
  --green: #4f7a1f;          
  --green-soft: #eef5e3;
  --red: #c4231f;
  --red-soft: #fdecea;
  --amber: #8a5a00;
  --amber-soft: #fff4dd;
  --blue-soft: #f3f1ea;
  --radius: 18px;
  --pill: 40px;
  --tap: 56px;
  /* "Shop Text" / "Shop Title": the shop's own fonts if it set them (WooCommerce → OrderNest), else Comfortaa. */
  --font: "Shop Text", "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Shop Title", "Shop Text", "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 600 16px/1.5 var(--font);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--black); }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
b, strong { font-weight: 700; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; gap: 8px; }
.row.gap { gap: 10px; }
.row.end { align-items: flex-end; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.ok { color: var(--green); }
.warn { color: var(--amber); }
.strong { font-weight: 700; }

/* ---------- горна лента: бяла, с логото на сайта ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px;
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); color: var(--black);
}
.brand { flex: 1; display: flex; align-items: center; min-width: 0; padding-left: 4px; }
.brand img { height: 42px; width: auto; display: block; }
.brand-text { font: 900 22px/1 var(--font-title); letter-spacing: .02em; }
.title { flex: 1; font: 900 21px/1.2 var(--font-title); padding-left: 2px; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 0; color: inherit; cursor: pointer; text-decoration: none;
}
.icon-btn:active { background: var(--honey-soft); }
.top .pill { max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.demo-bar { background: var(--honey-soft); color: var(--amber); font-size: 13px; padding: 6px 12px; text-align: center; }

/* ---------- бутони ---------- */
.btn {
  min-height: 48px; padding: 10px 20px; border-radius: var(--pill); border: 1.5px solid var(--black);
  background: var(--surface); color: var(--black); font: 700 15px/1.2 var(--font); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-lg { min-height: var(--tap); font-size: 16px; }
.btn-xl { min-height: 62px; font-size: 18px; width: 100%; }
.btn-primary { background: var(--honey); border-color: var(--honey); color: var(--on-honey); }
/* Заяви куриер for another day than today: it cannot be cancelled, so it does not look like the usual button. */
.btn-later { background: var(--amber-soft); border: 2px solid var(--amber); color: var(--amber); font-weight: 700; }
.btn-primary:active { background: var(--honey-dark); }
.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost.btn-danger { color: var(--red); }
.btn-call { width: var(--tap); height: var(--tap); padding: 0; border-radius: 50%; background: var(--green); border-color: var(--green); color: #fff; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading svg { opacity: 0; }
.btn.loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--muted); border-color: var(--muted) transparent var(--muted) transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- раздели и търсене ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 12px 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 42px; padding: 8px 16px; border-radius: var(--pill); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 700 14px var(--font); cursor: pointer;
}
.tab.active { background: var(--black); color: #fff; border-color: var(--black); }
.tab .count:not(:empty) {
  display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: var(--pill);
  background: var(--honey); color: var(--on-honey); font-size: 12px; text-align: center;
}
.tab-call .count:not(:empty) { background: var(--red); color: #fff; }
.search-wrap { padding: 8px 12px; }
input[type=search] { width: 100%; border-radius: var(--pill); padding-left: 18px; }

.alert-banner {
  display: flex; gap: 10px; align-items: flex-start; width: calc(100% - 24px); margin: 12px 12px 0;
  padding: 14px; border-radius: var(--radius); border: 2px solid var(--red); background: var(--red-soft);
  color: var(--red); font: 600 15px/1.4 var(--font); text-align: left; cursor: pointer;
}
.push-banner-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- списък ---------- */
.list { padding: 4px 12px 110px; display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.card:active { border-color: var(--honey); }
.card-red { border: 2px solid var(--red); background: var(--red-soft); }
/* "Създай товарителници" in Нови: a tick on each order, the bar at the bottom. */
.card-pick:has(.pick-check input:checked) { border: 2px solid var(--honey); }
.card-off { opacity: .55; cursor: default; }
label.pick-check { min-height: 36px; font-weight: 700; }
.bulk-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 6; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px; border-radius: 14px; background: var(--surface); border: 2px solid var(--honey); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.bulk-text:empty { display: none; }
.bulk-text { flex-basis: 100%; font-weight: 700; }
.list:has(.card-pick) { padding-bottom: 96px; }
.num { font-weight: 700; color: var(--muted); font-size: 14px; }
.name { font: 900 19px/1.25 var(--font-title); color: var(--black); }
.meta { color: var(--muted); font-size: 14px; }
.amount { font-weight: 700; }
.call-box { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.call-text { display: flex; gap: 8px; align-items: flex-start; color: var(--red); font-weight: 700; }
.call-text.big { font-size: 18px; }
.more { margin: 4px auto 0; }

.pill { padding: 3px 11px; border-radius: var(--pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--ink); }
.st-new { background: var(--honey); color: var(--on-honey); }
.st-shipped, .st-in_transit { background: var(--honey-soft); color: var(--amber); }
.st-at_office { background: #fde7d4; color: #9a4a00; }
.st-delivered { background: var(--green-soft); color: var(--green); }
.st-returned, .st-cancelled, .st-other { background: var(--soft); color: var(--muted); }

.fab-row {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; gap: 10px; align-items: center;
}
.fab {
  display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 22px; border-radius: var(--pill);
  background: var(--honey); color: var(--on-honey); font: 700 16px var(--font); text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.fab-round { width: 58px; padding: 0; justify-content: center; background: var(--black); color: #fff; }
.fab-round svg { width: 26px; height: 26px; }
.btn-mic { background: var(--black); color: #fff; border-color: var(--black); }
.btn-mic.listening { background: var(--red); border-color: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(196, 35, 31, .2); } }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.empty svg { width: 48px; height: 48px; color: var(--green); }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--soft), #fff, var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton.tall { height: 360px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- страници и форми ---------- */
.page { padding: 12px 12px 40px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.list, .tabs, .search-wrap { max-width: 640px; margin-left: auto; margin-right: auto; }
.print-list { display: flex; flex-direction: column; gap: 10px; }
.courier-go-row { display: flex; flex-direction: column; gap: 10px; }
/* ⚙ Настройки: a short menu, each part on its own screen. */
.settings-menu { display: flex; flex-direction: column; gap: 8px; }
.settings-item { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.settings-icon { font-size: 22px; width: 32px; text-align: center; flex: none; }
.guide summary { cursor: pointer; font-size: 16px; }
.guide-body ol, .guide-body ul { padding-left: 20px; margin: 8px 0; }
.guide-body li { margin: 6px 0; }
.shop-color { width: 64px; flex: none; }
.print-row { min-height: 0; }
.box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box h3 { margin: 0; font: 900 18px/1.25 var(--font-title); color: var(--black); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.box p { margin: 0; }
.box-red { border: 2px solid var(--red); background: var(--red-soft); }
.box-warn { border: 2px solid var(--honey); background: var(--honey-soft); }
.box-warn h3 { color: var(--amber); }
.box-info { display: block; background: var(--soft); border-color: transparent; }
.box-info h3 { margin-bottom: 6px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions:empty { display: none; }
.waybill { background: var(--honey-soft); border-radius: var(--radius); padding: 10px 16px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); min-height: 48px; }
label.check input { width: 24px; height: 24px; accent-color: var(--honey); }
input, select, textarea {
  font: 600 16px/1.4 var(--font); color: var(--ink); background: var(--soft); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px; min-height: 52px; width: 100%;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--honey-soft); border-color: var(--honey); background: #fff; }
input:disabled { background: transparent; border-style: dashed; color: var(--ink); }
.w-pc { width: 110px; flex: none; }
.field-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--soft); border-radius: var(--pill); }
.seg-btn { min-height: 50px; border: 0; border-radius: var(--pill); background: transparent; font: 700 15px var(--font); color: var(--muted); cursor: pointer; }
.seg-btn.on { background: var(--black); color: #fff; }
.seg-btn:disabled { cursor: default; }
.seg-btn:disabled:not(.on) { opacity: .5; }

.office-results { display: flex; flex-direction: column; gap: 6px; }
.office-opt { text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 15px var(--font); display: flex; flex-direction: column; cursor: pointer; }
.office-opt:active { border-color: var(--honey); }

.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.items li { display: flex; justify-content: space-between; gap: 10px; }
.total { border-top: 1.5px solid var(--line); padding-top: 8px; }
.note { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 10px; font-size: 14px; }
/* What the customer wrote at checkout: red, so it is not missed. */
.customer-note { white-space: pre-wrap; color: var(--red); font-weight: 700; background: var(--red-soft); border-radius: 12px; padding: 8px 10px; }
.customer-note.small { padding: 4px 8px; font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; flex-direction: column; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 3px; transform: rotate(30deg); background: var(--honey); }
.timeline .ev-error::before { background: var(--red); }
.timeline .ev-call::before { background: var(--green); }

.tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--pill); }
.tag:empty { display: none; }
.tag-ok { background: var(--green-soft); color: var(--green); }
/* CourierNest's phone check: a round green thumb up / red thumb down / amber ! / grey ? next to the customer's name. */
.risk-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); vertical-align: middle; }
.risk-dot svg { width: 16px; height: 16px; fill: currentColor; }
.risk-dot b { font-size: 15px; line-height: 1; font-weight: 800; }
.risk-dot.risk-big { width: 40px; height: 40px; }
.risk-dot.risk-big svg { width: 22px; height: 22px; }
.risk-dot.risk-big b { font-size: 20px; }
.risk-ok { background: #16a34a; }
.risk-bad { background: #dc2626; }
.risk-bad svg { transform: rotate(180deg); }
.risk-warn { background: #f59e0b; }
.risk-none { background: #94a3b8; }
.risk-line { display: flex; align-items: center; gap: 12px; }
.risk-bad-text { color: var(--red); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; border: 1px solid var(--line); background: var(--soft); }
input[type=color] { min-width: 56px; padding: 2px; height: 44px; }
.tag-miss { background: var(--honey-soft); color: var(--amber); }
.label-row { display: flex; gap: 8px; align-items: center; }
.bg-line { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.bg-line.ok { background: var(--green-soft); color: var(--green); }
.bg-line.warn { background: var(--honey-soft); color: var(--amber); }
.bg-line span { color: var(--ink); }
details { display: flex; flex-direction: column; gap: 12px; }
details > summary { cursor: pointer; color: var(--muted); min-height: 40px; display: flex; align-items: center; list-style: none; font-size: 14px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; margin-right: 8px; }
details[open] > summary::before { content: "▾"; }
details[open] > summary { margin-bottom: 8px; }
details > label { margin-bottom: 10px; }
.danger-zone { display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ---------- продажби по продукт ---------- */
.row.wrap { flex-wrap: wrap; }
.row.wrap > label { min-width: 150px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--honey-soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 18px; color: var(--black); }
.stat:last-child { background: var(--honey); color: var(--on-honey); }
.stat:last-child b, .stat:last-child .muted { color: inherit; }
.table-wrap { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.report { width: 100%; border-collapse: collapse; font-size: 14px; }
table.report th { background: var(--soft); text-align: left; padding: 0; }
table.report th button { width: 100%; text-align: inherit; background: none; border: 0; padding: 12px 10px; font: 700 13px var(--font); color: var(--ink); cursor: pointer; min-height: 44px; }
table.report td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.report .num-col { text-align: right; white-space: nowrap; }
table.report th.num-col button { text-align: right; }
table.report tfoot td { font-weight: 700; background: var(--honey-soft); border-top: 2px solid var(--honey); font-size: 15px; }
.prod { display: flex; gap: 10px; align-items: center; }
.prod img, .prod .noimg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--soft); }
.prod > span { display: flex; flex-direction: column; min-width: 0; }
.order-head .order-name { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; overflow-wrap: anywhere; }
.order-head .items li { align-items: center; gap: 10px; }
.order-head .prod img, .order-head .prod .noimg { width: 56px; height: 56px; }
.items-pics:empty { display: none; }
.review-banner { text-decoration: none; background: var(--honey-soft); color: var(--ink); }
.qty { display: flex; align-items: center; gap: 6px; flex: none; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font: inherit; font-weight: 700; cursor: pointer; color: inherit; }
.qty-x { color: var(--muted); }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 49; padding: 12px 14px; border-radius: 12px; background: var(--bg, #fff); border: 2px solid var(--honey); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.install-bar p { margin: 0 0 10px; }
.update-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; padding: 14px; border: 0; border-radius: 12px; background: var(--honey); color: var(--on-honey); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.items-pics li { align-items: center; gap: 10px; }
.prod-search { position: relative; margin: 8px 0; }
.prod-sugg { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sugg-item { width: 100%; text-align: left; background: var(--soft); border: 0; border-radius: 10px; padding: 6px 8px; cursor: pointer; font: inherit; color: inherit; min-height: 52px; }
.sugg-item img, .sugg-item .noimg { width: 44px; height: 44px; }
.multi { position: relative; display: flex; flex-direction: column; gap: 6px; }
.multi .field-label { margin: 0; }
.multi-btn { min-height: 52px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); font: 600 16px var(--font); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.multi-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 12px; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.multi-panel.hidden { display: none; }
.multi-panel label.check { min-height: 44px; font-weight: 600; }
.multi-panel [data-apply] { margin-top: 8px; }
.multi-panel select { margin: 0 0 6px; }
.day-head { margin: 10px 2px 0; font: 900 15px/1.2 var(--font-title); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day-head:first-child { margin-top: 0; }
.pick-list { display: flex; flex-direction: column; max-height: 40vh; overflow-y: auto; margin-top: 6px; }
.by-status { gap: 8px; font-size: 14px; }
.by-status .row { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.by-status .row:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- зареждане ---------- */
.login { max-width: 420px; margin: 0 auto; padding: 18vh 20px 40px; display: flex; flex-direction: column; gap: 10px; }
.logo { font: 900 34px/1.1 var(--font-title); color: var(--black); text-align: center; }
.login-logo { display: block; width: 280px; max-width: 80%; height: auto; margin: 0 auto 4px; }
.login > .muted { text-align: center; margin: 0 0 18px; }
/* Счетоводство */
.pl h3 { margin: 0 0 8px; }
.pl-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.pl-row:first-of-type { border-top: 0; }
.pl-row.minus b { color: var(--muted); }
.pl-row.sub { font-weight: 800; }
.pl-row.detail { border-top: 0; padding: 0 0 4px 14px; font-size: 13px; color: var(--muted); }
.pl-row.net { margin-top: 6px; padding: 12px 14px; border: 0; border-radius: 14px; font-size: 19px; }
.pl-row.net.gain { background: var(--green-soft); color: var(--green); }
.pl-row.net.loss { background: var(--red-soft); color: var(--red); }
.neg { color: var(--red); }
.recipe-line { display: grid; grid-template-columns: 1fr 74px auto 40px; gap: 8px; align-items: center; }
.recipe-line input, .recipe-line select { min-width: 0; }
.recipe-line select.needs { border-color: var(--red); background: var(--red-soft); }
.login-msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-weight: 700; text-align: center; }

/* ---------- съобщения ---------- */
.toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: 560px; margin: 0 auto; padding: 14px 18px; border-radius: var(--radius); font-weight: 700;
  background: var(--black); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast-err { background: var(--red); }
/* "Върни" after deleting something: the toast must take the tap then. */
.toast.show:has(.toast-undo) { pointer-events: auto; }
.toast-undo { margin-left: 8px; padding: 6px 14px; border: 0; border-radius: var(--pill); background: var(--honey); color: var(--on-honey); font: inherit; font-weight: 800; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* The lists under the city, office and address fields: open over the page, not pushing it down. */
.dd-wrap { position: relative; }
.dd-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 4px; }
.dd-list:empty { display: none; }
.dd-list .office-opt { display: block; width: 100%; text-align: left; }
.dd-list .office-opt span { display: block; }
.dd-note { padding: 8px; }

/* Couriers in the settings: one line each, opened when needed. */
.courier-acc > summary { color: inherit; font-size: 17px; font-weight: 700; justify-content: flex-start; gap: 8px; margin: 0; }
.courier-acc > summary > .small { margin-left: auto; font-weight: 400; }
