/*
 * Блок отзывов о товаре.
 *
 * Подключается только на /product/* (см. ProductReviewsAssets в
 * bitrix/php_interface/init.php) и НЕ входит в урезанный product-bundle.min.css,
 * потому что тот собирается внешним скриптом и вырезает классы, которых
 * не было в DOM карточки на момент сборки.
 *
 * Единицы: 1rem = 10px (в шаблоне сайта html { font-size: 62.5% }).
 * Палитра взята из шаблона: акцент #0a5ed7, заголовки #102d4f, текст #372c25.
 */

/* --- служебное ------------------------------------------------------- */

.cp-rev-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.cp-rev-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- корневой блок --------------------------------------------------- */

.cp-rev {
    margin: 4rem 0 2rem;
    scroll-margin-top: 12rem;
    color: #372c25;
}

.cp-rev *,
.cp-rev *::before,
.cp-rev *::after {
    box-sizing: border-box;
}

.cp-rev__title {
    margin: 0 0 2.4rem;
    font-family: inherit;
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 800;
    color: #102d4f;
}

.cp-rev__title-count {
    font-weight: 500;
    color: #6b6b6b;
    white-space: nowrap;
}

/* --- звёзды ---------------------------------------------------------- */

.cp-rev-stars {
    display: inline-flex;
    vertical-align: middle;
    line-height: 0;
}

.cp-rev-stars__track {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cp-rev-stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
    width: var(--cp-rev-fill, 0%);
    overflow: hidden;
    pointer-events: none;
}

.cp-rev-star {
    display: block;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.cp-rev-stars--sm .cp-rev-star {
    width: 1.6rem;
    height: 1.6rem;
}

.cp-rev-stars--sm .cp-rev-stars__track,
.cp-rev-stars--sm .cp-rev-stars__fill {
    gap: 0.2rem;
}

.cp-rev-star--tiny {
    width: 1.2rem;
    height: 1.2rem;
}

.cp-rev-stars__track > .cp-rev-star {
    color: #dcdcdc;
}

.cp-rev-stars__fill .cp-rev-star {
    color: #f5a623;
}

/* --- компактная строка рейтинга у H1 --------------------------------- */

.cp-rev-rating-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0.8rem 0 0;
    padding: 0.2rem 0;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 500;
    color: #102d4f;
    text-decoration: none;
    border-radius: 0.6rem;
}

.cp-rev-rating-link:hover,
.cp-rev-rating-link:focus {
    color: #0a5ed7;
    text-decoration: underline;
}

.cp-rev-rating-link:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 3px;
}

.cp-rev-rating-link__value {
    font-weight: 700;
}

.cp-rev-rating-link__sep {
    color: #9a9a9a;
}

.cp-rev-rating-link__count {
    color: #6b6b6b;
}

.cp-rev-rating-link--empty .cp-rev-rating-link__empty {
    color: #6b6b6b;
}

.cp-rev-rating-link--empty .cp-rev-rating-link__cta {
    color: #0a5ed7;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/* --- сводка ---------------------------------------------------------- */

.cp-rev-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem 4rem;
    margin: 0 0 3rem;
    padding: 2rem 2.4rem;
    background: #f6f8fb;
    border: 1px solid #e3e9f2;
    border-radius: 1.2rem;
}

.cp-rev-summary__score {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 16rem;
}

.cp-rev-summary__average {
    font-size: 4.4rem;
    line-height: 1;
    font-weight: 800;
    color: #102d4f;
}

.cp-rev-summary__outof {
    font-size: 1.4rem;
    color: #6b6b6b;
}

.cp-rev-summary__stars {
    display: flex;
    align-items: center;
}

.cp-rev-summary__count {
    flex-basis: 100%;
    font-size: 1.4rem;
    color: #6b6b6b;
}

.cp-rev-dist {
    display: flex;
    flex: 1 1 22rem;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 18rem;
}

.cp-rev-dist__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: #6b6b6b;
}

.cp-rev-dist__label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: 4.2rem;
    flex: 0 0 auto;
    font-weight: 600;
    color: #102d4f;
}

.cp-rev-dist__label .cp-rev-star {
    color: #f5a623;
}

.cp-rev-dist__bar {
    position: relative;
    flex: 1 1 auto;
    height: 0.8rem;
    background: #e3e9f2;
    border-radius: 0.4rem;
    overflow: hidden;
}

.cp-rev-dist__bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #f5a623;
    border-radius: 0.4rem;
}

.cp-rev-dist__count {
    width: 3.2rem;
    flex: 0 0 auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cp-rev-summary__actions {
    flex: 0 0 auto;
}

/* --- кнопки ---------------------------------------------------------- */

.cp-rev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    padding: 1.1rem 2.4rem;
    font-family: inherit;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cp-rev-btn[hidden] {
    display: none !important;
}

.cp-rev-btn--primary {
    background: #0a5ed7;
    color: #fff;
}

.cp-rev-btn--primary:hover {
    background: #084cb0;
    color: #fff;
}

.cp-rev-btn--primary:disabled,
.cp-rev-btn--primary[aria-busy="true"] {
    background: #7aa4dd;
    cursor: default;
}

.cp-rev-btn--more {
    background: #fff;
    color: #0a5ed7;
    border-color: #0a5ed7;
}

.cp-rev-btn--more:hover {
    background: #eef4fd;
}

.cp-rev-btn:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

/* --- пустое состояние ------------------------------------------------ */

.cp-rev-empty {
    padding: 2.8rem 2.4rem;
    background: #f6f8fb;
    border: 1px dashed #c7d4e6;
    border-radius: 1.2rem;
    text-align: center;
}

.cp-rev-empty__text {
    max-width: 60rem;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #4a4a4a;
}

/* --- список и карточка отзыва ---------------------------------------- */

.cp-rev-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.cp-rev-card {
    padding: 2rem 2.4rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 1.2rem;
}

.cp-rev-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem 1.6rem;
    margin-bottom: 0.8rem;
}

.cp-rev-card__author {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.8rem;
    min-width: 0;
}

.cp-rev-card__author-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #102d4f;
    overflow-wrap: anywhere;
}

.cp-rev-card__company {
    font-size: 1.3rem;
    color: #6b6b6b;
    overflow-wrap: anywhere;
}

.cp-rev-card__date {
    font-size: 1.3rem;
    color: #6b6b6b;
    white-space: nowrap;
}

/* --- бейдж «Подтверждённая покупка» --------------------------------- */

.cp-rev-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1c5b2b;
    background: #e6f4ea;
    border-radius: 1rem;
    white-space: nowrap;
}

.cp-rev-card__verified-icon {
    flex: 0 0 auto;
    color: #1c5b2b;
}

/* --- метка «отзыв о серии ткани» (§7 ТЗ) ----------------------------- */

.cp-rev-card__series {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: #5a4a00;
    background: #fff6d9;
    border-radius: 1rem;
    white-space: nowrap;
}

/* --- оценка полезности ----------------------------------------------- */

.cp-rev-card__footer {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
}

.cp-rev-helpful {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #0a5ed7;
    background: #fff;
    border: 1px solid #cfe0f7;
    border-radius: 2rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cp-rev-helpful:hover:not(:disabled) {
    background: #eef4fd;
    border-color: #0a5ed7;
}

.cp-rev-helpful:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

.cp-rev-helpful:disabled,
.cp-rev-helpful.is-voted {
    color: #1c5b2b;
    background: #e6f4ea;
    border-color: #bfe3c8;
    cursor: default;
}

.cp-rev-helpful__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.cp-rev-helpful__count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* --- CAPTCHA в форме (§12 ТЗ) ---------------------------------------- */

.cp-rev-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cp-rev-captcha__image {
    flex: 0 0 auto;
    border: 1px solid #e6e6e6;
    border-radius: 0.6rem;
    background: #fff;
}

.cp-rev-captcha__input {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 20rem;
    text-transform: none;
}

/* --- фотографии отзыва ---------------------------------------------- */

.cp-rev-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.cp-rev-card__photo {
    display: block;
    width: 8rem;
    height: 8rem;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 0.8rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.cp-rev-card__photo:hover {
    border-color: #0a5ed7;
}

.cp-rev-card__photo:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

.cp-rev-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- сортировка ------------------------------------------------------ */

.cp-rev-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1.6rem;
}

.cp-rev-toolbar__label {
    margin: 0;
    font-size: 1.3rem;
    color: #6b6b6b;
}

.cp-rev-toolbar__select {
    max-width: 100%;
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 1.4rem;
    color: #372c25;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 0.8rem;
}

.cp-rev-toolbar__select:focus {
    border-color: #0a5ed7;
    box-shadow: 0 0 0 3px rgba(10, 94, 215, 0.15);
    outline: 0;
}

.cp-rev-card__rating {
    margin-bottom: 1.2rem;
}

.cp-rev-card__text {
    font-size: 1.5rem;
    line-height: 1.65;
    color: #372c25;
    overflow-wrap: anywhere;
}

.cp-rev-card__notes {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.4rem 0 0;
    padding: 1.2rem 1.6rem;
    background: #f8f9fb;
    border-radius: 0.8rem;
}

.cp-rev-card__note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.5;
}

.cp-rev-card__note dt {
    flex: 0 0 auto;
    font-weight: 600;
    color: #102d4f;
}

.cp-rev-card__note dd {
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
    color: #372c25;
    overflow-wrap: anywhere;
}

.cp-rev-card__reply {
    margin-top: 1.6rem;
    padding: 1.4rem 1.6rem;
    background: #eef4fd;
    border-left: 3px solid #0a5ed7;
    border-radius: 0.6rem;
}

.cp-rev-card__reply-title {
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a5ed7;
}

.cp-rev-card__reply-date {
    font-weight: 400;
    color: #6b6b6b;
}

.cp-rev-card__reply-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #372c25;
    overflow-wrap: anywhere;
}

.cp-rev-list__footer {
    margin-top: 2rem;
    text-align: center;
}

.cp-rev-list__status {
    min-height: 1.6rem;
    margin: 1rem 0 0;
    font-size: 1.3rem;
    color: #6b6b6b;
}

/* --- модальное окно -------------------------------------------------- */

.cp-rev-modal {
    z-index: 10050;
}

.cp-rev-modal__content {
    border: 0;
    border-radius: 1.2rem;
}

.cp-rev-modal__header {
    align-items: flex-start;
    padding: 1.8rem 2.4rem 1rem;
    border-bottom: 1px solid #eee;
}

.cp-rev-modal__title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 800;
    color: #102d4f;
}

.cp-rev-modal__close {
    padding: 0.4rem 0.8rem;
    font-size: 2.6rem;
    line-height: 1;
    color: #6b6b6b;
    opacity: 1;
}

.cp-rev-modal__close:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

.cp-rev-modal__body {
    padding: 1.8rem 2.4rem 2.4rem;
}

/* --- форма ----------------------------------------------------------- */

.cp-rev-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.cp-rev-form__message {
    display: none;
    padding: 1.2rem 1.6rem;
    font-size: 1.4rem;
    line-height: 1.5;
    border-radius: 0.8rem;
}

.cp-rev-form__message.is-error {
    display: block;
    color: #8a1c1c;
    background: #fdecec;
    border: 1px solid #f3c3c3;
}

.cp-rev-form__message.is-success {
    display: block;
    color: #1c5b2b;
    background: #ebf7ee;
    border: 1px solid #bfe3c8;
}

.cp-rev-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cp-rev-field--rating {
    gap: 0.8rem;
}

.cp-rev-field__label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #102d4f;
}

.cp-rev-field__hint {
    font-size: 1.3rem;
    font-weight: 400;
    color: #6b6b6b;
}

.cp-rev-field__input,
.cp-rev-field__textarea {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.2rem;
    font-family: inherit;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #372c25;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 0.8rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-rev-field__textarea {
    resize: vertical;
    min-height: 8rem;
}

.cp-rev-field__input:focus,
.cp-rev-field__textarea:focus {
    border-color: #0a5ed7;
    box-shadow: 0 0 0 3px rgba(10, 94, 215, 0.15);
    outline: 0;
}

.cp-rev-field__input.is-invalid,
.cp-rev-field__textarea.is-invalid {
    border-color: #c93a3a;
    box-shadow: 0 0 0 3px rgba(201, 58, 58, 0.12);
}

.cp-rev-field__error {
    display: none;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #a02020;
}

.cp-rev-field__error.is-visible {
    display: block;
}

/* --- выбор файлов и предпросмотр ------------------------------------- */

.cp-rev-field__file {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 1.3rem;
    color: #372c25;
    background: #fff;
    border: 1px dashed #c7d4e6;
    border-radius: 0.8rem;
    cursor: pointer;
}

.cp-rev-field__file:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

.cp-rev-field__file::file-selector-button {
    margin-right: 1rem;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-size: 1.3rem;
    color: #0a5ed7;
    background: #eef4fd;
    border: 0;
    border-radius: 0.6rem;
    cursor: pointer;
}

.cp-rev-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.cp-rev-photo-preview__item {
    width: 6.4rem;
    height: 6.4rem;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 0.6rem;
}

.cp-rev-photo-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-rev-req {
    color: #c93a3a;
}

.cp-rev-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- звёздный рейтинг в форме (radio) -------------------------------- */

.cp-rev-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.2rem 0;
}

.cp-rev-rating-input__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
}

.cp-rev-rating-input__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 0.4rem;
    line-height: 0;
}

.cp-rev-rating-input__label .cp-rev-star {
    width: 2.8rem;
    height: 2.8rem;
    color: #d5d5d5;
    transition: color 0.12s ease;
}

.cp-rev-rating-input__radio:checked ~ .cp-rev-rating-input__label .cp-rev-star,
.cp-rev-rating-input__label:hover .cp-rev-star,
.cp-rev-rating-input__label:hover ~ .cp-rev-rating-input__label .cp-rev-star {
    color: #f5a623;
}

.cp-rev-rating-input__radio:focus-visible + .cp-rev-rating-input__label {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

/* --- согласие -------------------------------------------------------- */

.cp-rev-field--consent {
    gap: 0.6rem;
}

.cp-rev-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #372c25;
    cursor: pointer;
}

/*
 * ВАЖНО про чекбокс согласия.
 *
 * В бандле шаблона сайта есть правила, которые ломают размер:
 *     input[type=checkbox]        { opacity: 0 }
 *     .modal input[type=checkbox] { opacity: 1; height: auto }
 *
 * Селектор `.modal input[type=checkbox]` специфичнее нашего
 * `.cp-rev-checkbox__input`, поэтому height: auto перебивал 1.8rem —
 * чекбокс превращался в полоску 18×2 px.
 *
 * Поэтому:
 *   - рисуем чекбокс сами через appearance: none (не зависим от браузера);
 *   - размер задаём селектором с заведомо большей специфичностью.
 */
.cp-rev .cp-rev-checkbox input.cp-rev-checkbox__input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    margin: 0.1rem 0 0;
    padding: 0;
    border: 1.5px solid #c7d4e6;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    opacity: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cp-rev .cp-rev-checkbox input.cp-rev-checkbox__input[type="checkbox"]:hover {
    border-color: #0a5ed7;
}

/* Галочка рисуется псевдоэлементом — нативный вид отключён. */
.cp-rev .cp-rev-checkbox input.cp-rev-checkbox__input[type="checkbox"]:checked {
    background: #0a5ed7;
    border-color: #0a5ed7;
}

.cp-rev .cp-rev-checkbox input.cp-rev-checkbox__input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 0.62rem;
    top: 0.22rem;
    width: 0.55rem;
    height: 1.05rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cp-rev .cp-rev-checkbox input.cp-rev-checkbox__input[type="checkbox"]:focus-visible {
    outline: 2px solid #0a5ed7;
    outline-offset: 2px;
}

/* Ошибка согласия — красная рамка вокруг квадратика. */
.cp-rev .cp-rev-checkbox input.cp-rev-checkbox__input[type="checkbox"].is-invalid {
    border-color: #c93a3a;
    box-shadow: 0 0 0 3px rgba(201, 58, 58, 0.12);
}

.cp-rev-checkbox__text a {
    color: #0a5ed7;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/* --- сообщение после отправки формы ---------------------------------- */

.cp-rev-page-message {
    margin: 0 0 1.6rem;
    padding: 1.2rem 1.6rem;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #1c5b2b;
    background: #ebf7ee;
    border: 1px solid #bfe3c8;
    border-radius: 0.8rem;
}

.cp-rev-page-message[hidden] {
    display: none;
}

.cp-rev-form__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.4rem;
}

.cp-rev-form__note {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #6b6b6b;
}

/* --- адаптив --------------------------------------------------------- */

@media (max-width: 991px) {
    .cp-rev-summary {
        gap: 1.6rem 2.4rem;
        padding: 1.8rem;
    }

    .cp-rev-summary__average {
        font-size: 3.8rem;
    }

    .cp-rev-summary__actions,
    .cp-rev-summary__actions .cp-rev-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cp-rev {
        margin: 2.4rem 0 1.6rem;
        scroll-margin-top: 8rem;
    }

    .cp-rev__title {
        font-size: 2rem;
        margin-bottom: 1.6rem;
    }

    .cp-rev__title-count {
        display: block;
        margin-top: 0.4rem;
        white-space: normal;
    }

    .cp-rev-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 1.6rem;
        padding: 1.6rem;
    }

    .cp-rev-summary__score {
        min-width: 0;
    }

    .cp-rev-summary__average {
        font-size: 3.2rem;
    }

    .cp-rev-dist {
        min-width: 0;
        flex-basis: auto;
    }

    .cp-rev-dist__label {
        width: 3.6rem;
    }

    .cp-rev-card {
        padding: 1.6rem;
    }

    .cp-rev-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .cp-rev-card__note {
        flex-direction: column;
        gap: 0.2rem;
    }

    .cp-rev-btn {
        width: 100%;
        padding: 1.2rem 1.6rem;
    }

    .cp-rev-empty {
        padding: 2rem 1.6rem;
    }

    .cp-rev-modal__header {
        padding: 1.4rem 1.6rem 1rem;
    }

    .cp-rev-modal__body {
        padding: 1.4rem 1.6rem 2rem;
    }

    .cp-rev-modal__title {
        font-size: 1.9rem;
    }

    .cp-rev-rating-input {
        gap: 0.2rem;
    }

    .cp-rev-rating-input__label .cp-rev-star {
        width: 3.2rem;
        height: 3.2rem;
    }

    .cp-rev-rating-link {
        font-size: 1.3rem;
    }
}

@media (max-width: 359px) {
    .cp-rev-rating-input__label .cp-rev-star {
        width: 2.6rem;
        height: 2.6rem;
    }

    .cp-rev-dist__row {
        font-size: 1.2rem;
        gap: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-rev-btn,
    .cp-rev-field__input,
    .cp-rev-field__textarea,
    .cp-rev-rating-input__label .cp-rev-star {
        transition: none;
    }
}
