/* ==========================================================================
   Каталог растений под заказ (/catalog/on_demand/)
   Стили в соответствии с макетами Figma (Desktop, Mobile, Попапы)
   ========================================================================== */

.on-demand-page {
  background-color: #fafbf8;
  color: #142802;
  font-family: "Manrope", sans-serif;
  padding-bottom: 80px;
}

.on-demand-page .wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Хлебные крошки и заголовок */
.on-demand-header {
  padding-top: 24px;
  margin-bottom: 24px;
}

.on-demand-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7b886d;
  margin-bottom: 14px;
  list-style: none;
  padding: 0;
}

.on-demand-breadcrumbs a {
  color: #7b886d;
  transition: color 0.2s;
}

.on-demand-breadcrumbs a:hover {
  color: #142802;
}

.on-demand-breadcrumbs .separator {
  color: #a7b39b;
}

.on-demand-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.on-demand-title-block h1 {
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  color: #142802;
  margin: 0 0 8px 0;
}

.on-demand-title-block .subtitle {
  font-size: 15px;
  color: #647250;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.on-demand-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf673;
  color: #142802;
  font-family: "Roobert Trial", sans-serif;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 6px rgba(20, 40, 2, 0.08);
  flex-shrink: 0;
}

.on-demand-info-btn:hover {
  background: #dfe967;
  transform: scale(1.06);
}

/* Сетка страницы: Сайдбар + Каталог */
.on-demand-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

/* Сайдбар */
.on-demand-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #eef2e6;
  border-radius: 16px;
  padding: 20px 16px;
  box-sizing: border-box;
}

.on-demand-sidebar__section {
  margin-bottom: 24px;
}

.on-demand-sidebar__title {
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #142802;
  margin: 0 0 12px 0;
}

/* Список стран */
.on-demand-countries {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.on-demand-country-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #142802;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: left;
}

.on-demand-country-btn:hover {
  background: #f4f6ef;
}

.on-demand-country-btn.active {
  background: #f3fad0;
  border-color: #e2f0a8;
  font-weight: 700;
}

.on-demand-country-btn .flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.on-demand-country-btn .country-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.on-demand-country-btn .checkmark {
  font-size: 14px;
  color: #142802;
  margin-left: 6px;
  font-weight: 700;
}

/* Выбор поставщиков */
.on-demand-suppliers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.on-demand-supplier-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e6d8;
  background: #ffffff;
  color: #142802;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.on-demand-supplier-btn:hover {
  background: #f4f6ef;
}

.on-demand-supplier-btn.active {
  background: #142802;
  border-color: #142802;
  color: #ffffff;
}

.on-demand-sidebar__hint {
  font-size: 12px;
  line-height: 1.35;
  color: #8c987e;
  margin-top: 10px;
  margin-bottom: 0;
}

.on-demand-reset-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #f3f5ee;
  border: 1px solid #e2e6d8;
  border-radius: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #556244;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.on-demand-reset-btn:hover {
  background: #e9ede0;
  color: #142802;
}

/* Правая колонка — Каталог */
.on-demand-main {
  flex: 1;
  min-width: 0;
}

/* Верхняя панель: Поиск + Сортировка */
.on-demand-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.on-demand-search-wrap {
  flex: 1;
  position: relative;
}

.on-demand-search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 44px;
  border-radius: 12px;
  border: 1px solid #dce2d2;
  background: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #142802;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.on-demand-search-input:focus {
  border-color: #8fa04b;
  box-shadow: 0 0 0 3px rgba(234, 246, 115, 0.35);
}

.on-demand-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8c987e;
  pointer-events: none;
}

.on-demand-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #8c987e;
  cursor: pointer;
  border-radius: 50%;
}

.on-demand-search-clear:hover {
  color: #142802;
  background: #f0f3eb;
}

.on-demand-sort-wrap {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.on-demand-sort-select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 16px;
  border-radius: 12px;
  border: 1px solid #dce2d2;
  background: #f4f6ef;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #142802;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s;
}

.on-demand-sort-select:hover {
  background: #edf0e6;
}

.on-demand-sort-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #556244;
}

/* Сводка активных фильтров */
.on-demand-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
  color: #647250;
}

.on-demand-summary__title {
  font-weight: 700;
  color: #142802;
}

.on-demand-summary__count {
  font-weight: 500;
  color: #7b886d;
}

/* Таблица позиций (Desktop) */
.on-demand-table-wrap {
  background: #ffffff;
  border: 1px solid #eef2e6;
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(20, 40, 2, 0.03);
}

.on-demand-table-head {
  display: grid;
  grid-template-columns: minmax(280px, 3fr) 110px 170px 110px 110px 90px 126px;
  align-items: center;
  background: #f0f3ea;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #637050;
  margin-bottom: 12px;
  gap: 12px;
}

.on-demand-table-head div {
  white-space: nowrap;
}

/* Секции категорий */
.on-demand-group {
  margin-bottom: 20px;
}

.on-demand-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf1e4;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.on-demand-group__header:hover {
  background: #e6ebdc;
}

.on-demand-group__title {
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #142802;
}

.on-demand-group__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #647250;
}

.on-demand-group__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #556244;
}

.on-demand-group__items {
  display: flex;
  flex-direction: column;
  transition: max-height 0.3s ease;
}

.on-demand-group.collapsed .on-demand-group__items {
  display: none;
}

/* Строка позиции (Desktop) */
.on-demand-row {
  display: grid;
  grid-template-columns: minmax(280px, 3fr) 110px 170px 110px 110px 90px 126px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f3ea;
  gap: 12px;
  transition: background 0.15s ease;
}

.on-demand-row:last-child {
  border-bottom: none;
}

.on-demand-row:hover {
  background: #fbfcf9;
}

/* Колонка: Растение */
.on-demand-col-plant {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.on-demand-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f5ee;
  border: 1px solid #e6ebd8;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.on-demand-thumb:hover {
  transform: scale(1.05);
}

.on-demand-plant-info {
  min-width: 0;
}

.on-demand-plant-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: #142802;
  cursor: pointer;
  margin-bottom: 3px;
  transition: color 0.2s;
}

.on-demand-plant-name:hover {
  color: #586820;
}

.on-demand-plant-latin {
  font-size: 12px;
  color: #7d8a6e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Колонка: Ростовка и Хар-ти */
.on-demand-col-height {
  font-size: 13px;
  font-weight: 600;
  color: #142802;
  white-space: nowrap;
}

.on-demand-col-chars {
  font-size: 12px;
  color: #556244;
  word-break: break-word;
  line-height: 1.3;
}

/* Колонка: Цена за 1 шт. */
.on-demand-col-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: #142802;
  white-space: nowrap;
}

.on-demand-price-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #a8b598;
  color: #647250;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
  flex-shrink: 0;
}

.on-demand-price-info:hover .on-demand-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Тултип подсказки о курсе ЦБ */
.on-demand-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #142802;
  color: #f3fad0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  width: 220px;
  text-align: center;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}

.on-demand-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #142802 transparent transparent transparent;
}

/* Колонка: Счетчик количества */
.on-demand-counter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 96px;
  height: 38px;
  border: 1px solid #dce2d2;
  background: #ffffff;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 0 4px;
}

.on-demand-counter__btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #142802;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.on-demand-counter__btn:hover {
  background: #f0f3ea;
}

.on-demand-counter__input {
  width: 32px;
  text-align: center;
  border: none;
  outline: none;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #142802;
  background: transparent;
  -moz-appearance: textfield;
}

.on-demand-counter__input::-webkit-outer-spin-button,
.on-demand-counter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Колонка: Сумма */
.on-demand-col-sum {
  font-weight: 700;
  font-size: 15px;
  color: #142802;
  white-space: nowrap;
}

/* Кнопка "В корзину" в таблице */
.on-demand-btn-cart {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #eaf673;
  color: #142802;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.on-demand-btn-cart:hover {
  background: #dfe967;
  transform: translateY(-1px);
}

.on-demand-btn-cart.in-cart {
  background: #142802;
  color: #f2ff95;
}

/* Подвал таблицы: Дисклеймер и Пагинация */
.on-demand-footer-note {
  margin-top: 18px;
  font-size: 13px;
  color: #7b886d;
  line-height: 1.4;
}

.on-demand-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.on-demand-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid #dce2d2;
  background: #ffffff;
  color: #142802;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

.on-demand-page-link:hover {
  background: #f4f6ef;
}

.on-demand-page-link.active {
  background: #142802;
  border-color: #142802;
  color: #ffffff;
}

.on-demand-page-link.dots {
  border: none;
  background: transparent;
  cursor: default;
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================== */
.on-demand-mobile-selectors {
  display: none;
}

.on-demand-mobile-cards {
  display: none;
}

@media (max-width: 992px) {
  .on-demand-sidebar {
    display: none;
  }

  .on-demand-table-wrap {
    display: none;
  }

  .on-demand-layout {
    display: block;
  }

  .on-demand-title-block h1 {
    font-size: 28px;
  }

  /* Верхние селекторы на мобильном */
  .on-demand-mobile-selectors {
    display: block;
    margin-bottom: 20px;
  }

  .on-demand-mob-step {
    margin-bottom: 16px;
  }

  .on-demand-mob-step__label {
    font-weight: 700;
    font-size: 14px;
    color: #142802;
    margin-bottom: 8px;
  }

  .on-demand-mob-country-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dce2d2;
    border-radius: 14px;
    cursor: pointer;
    box-sizing: border-box;
  }

  .on-demand-mob-country-val {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
  }

  .on-demand-mob-country-val img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
  }

  .on-demand-mob-suppliers {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .on-demand-mob-suppliers .on-demand-supplier-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
  }

  .on-demand-topbar {
    flex-direction: column;
    gap: 12px;
  }

  .on-demand-sort-wrap {
    width: 100%;
  }

  /* Мобильные карточки товаров */
  .on-demand-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .on-demand-mob-group-header {
    background: #edf1e4;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: "Roobert Trial", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #142802;
    margin-top: 10px;
  }

  .on-demand-mob-card {
    background: #ffffff;
    border: 1px solid #eef2e6;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(20, 40, 2, 0.04);
  }

  .on-demand-mob-card__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .on-demand-mob-card__thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f5ee;
    flex-shrink: 0;
  }

  .on-demand-mob-card__titles {
    flex: 1;
    min-width: 0;
  }

  .on-demand-mob-card__name {
    font-weight: 700;
    font-size: 15px;
    color: #142802;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .on-demand-mob-card__latin {
    font-size: 12px;
    color: #7d8a6e;
    line-height: 1.2;
  }

  .on-demand-mob-card__height {
    text-align: right;
    flex-shrink: 0;
  }

  .on-demand-mob-card__height-label {
    font-size: 11px;
    color: #8c987e;
    margin-bottom: 2px;
  }

  .on-demand-mob-card__height-val {
    font-weight: 700;
    font-size: 13px;
    color: #142802;
    white-space: nowrap;
  }

  .on-demand-mob-card__chars {
    font-size: 12px;
    color: #556244;
    background: #f7f9f2;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  .on-demand-mob-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #f0f3ea;
    padding-top: 12px;
  }

  .on-demand-mob-card__prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .on-demand-mob-card__price-item {
    display: flex;
    flex-direction: column;
  }

  .on-demand-mob-card__price-sub {
    font-size: 11px;
    color: #8c987e;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .on-demand-mob-card__price-val {
    font-weight: 700;
    font-size: 17px;
    color: #142802;
  }

  .on-demand-mob-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .on-demand-mob-card__actions .on-demand-btn-cart {
    flex: 1;
    height: 44px;
    font-size: 14px;
  }

  .on-demand-mob-card__actions .on-demand-counter {
    width: 106px;
    height: 44px;
  }
}

/* ==========================================================================
   ПЛАВАЮЩАЯ ПАНЕЛЬ ЗАКАЗА (Sticky Cart Bar)
   ========================================================================== */
.on-demand-floating-cart {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #142802;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(20, 40, 2, 0.35);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

.on-demand-floating-cart.visible {
  transform: translateX(-50%) translateY(0);
}

.on-demand-floating-cart__info {
  display: flex;
  flex-direction: column;
}

.on-demand-floating-cart__title {
  font-weight: 700;
  font-size: 14px;
  color: #f2ff95;
}

.on-demand-floating-cart__sub {
  font-size: 12px;
  color: #b0c09d;
}

.on-demand-floating-cart__btn {
  background: #eaf673;
  color: #142802;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.on-demand-floating-cart__btn:hover {
  background: #dfe967;
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА (Попап инструкции, Попап товара, Оформление заказа)
   ========================================================================== */
.on-demand-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 8, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.on-demand-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.on-demand-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.on-demand-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f4f6ef;
  color: #142802;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.on-demand-modal__close:hover {
  background: #e6ebdc;
  transform: rotate(90deg);
}

/* Попап: Инструкция "Как заказать растения" */
.on-demand-instruction-modal {
  padding: 36px 32px 32px;
}

.on-demand-instruction-modal h3 {
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #142802;
  margin: 0 0 20px 0;
}

.on-demand-instruction-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #273714;
}

.on-demand-instruction-steps p {
  margin: 0;
}

.on-demand-instruction-steps strong {
  color: #142802;
  font-weight: 700;
}

.on-demand-instruction-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf1e4;
  font-size: 13px;
  color: #7b886d;
}

/* Попап: Карточка товара */
.on-demand-product-modal {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
}

.on-demand-product-modal__gallery {
  position: relative;
  width: 100%;
  height: 380px;
  background: #f4f5ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.on-demand-product-modal__img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.on-demand-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #142802;
  transition: background 0.2s;
}

.on-demand-gallery-arrow:hover {
  background: #ffffff;
}

.on-demand-gallery-arrow.prev { left: 16px; }
.on-demand-gallery-arrow.next { right: 16px; }

.on-demand-product-modal__body {
  padding: 24px 28px 24px;
}

.on-demand-product-modal__badge {
  display: inline-block;
  background: #eaf673;
  color: #142802;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.on-demand-product-modal__title {
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #142802;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.on-demand-product-modal__latin {
  font-size: 14px;
  color: #7b886d;
  margin-bottom: 16px;
}

.on-demand-product-modal__divider {
  height: 1px;
  background: #edf1e4;
  margin-bottom: 16px;
}

.on-demand-product-modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
  color: #273714;
  margin-bottom: 20px;
}

.on-demand-product-modal__specs-full {
  grid-column: 1 / -1;
}

/* Панель цены в модалке */
.on-demand-product-modal__footer {
  background: #f4f6ee;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.on-demand-product-modal__price-block {
  display: flex;
  flex-direction: column;
}

.on-demand-product-modal__price-label {
  font-size: 11px;
  font-weight: 700;
  color: #7b886d;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.on-demand-product-modal__price-num {
  font-size: 22px;
  font-weight: 800;
  color: #142802;
}

.on-demand-product-modal__btn-add {
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  background: #eaf673;
  color: #142802;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.on-demand-product-modal__btn-add:hover {
  background: #dfe967;
}

/* Модальное окно оформления заказа */
.on-demand-order-modal {
  padding: 32px;
  max-width: 600px;
}

.on-demand-order-modal h3 {
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #142802;
  margin: 0 0 8px 0;
}

.on-demand-order-modal__lead {
  font-size: 14px;
  color: #647250;
  margin-bottom: 20px;
}

.on-demand-order-items-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #edf1e4;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  background: #fafbf8;
}

.on-demand-order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #edf1e4;
  font-size: 13px;
  gap: 12px;
}

.on-demand-order-item-row:last-child {
  border-bottom: none;
}

.on-demand-order-item-title {
  flex: 1;
  font-weight: 600;
  color: #142802;
}

.on-demand-order-item-details {
  font-size: 12px;
  color: #7b886d;
}

.on-demand-order-item-sum {
  font-weight: 700;
  color: #142802;
  white-space: nowrap;
}

.on-demand-form-group {
  margin-bottom: 14px;
}

.on-demand-form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #142802;
  margin-bottom: 6px;
}

.on-demand-form-input,
.on-demand-form-textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #dce2d2;
  background: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #142802;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.on-demand-form-textarea {
  height: 80px;
  padding: 10px 14px;
  resize: vertical;
}

.on-demand-form-input:focus,
.on-demand-form-textarea:focus {
  border-color: #8fa04b;
}

.on-demand-form-consent {
  font-size: 12px;
  color: #647250;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
}

.on-demand-form-consent a {
  color: #142802;
  text-decoration: underline;
}

.on-demand-btn-submit {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: #142802;
  color: #f2ff95;
  font-family: "Roobert Trial", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.on-demand-btn-submit:hover {
  background: #233e08;
}

.on-demand-order-success {
  text-align: center;
  padding: 24px 12px;
}

.on-demand-order-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eaf673;
  color: #142802;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
