.screen.hidden {
  display: none !important;
}

.screen {
  display: block;
}

/* Режим пилот / lab */
.soorta-mode-badge {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  pointer-events: none;
}

.soorta-mode-badge.hidden {
  display: none !important;
}

body.soorta-mode-pilot #buyer-view-home .grid {
  grid-template-columns: minmax(0, 28rem);
}

[data-feature][hidden] {
  display: none !important;
}

/* Боковая панель кабинета (не используем tailwind hidden + lg:flex — конфликт с .screen.hidden) */
.cabinet-sidebar {
  display: none;
  width: 16rem;
  flex-shrink: 0;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

@media (min-width: 1024px) {
  .cabinet-sidebar {
    display: flex;
  }
}

/* Горизонтальная навигация кабинета на планшетах и телефонах */
.cabinet-mobile-nav {
  display: none;
  gap: 4px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.cabinet-mobile-nav::-webkit-scrollbar {
  display: none;
}

.cabinet-mobile-nav .nav-item {
  flex: 1 0 auto;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: 0.75rem;
}

@media (max-width: 1023px) {
  .cabinet-mobile-nav {
    display: flex;
  }

  #buyer-content-scroll,
  #supplier-content-scroll {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .kanban-board {
    gap: 0.75rem;
  }

  .notifications-dropdown {
    right: 0;
    left: auto;
    width: min(22rem, calc(100vw - 1.5rem));
  }
}

/* Мобильная шапка кабинета: один ряд, компактные кнопки */
@media (max-width: 639px) {
  #screen-buyer header.sticky,
  #screen-supplier header.sticky {
    gap: 0.35rem;
    flex-wrap: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Пустой распор слева отключаем — кнопки и аватар делят одну строку */
  #screen-buyer header.sticky > .flex-1.min-w-0,
  #screen-supplier header.sticky > .flex-1.min-w-0 {
    display: none;
  }

  .cabinet-header-actions {
    gap: 0.1rem;
    flex: 1 1 auto;
    flex-shrink: 1;
    min-width: 0;
    justify-content: flex-start;
  }

  .cabinet-header-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.45rem;
  }

  #screen-buyer header.sticky .header-cart-btn,
  #screen-supplier header.sticky .header-cart-btn {
    padding: 0.35rem 0.4rem;
    gap: 0.25rem;
  }

  #screen-buyer header.sticky > .flex.items-center,
  #screen-supplier header.sticky > .flex.items-center {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .cabinet-mobile-nav {
    padding: 0.4rem 0.5rem;
  }

  .cabinet-mobile-nav .nav-item {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .cabinet-header-link {
    font-size: 0.6875rem;
    padding: 0.3rem 0.35rem;
  }

  #screen-buyer header.sticky .header-cart-btn,
  #screen-supplier header.sticky .header-cart-btn {
    padding: 0.3rem 0.3rem;
  }
}

/* Верхняя панель кабинета: Корзина / На главную / Выйти */
.cabinet-header-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cabinet-header-actions {
    gap: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .cabinet-header-actions {
    gap: 1.35rem;
  }
}

.cabinet-header-sep {
  display: none;
  width: 1px;
  height: 1.35rem;
  background: #e2e8f0;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cabinet-header-sep {
    display: block;
    margin: 0 0.15rem;
  }
}

.cabinet-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.cabinet-header-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Логотип Soorta */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.15s;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-logo__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo__img--header {
  height: 2rem;
  max-width: 11rem;
}

.brand-logo__img--sidebar {
  width: 100%;
  max-width: 11.5rem;
  height: auto;
}

/* Формы: вход, регистрация, профиль */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f1f5f9;
  border-radius: 0.75rem;
}

.auth-tab {
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: background 0.15s, color 0.15s;
}

.auth-tab:hover {
  color: #334155;
}

.auth-tab-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.auth-error {
  font-size: 0.875rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
}

.inventory-mode-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .inventory-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inventory-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  text-align: left;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.inventory-mode-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  opacity: 0.9;
}

.inventory-mode-card--manual::before {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.inventory-mode-card--google::before {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.inventory-mode-card:hover {
  border-color: #86efac;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
  transform: translateY(-2px);
}

.inventory-mode-card--google:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.inventory-mode-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inventory-mode-card--manual .inventory-mode-card-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.inventory-mode-card--google .inventory-mode-card-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.inventory-mode-card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.inventory-mode-card-body {
  flex: 1;
  min-width: 0;
}

.inventory-mode-card-title {
  font-weight: 600;
  font-size: 1.0625rem;
  color: #0f172a;
  margin-bottom: 0.375rem;
}

.inventory-mode-card-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.inventory-mode-card-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #166534;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.inventory-mode-card--google .inventory-mode-card-cta {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.inventory-source-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.inventory-source-badge--manual {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.inventory-source-badge--google {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.supplier-header-avatar,
.buyer-header-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
}

.supplier-header-logo,
.buyer-header-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-header-initials,
.buyer-header-initials {
  line-height: 1;
}

.profile-logo-block {
  padding-bottom: 0.25rem;
}

.profile-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-logo-preview {
  width: 7rem;
  height: 7rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

.profile-logo-preview--filled {
  border-style: solid;
  background: #ffffff;
  padding: 0.625rem;
}

.profile-logo-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.profile-logo-img.hidden {
  display: none !important;
}

.profile-logo-default {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.profile-logo-default.hidden {
  display: none !important;
}

.profile-logo-placeholder {
  font-size: 0.6875rem;
  color: #94a3b8;
  text-align: center;
  padding: 0.25rem;
}

.profile-logo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.profile-edo-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.profile-edo-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #15803d;
}

.supplier-announcement-card {
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  border: 1px solid #fde68a;
  background: linear-gradient(90deg, #fffbeb 0%, #fefce8 100%);
}

.supplier-announcement-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.supplier-announcement-card-icon {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.supplier-announcement-textarea {
  min-height: 5rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.72);
  border-color: #fde68a;
}

.supplier-announcement-textarea:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.supplier-announcement-target {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.supplier-announcement-target-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.supplier-announcement-target-option input {
  accent-color: #16a34a;
}

.announcement-item-target {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 600;
}

.supplier-announcement-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.875rem;
  flex-wrap: wrap;
}

.supplier-announcements-feed,
.announcements-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supplier-announcements-feed-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 55%, #fefce8 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.announcement-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(251, 191, 36, 0.18);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.announcement-item-body {
  flex: 1;
  min-width: 0;
}

.announcement-item-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}

.announcement-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.announcement-item-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.announcement-item-delete {
  flex-shrink: 0;
}

.announcements-feed-empty {
  display: none;
}

.plan-announcements-wrap.hidden {
  display: none !important;
}

/* Навигация */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: background-color 0.15s, color 0.15s;
}

.nav-item:hover {
  background-color: #f8fafc;
  color: #334155;
}

.nav-item.active {
  background-color: #f0fdf4;
  color: #166534;
}

/* Карточки */
.card {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.role-card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.role-card:hover {
  border-color: #86efac;
  box-shadow: 0 4px 20px rgba(22, 101, 52, 0.08);
}

/* Кнопки */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background: #166534;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #14532d;
}

.btn-primary-sm {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #166534;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-outline:hover {
  background: #f8fafc;
}

.btn-outline-sm {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  font-size: 0.8125rem;
  font-weight: 500;
}

.btn-ghost {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-ghost:hover {
  background: #f1f5f9;
}

.btn-ghost-sm {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  color: #64748b;
  font-size: 0.8125rem;
}

.btn-ghost-sm:hover {
  background: #f1f5f9;
  color: #334155;
}

.btn-sm-primary {
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.btn-sm-primary:hover {
  background: #dcfce7;
}

/* Бейджи */
.badge {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-gray {
  background: #f1f5f9;
  color: #475569;
}

.badge-green {
  background: #f0fdf4;
  color: #166534;
}

.badge-yellow {
  background: #fefce8;
  color: #a16207;
}

.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge-new {
  background: #166534;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Фильтры и таблицы */
.filter-select {
  appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  font-size: 0.875rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #334155;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  cursor: pointer;
}

.product-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.12s;
}

.product-row:hover {
  background: #fafafa;
}

.product-row.selected {
  background: #f0fdf4;
}

.product-row-clickable {
  cursor: pointer;
}

.product-row-clickable:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: -2px;
}

.wood-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
}

.btn-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  transition: transform 0.1s;
}

.btn-request:hover {
  transform: scale(1.05);
}

.btn-request.active {
  background: #166534;
  color: white;
  border-color: #166534;
}

/* Таймлайн */
.timeline-item {
  padding-left: 1rem;
  border-left: 2px solid #e2e8f0;
  margin-left: 0.25rem;
  padding-bottom: 0.5rem;
  color: #94a3b8;
}

.timeline-item.done {
  border-color: #22c55e;
  color: #166534;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in {
  animation: fadeIn 0.2s ease-out;
}

#modal-overlay.flex {
  display: flex !important;
}

#modal-overlay.hidden {
  display: none !important;
  pointer-events: none;
}

#package-modal-overlay.flex {
  display: flex;
}

.package-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(96vw, 80rem);
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  min-height: min(720px, calc(100dvh - 1rem));
  overflow: hidden;
}

.package-modal-dialog--step2 {
  min-height: auto;
  width: min(96vw, 34rem);
  max-height: calc(100dvh - 1rem);
}

.package-modal-dialog--step2 .package-modal-header {
  align-items: center;
  padding: 1.125rem 1.5rem;
}

.package-modal-dialog--step2 .package-modal-title {
  margin: 0;
  line-height: 1.25;
}

/* Шаги: hidden должен перебивать display:flex (иначе оба шага видны сразу) */
.package-modal-step.hidden {
  display: none !important;
}

.package-modal-step:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#package-step-1:not(.hidden) {
  overflow: hidden;
}

#package-step-2:not(.hidden) {
  overflow: hidden;
}

.package-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  font-size: 0.75rem;
}

.package-step-dot {
  color: #94a3b8;
  font-weight: 500;
}

.package-step-dot--active {
  color: #15803d;
  font-weight: 600;
}

.package-step-sep {
  color: #cbd5e1;
}

/* ——— Шаг 2: оформление ——— */
.package-checkout-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.package-checkout-section {
  margin: 0;
}

.package-checkout-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.package-summary-card {
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.package-summary-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.package-summary-basket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.package-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid #e2e8f0;
}

.package-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.package-summary-stat strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: none;
  letter-spacing: normal;
}

.package-delivery-card {
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.package-delivery-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.package-delivery-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.package-delivery-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.package-delivery-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: #166534;
  font-variant-numeric: tabular-nums;
}

.package-delivery-note {
  font-size: 0.75rem;
  color: #94a3b8;
}

.package-delivery-skip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
  padding: 0.375rem 0;
}

.package-delivery-skip input {
  width: 1rem;
  height: 1rem;
  accent-color: #16a34a;
}

.package-delivery-hint {
  margin: 0.625rem 0 0;
  font-size: 0.75rem;
  color: #d97706;
}

.package-delivery-hint.hidden {
  display: none !important;
}

.package-checkout-footer {
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 0 1.25rem;
}

.package-checkout-footer .package-grand-total {
  margin: 0;
  border-radius: 0;
  border: none;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  padding: 1rem 1.5rem;
}

.package-step2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  /* Больше воздуха между «Итого» и кнопками */
  padding: 1.125rem 1.5rem 0;
}

.package-step2-actions .btn-primary {
  flex: 1;
  min-width: 10rem;
}

.package-step2-actions .btn-outline {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .package-summary-stats {
    grid-template-columns: 1fr;
  }
}

.package-modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.package-modal-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.package-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.package-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.875rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.package-volume-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.package-volume-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.package-volume-input {
  width: 6.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.package-volume-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.package-toolbar-note {
  flex: 1;
  min-width: 14rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.package-compare-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.25rem;
  overflow: hidden;
}

.package-compare-hint {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

.package-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.package-option {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.125rem 1rem;
  background: white;
  min-height: 0;
  overflow: hidden;
}

.package-option-featured {
  border-color: #16a34a;
  border-width: 2px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 120px);
  box-shadow: 0 6px 24px rgba(22, 101, 52, 0.12);
  z-index: 1;
}

.package-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #166534;
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.package-option-head {
  text-align: center;
  padding-top: 0.5rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.package-option-head .badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
}

.package-option-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.5rem;
}

.package-option-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.package-option-price-block {
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.package-option-sum {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.package-option-featured .package-option-sum {
  color: #166534;
}

.package-option-vol {
  font-size: 0.9375rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 500;
}

.package-overpay {
  text-align: center;
  font-size: 0.8125rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.package-overpay strong {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #92400e;
}

.package-overpay span {
  display: block;
  font-size: 0.75rem;
  color: #b45309;
  margin-top: 0.125rem;
}

.package-avg-row {
  margin-bottom: 0.625rem;
  flex-shrink: 0;
}

.package-avg-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.375rem;
}

.package-avg-label strong {
  font-size: 0.9375rem;
  color: #0f172a;
}

.package-option-featured .package-avg-label strong {
  color: #166534;
}

.package-avg-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.package-avg-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #86efac, #16a34a);
  border-radius: 999px;
}

.package-option:not(.package-option-featured) .package-avg-bar-fill {
  background: #cbd5e1;
}

.package-insight {
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.package-option-featured .package-insight {
  background: #ecfdf5;
}

.package-insight-warn {
  color: #b45309;
  font-weight: 600;
}

.package-insight-good {
  color: #166534;
  font-weight: 600;
}

.package-extra-badge {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.package-items {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.package-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
}

.package-item-check {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  margin-top: 0.125rem;
}

.package-item-body {
  min-width: 0;
  line-height: 1.4;
}

.package-item-name {
  color: #334155;
  font-weight: 600;
  display: block;
  font-size: 0.8125rem;
}

.package-item-meta {
  color: #64748b;
  font-size: 0.8125rem;
}

.package-item-meta em {
  font-style: normal;
  color: #16a34a;
  font-weight: 600;
}

.package-item-excluded-summary {
  color: #94a3b8;
  font-size: 0.8125rem;
  padding-top: 0.25rem;
  list-style: none;
}

.package-select-btn {
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.package-select-btn-alt {
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.package-select-btn-alt:hover {
  background: #f8fafc;
}

.package-option-focused {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.package-option[data-package-focus] {
  cursor: pointer;
}

.package-logistics-section {
  flex-shrink: 0;
  padding: 0.875rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.package-logistics-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.package-logistics-delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.package-logistics-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.package-logistics-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #166534;
  font-variant-numeric: tabular-nums;
}

.package-logistics-note {
  font-size: 0.75rem;
  color: #94a3b8;
}

.package-logistics-skip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.package-logistics-skip input {
  width: 1rem;
  height: 1rem;
  accent-color: #16a34a;
}

.package-logistics-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #d97706;
}

.package-logistics-focus {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.package-grand-total {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  text-align: center;
}

.package-grand-total-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.package-grand-total-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #14532d;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.package-grand-total-detail {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.375rem;
}

/* Меню распила — обогащённая страница */
.plan-supplier-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.plan-supplier-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 5.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  border: 2px solid transparent;
  background: white;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.plan-supplier-chip:hover {
  border-color: #bbf7d0;
  transform: translateY(-1px);
}

.plan-supplier-chip.active {
  border-color: #16a34a;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.12);
  background: #f0fdf4;
}

.plan-supplier-chip-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.875rem;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  flex-shrink: 0;
}

.plan-supplier-chip-logo--image {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: inherit;
}

.plan-supplier-chip-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.plan-supplier-chip-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.2;
  max-width: 5.5rem;
}

.plan-supplier-chip-meta {
  font-size: 0.625rem;
  color: #94a3b8;
}

.plan-supplier-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.plan-supplier-bar.hidden,
#plan-supplier-back-wrap.hidden,
#plan-announcement-wrap.hidden {
  display: none !important;
}

.plan-back-all {
  flex-shrink: 0;
}

.plan-supplier-active-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.plan-supplier-active-info strong {
  color: #0f172a;
  font-weight: 600;
}

.plan-supplier-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: #166534;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-supplier-rating {
  color: #a16207;
  font-weight: 600;
}

/* Колонка «Стоимость с доставкой» (логистика, Этап 1) */
.ldl-cell {
  white-space: nowrap;
}

.ldl-value {
  font-weight: 600;
  color: #166534;
}

.ldl-note {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.125rem;
}

.ldl-muted {
  color: #cbd5e1;
}

.ldl-hint {
  font-size: 0.6875rem;
  color: #f59e0b;
}

.ldl-calc {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

.plan-best-offer {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #15803d;
  letter-spacing: 0.01em;
}

.plan-announcement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: linear-gradient(90deg, #fffbeb 0%, #fefce8 100%);
  border: 1px solid #fde68a;
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.5;
}

.plan-announcement-icon {
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.plan-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.875rem;
  color: #166534;
  line-height: 1.5;
}

.plan-info-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: white;
  color: #166534;
  flex-shrink: 0;
}

.buyer-home-attention-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.buyer-home-notice {
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.875rem;
}

.buyer-home-notice-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.buyer-home-notice-item:hover {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.buyer-home-notice-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #16a34a;
  flex-shrink: 0;
}

.buyer-home-notice-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.buyer-home-notice-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
}

.buyer-home-notice-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.buyer-home-notice-more {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.plan-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.plan-search-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.plan-search-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.search-templates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-template-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.search-template-chip:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.search-template-chip-apply {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.375rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.search-template-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.search-template-chip-remove {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 0.375rem 0 -0.25rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.search-template-chip:hover .search-template-chip-remove,
.search-template-chip:focus-within .search-template-chip-remove {
  display: inline-flex;
}

.search-template-chip-remove:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.search-templates-home {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-templates-home-empty {
  font-size: 0.875rem;
  color: #94a3b8;
}

.search-template-home-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-template-home-card:hover {
  border-color: #86efac;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.08);
}

.search-template-home-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.search-template-home-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  margin-top: 0.5rem;
}

.search-template-home-param {
  font-size: 0.75rem;
  color: #64748b;
}

.search-template-home-param strong {
  color: #334155;
  font-weight: 600;
}

.search-template-modal-lead {
  margin: 0 0 1.5rem;
}

/* Модалки шаблонов: выше sticky-шапки кабинета (z-20) */
#search-template-modal-overlay,
#search-template-delete-overlay {
  z-index: 70;
}

#search-template-modal-overlay.flex,
#search-template-delete-overlay.flex {
  display: flex !important;
  pointer-events: auto !important;
}

#search-template-modal-overlay.hidden,
#search-template-delete-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.search-template-delete-dialog {
  width: min(100%, 20rem);
  padding: 1.25rem 1.25rem 1.125rem;
  margin: 0 auto;
}

.search-template-delete-dialog #search-template-delete-text {
  margin-bottom: 1.5rem;
}

.search-template-delete-actions {
  display: flex;
  gap: 0.625rem;
}

.search-template-delete-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.75rem;
}

#search-template-delete-confirm {
  background: #b91c1c;
  border-color: #b91c1c;
}

#search-template-delete-confirm:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.form-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #64748b;
}

#email-verify-overlay {
  z-index: 70;
}

#email-verify-overlay.flex {
  display: flex !important;
}

#email-verify-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.email-verify-dialog {
  width: min(100%, 24rem);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0 auto;
}

.email-verify-code-input {
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.email-verify-actions {
  display: flex;
  gap: 0.625rem;
}

.email-verify-resend {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.email-verify-resend:disabled {
  color: #94a3b8;
  text-decoration: none;
  cursor: not-allowed;
}

.plan-repeat-order {
  border-color: #e2e8f0;
  background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
}

.plan-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.plan-stat strong {
  color: #0f172a;
  font-weight: 700;
}

.plan-stat-muted {
  color: #94a3b8;
}

.product-badge {
  font-size: 0.6875rem;
}

#product-card-overlay.flex,
#package-modal-overlay.flex,
#supplier-inventory-modal-overlay.flex,
#supplier-menu-modal-overlay.flex,
#modal-overlay.flex {
  display: flex !important;
  pointer-events: auto !important;
}

#product-card-overlay.hidden,
#package-modal-overlay.hidden,
#supplier-inventory-modal-overlay.hidden,
#supplier-menu-modal-overlay.hidden,
#modal-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.product-card-dialog {
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.product-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  overflow-y: auto;
  min-height: 0;
}

.product-card-dialog.is-spot {
  max-width: 36rem;
}

.product-card-dialog.is-spot .product-card-body {
  grid-template-columns: 1fr;
}

.product-card-dialog.is-spot #product-card-gallery {
  display: none;
}

.spot-col-filter {
  position: relative;
  display: inline-block;
  max-width: 100%;
  z-index: 1;
}

.spot-col-filter.is-open {
  z-index: 30;
}

.spot-col-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.spot-col-filter-btn:hover {
  color: #0f172a;
}

.spot-col-filter-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: #94a3b8;
  transition: color 0.15s, transform 0.15s;
}

.spot-col-filter.is-filtered .spot-col-filter-caret {
  color: #16a34a;
  font-weight: 700;
  transform: scale(1.15);
}

.spot-col-filter.is-open .spot-col-filter-caret {
  color: #15803d;
}

.spot-col-filter-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 10rem;
  max-width: 16rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.spot-col-filter-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #334155;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.spot-col-filter-option:hover {
  background: #f1f5f9;
}

.spot-col-filter-option.is-active {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}

.product-card-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.product-card-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f1f5f9 center / cover no-repeat;
}

.product-card-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-card-thumb {
  width: 4rem;
  height: 3rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.12s, border-color 0.12s;
}

.product-card-thumb:hover,
.product-card-thumb.active {
  opacity: 1;
  border-color: #16a34a;
}

.product-card-details {
  min-width: 0;
}

.product-card-supplier-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.875rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.product-card-supplier-row .plan-supplier-chip-logo {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.product-card-dialog.is-spot .product-card-supplier-row .plan-supplier-chip-logo {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 0.9rem;
}

.product-card-supplier-meta {
  min-width: 0;
  flex: 1;
}

.product-card-supplier-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card-supplier-name-row .product-card-supplier-name {
  min-width: 0;
}

.product-card-supplier-name-row .plan-supplier-rating {
  flex-shrink: 0;
  color: #ca8a04;
  font-weight: 600;
  font-size: 0.8125rem;
}

.product-card-supplier-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.product-card-supplier-rating {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.product-card-supplier-rating .plan-supplier-rating {
  color: #ca8a04;
  font-weight: 600;
}

.product-card-supplier-address {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.35;
}

.product-card-supplier-address:empty {
  display: none;
}

.product-card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 1rem;
  margin-bottom: 1rem;
}

.product-card-spec {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.product-card-spec dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.product-card-spec dd {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  margin: 0;
}

.product-card-description {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.product-card-location {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.product-card-location-head {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.product-card-map {
  position: relative;
  height: 7.5rem;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.92) 100%),
    repeating-linear-gradient(0deg, #e2e8f0 0, #e2e8f0 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, #e2e8f0 0, #e2e8f0 1px, transparent 1px, transparent 24px),
    linear-gradient(135deg, #dbeafe 0%, #ecfdf5 50%, #f0fdf4 100%);
}

.product-card-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.product-card-map-link {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #166534;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.product-card-map-link:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  flex-shrink: 0;
}

.product-card-footer--spot {
  background: #f8fafc;
  gap: 1rem;
}

.product-card-order-calc {
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.product-card-calc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.product-card-calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: end;
}

.product-card-calc-unit-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.product-card-price-calc {
  font-size: 1.125rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

.product-card-price-calc .product-card-price-unit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
}

.product-card-calc-volume .product-card-volume-label {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.product-card-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card-price {
  font-size: 1.375rem;
  font-weight: 800;
  color: #166534;
  letter-spacing: -0.02em;
}

.product-card-price-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.product-card-price-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.product-card-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-stock-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
}

.product-card-calc-total {
  min-width: 9rem;
}

.product-card-calc-total-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.125rem;
}

.product-card-total-sum {
  font-size: 1.375rem;
  font-weight: 800;
  color: #166534;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-card-total-detail {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.product-card-standard-fields {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card-volume-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.product-card-volume-input {
  width: 5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

.product-card-volume-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-left: auto;
}

/* Остатки на складе — панель источника данных */
.spot-data-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.spot-data-bar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: 0;
}

.spot-data-source {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.spot-data-updated {
  font-size: 0.75rem;
  color: #64748b;
}

.spot-data-updated.is-error {
  color: #b45309;
}

.spot-data-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spot-table .spot-volume-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #166534;
}

.spot-table .spot-loading-row td {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
}

/* Модальное окно — позиция меню сырьевика */
#supplier-menu-modal-overlay.flex {
  display: flex;
}

.supplier-menu-modal {
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.supplier-menu-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.supplier-menu-form {
  padding: 1rem 1.25rem 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.supplier-menu-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.supplier-menu-legend {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.supplier-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem 1rem;
}

.supplier-menu-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.supplier-menu-field--wide {
  grid-column: 1 / -1;
}

.supplier-menu-map {
  margin-top: 0.75rem;
}

.supplier-menu-map-preview {
  height: 6.5rem;
}

.supplier-menu-field > span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
}

.supplier-menu-field input,
.supplier-menu-field select,
.supplier-menu-field textarea {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #0f172a;
  background: white;
}

.supplier-menu-field input:focus,
.supplier-menu-field select:focus,
.supplier-menu-field textarea:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.supplier-menu-field textarea {
  resize: vertical;
  min-height: 4rem;
}

.supplier-menu-checks {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.supplier-menu-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}

.supplier-menu-check input {
  margin-top: 0.125rem;
  accent-color: #166534;
}

.supplier-menu-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  flex-shrink: 0;
}

.supplier-menu-modal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-left: auto;
}

.menu-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
}

.menu-row-actions .btn-ghost-sm {
  white-space: nowrap;
}

.product-row-inactive {
  opacity: 0.55;
}

.product-row-inactive .wood-thumb {
  filter: grayscale(0.35);
}

/* —— Карточка товара / корзина: адаптив без перекрытий —— */
@media (max-width: 900px) {
  .product-card-dialog {
    max-height: calc(100dvh - 1rem);
  }

  .product-card-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .product-card-main-photo {
    min-height: 140px;
    max-height: 180px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .supplier-menu-grid {
    grid-template-columns: 1fr;
  }

  .supplier-menu-field--wide {
    grid-column: auto;
  }

  #product-card-overlay {
    padding: 0.5rem;
    align-items: center;
    overflow-y: auto;
  }

  .product-card-dialog {
    max-height: calc(100dvh - 1rem);
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .product-card-header {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }

  .product-card-header h2 {
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.3;
  }

  .product-card-header .text-sm,
  #product-card-subtitle {
    font-size: 0.7rem !important;
  }

  .product-card-body {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  /* Важно: не overflow:visible — иначе карта накрывает «Расчёт заказа» */
  .product-card-dialog.is-spot .product-card-body {
    overflow-y: auto;
  }

  .product-card-badges {
    margin-bottom: 0.4rem !important;
    gap: 0.35rem !important;
  }

  .product-card-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.65rem;
    margin-bottom: 0.4rem;
  }

  .product-card-spec dt {
    font-size: 0.58rem;
  }

  .product-card-spec dd {
    font-size: 0.75rem;
  }

  .product-card-description {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-supplier-row {
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.45rem;
    gap: 0.45rem;
  }

  .product-card-dialog.is-spot .product-card-supplier-row .plan-supplier-chip-logo {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
  }

  .product-card-supplier-name {
    font-size: 0.8rem;
  }

  .product-card-location {
    padding-top: 0.45rem;
    margin-top: 0;
  }

  .product-card-location-head {
    margin-bottom: 0.4rem;
    gap: 0.4rem;
  }

  .product-card-location-head .text-sm,
  #product-card-address {
    font-size: 0.75rem !important;
    line-height: 1.35;
  }

  /* Карта → компактная ссылка, не съедает место и не перекрывает футер */
  .product-card-dialog.is-spot .product-card-map {
    height: auto;
    min-height: 0;
    padding: 0;
    border: none;
    background: none;
    overflow: visible;
    margin-top: 0;
  }

  .product-card-dialog.is-spot .product-card-map-pin {
    display: none;
  }

  .product-card-dialog.is-spot .product-card-map-link {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: 0.625rem;
    font-size: 0.75rem;
    box-shadow: none;
    transform: none;
  }

  .product-card-map {
    height: 4.5rem;
    min-height: 0;
    margin-top: 0.35rem;
  }

  .product-card-footer {
    padding: 0.55rem 0.75rem 0.65rem;
    gap: 0.45rem;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    background: #f8fafc;
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06);
  }

  .product-card-footer--spot {
    gap: 0.45rem;
  }

  .product-card-order-calc {
    padding: 0.55rem 0.65rem;
  }

  .product-card-calc-title {
    margin-bottom: 0.4rem;
    font-size: 0.58rem;
  }

  .product-card-calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0.55rem 0.75rem;
  }

  .product-card-calc-unit,
  .product-card-calc-volume {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-card-calc-volume .product-card-volume-label {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .product-card-calc-volume .product-card-volume-wrap {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .product-card-calc-total {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0.15rem;
    padding: 0.55rem 0.75rem 0.6rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    text-align: center;
  }

  .product-card-calc-unit-label,
  .product-card-volume-label > span,
  .product-card-calc-total-label {
    font-size: 0.58rem;
    margin-bottom: 0.2rem;
    width: 100%;
    text-align: center;
  }

  .product-card-calc-total-label {
    color: #64748b;
    letter-spacing: 0.04em;
  }

  .product-card-price-calc {
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .product-card-price-calc .product-card-price-unit {
    font-size: 0.7rem;
  }

  .product-card-total-sum {
    font-size: 1.15rem;
    font-weight: 800;
    color: #14532d;
    margin-top: 0.1rem;
  }

  .product-card-total-detail {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.2rem;
  }

  .product-card-volume-input {
    width: 100%;
    max-width: 6.5rem;
    font-size: 16px;
    padding: 0.35rem 0.45rem;
    text-align: center;
  }

  .product-card-stock-hint {
    font-size: 0.65rem;
  }

  .product-card-footer-bar {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .product-card-actions {
    margin-left: auto;
    width: auto;
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .product-card-actions .btn-primary,
  .product-card-actions .btn-outline {
    flex: 0 1 auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    min-height: 2.25rem;
  }

  /* —— Корзина остатков —— */
  #spot-cart-overlay {
    padding: 0.5rem;
    align-items: center;
    overflow-y: auto;
  }

  .spot-cart-dialog {
    max-height: calc(100dvh - 1rem);
    height: auto;
    margin: auto;
    border-radius: 1rem;
  }

  .spot-cart-header {
    padding: 0.65rem 0.85rem;
  }

  .spot-cart-header h2 {
    font-size: 1rem;
  }

  .spot-cart-body.package-checkout-body {
    padding: 0.55rem 0.75rem;
    gap: 0.55rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  .package-checkout-section {
    margin: 0;
  }

  .package-checkout-section-title {
    font-size: 0.62rem;
    margin: 0 0 0.35rem;
  }

  .spot-cart-items {
    gap: 0.45rem;
  }

  .spot-cart-line {
    padding: 0.5rem 0.65rem;
    gap: 0.4rem 0.65rem;
    border-radius: 0.7rem;
  }

  .spot-cart-line-title {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .spot-cart-line-meta {
    font-size: 0.65rem;
    margin-top: 0.15rem;
  }

  .spot-cart-line-volume {
    font-size: 0.68rem;
  }

  .spot-cart-line-volume input {
    width: 3.75rem;
    padding: 0.3rem 0.4rem;
    font-size: 16px;
  }

  .spot-cart-line-sum {
    font-size: 0.8rem;
  }

  .spot-cart-line-remove {
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
  }

  .spot-cart-truck-hint {
    margin-top: 0.35rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .package-delivery-card {
    padding: 0.5rem 0.65rem;
  }

  .package-delivery-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
  }

  .package-delivery-label {
    font-size: 0.7rem;
  }

  .package-delivery-value {
    font-size: 1.05rem;
  }

  .package-delivery-note {
    font-size: 0.65rem;
  }

  .package-delivery-skip {
    font-size: 0.75rem;
    gap: 0.35rem;
  }

  .package-delivery-hint {
    font-size: 0.68rem;
    margin-top: 0.35rem;
  }

  .package-checkout-footer {
    padding: 0;
  }

  .spot-cart-footer .package-grand-total {
    padding: 0.55rem 0.85rem;
  }

  .package-grand-total-label {
    font-size: 0.62rem;
  }

  .package-grand-total-value {
    font-size: 1.15rem;
    margin-top: 0.1rem;
  }

  .package-grand-total-detail {
    font-size: 0.65rem;
    margin-top: 0.15rem;
  }

  .package-step2-actions.spot-cart-actions {
    padding: 0.55rem 0.85rem 0.75rem;
    gap: 0.5rem;
  }

  .spot-cart-actions .btn-primary {
    max-width: none;
    min-width: 0;
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  #product-card-overlay,
  #spot-cart-overlay {
    padding: 0.35rem;
  }

  .product-card-dialog,
  .spot-cart-dialog {
    max-height: calc(100dvh - 0.7rem);
    height: auto;
    border-radius: 0.875rem;
  }

  .product-card-calc-body {
    gap: 0.45rem 0.55rem;
  }

  .product-card-calc-total {
    padding: 0.5rem 0.65rem 0.55rem;
  }

  .product-card-total-sum {
    font-size: 1.05rem;
  }

  .product-card-actions .btn-primary,
  .product-card-actions .btn-outline {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 560px) {
  .spot-cart-line {
    grid-template-columns: 1fr;
  }

  .spot-cart-line-controls {
    justify-content: space-between;
  }
}

@media (max-width: 1100px) {
  .package-modal-dialog {
    min-height: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .package-modal-dialog {
    max-height: calc(100dvh - 0.5rem);
    min-height: 0;
  }

  .package-compare-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }

  .package-option {
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
}

/* Глобальные исправления адаптивности */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .cabinet-sidebar {
    width: 14rem;
  }
  
  .cabinet-sidebar .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 1023px) {
  .cabinet-sidebar {
    display: none;
  }
}

/* Исправление обрезания контента в таблицах */
.spot-table th, .spot-table td {
  white-space: nowrap;
}

.spot-table thead th {
  position: relative;
  z-index: 2;
  background: #f8fafc;
}

.spot-table th:first-child,
.spot-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.spot-table thead th:first-child {
  z-index: 5;
  background: #f8fafc;
}

.spot-table tbody td:first-child {
  background: #ffffff;
}

.spot-table tbody tr:hover td:first-child {
  background-color: #f8fafc;
}

.spot-table thead th:first-child .spot-col-filter.is-open {
  z-index: 50;
}

.spot-table tr:hover td {
  background-color: #f8fafc;
}

/* Улучшение отображения на очень маленьких ПК экранах */
@media (max-width: 1366px) {
  .max-w-6xl {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

#mobile-calc-drawer.translate-y-full {
  transform: translateY(100%);
}

/* Корзина остатков (закупщик) */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  background: transparent;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.header-cart-btn:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.header-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spot-cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spot-cart-badge.hidden {
  display: none;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  max-height: min(85vh, 28rem);
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.notifications-dropdown.hidden {
  display: none !important;
}

/* Шапка не должна обрезать выпадающий список уведомлений */
#screen-buyer header.sticky,
#screen-supplier header.sticky {
  overflow: visible;
}

#buyer-notifications-wrapper,
#supplier-notifications-wrapper {
  position: relative;
  z-index: 30;
}

@media (max-width: 639px) {
  .notifications-dropdown {
    /* Координаты top/left/right задаёт notifications.js (fixed) */
    width: auto;
    max-width: none;
    border-radius: 0.875rem;
    box-shadow:
      0 16px 40px rgba(15, 23, 42, 0.18),
      0 4px 12px rgba(15, 23, 42, 0.08);
    z-index: 1200;
  }

  .notifications-dropdown .flex-1.overflow-y-auto,
  #buyer-notifications-list,
  #supplier-notifications-list {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Бейдж не обрезается на компактной кнопке */
  #screen-buyer header.sticky .header-cart-btn,
  #screen-supplier header.sticky .header-cart-btn {
    overflow: visible;
  }
}

.spot-cart-dialog {
  max-height: calc(100dvh - 1.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spot-cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.spot-cart-body {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.spot-cart-footer .package-grand-total {
  margin: 0;
  border-radius: 0;
  border: none;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  padding: 1rem 1.5rem;
}

.spot-cart-actions {
  justify-content: center;
}

.spot-cart-actions .btn-primary {
  flex: 0 1 18rem;
  min-width: 12rem;
  width: 100%;
  max-width: 18rem;
}

.spot-cart-truck-hint {
  margin-top: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
}

.spot-cart-truck-hint.hidden {
  display: none;
}

.spot-cart-truck-hint.is-exact {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.spot-cart-truck-hint.is-suggest {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.spot-cart-truck-hint strong {
  font-weight: 600;
}

/* Cabinet height chain — доска сделок заполняет экран */
#screen-buyer > .flex,
#screen-supplier > .flex {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

#screen-buyer > .flex > .flex-1.flex.flex-col,
#screen-supplier > .flex > .flex-1.flex.flex-col {
  min-height: 0;
  overflow: hidden;
}

#buyer-content-scroll,
#supplier-content-scroll {
  min-height: 0;
}

#buyer-content-scroll:has(.kanban-view:not(.hidden)),
#supplier-content-scroll:has(.kanban-view:not(.hidden)) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.kanban-view:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.kanban-view-head {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  align-items: stretch;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.kanban-col {
  flex: 0 0 min(85vw, 280px);
  background-color: #f1f5f9;
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-snap-align: start;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  min-width: 0;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.15rem;
  scrollbar-gutter: stable;
}

.kanban-cards::-webkit-scrollbar {
  width: 6px;
}

.kanban-cards::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.kanban-cards::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-card-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0.15rem 0 0.45rem;
}

.kanban-card-status.is-closed {
  color: #15803d;
}

.kanban-card-status.is-cancelled {
  color: #dc2626;
}

@media (min-width: 1280px) {
  .kanban-board {
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
    overflow-x: visible;
  }
  .kanban-col {
    flex: 1 1 0;
    min-width: 0;
    scroll-snap-align: none;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .kanban-board {
    margin: 0;
    padding: 0;
  }
  .kanban-col {
    flex: 0 0 240px;
  }
}

.kanban-col-header {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.kanban-col-count {
  background: #e2e8f0;
  color: #475569;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.kanban-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  min-width: 0;
}

.kanban-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border-color: #cbd5e1;
}

.kanban-card.draggable {
  cursor: grab;
}

.kanban-card.draggable:active {
  cursor: grabbing;
}

.kanban-card-drag-ghost {
  opacity: 0.4;
}

.kanban-card-title {
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.kanban-card-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.kanban-card-price {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.875rem;
}

.kanban-card-fields {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.35;
}

.kanban-card-label {
  color: #64748b;
}

.kanban-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.kanban-card-actions-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.kanban-card-actions-row > button {
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.kanban-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.kanban-open-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

/* Окно деталей заявки */
.order-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.order-details-overlay:not(.hidden) {
  display: flex;
}

.order-details-dialog {
  width: 100%;
  max-width: 34rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 22px 45px -18px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
  animation: orderDetailsIn 0.22s ease-out;
}

@keyframes orderDetailsIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.order-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.9) 0%, #ffffff 72%);
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}

.order-details-header-main {
  min-width: 0;
}

.order-details-eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #15803d;
}

.order-details-heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.order-details-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.65rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e8f0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.order-details-close:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.order-details-body {
  padding: 1.15rem 1.35rem 1.35rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-details-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.order-details-meta-item {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.order-details-meta-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.order-details-meta-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.order-details-section {
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.order-details-section-title {
  padding: 0.7rem 0.95rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.order-details-items {
  display: flex;
  flex-direction: column;
}

.order-details-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid #f1f5f9;
}

.order-details-item:last-child {
  border-bottom: none;
}

.order-details-item-name {
  font-size: 0.9rem;
  font-weight: 550;
  color: #0f172a;
  line-height: 1.45;
}

.order-details-item-side {
  text-align: right;
  flex-shrink: 0;
  min-width: 5.5rem;
}

.order-details-item-vol {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.order-details-item-sum {
  font-size: 0.9rem;
  font-weight: 700;
  color: #14532d;
}

.order-details-delivery {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.order-details-delivery::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #94a3b8;
  flex-shrink: 0;
}

.order-details-delivery.is-required {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.order-details-delivery.is-required::before {
  background: #22c55e;
}

.order-details-delivery.is-self {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.order-details-delivery.is-self::before {
  background: #f59e0b;
}

.order-details-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 55%, #ffffff 100%);
  border: 1px solid #bbf7d0;
}

.order-details-total-label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: #15803d;
  letter-spacing: 0.02em;
}

.order-details-total-value {
  font-size: 1.35rem;
  font-weight: 750;
  color: #14532d;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.order-details-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem 1.2rem;
  border-top: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
}

.order-details-actions.hidden {
  display: none !important;
}

.order-details-action-btn {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  min-height: 2.4rem;
}

@media (max-width: 640px) {
  .order-details-meta {
    grid-template-columns: 1fr;
  }

  .order-details-dialog {
    max-width: 100%;
  }
}

.spot-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spot-cart-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  border: 1px dashed #e2e8f0;
  border-radius: 0.875rem;
  background: #f8fafc;
}

.spot-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #fff;
}

.spot-cart-line-main {
  min-width: 0;
}

.spot-cart-line-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.spot-cart-line-meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.spot-cart-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.spot-cart-line-volume {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.spot-cart-line-volume input {
  width: 4.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.spot-cart-line-sum {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
  text-align: right;
}

.spot-cart-line-remove {
  font-size: 0.75rem;
  color: #dc2626;
  background: transparent;
  border: 0;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  border-radius: 0.375rem;
}

.spot-cart-line-remove:hover {
  background: #fef2f2;
}

@media (max-width: 560px) {
  .spot-cart-line {
    grid-template-columns: 1fr;
  }

  .spot-cart-line-controls {
    justify-content: space-between;
  }
}
