:root {
  --brand: #e53935;
  --bottom-nav-height: 68px;
}

.app-home {
  max-width: 480px;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  border-radius: 8px;
}

.btn-brand:hover {
  filter: brightness(0.95);
  color: #fff;
}
.price {
  color: #4d0e0e;
}

/* Карточки в сетке должны быть одинаковой высоты */
#products > .col-6.d-flex {
  align-items: stretch;
}

/* Карточка — flex-колонка: картинка сверху, контент снизу */
.product-card {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

/* Картинка фиксированной высоты */
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 520px) {
  .product-card img {
    height: 230px;
  }
}

@media (min-width: 768px) {
  .product-card img {
    height: 280px;
  }
}

@media (min-width: 1060px) {
  .app-home {
    max-width: 1100px;
  }

  .home-hero {
    height: auto;
    overflow: visible;
  }

  #products > .col-6.d-flex {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .product-card img {
    height: 230px;
  }

  .home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-hero img {
    width: auto;
    height: auto;
    max-width: 37%;
    max-height: 200px;
    object-fit: contain;
  }
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-link img {
  display: block;
}

.home-hero {
  width: 100%;
  margin-bottom: 2px;
  height: 220px;
  overflow: hidden;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-social {
  margin-bottom: 16px;
  text-align: center;
}

.home-social__title {
  font-weight: 500;
  color: #444;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #f0f0f0;
  color: #e14b4b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link:active {
  transform: scale(0.96);
}

@media (min-width: 768px) {
  .home-hero {
    height: 320px;
  }
  .home-hero img {
    height: 100%;
  }
}

@media (min-width: 1060px) {
  .home-hero {
    height: 200px;
    margin-bottom: 6px;
  }

  .home-social {
    margin-bottom: 8px;
  }
}

/* Product page */
.product-gallery__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-thumb {
  width: 64px;
  height: 80px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #fff;
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.product-info {
  margin: 12px 0;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 0.8rem;
  color: #495057;
}

.product-chip--more {
  background: #ffe9e9;
  border-color: #f3c1c1;
  color: #b04b4b;
}

.product-card-properties {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 8px;
}

.product-purchase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-qty__value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

/* Тело карточки занимает всё оставшееся место */
.product-card .card-body {
  flex: 1;
}

/* Название максимум 2 строки */
.product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.4em;
  margin-bottom: 10px;
}

/* Цена+кнопка прижаты к низу */
.product-bottom {
  margin-top: auto;
  padding-bottom: 6px;
}

/* Categories chips (centered single select) */
#category-chips {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

#category-chips .category-chip {
  padding: 8px 12px;
  margin: 0;
  border: none;
  border-right: 1px solid #dee2e6;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
  border-radius: 0;
  color: #495057;
  font-weight: 400;
}

#category-chips .category-chip--fixed {
  flex: 0 0 auto;
}

#category-chips .category-strip {
  overflow: hidden;
  border-right: 1px solid #dee2e6;
}

#category-chips .category-strip__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#category-chips .category-strip__inner::-webkit-scrollbar {
  display: none;
}

#category-chips .category-strip .category-chip {
  border-right: 1px solid #dee2e6;
}

#category-chips .category-strip .category-chip:last-child {
  border-right: none;
}

@media (min-width: 1060px) {
  #category-chips .category-strip__inner {
    width: 100%;
    justify-content: space-between;
  }

  #category-chips .category-strip .category-chip {
    flex: 1 1 0;
    text-align: center;
  }
}

#category-chips .category-chip:last-child {
  border-right: none;
}

/* Unified active style for header and modal chips */
.category-chip.category-chip--active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Stronger specificity to override Bootstrap if present */
#category-chips button.category-chip.category-chip--active,
#categories-modal-list button.category-chip.category-chip--active {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

/* For header divider to match active color */
#category-chips button.category-chip.category-chip--active {
  border-right-color: var(--brand) !important;
}

/* Modal chips use the same rectangular style */
#categories-modal-list .category-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 1px;
  background: #fff;
  border: 1px solid #dee2e6;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #495057;
}

/* small gaps between modal chips to separate sections visually */
#categories-modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Quantity buttons (+ / -) styling to match primary button size and brand color */
.qty-btn {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  padding: 0.20rem 0.5rem; /* match btn-sm */
  font-size: 0.875rem; /* match btn-sm */
  line-height: 1;
  min-width: 30px; /* ensure clickable area similar to small buttons */
  height: 30px; /* visually match button height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-sizing: border-box;
}

.product-bottom .qty {
  min-width: 31px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Ensure controls sit to the right and are vertically centered */
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-bottom: 6px;
}

/* Cart list items */
.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 10px;
}

.cart-item__img {
  width: 68px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-item__qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

.cart-item__remove {
  padding: 0.2rem 0.4rem;
  line-height: 1;
  border-color: var(--brand);
  color: var(--brand);
}

/* Checkout */
.checkout-section {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

.segmented-control {
  display: flex;
  gap: 6px;
  background: #f8f9fa;
  padding: 4px;
  border-radius: 10px;
}

.segmented-btn {
  flex: 1 1 0;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.segmented-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.checkout-muted {
  font-size: 0.9rem;
  color: #6c757d;
}

.form-error {
  display: none;
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.form-success {
  display: none;
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.form-check-input {
  accent-color: var(--brand);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(229,57,53,0.25);
}

input[type="date"] {
  accent-color: var(--brand);
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.order-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.95rem;
}

.order-item__meta {
  color: #6c757d;
  font-size: 0.85rem;
}

.order-item__sum {
  font-weight: 600;
  white-space: nowrap;
}

.delivery-price-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid var(--brand);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1;
  transition: background 0.15s ease;
}

.delivery-price-btn:hover,
.delivery-price-btn:active {
  background: #f1f3f5;
}

.delivery-highlight {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  display: none;
}

.delivery-footnote {
  font-size: 0.8rem;
  color: #6c757d;
}

.flatpickr-calendar {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .flatpickr-calendar {
    font-size: 0.85rem;
  }

  .flatpickr-day {
    height: 32px;
    line-height: 32px;
  }

  .flatpickr-weekday {
    font-size: 0.7rem;
  }

  .flatpickr-current-month {
    font-size: 0.9rem;
  }
}

.flatpickr-calendar.hasTime.noCalendar,
.flatpickr-calendar.noCalendar {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}

.flatpickr-time {
  width: 180px;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.flatpickr-time .numInputWrapper {
  height: 40px;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator {
  line-height: 40px;
  font-size: 16px;
}

/* Fixed bottom navigation (full width) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: #fff;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
  border-radius: 0;
  z-index: 1100;
}

.bottom-nav__inner {
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-sizing: border-box;
}

.bottom-nav__inner--centered {
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
}

.panel-nav .bottom-nav__inner {
  justify-content: center;
  gap: 28px;
}

.bottom-nav__divider {
  width: 1px;
  height: 44px;
  background: #e9ecef;
  opacity: 0.9;
}

.panel-nav .bottom-nav__link[aria-label="Главная"],
.panel-nav .bottom-nav__link[aria-label="Корзина"] {
  display: none;
}

.bottom-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  text-decoration: none;
  font-size: 22px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

body:not(.panel-nav) .bottom-nav__link {
  flex: 1;
  width: auto;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ededed;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

body:not(.panel-nav) .bottom-nav__link:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-color: #e2e2e2;
  background: rgba(229, 57, 53, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  body:not(.panel-nav) .bottom-nav__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
    background: rgba(229, 57, 53, 0.04);
  }
}

body:not(.panel-nav) .bottom-nav__divider {
  align-self: stretch;
}

@media (min-width: 1060px) {
  .bottom-nav__inner {
    max-width: 100%;
    padding: 0 24px;
  }

  body:not(.panel-nav) .bottom-nav__link {
    height: 60px;
  }

  .nav-icon {
    width: 54px;
    height: 54px;
  }
}
/* иконка корзины */
.nav-icon {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.bottom-nav__badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* active state for bottom nav links */
.bottom-nav__link.active,
.bottom-nav__link:active {
  color: var(--brand);
}

/* Ensure page content isn't hidden under fixed bottom nav */
body.has-bottom-nav {
  padding-bottom: calc(var(--bottom-nav-height) + 12px);
}

.product-description {
  white-space: pre-line;
  line-height: 1.5;
}

.delivery-map {
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.product-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-photo-item {
  position: relative;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}

.product-photo-index {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(255,255,255,0.9);
  color: #111;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #f0f0f0;
}

.product-photo-item.is-dragging {
  opacity: 0.65;
}

.product-photo-item.is-drop-target {
  outline: 2px dashed var(--brand);
  outline-offset: -2px;
}

.admin-order-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.admin-order-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.admin-order-items {
  margin-top: 8px;
  font-size: 0.9rem;
}

.admin-order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.admin-order-kaiten-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-product-thumb {
  width: 64px;
  height: 80px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #fff;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-item input {
  flex: 1;
}

.modal-body-scroll {
  max-height: calc(100dvh - 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-scrollable {
  height: calc(100dvh - 120px);
}

.has-bottom-nav .modal {
  padding-bottom: calc(var(--bottom-nav-height) + 8px);
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
}

.schedule-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.schedule-controls--stack {
  grid-template-columns: 1fr;
}

.schedule-control-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.schedule-sep {
  font-size: 14px;
  color: #8a8a8a;
  text-align: center;
}

.admin-order-items-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.admin-order-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.admin-order-item__thumb {
  width: 52px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-order-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.price-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-product-row {
  display: grid;
  grid-template-columns: auto 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.price-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-product-info {
  min-width: 0;
}

.price-product-price {
  font-weight: 600;
  color: #2f2f2f;
}

.availability-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.availability-product-row {
  display: grid;
  grid-template-columns: auto 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.availability-product-row--hidden {
  background: rgba(247, 247, 247, 0.7);
  border-color: #ececec;
  opacity: 0.75;
}

.availability-checkbox {
  display: flex;
  align-items: center;
}

.availability-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.availability-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.availability-info {
  min-width: 0;
}

.availability-eye {
  width: 36px;
  height: 36px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
  position: relative;
}

.availability-eye::before {
  content: "👁";
  font-size: 18px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.availability-eye--off::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 2px;
  background: #e14b4b;
  transform: rotate(-35deg);
  top: 50%;
  left: 15%;
}

.properties-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  margin-left: calc(var(--depth) * 18px);
}

.property-row--dragging {
  opacity: 0.6;
  border-color: #d0d0d0;
  background: #f7f7f7;
}

.property-row--over {
  border-color: #e14b4b;
  box-shadow: 0 0 0 2px rgba(225, 75, 75, 0.15);
}

.property-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}

.property-checkbox input {
  margin: 0;
}

.property-id {
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: 6px;
}

.properties-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.properties-summary__chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #444;
  font-size: 0.85rem;
  font-weight: 600;
}

.properties-summary__more {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe9e9;
  color: #b04b4b;
  font-size: 0.85rem;
  font-weight: 600;
}

.infinite-loader {
  text-align: center;
  color: #6c757d;
  padding: 12px 0;
  display: none;
  font-size: 0.9rem;
}

.infinite-count {
  text-align: center;
  color: #6c757d;
  padding: 4px 0 12px;
  font-size: 0.85rem;
}

.property-toggle {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  background: #fff;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.property-toggle--placeholder {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.property-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tariff-row {
  grid-template-columns: 1fr auto;
}

.tariff-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-order-item__meta {
  font-size: 0.85rem;
  color: #6c757d;
}
