/* отзывы на отдельной странице товара */
/* custom-item-review */
.custom-item-reviews {
    padding: 50px 0;
}

.custom-item-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 40px;
}

.custom-item-reviews__header-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-item-reviews__header-inner h3 {
    color: var(--title-color);
    font-size: calc(
            18px + 14 * ((100vw - 360px) / 1560)
    );
    line-height: 125%;
    /*font-family: "manrope_semibold", sans-serif;*/
    font-weight: 600;
    margin: 0;
}

.custom-item-reviews__header-btn {
    min-width: 268px;
    justify-content: center;
}

.custom-item-reviews__count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-item-reviews__count p {
    color: var(--light-gray-color);
    font-size: 18px;
    line-height: 150%;
    /*font-family: "manrope_medium", sans-serif;*/
    font-weight: 500;
    margin: 0;
}

.custom-item-reviews__count-stars {
    display: flex;
    gap: 2px;
    align-items: center;
    color: var(--light-gray-color);
}

.custom-item-reviews__content {
    display: flex;
    gap: 20px;
    width: 100%;
}

.custom-item-reviews__content-left {
    width: 100%;
}

.custom-item-reviews__content-right {
    padding: 23px;
    border: 1px solid var(--stroke-color);
    border-radius: 12px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-item-reviews__content-right h3 {
    font-size: 24px;
    line-height: 125%;
    color: var(--title-color);
    margin-bottom: 24px;
    text-align: center;
    /*font-family: "manrope_semibold", sans-serif;*/
    font-weight: 600;
}

.custom-item-reviews__content-right p {
    font-size: 16px;
    line-height: 125%;
    color: var(--main-text);
    text-align: center;
}

body .custom-item-reviews__content-right button {
    /*max-width: unset !important;*/
    max-width: unset;
    margin-top: 95px;
    justify-content: center;
    width: 100%;
}

.custom-item-reviews__form {
    max-width: 784px;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: var(--default-transition);
}

.custom-item-reviews__form.is-active {
    pointer-events: auto;
    margin-bottom: 32px;
    max-height: unset;
    opacity: 1;
}

.custom-item-reviews__form form {
    padding: 32px;
    border: 1px solid var(--stroke-color);
    border-radius: 12px;
}

.custom-item-reviews__form-votes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-item-reviews__form-votes p {
    font-size: 16px;
    color: var(--main-text);
    line-height: 125%;
}

.custom-item-reviews__form-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.custom-item-reviews__form-rating p {
    font-size: 16px;
    color: var(--main-text);
    line-height: 125%;
}

.custom-item-reviews__form-rating svg {
    cursor: pointer;
}

.custom-item-reviews__form-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.custom-item-reviews__form-text p {
    font-size: 16px;
    color: var(--main-text);
    line-height: 125%;
}

.custom-item-reviews__form-text textarea {
    resize: vertical;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--stroke-color);
}

.custom-item-reviews__form-dropzone {
    margin-bottom: 20px;
}

.custom-item-reviews__form-error {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 4px;
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    display: none;
}

.custom-item-reviews__form-error.is-active {
    display: flex;
}

.custom-item-reviews__form-error h3 {
    font-size: 16px;
    line-height: 150%;
    color: var(--error);
    margin: 0;
}

.custom-item-reviews__form-error p {
    font-size: 14px;
    line-height: 125%;
    color: var(--error);
}

.custom-item-reviews__list {
    max-width: 988px;
}

.custom-item-reviews__list-empty {
    margin-top: 32px;
    max-width: 784px;
    padding: 32px;
    border: 1px solid var(--stroke-color);
    border-radius: 12px;
}

.custom-item-reviews__list-empty h3 {
    font-size: 24px;
    line-height: 150%;
    color: var(--title-color);
    margin-bottom: 16px;
}

.custom-item-reviews__list-empty p {
    font-size: 16px;
    color: var(--main-text);
    line-height: 125%;
    margin-bottom: 12px;
}

.custom-item-reviews__list-item {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-bottom: 1px solid var(--stroke-color);
    padding-bottom: 20px;
}

.custom-item-reviews__list-item:first-of-type {
    padding-top: 31px;
    border-top: 1px solid var(--stroke-color);
}

.custom-item-reviews__list-item__header {
    display: flex;
    align-items: center;
    gap: 24px;
}

body .custom-item-reviews__list-item__header img {
    width: 60px;
    /*width: 60px !important;*/
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
    /*margin: 0 !important;*/
}

.custom-item-reviews__list-item__header-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.custom-item-reviews__list-item__header-text h5 {
    font-size: 18px;
    color: var(--title-color);
    line-height: 145%;
    margin: 0;
}

.custom-item-reviews__list-item__header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-item-reviews__list-item__header-info .stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.custom-item-reviews__list-item__header-info__date {
    color: var(--light-gray-color);
    line-height: 125%;
    font-size: 14px;
}

.custom-item-reviews__list-item__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-item-reviews__list-item__content p {
    font-size: 16px;
    line-height: 145%;
    color: var(--main-text);
}

.custom-item-reviews__list-item__content-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body .custom-item-reviews__list-item__content-images img {
    max-width: 120px;
    /*max-width: 120px !important;*/
    height: 120px;
    object-fit: cover;
    width: 100%;
    border-radius: var(--border-radius);
    /*margin: 0 !important;*/
    margin: 0;
}

body .custom-item-reviews__list-more {
    margin-top: 32px;
    /*max-width: unset !important;*/
    max-width: unset;
    width: 100%;
    justify-content: center;
}

@media screen and (max-width: 1440px) {
    .custom-item-reviews__list {
        max-width: 800px;
    }
}

@media screen and (max-width: 1200px) {
    .custom-item-reviews__header {
        margin-bottom: 24px;
    }

    .custom-item-reviews__content-right h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    body .custom-item-reviews__content-right button {
        margin-top: 20px;
        max-width: 100%;
        /*max-width: 100% !important;*/
        width: auto;
    }

    .custom-item-reviews__content {
        flex-direction: column;
    }

    .custom-item-reviews__form form {
        padding: 24px;
    }

    .custom-item-reviews__form {
        max-width: unset;
    }

    .custom-item-reviews__list {
        max-width: unset;
    }

    .custom-item-reviews__list-item:first-of-type {
        padding-top: 24px;
    }

    .custom-item-reviews__list-item {
        margin-top: 24px;
    }
}

@media screen and (max-width: 991px) {
    .custom-item-reviews__header {
        margin-bottom: 16px;
    }

    .custom-item-reviews__count p {
        font-size: 14px;
    }

    .custom-item-reviews__count-stars svg {
        width: 16px;
        height: 16px;
    }

    .custom-item-reviews__content-right h3 {
        font-size: 18px;
    }

    .custom-item-reviews__content-right p {
        font-size: 14px;
    }

    .custom-item-reviews__form form {
        padding: 20px;
    }

    .custom-item-reviews__form-votes p {
        font-size: 14px;
    }

    .custom-item-reviews__form-rating p {
        font-size: 14px;
    }

    .custom-item-reviews__form-rating {
        margin-bottom: 12px;
    }

    .custom-item-reviews__form-text p {
        font-size: 14px;
    }

    .custom-item-reviews__form-text {
        margin-bottom: 12px;
    }

    .custom-item-reviews__form-dropzone {
        margin-bottom: 12px;
    }

    .custom-item-reviews__list-item:first-of-type {
        padding-top: 16px;
    }

    body .custom-item-reviews__list-item__header img {
        /*max-width: 40px !important;*/
        max-width: 40px;
        height: 40px;
    }

    .custom-item-reviews__list-item__header-text h5 {
        font-size: 16px;
    }

    .custom-item-reviews__list-item__header {
        gap: 12px;
    }

    .custom-item-reviews__list-item__content p {
        font-size: 12px;
    }

    body .custom-item-reviews__list-item__content-images img {
        max-width: 70px;
        /*max-width: 70px !important;*/
        height: 70px;
        flex-shrink: 0;
    }

    .custom-item-reviews__list-item__content-images {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .custom-item-reviews__list-item__content {
        gap: 14px;
    }

    .custom-item-reviews__list-item {
        margin-top: 16px;
    }

    .custom-item-reviews {
        padding: 25px 0;
    }
}

@media screen and (max-width: 768px) {
    .custom-item-reviews__list-empty h3 {
        font-size: 18px;
        text-align: center;
    }
    .custom-item-reviews__list-empty p{
        font-size: 14px;
        text-align: center;
    }
    .custom-item-reviews__list-empty button{
        margin: 0 auto;
        display: flex
    ;
    }
    .custom-item-reviews__header-btn {
        min-width: unset;
        font-size: 12px;
    }

}
/* /custom-item-review */