/* T94 (01.11.2026): блок «Отзывы» в карточке товара.
   Стиль формы «Заказать звонок»: Gilroy, акцент #F32B37, тёмный #0F111D, границы #E6EBF0, квадратные углы, без теней. */
.rg-reviews {
  --rg-star-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F32B37' d='M12 2.5l2.9 6.2 6.6.7-4.9 4.6 1.4 6.6L12 17.3l-6 3.3 1.4-6.6-4.9-4.6 6.6-.7z'/%3E%3C/svg%3E");
  --rg-star-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E6EBF0' d='M12 2.5l2.9 6.2 6.6.7-4.9 4.6 1.4 6.6L12 17.3l-6 3.3 1.4-6.6-4.9-4.6 6.6-.7z'/%3E%3C/svg%3E");
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid #E6EBF0;
  font-family: "Gilroy", sans-serif;
  color: #0F111D;
}
.rg-reviews *, .rg-reviews *::before, .rg-reviews *::after { box-sizing: border-box; }
.rg-reviews [hidden] { display: none !important; }

.rg-reviews__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; }
.rg-reviews__title { margin: 0; font-family: "Gilroy", sans-serif; font-size: 32px; line-height: 39px; font-weight: 600; color: #0F111D; }
.rg-reviews__count { color: #8A93A3; font-weight: 500; }
.rg-reviews__empty { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: #4B5160; }

/* звёзды (показ) */
.rg-stars { display: inline-flex; gap: 4px; vertical-align: middle; }
.rg-star { display: inline-block; width: 20px; height: 20px; background: var(--rg-star-off) center / contain no-repeat; }
.rg-star--on { background-image: var(--rg-star-on); }
.rg-stars--sm .rg-star { width: 16px; height: 16px; }

/* кнопки — как .btn-red */
.rg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; margin: 0; padding: 0 32px;
  border: 1px solid #F32B37; border-radius: 0; background: #F32B37; box-shadow: none;
  font-family: "Gilroy", sans-serif; font-size: 16px; font-weight: 600; line-height: 1; color: #FFFFFF;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.rg-btn:hover, .rg-btn:focus-visible { background: #FFFFFF; color: #0F111D; outline: none; }
.rg-btn[disabled] { opacity: .6; cursor: default; }
.rg-reviews__open[aria-expanded="true"] { background: #FFFFFF; color: #0F111D; }

/* форма */
.rg-reviews__form-wrap { max-width: 640px; margin: 24px 0 0; padding: 28px; border: 1px solid #E6EBF0; background: #FFFFFF; }
.rg-review-form { margin: 0; padding: 0; background: none; }
.rg-review-form__field { position: relative; margin: 0 0 20px; }
.rg-review-form__label { display: block; margin: 0 0 4px; font-size: 12px; line-height: 16px; color: #4B5160; }
.rg-review-form__input {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid #E6EBF0; border-radius: 0 !important; background: transparent; box-shadow: none;
  font-family: "Gilroy", sans-serif; font-size: 16px; font-weight: 500; color: #0F111D;
  -webkit-appearance: none; appearance: none;
}
.rg-review-form__input--area { height: auto; min-height: 120px; padding: 12px 0; line-height: 1.4; resize: vertical; }
.rg-review-form__input:focus { border-bottom-color: #0F111D; box-shadow: inset 0 -1px 0 #0F111D; outline: none; }
.rg-review-form__field.is-error .rg-review-form__input { border-bottom-color: #F32B37; box-shadow: inset 0 -1px 0 #F32B37; }

/* звёзды (выбор): порядок 5…1 в разметке, показ слева направо 1…5 */
.rg-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rg-rate input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.rg-rate label { display: block; width: 32px; height: 32px; margin: 0; cursor: pointer; background: var(--rg-star-off) center / 28px no-repeat; }
.rg-rate label:hover, .rg-rate label:hover ~ label, .rg-rate input:checked ~ label { background-image: var(--rg-star-on); }
.rg-rate input:focus-visible + label { outline: 1px solid #0F111D; outline-offset: 2px; }
.rg-review-form__field.is-error .rg-rate label { background-image: var(--rg-star-off); outline: 1px solid #F32B37; outline-offset: -2px; }
.rg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* согласие — как .cb__agree */
.rg-agree { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.rg-agree input { position: absolute; top: 0; left: 0; width: 18px; height: 18px; margin: 0; opacity: 0; cursor: pointer; }
.rg-agree__box { flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid #0F111D; background: #FFFFFF; color: #FFFFFF; transition: background-color .2s; }
.rg-agree__box svg { display: block; width: 18px; height: 18px; opacity: 0; }
.rg-agree input:checked + .rg-agree__box { background: #0F111D; }
.rg-agree input:checked + .rg-agree__box svg { opacity: 1; }
.rg-agree input:focus-visible + .rg-agree__box { outline: 1px solid #0F111D; outline-offset: 2px; }
.rg-review-form__field.is-error .rg-agree__box { border-color: #F32B37; }
.rg-agree__text { font-size: 12px; line-height: 1.5; color: #4B5160; }
.rg-agree__text a { color: #4B5160; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .2s; }
.rg-agree__text a:hover, .rg-agree__text a:focus-visible { color: #F32B37; }

.rg-review-form__msg { min-height: 16px; margin: 0 0 12px; font-size: 12px; line-height: 16px; color: #F32B37; }
.rg-review-form__note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #8A93A3; }
.rg-review-done { outline: none; }
.rg-review-done__text { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: #0F111D; }

/* список */
.rg-reviews__list { margin: 0 0 24px; }
.rg-reviews__list[aria-busy="true"] { opacity: .5; }
.rg-review-list { margin: 0; padding: 0; list-style: none; }
.rg-review { padding: 20px 0; border-bottom: 1px solid #E6EBF0; }
.rg-review:first-child { padding-top: 0; }
.rg-review__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.rg-review__author { font-size: 16px; font-weight: 600; color: #0F111D; }
.rg-review__date { font-size: 14px; color: #8A93A3; }
.rg-review__text { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: #0F111D; overflow-wrap: anywhere; }
.rg-review-pagination .pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.rg-review-pagination .pagination > li > a, .rg-review-pagination .pagination > li > span {
  display: block; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid #E6EBF0; border-radius: 0;
  line-height: 34px; text-align: center; font-size: 14px; color: #0F111D; background: #FFFFFF; text-decoration: none;
}
.rg-review-pagination .pagination > li > a:hover { border-color: #0F111D; }
.rg-review-pagination .pagination > .active > span { border-color: #F32B37; color: #F32B37; }

@media (max-width: 767px) {
  .rg-reviews { margin-top: 32px; padding-top: 24px; }
  .rg-reviews__title { font-size: 24px; line-height: 29px; }
  .rg-reviews__form-wrap { margin-top: 16px; padding: 20px 16px; }
  .rg-btn { width: 100%; padding: 0 16px; }
  .rg-review-done__text { font-size: 18px; }
}

/* T179 (11.11.2026): honeypot формы отзыва — поле website скрыто от людей (вне экрана), но остаётся в форме для ботов. */
.rg-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* T182 (11.11.2026): фото к отзыву (поле есть только при включённой настройке review_photos_enabled). */
.rg-photos__hint { color: #8A93A3; }
.rg-photos { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 8px; }
.rg-photos__list { display: contents; margin: 0; padding: 0; list-style: none; }
.rg-photos__item { position: relative; width: 96px; height: 96px; margin: 0; padding: 0; border: 1px solid #E6EBF0; background: #F5F7F9; }
.rg-photos__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rg-photos__del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; background: rgba(15, 17, 29, .75); color: #FFFFFF; font-size: 18px; line-height: 24px; text-align: center; cursor: pointer; }
.rg-photos__del:hover, .rg-photos__del:focus-visible { background: #F32B37; outline: none; }
.rg-photos__add { position: relative; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 0; padding: 8px; border: 1px dashed #8A93A3; color: #0F111D; font-size: 12px; line-height: 1.3; text-align: center; cursor: pointer; transition: border-color .2s, color .2s; }
.rg-photos__add:hover, .rg-photos__add:focus-within { border-color: #0F111D; }
.rg-photos__add::before { content: "+"; position: absolute; top: 14px; left: 0; right: 0; font-size: 24px; line-height: 1; }
.rg-photos__add span { margin-top: 28px; }
.rg-review-form__field.is-error .rg-photos__add { border-color: #F32B37; color: #F32B37; }
