/* zhirov delivery: candyshop delivery block (compact, no filters) */

/* Контейнер */
.dp-product_candyshop {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin: 12px 0;
  overflow: hidden;
}

/* Подзаголовок с городом */
.dp-product__subheader {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dp-product__subheader-left {
  color: #495057;
  font-size: 12px;
  font-weight: 500;
}
.dp-product__subheader-right .dp-product__city-change {
  color: #007bff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color .15s ease, background-color .15s ease;
}
.dp-product__subheader-right .dp-product__city-change:hover {
  background: #e3f2fd;
  color: #0056b3;
}

/* Подсказка "Бесплатно от..." под заголовком */
.dp-product__free-hint {
  color: #28a745;
  font-size: 10px;
  font-weight: 500;
  margin-left: 6px;
  opacity: .9;
}

/* Список услуг */
.dp-product__service-list { padding: 0; }
.dp-product__service { border-bottom: 1px solid #f8f9fa; }
.dp-product__service:last-child { border-bottom: none; }

.dp-product__group-title {
  background: #f8f9fa;
  color: #495057;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid #e9ecef;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Строка услуги */
.dp-product__service-row {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color .15s ease;
  border-left: 2px solid transparent;
}
.dp-product__service-row:hover { background: #f8f9fa; }
.dp-product__service-row[data-type="pickup"]  { border-left-color: #28a745; }
.dp-product__service-row[data-type="courier"] { border-left-color: #007bff; }

/* Иконки */
.dp-product__service-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.dp-icon_courier { background: #e3f2fd; color: #1976d2; }
.dp-icon_pickup  { background: #e8f5e8; color: #2e7d32; }

/* Название услуги */
.dp-product__service-title {
  flex: 1;
  color: #212529;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
}
.dp-product__service-title_link { color: #007bff; text-decoration: none; }
.dp-product__service-title_link:hover { color: #0056b3; text-decoration: underline; }

/* Расчёт/цены: срок + цена + подсказка в одну строку */
.dp-product__service-calculation {
  min-width: 110px;
  text-align: right;
}

.dp-product__service-rates {
  display: flex;             /* в ряд, без псевдо-разделителей */
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap;         /* на десктопе не рвёмся */
}

.dp-product__service-col-line {
  display: inline-block;     /* стабильные «куски» */
  margin: 0;
  line-height: 1.2;
  vertical-align: baseline;
}

.dp-product__service-estimated,
.dp-product__service-price,
.dp-cost__caption {
  white-space: nowrap;       /* не ломаем числа и «Бесплатно» */
}
/* Удаляем разделитель перед ценой (если был) */
.dp-product__service-price::before { content: none !important; }

.dp-estimated-date { font-size: 10px; color: #6c757d; font-weight: 500; }
.dp-estimated-date__value_today { color: #28a745; }
.dp-estimated-date__value_next-day { color: #ffc107; }

.dp-cost__value { color: #212529; }
.dp-cost__value_free { color: #28a745; }
.dp-cost__caption { color: #6c757d; font-size: 10px; font-weight: 400; white-space: nowrap; }

/* Кнопка «Показать ещё» как ссылка */
.dp-product__show-more-wrap {
  padding: 10px 12px;
  text-align: center;
  border-top: 1px solid #f1f3f4;
}
.dp-btn_more {
  background: transparent;
  border: none;
  color: #6c757d;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color .15s ease;
  display: inline-block;
}
.dp-btn_more:hover { color: #495057; text-decoration: none; }

/* Скрытые элементы */
.dp-hidden { display: none; }

/* Адаптивность */
@media (max-width: 768px) {
  /* Иконка + название в одну строку */
  .dp-product__service-row {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .dp-product__service-icon {
    flex: 0 0 16px;
    margin-top: 2px;
  }
  .dp-product__service-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* расчёт переносим ниже, но элементы в нём — в одну линию */
  .dp-product__service-calculation {
    flex: 0 0 100%;
    order: 2;
    text-align: left;
    min-width: auto;
    margin-top: 2px;
  }
  .dp-product__service-rates {
    flex-wrap: wrap;         /* можно перенести целые куски */
    gap: 8px;
    justify-content: flex-start;
  }
}

/* Темная тема */
.dark-theme .dp-product_candyshop {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}
.dark-theme .dp-product__subheader { background: #4a5568; border-color: #718096; }
.dark-theme .dp-product__subheader-left,
.dark-theme .dp-product__service-title,
.dark-theme .dp-product__service-price { color: #e2e8f0; }
.dark-theme .dp-product__service-row:hover { background: #4a5568; }