/* ============================================================
   PLOVI.ME — Страница заказа: вид покупателя
   Шрифты: Inter (основной текст), Montserrat (заголовки)
   Цвета бренда: #00c2e8 (основной), #1D9E75 (акцент), #f7f6f2 (фон)
   ============================================================ */

/* --- Шапка --- */
.plovi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.10);
}

.plovi-logo {
  width: 28px;
  height: 28px;
  background: #00c2e8;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.plovi-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.plovi-city-pill {
  margin-left: auto;
  background: #e6f9fd;
  border-radius: 6px;
  padding: 2px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #007a94;
  font-weight: 500;
}

.plovi-page {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* --- Герой-блок: дата + время + сумма --- */
.plovi-hero-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: stretch;
}

.plovi-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plovi-meta-card {
  flex: 1;
  background: #f0f0ec;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plovi-meta-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.plovi-meta-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.plovi-meta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #888;
  margin-top: 1px;
}

/* Квадрат с итогом */
.plovi-total-square {
  background: #00c2e8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 96px;
  flex-shrink: 0;
}

.plovi-total-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 3px;
}

.plovi-total-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* --- Список товаров --- */
.plovi-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.plovi-product-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plovi-product-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Цвета иконок по категориям */
.plovi-icon-fish   { background: #e6f9fd; }
.plovi-icon-veg    { background: #eaf3de; }
.plovi-icon-meat   { background: #faeeda; }
.plovi-icon-dairy  { background: #fbeaf0; }
.plovi-icon-bread  { background: #f1efe8; }

.plovi-product-main {
  flex: 1;
  min-width: 0;
}

.plovi-product-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.plovi-product-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.plovi-product-qty {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #666;
}

/* Пилюля "весовой продукт" */
.plovi-weight-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff3e0;
  color: #a0600a;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.plovi-product-price {
  text-align: right;
  flex-shrink: 0;
}

.plovi-price-val {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.plovi-price-calc {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #888;
  margin-top: 1px;
}

/* --- Разделитель --- */
.plovi-divider {
  border: none;
  border-top: 0.5px solid rgba(0,0,0,0.10);
  margin: 12px 0;
}

/* --- Блок "Нужна сдача с" --- */
.plovi-change-block {
  background: #f0f0ec;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.plovi-change-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.plovi-change-icon {
  font-size: 16px;
}

.plovi-change-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
}

.plovi-change-hint {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #888;
  margin-left: auto;
}

.plovi-bills {
  display: flex;
  gap: 6px;
}

.plovi-bill {
  flex: 1;
  padding: 8px 2px;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 7px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.plovi-bill:hover {
  border-color: #00c2e8;
  color: #007a94;
}

.plovi-bill.selected {
  background: #00c2e8;
  color: #fff;
  border-color: #00c2e8;
}

/* --- Подвал --- */
.plovi-footer-note {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #aaa;
  margin-top: 12px;
  padding-bottom: 4px;
}

/* ============================================================
   СТАТУСЫ ТОВАРОВ
   Использование: добавить класс к .plovi-product-card
   .plovi-status-assembling  — собирается (по умолчанию)
   .plovi-status-ready       — собран
   .plovi-status-unavailable — недоступен
   ============================================================ */

/* --- Собирается (базовый вид + бейдж) --- */
.plovi-status-assembling {
  /* Внешний вид не меняется — базовые стили из .plovi-product-card */
}

.plovi-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 5px;
  margin-top: 0px; /*для выпввнивания в одной стоке*/
}

/* Бейдж "Собирается" */
.plovi-status-assembling .plovi-status-badge {
  background: #e8f6ff;
  color: #007aad;
}

.plovi-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  animation: plovi-spin 1.2s linear infinite;
  border: 2px solid rgba(0,122,173, 0.2); /* Светлое кольцо */
  border-top: 2px solid currentColor;    /* Цветная часть (возьмет цвет текста) */
  border-radius: 50%;
}

@keyframes plovi-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Собран --- */
.plovi-status-ready {
  background: #2db87a;
  border-color: transparent;
}

.plovi-status-ready .plovi-product-name,
.plovi-status-ready .plovi-product-qty,
.plovi-status-ready .plovi-price-val,
.plovi-status-ready .plovi-price-calc {
  color: #fff;
}

.plovi-status-ready .plovi-weight-pill {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.plovi-status-ready .plovi-product-icon {
  background: rgba(255,255,255,0.22) !important;
}

.plovi-status-ready .plovi-status-badge {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* --- Недоступен --- */
.plovi-status-unavailable {
  background: #f2f2f2;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.plovi-status-unavailable .plovi-product-name,
.plovi-status-unavailable .plovi-product-qty,
.plovi-status-unavailable .plovi-price-val,
.plovi-status-unavailable .plovi-price-calc,
.plovi-status-unavailable .plovi-weight-pill {
  color: #aaa;
}

.plovi-status-unavailable .plovi-product-icon {
  opacity: 0.35;
}

/* Горизонтальная линия-вычерк поверх всей ячейки */
.plovi-status-unavailable::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1.5px;
  background: rgba(0,0,0,0.18);
  border-radius: 1px;
  pointer-events: none;
}

.plovi-status-unavailable .plovi-status-badge {
  background: #e6e6e6;
  color: #aaa;
}