/* Отзывы на карточке товара INGLOT (lt_reviews r1, 10.11.2026). Цвета и размеры — по макету Алины. */
.ltrv-acc [hidden], .ltrv [hidden], .ltrv-modal[hidden], .ltrv-modal [hidden], .ltrv-lb[hidden], .ltrv-lb [hidden] { display: none !important; }
html.ltrv-lock, html.ltrv-lock body { overflow: hidden !important; }
/* чат Милки и нижняя панель оттенков стоят на максимальном слое — пока открыто окно отзыва или фото, прячем их */
html.ltrv-lock #milka-chat, html.ltrv-lock .catalog-detail__offers.offers-fixed { visibility: hidden !important; }

/* звёзды: серый фон + золотая заливка по ширине (4.8 → 96 %) */
.ltrv-stars {
  --s: 18px;
  position: relative; display: inline-block; flex: 0 0 auto; vertical-align: middle;
  width: calc(var(--s) * 5); height: var(--s);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E6E6E6' d='M12 2.6l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.4l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--s) var(--s);
}
.ltrv-stars__fill {
  position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E4BA6B' d='M12 2.6l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.4l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--s) var(--s);
}
.ltrv-stars--sm { --s: 15px; }
.ltrv-stars--md { --s: 22px; }

/* строка под названием товара */
.ltrv-line-wrap { margin: 8px 0 4px; }
.ltrv-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: #1a1a1a !important; text-decoration: none !important; }
.ltrv-line__avg { font-weight: 600; margin-left: 2px; }
.ltrv-line__dot { color: #999; }
.ltrv-line__cnt { color: #595959; border-bottom: 1px solid transparent; }
.ltrv-line:hover .ltrv-line__cnt { border-bottom-color: #595959; }

/* заголовок вкладки: «Отзывы ★★★★★ 4.8 (21)» */
.ltrv-acc .lt-accordion__head, .ltrv-acc .detail-accordion__header { justify-content: flex-start !important; }
.ltrv-acc .lt-accordion__chev { margin-left: 12px; }
.ltrv-acc .detail-accordion__header::after { margin-left: 12px; }
.ltrv-head-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #1a1a1a; }
.ltrv-head-meta__cnt { color: #777; font-weight: 400; }

/* тело вкладки */
.ltrv { font-size: 14px; line-height: 1.55; color: #222; padding: 4px 0 8px; }
.lt-accordion__content .ltrv, .detail-accordion__content .ltrv { color: #222; font-size: 14px; }
.ltrv-note { background: #fff8e1; border: 1px solid #ffe08a; color: #7a5c00; font-size: 12px; line-height: 1.4; padding: 6px 10px; border-radius: 4px; margin: 0 0 12px; }
.ltrv-note--mod { background: #f3f3f3; border-color: #e3e3e3; color: #444; }
.ltrv-note a { color: inherit; text-decoration: underline; }

.ltrv-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  background: #1a1a1a; color: #fff; border: 1px solid #1a1a1a; border-radius: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  transition: background .15s ease, color .15s ease;
}
.ltrv-btn:hover { background: #333; border-color: #333; color: #fff; }
.ltrv-btn:disabled { opacity: .6; cursor: default; }
.ltrv-btn--line { background: #fff; color: #1a1a1a; width: 100%; margin-top: 16px; }
.ltrv-btn--line:hover { background: #f5f5f5; color: #1a1a1a; border-color: #1a1a1a; }

.ltrv-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 20px; border-bottom: 1px solid #e9e9e9; }
.ltrv-sum__score { display: flex; flex-direction: column; gap: 4px; }
.ltrv-sum__avg { font-size: 40px; line-height: 1; font-weight: 400; color: #1a1a1a; }
.ltrv-sum__meta { display: flex; align-items: center; gap: 10px; }
.ltrv-sum__cnt { font-size: 13px; color: #666; white-space: nowrap; }

.ltrv-empty { padding: 4px 0 8px; }
.ltrv-empty p { margin: 0 0 14px; color: #444; }

.ltrv-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid #e9e9e9; }
.ltrv-item__side { min-width: 0; }
.ltrv-ava { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: #1b1b1b; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.ltrv-item__author { margin-top: 10px; font-size: 13px; font-weight: 600; color: #1a1a1a; overflow-wrap: anywhere; }
.ltrv-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ltrv-item__marks { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ltrv-item__date { font-size: 13px; color: #595959; white-space: nowrap; }
.ltrv-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 16px; color: #185724; }
.ltrv-verified__ic { width: 16px; height: 16px; border-radius: 50%; background: #D4EDDA; display: inline-flex; align-items: center; justify-content: center; color: #185724; }
.ltrv-item__title { margin: 12px 0 8px; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.ltrv-item__text { margin-top: 10px; overflow-wrap: anywhere; }
.ltrv-item__title + .ltrv-item__text { margin-top: 0; }
.ltrv-item__pc { margin-top: 6px; color: #444; overflow-wrap: anywhere; }
.ltrv-item__pc span { color: #777; }
.ltrv-item__title + .ltrv-clamp .ltrv-clamp__short > .ltrv-item__text:first-child,
.ltrv-item__title + .ltrv-clamp .ltrv-clamp__full > .ltrv-item__text:first-child { margin-top: 0; }
.ltrv .ltrv-readmore { display: inline-block; margin: 6px 0 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: 14px; line-height: 20px; color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; height: auto; width: auto; }
.ltrv .ltrv-readmore:hover { color: #595959; background: none; }
.ltrv .ltrv-readmore[hidden], .ltrv-clamp [hidden] { display: none !important; }
.ltrv-photos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.ltrv-photo { width: 80px; height: 80px; padding: 0; border: 0; background: #f2f2f2; cursor: zoom-in; overflow: hidden; }
.ltrv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ltrv-reply { margin-top: 16px; background: #F3F3F3; padding: 14px 20px; }
.ltrv-reply__label { font-size: 12px; color: #737373; margin-bottom: 4px; }
.ltrv-reply__text { color: #222; overflow-wrap: anywhere; }

/* к отзывам прокручиваем с отступом под шапку (на ПК — внутри правой колонки, она прокручивается сама) */
.ltrv-acc { scroll-margin-top: 12px; }
@media (max-width: 991px) { .ltrv-acc { scroll-margin-top: 72px; } }

/* ---------- окно отзыва ---------- */
.ltrv-modal { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ltrv-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.ltrv-modal__box {
  position: relative; width: 100%; max-width: 960px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #fff; padding: 40px 46px 44px; box-sizing: border-box; color: #1a1a1a; font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif;
}
.ltrv-modal__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; color: #1a1a1a; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ltrv-modal__x:hover { color: #666; }
.ltrv-form__title { margin: 0 44px 16px 0; font-size: 32px; line-height: 1.2; font-weight: 400; color: #1a1a1a; }
.ltrv-form__sep { height: 1px; background: #e3e3e3; margin: 0 0 22px; }
.ltrv-banner { display: flex; align-items: center; gap: 12px; background: #FFD0CF; color: #D93025; padding: 14px 18px; margin: 0 0 16px; font-size: 14px; line-height: 1.4; }
.ltrv-banner svg { flex: 0 0 auto; }

.ltrv-f { margin: 0 0 22px; }
.ltrv-f__label { display: block; font-size: 17px; line-height: 1.3; font-weight: 400; color: #1a1a1a; margin: 0 0 8px; }
.ltrv-req { font-style: normal; color: #E53935; margin-left: 1px; }
.ltrv-f__note-inline { font-size: 14px; color: #666; margin-left: 6px; }
.ltrv-f__note { font-size: 11px; line-height: 14px; color: #666; margin: -4px 0 8px; min-height: 14px; }
.ltrv-f__err { font-size: 12px; line-height: 16px; color: #D93025; margin-top: 6px; min-height: 0; }
.ltrv-f__err:empty { display: none; }
.ltrv-f__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ltrv-f__row .ltrv-f__err:empty { display: block; }
.ltrv-count { font-size: 12px; color: #666; margin-top: 6px; white-space: nowrap; margin-left: auto; }

.ltrv-rate { display: flex; gap: 6px; }
.ltrv-rate__star { width: 44px; height: 44px; padding: 2px; border: 0; background: transparent; cursor: pointer; color: #EEEEEE; border-radius: 4px; }
.ltrv-rate__star svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.ltrv-rate__star.is-on { color: #E4BA6B; }
.ltrv-rate__star:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 1px; }
.ltrv-rate__hint { font-size: 13px; color: #666; margin-top: 6px; }
.ltrv-f--rating.is-error .ltrv-rate__star:not(.is-on) { color: #f6c9c6; }

.ltrv-form textarea, .ltrv-form input[type=text], .ltrv-form input[type=tel], .ltrv-select select {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; line-height: 1.4; color: #1a1a1a; border-radius: 4px; outline: none;
  transition: border-color .15s ease;
}
.ltrv-form textarea { display: block; min-height: 150px; resize: vertical; background: #FAFAFA; border: 1px solid #FAFAFA; padding: 16px 20px; }
.ltrv-form input[type=text], .ltrv-form input[type=tel] { height: 52px; padding: 0 16px; background: #fff; border: 1px solid #CECECE; }
.ltrv-form textarea::placeholder, .ltrv-form input::placeholder { color: #9B9B9B; }
.ltrv-form textarea:focus { border-color: #CECECE; }
.ltrv-form input[type=text]:focus, .ltrv-form input[type=tel]:focus, .ltrv-select select:focus { border-color: #1a1a1a; }
.ltrv-f.is-error textarea, .ltrv-f.is-error input[type=text], .ltrv-f.is-error input[type=tel], .ltrv-f.is-error select { border-color: #D93025 !important; }
.ltrv-select { position: relative; max-width: 320px; }
.ltrv-select select { height: 52px; padding: 0 40px 0 16px; border: 1px solid #CECECE; background: #fff; appearance: none; -webkit-appearance: none; }
.ltrv-select::after { content: ""; position: absolute; right: 18px; top: 22px; width: 8px; height: 8px; border-right: 1.5px solid #1a1a1a; border-bottom: 1.5px solid #1a1a1a; transform: rotate(45deg); pointer-events: none; }

.ltrv-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 20px; box-sizing: border-box; border: 1.5px dashed #BDBDBD; text-align: center; cursor: pointer; color: #1a1a1a; transition: background .15s ease, border-color .15s ease; }
.ltrv-drop:hover, .ltrv-drop.is-over { border-color: #1a1a1a; background: #fafafa; }
.ltrv-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ltrv-drop:focus-within { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.ltrv-drop__t { font-size: 14px; }
.ltrv-drop__note { font-size: 13px; color: #666; }
.ltrv-drop__t--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .ltrv-drop__t--desk { display: none; }
  .ltrv-drop__t--touch { display: inline; }
}
.ltrv-f.is-error .ltrv-drop { border-color: #D93025; }
.ltrv-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.ltrv-previews:not(:empty) { margin-top: 10px; }
.ltrv-prev { position: relative; width: 80px; height: 80px; background: #f2f2f2; }
.ltrv-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ltrv-prev__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 12px; color: #666; }
.ltrv-prev__x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1a1a1a; color: #fff; font-size: 16px; line-height: 24px; padding: 0; cursor: pointer; }

.ltrv-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.ltrv-row3 .ltrv-f { margin-bottom: 22px; }
.ltrv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ltrv-btn--submit { width: 100%; min-height: 56px; font-size: 15px; margin-top: 6px; }
.ltrv-modal.is-sending .ltrv-form { pointer-events: none; }
.ltrv-modal.is-sending .ltrv-btn--submit { pointer-events: none; }

.ltrv-done { text-align: center; padding: 40px 0 16px; }
.ltrv-done__title { margin: 16px 0 8px; font-size: 26px; font-weight: 400; }
.ltrv-done__text { margin: 0 0 24px; color: #444; font-size: 15px; }

@media (max-width: 767px) {
  .ltrv-modal { padding: 8px; align-items: stretch; }
  .ltrv-modal__box { max-height: none; height: 100%; padding: 28px 18px 24px; }
  .ltrv-modal__x { top: 8px; right: 8px; }
  .ltrv-form__title { font-size: 24px; margin-right: 40px; }
  .ltrv-f__label { font-size: 16px; }
  .ltrv-rate__star { width: 46px; height: 46px; }
  .ltrv-form textarea { min-height: 160px; }
  .ltrv-row3 { grid-template-columns: 1fr; }
  .ltrv-row3 [data-field="name"] .ltrv-f__note { display: none; }
  .ltrv-select { max-width: none; }
  .ltrv-done__title { font-size: 22px; }
}

/* ---------- мобильная вкладка ---------- */
@media (max-width: 767px) {
  .ltrv-sum__avg { font-size: 48px; }
  .ltrv-sum .ltrv-stars--md { --s: 18px; }
  .ltrv-sum__meta { gap: 8px; }
  .ltrv-sum .ltrv-btn { padding: 0 14px; min-height: 44px; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
  .ltrv-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .ltrv-item__author { font-size: 12px; margin-top: 8px; }
  .ltrv-item__text { font-size: 15px; }
  .ltrv-photo { width: 88px; height: 88px; }
  .ltrv-reply { padding: 12px 16px; }
  .ltrv-head-meta { font-size: 12px; gap: 4px; }
  .ltrv-head-meta .ltrv-stars { --s: 13px; }
}

/* ---------- просмотр фото ---------- */
.ltrv-lb { position: fixed; inset: 0; z-index: 2147483647; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.ltrv-lb__img { max-width: 92vw; max-height: 86vh; object-fit: contain; display: block; user-select: none; }
.ltrv-lb__x { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ltrv-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ltrv-lb__prev { left: 12px; }
.ltrv-lb__next { right: 12px; }
.ltrv-lb__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 13px; }
@media (max-width: 767px) { .ltrv-lb__nav { width: 44px; height: 44px; background: transparent; } }
