/*
 * Общая корзина (js/city/basket.js): колонка на компьютере, шторка, полоса на телефоне, кнопка в шапке каталога.
 * Самодостаточный слой: каталог не подключает client.css/style.css. Цвета — токены --bk-*, тёмная тема переопределяет их в css/theme-dark.css.
 * Тёплый стол: белый лист на овсяной бумаге, какао-текст, травяное действие; одна главная кнопка — «Оформить заказ».
 */
:root {
  --bk-ink: #29251f; --bk-muted: #6d655a; --bk-faint: #8f877b; --bk-line: #ebe5da; --bk-soft: #f4f0e8; --bk-cream: #f7f4ed;
  --bk-surface: #fff; --bk-green: #2d803a; --bk-green-dark: #1f5a28; --bk-wash: #e5f1dc; --bk-danger: #b42332;
  --bk-warn-bg: #fff4de; --bk-warn: #7a4d14; --bk-radius: 20px; --bk-ease: cubic-bezier(.22, 1, .36, 1);
}
.bk { display: flex; flex-direction: column; gap: 14px; color: var(--bk-ink); font-family: var(--brand-font, 'Manrope', system-ui, sans-serif); font-size: 15px; line-height: 1.4; text-align: left; }
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bk h2, .bk h3 { font-family: var(--brand-font, inherit) !important; color: var(--bk-ink) !important; }
.bk button:focus-visible, .bk a:focus-visible { outline: 3px solid var(--bk-green); outline-offset: 2px; }

/* ── Заголовок: «Корзина · 4 блюда» слева, «Очистить» и «×» справа ── */
.bk-headline { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.bk-headline h2 { margin: 0; font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bk-count { color: var(--bk-muted); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.bk-head-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.bk-clear { min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--bk-muted) !important; font-size: .84rem !important; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.bk-clear:hover { background: #fdecec; color: var(--bk-danger) !important; }
.bk-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bk-soft); cursor: pointer; flex: none; transition: background .15s ease; }
.bk-close svg { width: 20px; height: 20px; }
.bk-close:hover { background: #ebe5da; }

/* ── Как получить: одна строка ── */
.bk-where { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 56px; padding: 8px 14px 8px 8px; border: 0; border-radius: 16px;
  background: var(--bk-cream); cursor: pointer; text-align: left; transition: background .15s ease, box-shadow .15s ease; }
.bk-where:hover { box-shadow: 0 0 0 1.5px var(--bk-green) inset; }
.bk-where.is-empty { background: var(--bk-wash); }
.bk-where-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--bk-surface); color: var(--bk-green-dark); box-shadow: 0 1px 2px rgba(41,37,31,.06); }
.bk-where-ico svg { width: 20px; height: 20px; }
.bk-where-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bk-where-text small { color: var(--bk-muted); font-size: .76rem; font-weight: 700; }
.bk-where-text b { font-size: .9rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-where-go { flex: none; color: var(--bk-green-dark); font-size: .84rem; font-weight: 800; }

/* ── Несколько заведений ── */
.bk-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #eef4fb; color: #22415f; font-size: .84rem; line-height: 1.45; }
.bk-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ── Группа заведения ── */
.bk-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk--multi .bk-group { gap: 8px; padding: 14px; border-radius: var(--bk-radius); background: var(--bk-surface); box-shadow: 0 0 0 1px var(--bk-line) inset; }
.bk-ghead { display: flex; align-items: center; gap: 8px; }
.bk-ghead-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 12px; }
a.bk-ghead-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.bk-ghead-link > span:not(.bk-stamp) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-ghead-link b { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-ghead-link small { color: var(--bk-muted); font-size: .78rem; font-weight: 650; }
.bk-ghead-link > svg { width: 18px; height: 18px; flex: none; color: var(--bk-muted); }
.bk-stamp { flex: none; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--bk-line); color: var(--bk-green-dark); font-weight: 800; }
.bk-stamp img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.bk-gclear { flex: none; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--bk-faint) !important; cursor: pointer; }
.bk-gclear svg { width: 17px; height: 17px; }
.bk-gclear:hover { background: #fdecec; color: var(--bk-danger) !important; }

/* ── Строки блюд ── */
.bk-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bk-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--bk-line); }
.bk-line:first-child { border-top: 0; padding-top: 6px; }
.bk-photo { display: block; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--bk-soft); cursor: pointer; }
span.bk-photo { cursor: default; }
.bk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--bk-ease); }
button.bk-photo:hover img { transform: scale(1.05); }
.bk-line-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0; border: 0; background: none; font-weight: 750 !important; font-size: .94rem !important; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
button.bk-name { cursor: pointer; }
button.bk-name:hover { color: var(--bk-green-dark) !important; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--bk-muted); font-size: .8rem; font-weight: 600; line-height: 1.35; }
.bk-meta .is-removed { color: #a1503f; }
.bk-flag { align-self: flex-start; padding: 3px 8px; border-radius: 8px; background: #fdecec; color: var(--bk-danger); font-size: .76rem; font-weight: 750; }
.bk-line.is-unavailable .bk-photo img { filter: grayscale(1); opacity: .55; }
.bk-line.is-unavailable .bk-name { color: var(--bk-muted) !important; }
.bk-line-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bk-price { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bk-price b { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-each { color: var(--bk-faint); font-size: .74rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-coin { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.bk-coin img { width: 16px; height: 16px; }

/* Степпер: белая «таблетка» с рамкой — заметная, но спокойнее главной кнопки. */
.bk-step { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 2px; border-radius: 999px; background: var(--bk-surface); box-shadow: 0 0 0 1.5px var(--bk-line) inset; }
.bk-step button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--bk-ink); cursor: pointer; transition: background .15s ease, color .15s ease, transform .12s ease; }
.bk-step button svg { width: 16px; height: 16px; }
.bk-step button:hover { background: var(--bk-soft); }
.bk-step button:active { transform: scale(.92); }
.bk-step button.is-remove { color: var(--bk-faint); }
.bk-step button.is-remove:hover { background: #fdecec; color: var(--bk-danger); }
.bk-step button:last-child { color: var(--bk-green-dark); }
.bk-step span { min-width: 24px; text-align: center; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }

/* ── Комплект и «Добавить к заказу» ── */
.bk-kit[hidden], .bk-sugg[hidden] { display: none; }
.bk-kit { margin-top: 6px; }
.bk-kit-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 14px 8px 8px; border: 0; border-radius: 16px; background: var(--bk-cream); cursor: pointer; text-align: left; transition: box-shadow .15s ease; }
.bk-kit-row:hover { box-shadow: 0 0 0 1.5px var(--bk-green) inset; }
.bk-kit-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--bk-green-dark); }
.bk-kit-ico svg { width: 18px; height: 18px; }
.bk-kit-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-kit-text b { font-size: .88rem; }
.bk-kit-text small { color: var(--bk-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-kit-row i { font-style: normal; color: var(--bk-green-dark); font-size: .84rem; font-weight: 800; }
.bk-sugg { margin-top: 10px; min-width: 0; }
.bk-sugg h3 { margin: 0; font-size: .95rem; font-weight: 800; }
.bk-sugg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; min-height: 30px; }
/* Стрелки ленты — только где есть мышь и только когда лента длиннее места (класс is-scrollable ставит basket.js). */
.bk-sugg-navs { display: none; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .bk-sugg.is-scrollable .bk-sugg-navs { display: inline-flex; } }
.bk-sugg-nav { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bk-soft); color: var(--bk-ink, currentColor); cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.bk-sugg-nav svg { width: 16px; height: 16px; }
.bk-sugg-nav:hover:not(:disabled) { background: var(--bk-wash); color: var(--bk-green-dark); }
.bk-sugg-nav:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .bk-sugg-row { cursor: grab; } .bk-sugg-row.is-dragging { cursor: grabbing; scroll-snap-type: none; } .bk-sugg-row.is-dragging * { pointer-events: none; } }
.bk-sugg-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.bk-sugg-row::-webkit-scrollbar { display: none; }
.bk-sugg-card { flex: none; width: 116px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.bk-sugg-img { position: relative; display: block; width: 116px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--bk-soft); }
.bk-sugg-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--bk-ease); }
.bk-sugg-card:hover .bk-sugg-img img { transform: scale(1.05); }
.bk-sugg-img i { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--bk-green-dark); font-style: normal; font-weight: 800; font-size: 1.15rem; line-height: 1; box-shadow: 0 2px 8px rgba(41,37,31,.18); transition: background .15s ease, color .15s ease; }
.bk-sugg-card:hover .bk-sugg-img i { background: var(--bk-green); color: #fff; }
.bk-sugg-name { font-size: .78rem; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.bk-sugg-card b { font-size: .84rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ── Итог группы ── */
.bk-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--bk-line); }
.bk-progress { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bk-wash); color: var(--bk-green-dark); font-size: .8rem; font-weight: 700; }
.bk-progress i { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--bk-green) var(--p), rgba(45,128,58,.18) var(--p)); }
.bk-sum { margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.bk-sum div { display: flex; justify-content: space-between; gap: 10px; }
.bk-sum dt { color: var(--bk-muted); }
.bk-sum dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-sum .bk-total { margin-top: 4px; font-size: 1.1rem; }
.bk-sum .bk-total dt { color: var(--bk-ink); font-weight: 800; }
.bk-sum .bk-total dd { font-weight: 800; }
.bk-ok { color: var(--bk-green-dark); }
.bk-muted { color: var(--bk-muted); font-weight: 600; }
.bk-promo { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 12px; border-radius: 12px; background: var(--bk-wash); color: var(--bk-green-dark); font-size: .84rem; }
.bk-promo span { display: grid; gap: 1px; }
.bk-promo b { letter-spacing: .06em; }
.bk-promo small { color: #5f6b66; font-size: .74rem; }
.bk-promo button { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: #5f6b66; display: grid; place-items: center; cursor: pointer; }
.bk-promo button:hover { background: rgba(0, 0, 0, .06); }
.bk-promo svg { width: 16px; height: 16px; }
.bk-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bk-warn-bg); color: var(--bk-warn); font-size: .82rem; line-height: 1.4; }
.bk-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 8px 0 20px; border: 0; border-radius: 16px;
  background: var(--bk-green); color: #fff !important; font-weight: 800 !important; font-size: 1rem !important; cursor: pointer; text-align: left;
  box-shadow: 0 8px 20px rgba(36,91,55,.22); transition: background .15s ease, transform .15s var(--bk-ease), box-shadow .15s ease; }
.bk-go > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-weight: 800 !important; }
.bk-go > b { flex: none; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.16); font-weight: 800 !important; font-variant-numeric: tabular-nums; }
.bk-go small.bk-go-from { font-size: .76rem; font-weight: 650 !important; opacity: .88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-go:hover:not(:disabled) { background: var(--bk-green-dark); }
.bk-go:active:not(:disabled) { transform: scale(.985); }
.bk-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.bk-go.is-busy { opacity: .75; cursor: progress; }

/* ── Пусто ── */
.bk-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 14px; text-align: center; color: var(--bk-muted); font-size: .88rem; line-height: 1.45; }
.bk-empty img { width: 112px; height: auto; margin-bottom: 4px; }
.bk-empty b { color: var(--bk-ink); font-size: 1rem; }

/* ── Колонка на компьютере: белая карточка; высота — до низа экрана (basket.js), итог прижат к низу ── */
.dl-cart { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9d1c3 transparent; border-radius: 24px;
  background: var(--bk-surface); box-shadow: 0 1px 2px rgba(41,37,31,.05), 0 12px 32px rgba(70,49,26,.08); }
.bk--panel { padding: 18px 18px 0; min-height: 100%; }
.bk--panel .bk-headline { position: sticky; top: -18px; z-index: 2; margin: -18px -18px 0; padding: 18px 18px 6px; background: var(--bk-surface); }
.bk--panel.bk--empty, .bk--panel:not(:has(.bk-foot)) { padding-bottom: 18px; }
.bk--panel .bk-group:only-of-type .bk-foot, .bk--sheet .bk-group:only-of-type .bk-foot {
  position: sticky; bottom: 0; z-index: 1; margin: 10px -18px 0; padding: 14px 18px 18px; background: var(--bk-surface);
  border-top: 1px solid var(--bk-line); box-shadow: 0 -14px 24px -18px rgba(41,37,31,.35); }
.bk--panel .bk-go-from { display: none; }
.bk--panel.bk--multi { background: var(--bk-cream); }
.bk--panel.bk--multi .bk-headline { background: var(--bk-cream); }
.bk--panel .bk-sugg-row { margin: 0 -18px; padding: 0 18px 4px; scroll-padding: 0 18px; }

/* ── Шторка: справа на компьютере, лист снизу на телефоне ── */
html.bk-locked, html.bk-locked body { overflow: hidden; }
.bk-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.bk-dialog::backdrop { background: rgba(41,37,31,.45); }
.bk-dialog[open] .bk-sheet { animation: bk-in .32s var(--bk-ease); }
.bk-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--bk-surface); box-shadow: -20px 0 50px rgba(41,37,31,.18); }
.bk--sheet { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 18px 0; }
.bk--sheet.bk--multi { background: var(--bk-cream); }
.bk--sheet > :last-child { margin-bottom: calc(18px + env(safe-area-inset-bottom)); }
.bk--sheet > .bk-group:only-of-type:last-child { margin-bottom: 0; }
.bk--sheet .bk-headline { position: sticky; top: -18px; z-index: 2; margin: -18px -18px 0; padding: 18px 18px 8px; background: inherit; }
.bk--sheet.bk--multi .bk-headline { background: var(--bk-cream); }
.bk--sheet:not(.bk--multi) .bk-headline { background: var(--bk-surface); }
.bk--sheet .bk-group:only-of-type .bk-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.bk--sheet .bk-sugg-row { margin: 0 -18px; padding: 0 18px 4px; scroll-padding: 0 18px; }
.bk--multi .bk-sugg-row { margin: 0 -14px; padding: 0 14px 4px; }
@keyframes bk-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .bk-sheet { top: auto; left: 0; width: 100%; height: calc(100dvh - 24px); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px rgba(41,37,31,.2); overflow: hidden; }
  .bk--sheet { padding: 22px 16px 0; }
  .bk--sheet .bk-headline { top: -22px; margin: -22px -16px 0; padding: 22px 16px 8px; border-radius: 24px 24px 0 0; }
  .bk--sheet .bk-headline::before { content: ''; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d9d1c3; }
  .bk--sheet .bk-group:only-of-type .bk-foot { margin: 10px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .bk--sheet .bk-sugg-row { margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .bk-line { grid-template-columns: 72px minmax(0, 1fr); }
  .bk-photo { width: 72px; height: 72px; }
  .bk-step { height: 44px; }
  .bk-step button { width: 40px; height: 40px; }
  @keyframes bk-in { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ── Полоса корзины на телефоне (страница заведения, каталог, акции) ── */
.bk-bar { position: fixed; z-index: 21500; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h, 56px) + env(safe-area-inset-bottom) + 10px); display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px 0 10px; border: 0; border-radius: 18px; background: var(--bk-green); color: #fff; font: inherit; font-family: var(--brand-font, inherit); font-weight: 800; box-shadow: 0 10px 28px rgba(31,94,51,.28); cursor: pointer; }
.bk-bar[hidden] { display: none; }
.bk-bar:hover { background: var(--bk-green-dark); }
.bk-bar .dl-bar-count { min-width: 36px; height: 36px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--bk-green-dark); font-variant-numeric: tabular-nums; }
.bk-bar .dl-bar-label { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; font-size: 1rem; line-height: 1.2; }
.bk-bar .dl-bar-label small { font-size: .74rem; font-weight: 650; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-bar .dl-bar-sum { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.bk-bar svg { width: 20px; height: 20px; flex: none; }
body.bk-no-nav .bk-bar { bottom: calc(env(safe-area-inset-bottom) + 12px); }
@media (min-width: 1100px) { body:not(.bk-no-nav) .bk-bar { display: none; } }
@media (min-width: 761px) { body.bk-no-nav .bk-bar { display: none; } }
html.is-app .bk-bar, html.cart-page-mode .bk-bar { display: none !important; }

/* ── Кнопка «Корзина» в шапке каталога ── */
.bk-open { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--bk-wash); color: var(--bk-green-dark); font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; transition: background .15s ease; white-space: nowrap; }
.bk-open svg { width: 20px; height: 20px; }
.bk-open:hover { background: #dcefe2; }
.bk-open.has-items { background: var(--bk-green); color: #fff; }
.bk-open.has-items:hover { background: var(--bk-green-dark); }
.bk-open [data-bk-count] { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--bk-green-dark); font-size: .76rem; font-variant-numeric: tabular-nums; }
.bk-open [data-bk-count][hidden] { display: none; }
.bk-open [data-bk-sum] { font-variant-numeric: tabular-nums; }

/* ── Карточка заведения в каталоге: уже в корзине ── */
.rc-incart { position: absolute; z-index: 3; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--bk-green); color: #fff; font-size: .76rem; font-weight: 800; box-shadow: 0 2px 8px rgba(31,94,51,.3); }
.rc-incart svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .bk-dialog[open] .bk-sheet { animation: none; }
  .bk-go, .bk-step button, .bk-photo img, .bk-sugg-img img { transition: none; }
}
/* «Лесенка» подарков за Вкусняшки: две ступени — комплимент и блюдо, по одному на заказ (PointsTiers). */
.bk-ladder { margin: 2px 0 10px; }
.bk-ladder ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-rung { position: relative; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 8px;
  padding: 9px 10px 11px; border-radius: 14px; background: var(--bk-soft); color: var(--bk-ink); overflow: hidden; }
.bk-rung::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--bk-green) var(--p), var(--bk-line) var(--p)); }
.bk-rung-ico { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bk-surface); color: var(--bk-faint); }
.bk-rung-ico svg { width: 17px; height: 17px; }
.bk-rung-num { font-size: 14px; font-weight: 900; }
.bk-rung-text { display: grid; min-width: 0; }
.bk-rung-text b { font-size: .8rem; line-height: 1.2; }
.bk-rung-text small { font-size: .72rem; color: var(--bk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-rung-min { grid-column: 2; font-size: .68rem; color: var(--bk-faint); }
.bk-rung.is-open .bk-rung-ico { color: var(--bk-green); }
.bk-rung.is-picked { background: var(--bk-wash); }
.bk-rung.is-picked .bk-rung-ico { background: var(--bk-green); color: #fff; }
.bk-rung.is-picked .bk-rung-text small { color: var(--bk-green-dark); font-weight: 700; }
.bk-rung.is-short { background: var(--bk-warn-bg); }
.bk-rung.is-short .bk-rung-text small { color: var(--bk-warn); font-weight: 700; }
.bk-rung.is-locked .bk-rung-text b { color: var(--bk-muted); }
@media (max-width: 360px) { .bk-ladder ol { grid-template-columns: 1fr; } }

/* ── Несколько ресторанов: одна корзина, выбор ресторана сверху (basket.js, pickerHtml; 20.11.2026) ── */
.bk-rests { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-rest { flex: 1 1 170px; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px 8px 8px; border: 0; border-radius: 16px;
  background: var(--bk-soft); box-shadow: 0 0 0 1.5px transparent inset; cursor: pointer; text-align: left; transition: background .15s ease, box-shadow .15s ease; }
.bk-rest:hover { box-shadow: 0 0 0 1.5px var(--bk-line) inset; }
.bk-rest[aria-selected="true"] { background: var(--bk-wash); box-shadow: 0 0 0 2px var(--bk-green) inset; }
.bk-rest .bk-stamp { width: 40px; height: 40px; }
.bk-rest-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bk-rest-text b { font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-rest-text small { color: var(--bk-muted); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.bk-rest[aria-selected="true"] .bk-rest-text small { color: var(--bk-green-dark); }
.bk-rests-note { flex: none; margin: -6px 0 0; color: var(--bk-muted); font-size: .8rem; line-height: 1.4; }
.bk-gbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.bk-gbar-link { display: inline-flex; align-items: center; gap: 4px; color: var(--bk-green-dark); font-size: .86rem; font-weight: 800; text-decoration: none; }
.bk-gbar-link svg { width: 16px; height: 16px; }
.bk-gbar-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-gbar-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--bk-muted) !important; font-size: .84rem; font-weight: 700; cursor: pointer; }
.bk-gbar-clear svg { width: 16px; height: 16px; }
.bk-gbar-clear:hover { background: var(--bk-soft); color: var(--bk-danger) !important; }
/* Короткая корзина в шторке: итог и «Оформить» — у нижнего края, а не посреди листа. */
.bk--sheet > .bk-group:only-of-type:last-child { flex: 1 0 auto; }
.bk--sheet > .bk-group:only-of-type:last-child > .bk-foot { margin-top: auto; }
