:root {
  /* local aliases → design tokens (from /local/templates/cvety/v2/src/styles/tokens.css) */
  --coral: var(--color-primary);
  --coral-hover: var(--color-primary-dark);
  --coral-bg: var(--color-primary-bg);
  --bg: var(--color-gray-50);
  --border: var(--color-gray-150);
  --border-soft: var(--color-gray-100);
  --text: var(--color-gray-900);
  --muted: var(--color-gray-600);
}
* { box-sizing: border-box; }
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text);
  background: var(--bg);
  margin: 0;
}
.wrap { max-width: 1400px; margin: 0 auto; padding: 24px; }
@media (min-width: 641px) { .wrap { padding-right: 328px; } }
h1 { margin: 0 0 8px; }
.arrival-userbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  font-size: 13px; margin: 0 0 8px;
}
.arrival-userbar a { color: var(--color-primary); text-decoration: none; }
.arrival-userbar a:hover { text-decoration: underline; }
.arrival-userbar .who { color: var(--color-gray-700); }
.arrival-userbar .who b { color: var(--color-gray-900); }
.opt-catalog { max-width: 780px; padding-bottom: 112px; padding-right: 24px; }
.opt-catalog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.opt-catalog-head h1 { font-size: 32px; line-height: 1.15; margin: 0; }
.opt-catalog-layout { display: block; }
.opt-catalog .quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.opt-catalog .quick-filters::-webkit-scrollbar { display: none; }
.prod-row { position: relative; }
.prod-date-badge {
  display: inline-flex; align-items: center; max-width: max-content;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.96); color: #2563eb;
  font-size: 12px; font-weight: 700; line-height: 1.25;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
  white-space: nowrap;
}
.meta { color: var(--muted); margin-bottom: 24px; }
.stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat { background: var(--color-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; }
.stat b { font-size: 20px; display: block; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.filters { background: var(--color-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; height: fit-content; position: sticky; top: 16px; max-height: 90vh; overflow-y: auto; }
.filters h3 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; font-weight: 600; }
.filters .group { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.filters .group:last-child { border-bottom: none; }
.filters label {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 2px -10px; cursor: pointer;
  border-radius: var(--radius-md); font-size: 14px; line-height: 1.2;
  transition: background 0.15s;
}
.filters label:hover { background: var(--coral-bg); }
.filters label:has(input:checked) { background: var(--coral); color: var(--color-white); font-weight: 500; }
.filters label:has(input:checked) .count { color: rgba(255,255,255,0.8); }
.filters input[type=checkbox] {
  width: 18px; height: 18px; accent-color: var(--coral);
  margin: 0; flex: 0 0 auto; cursor: pointer;
}
.filters label > span:not(.count) { flex: 1; }
.filters .count { color: var(--muted); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.filters details { margin-top: 4px; }
.filters details summary { padding: 6px 10px; cursor: pointer; color: var(--muted); font-size: 13px; border-radius: 6px; list-style: none; }
.filters details summary::-webkit-details-marker { display: none; }
.filters details summary:hover { background: var(--color-gray-100); color: var(--text); }
.filters details[open] summary { margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; background: var(--color-white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--color-gray-100); font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: none; }
.col-product .prod-row { display: flex; gap: 12px; align-items: center; }
.col-product .prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 11px; line-height: 1.4; }
.col-product .prod-country {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: #eef2ff; color: #3730a3; font-weight: 600; letter-spacing: 0.02em;
    text-transform: uppercase; font-size: 10.5px;
}
.col-product .prod-plant { color: #6b7280; font-style: italic; }
.col-product .prod-pack { color: #6b7280; font-variant-numeric: tabular-nums; }

/* RFQ-каталог: визуальные улучшения (изолированы под body.arrival-china-rfq) */
/* Cart-bar как coral pill во всех viewport. Sidebar 280px (legacy default)
   перекрываем — единая визуальная идентичность. */
/* Cart-bar — спокойный жёлтый pill в углу (desktop + mobile),
   появляется только при .active (количество > 0). Tap/click открывает modal. */
body.arrival-china-rfq .cart-bar {
  position: fixed; top: auto; right: 16px; bottom: 16px; left: auto;
  width: auto; max-width: calc(100vw - 32px); max-height: none;
  background: #ff6666; color: #fff; border: none;
  border-radius: 999px; padding: 12px 18px; gap: 10px;
  flex-direction: row; align-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,102,102,0.35);
}
body.arrival-china-rfq .cart-bar::before {
  content: ""; width: 22px; height: 22px; flex: 0 0 auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18l-2 13H5L3 6z'/><path d='M8 6V4a4 4 0 0 1 8 0v2'/></svg>") no-repeat center/contain;
}
body.arrival-china-rfq .cart-bar > span,
body.arrival-china-rfq .cart-bar > span b { color: #fff; font-weight: 700; }
body.arrival-china-rfq .cart-bar > span { font-size: 15px; flex: 0 0 auto; }
body.arrival-china-rfq .cart-bar .cart-sum-wrap { display: none; }
body.arrival-china-rfq .cart-bar .cart-count-wrap { display: inline; }
body.arrival-china-rfq .cart-bar > div { display: none; }

.quick-filters-collapse {
  margin: 0 0 14px; background: #fff; border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; overflow: hidden;
}
.quick-filters-collapse > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; cursor: pointer; list-style: none;
  font-weight: 600; color: #0f172a; font-size: 14px;
  user-select: none;
}
.quick-filters-collapse > summary::-webkit-details-marker { display: none; }
.quick-filters-collapse > summary .chev {
  transition: transform 0.2s; color: #94a3b8; font-size: 16px;
}
.quick-filters-collapse[open] > summary .chev { transform: rotate(180deg); }
.quick-filters-collapse > summary .chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 1px 7px; margin-left: 6px;
  background: #f1f5f9; color: #475569; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.quick-filters-collapse > .quick-filters {
  padding: 4px 12px 12px; margin: 0; border-top: 1px solid #f1f5f9;
}

.rfq-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin: 0 0 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fff 60%, #fce7f3 100%);
  border: 1px solid #fcd34d44; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rfq-hero-flag { font-size: 36px; line-height: 1; flex: 0 0 auto; }
.rfq-hero-title {
  font-family: var(--font-family); font-size: 20px; font-weight: 700;
  color: #0f172a; line-height: 1.2;
}
.rfq-hero-meta {
  margin-top: 4px; font-size: 13px; color: #475569; line-height: 1.5;
}
.rfq-hero-meta b { color: #0f172a; font-weight: 600; }
.rfq-city-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 6px 12px;
  background: #fff; border: 1px solid #fcd34d77;
  border-radius: 999px; font: inherit; font-size: 13px; color: #0f172a;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.rfq-city-chip:hover { border-color: #f59e0b; background: #fef3c7; }
.rfq-city-chip .rfq-city-icon { font-size: 14px; }
.rfq-city-chip .rfq-city-link {
  margin-left: 4px; padding-left: 8px;
  border-left: 1px solid #e5e7eb;
  color: #ff6666; font-weight: 600;
}
.rfq-price-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 12px 16px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 12px; color: #92400e;
  font-size: 14px; font-weight: 500;
}
.rfq-price-note-icon { font-size: 16px; flex: 0 0 auto; }

body.arrival-china-rfq .prod-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
  font-size: 32px; flex: 0 0 auto;
}
body.arrival-china-rfq .col-params[data-label="Цена"] {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
body.arrival-china-rfq .col-params[data-label="Цена"]::before {
  content: none !important;
}
body.arrival-china-rfq .col-params[data-label="Цена"] .param-dim {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: #fff7ed; color: #9a3412;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  text-transform: none;
}
body.arrival-china-rfq .col-params[data-label="Цена"] .param-dim::before {
  content: "🏷️"; font-size: 11px;
}
/* RFQ: компактная круглая «+»-кнопка вместо full-width «В корзину».
   Текст «В корзину» читается экранным ридером, но визуально скрыт. */
body.arrival-china-rfq .add-btn.add-btn-noprice {
  background: #ff6666; color: #fff;
  box-shadow: 0 2px 8px rgba(255, 102, 102, 0.25);
  width: 44px; height: 44px; min-width: 44px;
  padding: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
body.arrival-china-rfq .add-btn.add-btn-noprice:hover {
  background: #ff5252; box-shadow: 0 4px 12px rgba(255, 102, 102, 0.35);
}
body.arrival-china-rfq .add-btn.add-btn-noprice .add-sum {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
body.arrival-china-rfq .add-btn.add-btn-noprice .add-sign {
  font-size: 24px; font-weight: 700; line-height: 1;
}
body.arrival-china-rfq .col-product .prod-name { font-size: 17px; }
body.arrival-china-rfq .col-product .prod-sub {
  margin-top: 2px; color: #475569; font-size: 13px; font-weight: 500;
}
body.arrival-china-rfq .col-product .prod-photo,
body.arrival-china-rfq .col-product .prod-photo-placeholder {
  width: 88px; height: 88px; border-radius: 12px; object-fit: cover;
}

.col-product .prod-pack-detail {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-top: 6px; font-size: 12px; color: #334155;
    font-variant-numeric: tabular-nums;
}
.col-product .prod-pack-detail b { color: #0f172a; font-weight: 600; }
.col-product .prod-pack-detail .sep { color: #cbd5e1; }
.col-product .prod-pack-detail .prod-box-total {
    margin-left: auto;
    background: #fff7ed; color: #9a3412; padding: 2px 8px;
    border-radius: 999px; font-size: 11px; font-weight: 600;
}
.add-btn.add-btn-noprice .add-sum { font-size: 12px; font-weight: 500; }
.add-btn.add-btn-noprice { background: #eef2ff; color: #3730a3; }
.add-btn.add-btn-noprice:hover { background: #e0e7ff; }
.col-product .prod-photo {
    width: 100px; height: 100px; object-fit: cover;
    border-radius: 10px; background: var(--color-gray-100, #f3f4f6);
    flex-shrink: 0;
}
.col-product .prod-text { min-width: 0; }
.col-product .prod-name { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.col-product .prod-length { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 4px; }
.col-product .prod-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.col-product .prod-farm { color: var(--muted); font-size: 11.5px; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.02em; }
.col-params { white-space: nowrap; font-size: 13px; }
.col-params .param-dim { color: var(--muted); font-size: 12px; }
.col-params .price-per-stem { font-weight: 600; color: var(--text); font-size: 14px; }
.add-cell .add-cell-info { display: none; }

.add-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.add-btn[hidden], .stepper[hidden] { display: none !important; }
.add-btn .add-sign { font-size: 18px; font-weight: 700; line-height: 1; }
.add-btn .add-sum { font-weight: 600; font-size: 13px; white-space: nowrap; }

.stepper {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-bg); border: 1px solid var(--coral); border-radius: var(--radius-md);
  padding: 4px 6px;
}
.stepper-btn {
  width: 32px; height: 32px; border-radius: 6px; border: none;
  background: var(--coral); color: var(--color-white); font-size: 18px; font-weight: 700;
  cursor: pointer; line-height: 1;
}
.stepper-btn:disabled { background: var(--color-gray-300); cursor: not-allowed; }
.stepper-btn:not(:disabled):hover { background: var(--coral-hover); }
.stepper-info { text-align: center; min-width: 80px; font-size: 12px; line-height: 1.3; }
.stepper-info .stepper-count { font-size: 15px; }
.stepper-sum { color: var(--muted); font-size: 11px; }
.stepper-sum b { color: var(--coral); font-weight: 600; }

.stepper-single .stepper-plus { display: none; }
.stepper-single .stepper-count { display: none; }
.stepper-single .stepper-info { font-size: 0; line-height: 1; }
.stepper-single .stepper-info::before { content: "✓"; color: var(--coral); font-size: 16px; font-weight: 700; margin-right: 6px; }
.stepper-single .stepper-sum { font-size: 14px; font-weight: 600; color: var(--text); display: inline; }
.stepper-single .stepper-sum b { color: var(--text); font-weight: 600; }

/* Half-box: вторая кнопка под основной + бейдж осиротевшей половины.
   vertical-align:middle на td даёт нативное центрирование для rowspan>1
   (flex на td с rowspan нестабилен в Safari/старых WebKit). Кнопки и
   степперы внутри — block-флекс, чтоб стекались вертикально. */
.add-cell { vertical-align: middle !important; }
.add-cell > .add-btn,
.add-cell > .stepper,
.add-cell > .add-btn-half,
.add-cell > .stepper-half,
.add-cell > .orphan-half-badge { display: flex; margin: 0 0 6px; }
.add-cell > :last-child { margin-bottom: 0; }
.add-btn-half { background: #eef2ff; color: #3730a3; }
.add-btn-half:hover { background: #e0e7ff; }
.add-btn-half .add-half-label { font-size: 11px; font-weight: 500; opacity: 0.85; }
.stepper-half { background: #eef2ff; border-color: #c7d2fe; }
.stepper-half .stepper-btn { background: #4f46e5; }
.stepper-half .stepper-btn:not(:disabled):hover { background: #4338ca; }
.stepper-half .stepper-sum b { color: #3730a3; }
.orphan-half-badge {
  display: inline-block; padding: 4px 8px; margin-bottom: 6px;
  background: #ddd6fe; color: #5b21b6; border-radius: var(--radius-md);
  font-size: 11px; font-weight: 600;
}

/* Секционные заголовки — большие отступы для дыхания между секциями */
tbody.section-head td {
  padding: 28px 12px 12px; font-size: 13px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
  background: transparent; border: none;
}
tbody.section-head-orphan td {
  color: #5b21b6;
  border-top: 1px solid transparent; /* чтоб первая секция не имела верхней рамки */
}
tbody.section-head-full td {
  padding-top: 36px; /* больше воздуха перед целыми коробками */
  border-top: 1px dashed #e5e7eb;
}
tbody.box-group.orphan-only { background: #faf5ff; }
tbody.box-group.orphan-only td { border-top-color: transparent; }
tbody.box-group.orphan-only td.merged-cell { background: #f3e8ff; }
tbody.box-group.orphan-only + tbody.box-group.orphan-only td {
  border-top: 1px solid #e9d5ff;
}

/* Чип-фильтр «Поделены коробки» */
.chip.chip-orphan { background: #f3e8ff; color: #5b21b6; border-color: #ddd6fe; }
.chip.chip-orphan.active { background: #5b21b6; color: #fff; border-color: #5b21b6; }
.chip.chip-orphan .chip-count { color: inherit; opacity: 0.8; }

tr.box-main td { border-top: 2px solid var(--border); }
tr.box-child td { border-bottom: 1px dashed var(--color-gray-100); }
tr.box-last td { border-bottom: 1px solid var(--border); }
tr.box-child td:first-child { padding-left: 12px; }
tr.box-child .prod-sub, tr.box-child .prod-farm { display: none; }
td.merged-cell { vertical-align: middle; background: var(--color-gray-50); }
.badge { display: inline-block; padding: 2px 8px; background: #fef3c7; color: #92400e; border-radius: var(--radius-lg); font-size: 11px; }
.qty-hint { color: var(--muted); font-size: 11px; margin: 0 4px; }
.btn { background: var(--coral); color: var(--color-white); border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.btn:hover { background: var(--coral-hover); }
.btn:disabled { background: var(--color-gray-300); cursor: not-allowed; }
.btn-sec { background: var(--color-white); color: var(--text); border: 1px solid var(--border); }
.qty { width: 48px; padding: 4px; border: 1px solid var(--border); border-radius: 4px; }
.cart-bar {
  position: fixed; top: 24px; right: 24px; width: 280px;
  background: var(--color-white); border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-radius: var(--radius-lg);
  padding: 16px; display: none; flex-direction: column; gap: 12px;
  z-index: var(--z-sticky); max-height: calc(100vh - 48px); overflow-y: auto;
}
.cart-bar.active { display: flex; }
.cart-bar > span { font-size: 14px; color: var(--muted); }
.cart-bar > span b { color: var(--text); font-weight: 600; font-size: 16px; }
.cart-bar > div { display: flex; flex-direction: column; gap: 8px; }
.cart-bar .btn { width: 100%; justify-content: center; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: var(--z-modal); justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-card { background: var(--color-white); border-radius: var(--radius-lg); padding: 20px; width: 480px; max-width: 92vw; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-close { background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--text); }

.cart-summary { background: var(--color-gray-50); border-radius: var(--radius-md); padding: 10px; margin-bottom: 16px; }
.cart-empty { color: var(--muted); text-align: center; padding: 12px; }
.cart-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: none; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-title { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-line-sum { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cart-line-remove { width: 28px; height: 28px; border-radius: 6px; border: none; background: #fee; color: #c00; font-size: 18px; cursor: pointer; line-height: 1; }
.cart-line-remove:hover { background: #fdd; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 4px; border-top: 2px solid var(--border); margin-top: 8px; font-size: 15px; }
.cart-total b { font-size: 18px; color: var(--coral); }

.btn-submit { width: 100%; padding: 14px; font-size: 16px; font-weight: 600; margin-top: 8px; }

.city-field { position: relative; }
.city-suggestions {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-white); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: var(--z-sticky);
  max-height: 220px; overflow-y: auto; margin-top: 4px;
}
.city-suggestions[hidden] { display: none; }
.city-sug-item { padding: 10px 12px; cursor: pointer; font-size: 15px; border-bottom: 1px solid var(--color-gray-100); }
.city-sug-item:last-child { border-bottom: none; }
.city-sug-item:hover { background: var(--coral-bg); color: var(--coral); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.success { background: #dcfce7; color: #166534; padding: 16px; border-radius: var(--radius-md); }
a.arrival-link { color: var(--coral); text-decoration: none; font-weight: 500; }
a.btn { text-decoration: none; display: inline-block; }
#form-error { color: var(--color-error); margin: 8px 0; min-height: 20px; }

.filters-toggle { display: none; }
.filters-header { display: none; }
.drawer-backdrop { display: none; }
td[data-label]::before { content: none; }

.quick-filters {
  display: none; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.quick-filters[hidden] { display: none !important; }
.quick-filters.subfilters { padding-left: 12px; border-left: 2px solid var(--coral); margin-bottom: 10px; }
.chip.chip-sm { font-size: 12px; padding: 6px 10px; min-height: 30px; }
.chip {
  background: var(--color-white); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-full); padding: 8px 14px; font: inherit; font-size: 13px;
  cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--coral); }
.chip.active { background: var(--coral); color: var(--color-white); border-color: var(--coral); }
.chip-count { font-size: 11px; opacity: 0.7; }
.chip.active .chip-count { opacity: 0.9; }

/* ==========================================
   Kaspi invoice (admin order cards)
   ========================================== */
.kaspi-btn {
  appearance: none;
  background: #ff4747;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.kaspi-btn:hover { background: #e63939; }
.kaspi-btn:disabled { opacity: 0.6; cursor: default; }

.kaspi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.kaspi-badge--pending { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.kaspi-badge--timeout { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.oc-paid-via { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }

.kaspi-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.kaspi-modal {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.kaspi-modal-head {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.kaspi-modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.kaspi-modal-row { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.kaspi-modal-row b { color: var(--text); font-size: 16px; }
.kaspi-modal-row input {
  font: inherit; font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
}
.kaspi-modal-row input:focus { border-color: var(--coral); }
.kaspi-modal-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
}
.kaspi-modal-foot {
  padding: 12px 20px 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-soft);
}
.kaspi-modal-foot button {
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
}
.kaspi-modal-cancel { background: var(--color-white); border-color: var(--border); color: var(--text); }
.kaspi-modal-cancel:hover { background: var(--color-gray-100); }
.kaspi-modal-submit { background: #ff4747; color: #fff; }
.kaspi-modal-submit:hover { background: #e63939; }
.kaspi-modal-submit:disabled { opacity: 0.6; cursor: default; }

/* ==========================================
   Waybill button (PDF накладная)
   ========================================== */
.waybill-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-gray-100);
  color: var(--color-gray-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.waybill-btn:hover { background: var(--color-gray-150, #e5e7eb); color: var(--text); }
.waybill-btn:active { transform: translateY(1px); }

/* ==========================================
   Seller profile form
   ========================================== */
.seller-form {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-family);
}
.seller-field { display: flex; flex-direction: column; gap: 4px; }
.seller-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700, #374151);
}
.seller-field input[type="text"],
.seller-field input[type="tel"],
.seller-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--text);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.seller-field input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--color-primary-28, rgba(255,102,102,0.18));
}
.seller-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.seller-field--inline { flex-direction: row; align-items: center; }
.seller-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.seller-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--coral); margin: 0;
}
.seller-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
  min-height: 48px;
  background: var(--coral);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background 0.15s;
}
.seller-submit:hover { background: var(--coral-hover); }
.seller-flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-family: var(--font-family);
}
.seller-flash--ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.seller-flash--err { background: #fef2f2; color: #9f1239; border: 1px solid #fecaca; }
