/*!************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles.css ***!
  \************************************************************************************************************************************************************************************************************************************************************/
:root {
  /* Choice-style dark storefront palette (defaults; overridden live by the
     admin-controlled theme via JS — see web/src/theme.ts). */
  --bg: #0e0e10;
  --surface: #1a1a1d;
  --surface-2: #232327;
  --ink: #f2f2f2;
  --muted: #9a9a9f;
  --line: #2c2c31;
  --header-bg: #141416;
  --brand: #e23744;
  --brand-dark: #c52d39;
  --accent: #e23744;
  --ok: #36c267;
  --closed: #ff6b6b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 22px rgba(0, 0, 0, 0.25);
  --header-h: 60px;
}

/* Lighter shadow when the storefront is in light mode. */
[data-theme="light"] {
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

/* Storefront wrapper: the admin theme sets CSS vars + data-theme here (and on
   body). Fill the viewport so the themed background covers the whole page. */
.storefront-root {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.2; }
p { margin: 0 0 0.5em; }

.muted { color: var(--muted); }
.small { font-size: 0.82em; }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--ink);
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover:not(:disabled) { background: #2e2e34; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.grow { width: 100%; }
.btn-add { padding: 8px 18px; }

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: #34343a; }

.link-btn {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Site header ---------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}
.brand-logo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-status { font-size: 0.72rem; font-weight: 600; }
.brand-status.open { color: var(--ok); }
.brand-status.closed { color: var(--closed); }

.header-tabs { display: flex; gap: 4px; margin-left: 8px; }
.header-tab {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.header-tab:hover { color: var(--ink); }
.header-tab.active { color: var(--ink); background: var(--surface-2); }

.header-cart {
  position: relative;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.header-cart:hover { background: #34343a; }

/* Telegram Mini App greeting (name + ★ bonus balance). Pushed to the right
   beside the cart; web clients never render it (no Mini App session). */
.tg-greeting {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
  max-width: 50vw;
  overflow: hidden;
}
.tg-greeting + .header-cart { margin-left: 10px; }
.tg-greeting-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30vw;
}
.tg-greeting-points {
  font-weight: 700;
  color: var(--brand);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.header-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Storefront 3-column layout ---------- */
.storefront {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 340px;
  grid-gap: 24px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}
.app-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Content pages (Доставка/Контакти/CMS): content + cart sidebar, so the cart
   stays in its right column instead of sprawling full-width. */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-gap: 24px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  align-items: start;
}
.content-layout .col-center.app-single { padding: 0; }
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ---------- Cookie consent (GDPR) ---------- */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-text { margin: 0; flex: 1 1 280px; font-size: 0.88rem; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 55;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1; }
}

.load-state {
  max-width: 640px;
  margin: 80px auto;
  text-align: center;
  color: var(--muted);
}
.load-state.error { color: var(--closed); }

/* ---------- Left side nav (scrollspy) ---------- */
.col-left { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.side-nav-group { margin-bottom: 10px; }
.side-nav-section {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.side-nav-section:hover { background: var(--surface); }
.side-nav-section.active { color: var(--brand); }
.side-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 6px 10px 6px 14px;
  margin-left: 4px;
  cursor: pointer;
}
.side-nav-item:hover { color: var(--ink); }
.side-nav-item.active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin: 14px 20px 0;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Center menu ---------- */
.col-center { min-width: 0; }
.menu-view { min-width: 0; }
.menu-empty { padding: 40px 0; text-align: center; }
.menu-section { margin-bottom: 28px; }
.section-title { font-size: 1.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.section-desc { margin-top: -4px; }
.menu-category { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: 18px; }
.category-title {
  font-size: 1.05rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 16px 0 12px;
}

.product-list { display: flex; flex-direction: column; gap: 12px; }

/* Grid layout (admin theme menu_layout="grid"): cards with photo on top. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px;
}

/* List variant: text left, photo right (prynada-style rows). */
.product-card-list {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

/* Grid variant: photo on top, body below. */
.product-card-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card-grid .product-photo-btn { width: 100%; }
.product-card-grid .product-photo {
  width: 100%;
  height: 160px;
}

/* List variant: the photo button is a fixed 120px square on the right. */
.product-card-list .product-photo-btn { width: 120px; }

.product-body { display: flex; flex-direction: column; flex: 1 1; min-width: 0; }

/* Clickable name / photo open the detail modal. */
.product-name-btn,
.product-photo-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  position: relative;
  display: block;
  flex-shrink: 0;
}
.product-name-btn:hover .product-name { color: var(--brand); }

/* Favorites heart (top-right on the photo). */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fav-btn.active { color: var(--brand); }

/* "⭐ Популярне" badge (top-left on the photo). */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd34d;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.8rem;
}
.chip-popular { color: #c8901a; font-weight: 600; }
.nav-count {
  margin-left: 6px;
  font-size: 0.72rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
}
.side-nav-pseudo { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side-nav-item.all-menu { color: var(--brand); font-weight: 600; }
.product-name { font-size: 1.02rem; }
.product-desc { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; }
.product-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chip {
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
}
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}
.product-price { font-weight: 700; font-size: 1.05rem; }
.qty-inline .icon-btn { width: 28px; height: 28px; }

.product-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.product-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ---------- Right column ---------- */
.col-right {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - var(--header-h) - 40px);
}

/* Search */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
}
.search-icon { color: var(--muted); font-size: 0.9rem; }
.search-input {
  flex: 1 1;
  border: none;
  background: none;
  color: var(--ink);
  padding: 11px 8px;
  font-size: 0.95rem;
  outline: none;
}
.search-input::placeholder { color: var(--muted); }
.search-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Establishment info panel */
.estab-info {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.estab-info-title { font-size: 1.05rem; margin-bottom: 12px; }
.estab-info-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.estab-info-row:first-of-type { border-top: none; }
.estab-info-ico { flex-shrink: 0; font-size: 1rem; }
.estab-info-label { color: var(--muted); font-size: 0.78rem; }
.estab-info-value { font-size: 0.92rem; }
.estab-info-value.link { color: var(--brand); }
.info-status { font-weight: 700; font-size: 0.8rem; }
.info-status.open { color: var(--ok); }
.info-status.closed { color: var(--closed); }
.estab-info-more { width: 100%; margin-top: 12px; }

/* ---------- Cart panel ---------- */
.cart-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 60vh;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 1.1rem; }
.cart-close { display: none; }
.cart-empty { padding: 22px 18px; }
.cart-lines { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1 1; }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.cart-line-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line-name { font-weight: 600; }
.cart-line-mods { font-size: 0.8rem; color: var(--muted); }
.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.cart-line-total { font-weight: 700; }

.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty-val { min-width: 18px; text-align: center; font-weight: 600; }

.cart-foot { padding: 14px 18px; border-top: 1px solid var(--line); }
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* ---------- Cart FAB (mobile) ---------- */
.cart-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.modal {
  background: var(--surface);
  width: 100%;
  max-width: 460px;
  border-radius: 16px 16px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-body { overflow-y: auto; padding: 8px 0; flex: 1 1; }
.modset { border: none; padding: 0; margin: 0 0 16px; }
.modset legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.req {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--brand);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 4px;
}
.mod-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mod-name { flex: 1 1; }
.mod-price { color: var(--muted); font-size: 0.88rem; }
.modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- Product detail modal (big card) ---------- */
.modal-detail {
  padding: 0;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-color: transparent;
}
.detail-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.detail-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.modal-detail-body { padding: 16px 20px 8px; overflow-y: auto; flex: 1 1; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-title { margin: 0; font-size: 1.3rem; }
.detail-fav {
  position: static;
  background: var(--surface-2);
  color: var(--muted);
  flex-shrink: 0;
}
.detail-fav.active { color: var(--brand); }
.detail-meta { margin: 8px 0; }
.detail-desc { color: var(--ink); margin: 8px 0 16px; }
.modal-detail .modal-foot { padding: 12px 20px 16px; }

/* ---------- Checkout ---------- */
.checkout { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.checkout h1 { font-size: 1.4rem; margin-bottom: 16px; }
.back { display: inline-block; margin-bottom: 8px; }
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.field-error { color: var(--closed); font-size: 0.85rem; margin: 4px 0 0; }

.segmented { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented button {
  flex: 1 1;
  border: none;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}
.segmented button.active { background: var(--brand); color: #fff; }

.quote-line { margin: 6px 0 0; font-size: 0.9rem; }
.quote-line .free { color: var(--ok); font-weight: 700; }

.checkout-summary {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}
.checkout-summary .row,
.confirm-card .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.checkout-summary .row.total,
.confirm-card .row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 1.05rem;
}

.form-errors {
  background: rgba(226, 55, 68, 0.12);
  border: 1px solid rgba(226, 55, 68, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}
.form-errors p { color: var(--closed); margin: 2px 0; font-size: 0.88rem; }
.submit { margin-top: 8px; }

/* ---------- Promotions: breakdown, promocode, points ---------- */
.btn-secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }

.breakdown {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  transition: opacity 0.15s;
}
.breakdown.is-loading { opacity: 0.6; }
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 0.95rem;
}
.breakdown-row .discount-name { color: var(--ink); }
.breakdown-row .discount-code { color: var(--muted); font-size: 0.82rem; }
.breakdown-row.discount .discount-amount { color: var(--ok); font-weight: 600; }
.breakdown-row.gift,
.breakdown-row.free-delivery { color: var(--ok); }
.breakdown-row .gift-free { color: var(--ok); font-weight: 600; }
.breakdown-row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 1.08rem;
}
.breakdown-earn {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(54, 194, 103, 0.12);
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 600;
}

.promocode { margin-bottom: 12px; }
.promocode-row { display: flex; gap: 8px; align-items: stretch; }
.promocode-row input {
  flex: 1 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-transform: uppercase;
}
.promocode-row .btn { white-space: nowrap; }
.promocode-ok { margin: 6px 0 0; font-size: 0.85rem; color: var(--ok); font-weight: 600; }
.promocode-err { margin: 6px 0 0; font-size: 0.85rem; color: var(--closed); }

.points-redeem {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(54, 194, 103, 0.06);
}
.points-redeem-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 4px;
}
.points-redeem-row input[type="range"] { flex: 1 1; min-width: 0; accent-color: var(--brand); }
.points-redeem .points-number {
  width: 84px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
.points-redeem .btn-ghost { white-space: nowrap; }

.confirm-card .row.discount span:last-child { color: var(--ok); }
.confirm-points {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(54, 194, 103, 0.12);
  color: var(--ok);
  font-weight: 600;
  text-align: center;
}

/* ---------- Info pages (Доставка / Контакти) ---------- */
.info-page {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.info-page-title { font-size: 1.5rem; margin-bottom: 16px; }
.info-block { margin-bottom: 22px; }
.info-block-title { font-size: 1.1rem; margin-bottom: 10px; }
.zones-table, .hours-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.zones-table th, .zones-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.zones-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.payment-list { list-style: none; padding: 0; margin: 0; }
.payment-list li { padding: 6px 0; }
.contact-line { display: flex; align-items: center; gap: 8px; }
.hours-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.hours-table tr.today { color: var(--brand); font-weight: 700; }
.hours-day { width: 60%; }
.info-status-line { margin-top: 12px; }

/* ---------- Confirmation ---------- */
.confirmation {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  text-align: center;
}
.confirm-check {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-number { font-size: 1.05rem; }
.confirm-card {
  text-align: left;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}
.confirm-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.confirm-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .storefront { grid-template-columns: 200px minmax(0, 1fr); }
  .col-right {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .header-tabs { display: none; }
  .storefront { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .nav-toggle { display: inline-block; }

  /* Left nav collapses into a togglable panel. */
  .col-left {
    position: static;
    display: none;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 10px;
  }
  .col-left.open { display: block; }
  .side-nav { max-height: 50vh; }

  .product-card-list .product-photo { width: 92px; height: 92px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .cart-fab { display: block; }

  /* Cart becomes a bottom drawer (was inline in the right column). */
  .cart-panel {
    position: fixed;
    inset: 0;
    top: auto;
    bottom: 0;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    z-index: 40;
  }
  .cart-panel.open { transform: translateY(0); }
  .cart-close { display: inline-flex; }
}

/* ---------- Home media slider (HeroSlider) ---------- */
.hero-slider {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  color: #fff;
  text-decoration: none;
}
/* `standard` — a contained banner under the header. */
.hero-slider.style-standard {
  max-width: 1280px;
  margin: 16px auto 0;
  border-radius: 16px;
  height: 280px;
}
/* `fullscreen` — a tall, edge-to-edge hero. */
.hero-slider.style-fullscreen {
  width: 100%;
  margin: 0;
  border-radius: 0;
  height: min(72vh, 620px);
}
a.hero-slider { cursor: pointer; }

.hero-slider-track {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; }
.hero-slide-caption {
  width: 100%;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}
.hero-slide-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-slide-subtitle {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: rgba(0, 0, 0, 0.65); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.hero-dot.active { background: #fff; }

@media (max-width: 760px) {
  .hero-slider.style-standard { height: 200px; margin-top: 0; border-radius: 0; }
  .hero-slider.style-fullscreen { height: 56vh; }
  .hero-slide-title { font-size: 1.4rem; }
  .hero-slide-subtitle { font-size: 0.95rem; }
  .hero-slide-caption { padding: 18px 18px; }
}

/* ---------- CMS page content (Markdown) ---------- */
.cms-content { line-height: 1.65; color: var(--ink); }
.cms-content h1, .cms-content h2, .cms-content h3 {
  margin: 1.2em 0 0.5em;
  line-height: 1.25;
}
.cms-content h1 { font-size: 1.6rem; }
.cms-content h2 { font-size: 1.3rem; }
.cms-content h3 { font-size: 1.1rem; }
.cms-content p { margin: 0.7em 0; }
.cms-content ul, .cms-content ol { margin: 0.7em 0; padding-left: 1.4em; }
.cms-content li { margin: 0.25em 0; }
.cms-content a { color: var(--brand); text-decoration: underline; }
.cms-content img { max-width: 100%; border-radius: 10px; }
.cms-content blockquote {
  margin: 0.9em 0;
  padding: 0.2em 1em;
  border-left: 3px solid var(--brand);
  color: var(--muted);
}
.cms-content code {
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.92em;
}
.cms-content pre {
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
}
.cms-content pre code { background: none; padding: 0; }
.cms-content hr { border: none; border-top: 1px solid var(--line); margin: 1.2em 0; }
.cms-content table { border-collapse: collapse; width: 100%; }
.cms-content th, .cms-content td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
}

/* ---------- Promo popup (storefront, à la prontopizza) ---------- */
.promo-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
  animation: promo-fade 0.18s ease-out;
}
.promo-popup {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 12px 48px rgba(0, 0, 0, 0.35);
  animation: promo-pop 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.promo-popup-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-popup-x:hover { background: rgba(0, 0, 0, 0.7); }
.promo-popup-img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}
.promo-popup-body { padding: 18px 22px 22px; text-align: center; }
.promo-popup-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.promo-popup-text {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
}
.promo-popup-cta {
  display: inline-block;
  width: 100%;
  padding: 12px 18px;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
@keyframes promo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes promo-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/board/board.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* Operator board styles. The storefront uses a dark theme (:root in
   styles.css); the board keeps its own LIGHT theme by overriding those design
   tokens on its own roots, so the global theme change can't degrade it. */
.board-root,
.board-login {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #777;
  --line: #e7e7e3;
  color: var(--ink);
}

.board-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ---------- Top bar ---------- */
.board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}
.board-brand strong { font-size: 1.1rem; }
.board-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.board-logout {
  background: #f0f0ee;
}
.board-newbadge {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background: #fff3cd;
  color: #8a6d00;
  animation: board-pulse 1.4s ease-in-out infinite;
}
@keyframes board-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 167, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(226, 167, 0, 0); }
}

.board-banner-error {
  margin: 8px 18px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fde8ea;
  color: var(--brand-dark);
  font-size: 0.88rem;
}

/* ---------- Columns ---------- */
.board-columns {
  flex: 1 1;
  display: flex;
  gap: 14px;
  padding: 16px 18px 24px;
  overflow-x: auto;
  align-items: flex-start;
}
.board-column {
  flex: 0 0 290px;
  width: 290px;
  background: #eeeeec;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
}
.board-column.col-muted { background: #e6e6e3; opacity: 0.92; }
.board-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
.board-column-count {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.8rem;
  font-weight: 700;
}
.board-column-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.board-empty { text-align: center; padding: 10px 0; }

/* ---------- Card ---------- */
.board-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.2s;
}
.board-card:hover { transform: translateY(-1px); }
.board-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.board-card.is-new {
  border-left-color: #e2a700;
  box-shadow: 0 0 0 2px rgba(226, 167, 0, 0.35);
  animation: board-flash 1s ease-out;
}
@keyframes board-flash {
  from { background: #fff8e1; }
  to { background: var(--surface); }
}
.board-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.board-card-number { font-weight: 800; font-size: 1.02rem; }
.board-card-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.board-card-customer { margin: 4px 0; }
.board-card-foot { justify-content: space-between; align-items: center; }
.board-card-total { font-weight: 700; }

.board-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f1ef;
  color: #444;
}
.pay-paid { background: #e4f6ea; color: var(--ok); }
.pay-pending { background: #fdeede; color: #b9760a; }

.board-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.board-advance {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.85rem;
  background: #eef4ff;
  color: #1a56b0;
}
.board-advance:hover:not(:disabled) { background: #dde9ff; }

/* «🔥 На готовку» — priority push, and the priority badge on a card. */
.board-tokitchen {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.85rem;
  background: #fff1e6;
  color: #b4480b;
  border-color: #f4c8a6;
}
.board-tokitchen:hover:not(:disabled) { background: #ffe2cc; }
.board-card.is-priority {
  border-left-color: #ff6a00;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.25);
}

/* ---------- Detail panel ---------- */
.board-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: flex-end;
  z-index: 50;
}
.board-detail {
  width: min(460px, 100%);
  height: 100%;
  background: var(--surface);
  overflow-y: auto;
  padding: 18px 20px 28px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  animation: board-slide 0.18s ease-out;
}
@keyframes board-slide {
  from { transform: translateX(20px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
.board-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.board-detail-head h2 { margin-bottom: 2px; }
.board-detail-status { margin: 8px 0 4px; }
.board-status-chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: #ececed;
}
.s-new { background: #e7f0ff; color: #1a56b0; }
.s-confirmed { background: #e7f0ff; color: #1a56b0; }
.s-preparing { background: #fff3cd; color: #8a6d00; }
.s-ready { background: #e4f6ea; color: var(--ok); }
.s-delivering { background: #e8e2fb; color: #5a36c9; }
.s-completed { background: #e4f6ea; color: var(--ok); }
.s-cancelled { background: #fde8ea; color: var(--brand-dark); }

.board-detail-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}
.board-detail-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.board-comment {
  background: #f7f7f5;
  border-radius: 8px;
  padding: 8px 10px;
}
.board-items { list-style: none; padding: 0; margin: 0; }
.board-items > li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.board-item-line { display: flex; justify-content: space-between; gap: 10px; }
.board-item-mods { list-style: none; padding: 2px 0 0 14px; margin: 0; }
.board-pay-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-totals { width: 100%; border-collapse: collapse; margin-top: 6px; }
.board-totals td { padding: 3px 0; }
.board-totals td:last-child { text-align: right; }
.board-totals-grand td { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }

.board-history { list-style: none; padding: 0; margin: 0; }
.board-history > li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
}
.board-history-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.board-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.board-status-select { font-size: 0.85rem; color: var(--muted); }
.board-status-select select {
  margin-left: 6px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}
.board-cancel { background: #fde8ea; color: var(--brand-dark); margin-left: auto; }
.board-cancel:hover:not(:disabled) { background: #fbd5d9; }

/* ---------- Login ---------- */
.board-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.board-login-card {
  width: min(360px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.board-login-card h1 { margin-bottom: 0; }
.board-login-card label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}
.board-login-card input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
.board-login-error {
  background: #fde8ea;
  color: var(--brand-dark);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

/* ---------- View tabs (Замовлення | Дашборд) ---------- */
.board-viewtabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #ececea;
  border-radius: 999px;
}
.board-viewtab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}
.board-viewtab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- Board filters / sound ---------- */
.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 18px 0;
}
.board-filter-group {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #ececea;
  border-radius: 999px;
}
.board-chip {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}
.board-chip.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.board-search {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.board-search input {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  min-width: 160px;
}
.board-search .btn { padding: 7px 12px; font-size: 0.85rem; }
.board-clear { background: #f0f0ee; }
.board-sound-toggle { background: #f0f0ee; font-size: 0.85rem; }
.board-sound-toggle.on { background: #fff3cd; color: #8a6d00; }

/* ---------- Print button ---------- */
.board-print { background: #eef4ff; color: #1a56b0; }
.board-print:hover:not(:disabled) { background: #dde9ff; }

/* ========================================================================= */
/* Dashboard                                                                 */
/* ========================================================================= */
.dash-root {
  flex: 1 1;
  padding: 16px 18px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-period {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #ececea;
  border-radius: 999px;
}
.dash-period-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}
.dash-period-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.dash-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dash-kpi-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.dash-kpi-hint { font-size: 0.74rem; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.dash-card h2 {
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}
.dash-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .dash-grid,
  .dash-grid-3 { grid-template-columns: 1fr; }
}

/* ----- Chart ----- */
.dash-chart-svg {
  width: 100%;
  height: 240px;
  display: block;
}
.dash-chart-axis { stroke: var(--line); stroke-width: 1; }
.dash-chart-bar { fill: var(--brand); opacity: 0.85; }
.dash-chart-bar:hover { opacity: 1; }
.dash-chart-line { stroke: #1a56b0; stroke-width: 2; }
.dash-chart-dot { fill: #1a56b0; }
.dash-chart-label { fill: var(--muted); font-size: 11px; }
.dash-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.dash-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dash-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.swatch-rev { background: var(--brand); }
.swatch-ord { background: #1a56b0; }

/* ----- Tables ----- */
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dash-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
}
.dash-table th.num,
.dash-table td.num { text-align: right; }
.dash-table td {
  padding: 6px;
  border-bottom: 1px dashed var(--line);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-points { margin: 10px 0 0; }

/* ----- Breakdown bars ----- */
.dash-breakdown h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}
.dash-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-bar-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}
.dash-bar-label { color: var(--ink); }
.dash-bar-track {
  background: #f0f0ee;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.dash-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  min-width: 2px;
}
.bar-completed,
.bar-paid,
.bar-ready { background: var(--ok); }
.bar-new,
.bar-confirmed,
.bar-delivery { background: #1a56b0; }
.bar-preparing,
.bar-pending { background: #b9760a; }
.bar-cancelled,
.bar-failed { background: var(--brand-dark); }
.bar-takeaway { background: #5a36c9; }
.dash-bar-val { white-space: nowrap; font-weight: 600; }

/* ========================================================================= */
/* Print receipt                                                             */
/* ========================================================================= */
.board-receipt { display: none; }

@media print {
  /* Hide everything, then reveal only the receipt. */
  body * { visibility: hidden; }
  .board-receipt,
  .board-receipt * { visibility: visible; }
  .board-receipt {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 280px;
    padding: 8px 10px;
    color: #000;
    font-family: "Courier New", monospace;
    font-size: 12px;
    line-height: 1.35;
  }
  .rcpt-head { text-align: center; }
  .rcpt-title { font-size: 18px; display: block; }
  .rcpt-number { font-size: 14px; font-weight: bold; margin-top: 2px; }
  .rcpt-meta { font-size: 11px; }
  .rcpt-sep {
    border-top: 1px dashed #000;
    margin: 6px 0;
  }
  .rcpt-items,
  .rcpt-totals { width: 100%; border-collapse: collapse; }
  .rcpt-item td { vertical-align: top; padding: 2px 0; }
  .rcpt-item-total { text-align: right; white-space: nowrap; padding-left: 8px; }
  .rcpt-mods { font-size: 10px; padding-left: 10px; }
  .rcpt-totals td { padding: 1px 0; }
  .rcpt-totals td:last-child { text-align: right; }
  .rcpt-grand td { font-weight: bold; font-size: 13px; padding-top: 4px; }
  .rcpt-pay { text-align: center; font-size: 11px; }
  .rcpt-comment { margin-top: 4px; font-style: italic; }
  .rcpt-foot { text-align: center; margin-top: 8px; font-size: 11px; }
}

/* ======================= POS intake (Нове замовлення) ======================= */
.pos-root .icon-btn {
  background: #f0f0ee;
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.pos-root .icon-btn:hover { background: #e4e4e0; }

.pos-layout {
  flex: 1 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-gap: 16px;
  gap: 16px;
  padding: 16px 18px 24px;
  align-items: start;
  min-height: 0;
}
@media (max-width: 900px) {
  .pos-layout { grid-template-columns: 1fr; }
}

/* ---------- Menu (left) ---------- */
.pos-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.pos-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 12px;
  background: #fff;
  color: var(--ink);
}
.pos-menu-empty { padding: 12px; }
.pos-section { margin-bottom: 14px; }
.pos-section-title {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.pos-category-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 8px 0 6px;
}
.pos-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}
.pos-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  padding: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfb;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  color: var(--ink);
}
.pos-product:hover {
  border-color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.pos-product-name { font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.pos-product-price { font-size: 0.85rem; color: var(--muted); }
.pos-product-opt { color: var(--brand); }

/* ---------- Order side (right) ---------- */
.pos-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  position: -webkit-sticky;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 86px);
  overflow-y: auto;
}
.pos-side-title {
  font-size: 0.92rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.pos-block {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.pos-field { margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.pos-field label { font-size: 0.8rem; color: var(--muted); }
.pos-field input,
.pos-field select,
.pos-field textarea {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.pos-field textarea { resize: vertical; }
.pos-address-row { display: flex; gap: 6px; }
.pos-address-row input { flex: 1 1; }
.pos-address-row .btn { white-space: nowrap; padding: 8px 10px; font-size: 0.82rem; }
.pos-field-error { color: var(--brand-dark); font-size: 0.8rem; }
.pos-customer-found { color: #1a7f37; font-size: 0.82rem; font-weight: 600; }
.pos-map { margin-top: 6px; }

.pos-segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #ececea;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pos-segmented button {
  flex: 1 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}
.pos-segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.pos-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin: 4px 0 8px;
  cursor: pointer;
}

/* ---------- Cart ---------- */
.pos-cart-lines { list-style: none; margin: 0; padding: 0; }
.pos-cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.pos-cart-line-main { display: flex; flex-direction: column; min-width: 0; }
.pos-cart-line-name { font-weight: 600; font-size: 0.88rem; }
.pos-cart-line-mods { font-size: 0.76rem; color: var(--muted); }
.pos-cart-line-qty { display: flex; align-items: center; gap: 6px; }
.pos-cart-line-qty span { min-width: 16px; text-align: center; }
.pos-cart-line-sum { font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.pos-cart-line-del { font-size: 0.85rem; }

/* ---------- Summary ---------- */
.pos-summary {
  border-top: 2px solid var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pos-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.pos-summary-discount { color: #1a7f37; }
.pos-summary-total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 2px;
}
.pos-errors { margin: 0; }

.pos-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pos-priority-btn {
  background: #fff3cd;
  color: #8a6d00;
  font-weight: 700;
}
.pos-priority-btn:hover:not(:disabled) { background: #ffe9a8; }

/* ---------- Modifier picker ---------- */
.pos-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}
.pos-modpicker {
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-modpicker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.pos-modpicker-body { padding: 12px 16px; overflow-y: auto; }
.pos-modset { border: none; margin: 0 0 14px; padding: 0; }
.pos-modset legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.pos-req {
  font-size: 0.72rem;
  color: var(--brand-dark);
  font-weight: 600;
}
.pos-mod-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.9rem;
}
.pos-mod-name { flex: 1 1; }
.pos-mod-price { color: var(--muted); font-size: 0.85rem; }
.pos-modpicker-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.pos-qty { display: flex; align-items: center; gap: 8px; }
.pos-qty-val { min-width: 20px; text-align: center; font-weight: 600; }

/* ---------- Success ---------- */
.pos-success {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pos-success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  max-width: 420px;
}
.pos-success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #1a7f37;
  color: #fff;
  font-size: 1.8rem;
  line-height: 56px;
}
.pos-success-card h2 { margin: 0 0 6px; }
.pos-success-card .btn { margin-top: 16px; }

/* ========================================================================== */
/* IP telephony (Zadarma) — phase 23                                          */
/* ========================================================================== */

/* ---------- Screen-pop modal (renders OUTSIDE .board-root, so it carries its
   own light-theme tokens; it must not depend on the board's inherited vars) - */
.callpop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: callpop-fade 0.15s ease-out;
}
@keyframes callpop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.callpop {
  --cp-ink: #1c1c1c;
  --cp-muted: #777;
  --cp-line: #e7e7e3;
  width: min(380px, 100%);
  background: #ffffff;
  color: var(--cp-ink);
  border-radius: 18px;
  padding: 26px 26px 22px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  animation: callpop-pop 0.2s ease-out;
}
@keyframes callpop-pop {
  from { transform: scale(0.92) translateY(8px); opacity: 0.4; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.callpop-ring {
  font-size: 2.6rem;
  line-height: 1;
  animation: callpop-shake 1s ease-in-out infinite;
  display: inline-block;
}
@keyframes callpop-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
}
.callpop-title {
  margin: 8px 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
}
.callpop-card {
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #faf9f7;
}
.callpop-name { font-size: 1.25rem; font-weight: 800; }
.callpop-phone {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.02rem;
  color: var(--brand, #e23744);
  text-decoration: none;
  font-weight: 600;
}
.callpop-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--cp-muted);
}
.callpop-actions {
  display: flex;
  gap: 10px;
}
.callpop-actions .grow { flex: 1 1; }

/* ---------- Click-to-call ---------- */
.call-btn-inline {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 4px;
  line-height: 1;
  vertical-align: middle;
}
.call-btn-inline:hover:not(:disabled) { filter: brightness(1.15); }
.call-btn-inline:disabled { opacity: 0.5; cursor: default; }
.board-customer-line { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.board-c2c-row { margin-top: 8px; }
.call-c2c { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.call-status { font-size: 0.85rem; color: var(--muted); }
.call-status-warn { color: var(--brand-dark); }

/* ---------- Call journal ---------- */
.call-journal { list-style: none; padding: 0; margin: 0; }
.call-journal-row {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.call-journal-row:last-child { border-bottom: none; }
.call-journal-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.call-dir { font-weight: 600; font-size: 0.92rem; }
.call-journal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.call-rec-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--brand);
}
.call-rec-btn:hover:not(:disabled) { background: #fff3f4; }
.call-rec-btn:disabled { opacity: 0.6; cursor: default; }
.call-audio { width: 100%; margin-top: 8px; height: 34px; }
.call-rec-err { display: block; margin-top: 4px; }

