/* Фото в отзыве на странице записи (22.10.2026, public/js/rvph.js): общее у
   страницы мастера (/m/) и салона (/s/). Цвета — токены страницы с запасными
   значениями, как у остальных блоков страницы записи. Крупный просмотр —
   разметка просмотра работ (.wkb) со своих страниц, здесь только слой. */

/* Ряд превью в карточке отзыва: маленькие, карточку не раздувают */
.rvph { display: flex; gap: 6px; margin: 8px 0 0; }
.rvph__i { position: relative; flex: none; width: 56px; height: 56px; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line, #f0dde4); border-radius: 10px; background: var(--paper, #fdf1f5); }
.rvph__i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvph__i:hover { border-color: var(--green, #3a7233); }
.rvph__i:focus-visible { outline: 2px solid var(--green, #3a7233); outline-offset: 2px; }
.rvph__i[hidden] { display: none; }
/* В ленте отзывов ряд стоит над «Хочу так же», не уезжает к нижнему краю */
.bkrv__list > .rvi > .rvph + .rvi__go { margin-top: 10px; }

/* Поле выбора в форме отзыва */
.rvph-f { display: flex; flex-direction: column; margin: 0; }
.rvph-f__row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.rvph-f__it { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line, #f0dde4); background: var(--paper, #fdf1f5); }
.rvph-f__it img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvph-f__x { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(18, 12, 14, .62); color: #fff; cursor: pointer; }
.rvph-f__x:hover { background: rgba(18, 12, 14, .82); }
.rvph-f__x:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 2px var(--green, #3a7233); }
/* Невидимая «увеличенная» цель нажатия у крестика: 24 px видно, 40 px нажимается */
.rvph-f__x::before { content: ''; position: absolute; inset: -8px; }
.rvph-f__it--add { width: auto; min-width: 64px; border-style: dashed; background: var(--card, #fffbfc); overflow: visible; }
.rvph-f__add { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 100%; padding: 0 12px; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center;
  color: var(--green, #3a7233); cursor: pointer; border-radius: 12px; }
.rvph-f__add input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 0; }
.rvph-f__add:has(input:focus-visible) { outline: 2px solid var(--green, #3a7233); outline-offset: 2px; }
.rvph-f__add.is-busy { opacity: .6; cursor: progress; }
.rvph-f__add svg { flex: none; }
.rvph-f .rvf__cnt { margin-top: 6px; }

/* Крупный просмотр поверх листа отзыва (тот же слой, но позже в документе) */
.wkb.rvph-v { z-index: 210; }

@media (prefers-reduced-motion: reduce) { .rvph-v { animation: none; } }
