/* Отзывы о товаре (Ozon-стиль) */
.pd-reviews { max-width: 820px; margin: 40px auto 0; padding: 0 16px; }
.pd-reviews-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: #1a1a1a; }

.rv-star { color: #d9d9d9; }
.rv-star.on { color: #ffb400; }

/* Сводка */
.rv-summary { display: flex; gap: 32px; flex-wrap: wrap; align-items: center;
  background: #f7f8f6; border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.rv-avg { text-align: center; min-width: 120px; }
.rv-avg-num { font-size: 44px; font-weight: 800; line-height: 1; color: #1a1a1a; }
.rv-avg-stars { font-size: 18px; margin: 6px 0 4px; }
.rv-avg-count { font-size: 13px; color: #6b7280; }
.rv-dist { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.rv-dist-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6b7280; }
.rv-dist-star { width: 26px; }
.rv-dist-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }
.rv-dist-fill { display: block; height: 100%; background: #ffb400; }
.rv-dist-cnt { width: 30px; text-align: right; }

/* Форма */
.rv-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 20px; margin-bottom: 28px; }
.rv-form-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.rv-form-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rv-input-stars { display: inline-flex; flex-direction: row-reverse; }
.rv-input-stars input { display: none; }
.rv-input-stars label { font-size: 28px; color: #d9d9d9; cursor: pointer; padding: 0 2px; transition: color .15s; }
.rv-input-stars input:checked ~ label,
.rv-input-stars label:hover,
.rv-input-stars label:hover ~ label { color: #ffb400; }
.rv-ta { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px;
  font-size: 14px; margin-bottom: 10px; font-family: inherit; resize: vertical; }
.rv-submit { background: #22372B; color: #fff; border: none; border-radius: 10px;
  padding: 11px 22px; font-size: 14px; font-weight: 700; cursor: pointer; }
.rv-submit:hover { background: #2d4a36; }
.rv-form-note { margin-left: 12px; font-size: 13px; color: #9a6a00; }
.rv-photo-upload { margin-bottom: 12px; }
.rv-photo-btn { display: inline-block; border: 1px dashed #b0bcae; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; color: #22372B; cursor: pointer; }
.rv-photo-btn:hover { background: #f3f6f1; }
.rv-photo-names { margin-left: 10px; font-size: 12px; color: #6b7280; }
.rv-item-photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.rv-photo-thumb { display: block; width: 120px; height: 120px; border-radius: 10px;
  overflow: hidden; border: 1px solid #e5e7eb; cursor: pointer; transition: transform .12s; }
.rv-photo-thumb:hover { transform: scale(1.03); }
.rv-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .rv-photo-thumb { width: 90px; height: 90px; }
}

/* Лайтбокс для фото отзывов */
.rv-lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999;
  display: none; align-items: center; justify-content: center; }
.rv-lb.open { display: flex; }
.rv-lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; object-fit: contain; }
.rv-lb-close { position: absolute; top: 18px; right: 24px; font-size: 34px; color: #fff;
  background: none; border: none; cursor: pointer; line-height: 1; }
.rv-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 44px;
  color: #fff; background: none; border: none; cursor: pointer; padding: 0 18px; user-select: none; }
.rv-lb-prev { left: 6px; } .rv-lb-next { right: 6px; }
.rv-lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 14px; opacity: .85; }
@media (max-width: 640px) { .rv-lb-nav { font-size: 34px; padding: 0 10px; } }
.rv-hint { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.rv-hint a { color: #22372B; text-decoration: underline; }

/* Сортировка */
.rv-sort { margin-bottom: 16px; font-size: 14px; color: #6b7280; }
.rv-sort select { border: 1px solid #d1d5db; border-radius: 8px; padding: 6px 10px; font-size: 14px; }

/* Список */
.rv-list { display: flex; flex-direction: column; gap: 20px; }
.rv-item { border-bottom: 1px solid #eef0ee; padding-bottom: 20px; }
.rv-item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.rv-author { font-weight: 700; color: #1a1a1a; }
.rv-verified { font-size: 12px; color: #1d6f42; background: #e8f6ee; padding: 2px 8px; border-radius: 12px; }
.rv-date { font-size: 12px; color: #9ca3af; margin-left: auto; }
.rv-item-stars { font-size: 16px; margin-bottom: 10px; }
.rv-block { font-size: 14px; color: #1a1a1a; margin-bottom: 8px; line-height: 1.5; }
.rv-label { display: block; font-weight: 600; color: #6b7280; font-size: 13px; margin-bottom: 2px; }
.rv-comment { color: #333; }
.rv-reply { background: #f7f8f6; border-left: 3px solid #22372B; border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.rv-reply-label { display: block; font-weight: 700; color: #22372B; font-size: 13px; margin-bottom: 3px; }
.rv-helpful { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: #6b7280; }
.rv-vote { border: 1px solid #d1d5db; background: #fff; border-radius: 20px;
  padding: 5px 12px; cursor: pointer; font-size: 13px; }
.rv-vote:hover { background: #f3f4f6; }
.rv-vote:disabled { opacity: .5; cursor: default; }
.rv-empty { color: #6b7280; font-size: 14px; }

/* Страница оценки покупки по токену */
.rt-page { max-width: 640px; margin: 40px auto; padding: 0 16px; }
.rt-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: #1a1a1a; }
.rt-lead { color: #4b5563; margin-bottom: 24px; line-height: 1.5; }
.rt-product, .rt-order-rating { background: #f7f8f6; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.rt-product-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.rt-note { font-size: 12px; color: #9ca3af; margin-top: 10px; }
.rt-done { text-align: center; padding-top: 50px; }

/* Блок оценки заказа в личном кабинете */
.order-review-box { background: #f7f8f6; border-radius: 12px; padding: 20px;
  margin-top: 24px; max-width: 600px; }
.order-review-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.order-review-hint { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.order-review-box .rv-input-stars { margin-bottom: 12px; }

@media (max-width: 640px) {
  .rv-summary { gap: 20px; }
  .rv-date { margin-left: 0; }
}
