.review-rating {
    text-align: center;
    margin-bottom: clamp(16px, 3vw, 16px);
}

.modal.reviews p.review-rating__title {
    color: rgba(0, 0, 0, 0.4);
    line-height: 1.4;
    margin-bottom: 4px;
}

.review-rating__title {
    color: rgba(0, 0, 0, 0.4);
    line-height: 1.4;
    margin-bottom: 4px;
}

.review-rating__subtitle {
    color: var(--red);
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, margin-top .3s ease, opacity .3s ease;
}

.review-rating__subtitle.show {
    max-height: 22px;
    margin-top: clamp(8px, 3vw, 24px);
    opacity: 1;
}

.review-rating__stars {
    display: inline-flex;
    gap: 14px;
    flex-direction: row-reverse;
}

.review-rating input {
    display: none;
}

.review-rating__star {
    cursor: pointer;
}

.review-rating__star svg {
    display: block;
    width: clamp(42px, 3vw, 50px);
    height: clamp(42px, 3vw, 50px);
}

.review-rating__star svg path {
    transition: all .3s;
}

.review-rating__star:hover svg path,
.review-rating__star:hover~.review-rating__star svg path,
.review-rating input:checked+.review-rating__star svg path,
.review-rating input:checked+.review-rating__star~.review-rating__star svg path {
    fill: var(--red);
    stroke: var(--red);
}

.review-text.error {
    border-color: #E53935;
    background: #FFF3F3;
    animation: review-error .35s ease;
}

.review-text.error::placeholder {
    color: #E53935;
}

.review-rating__error {
    margin-top: 8px;
    color: #d32f2f;
    font-size: 14px;
}

.review-rating__star:hover svg path,
.review-rating__star:hover~.review-rating__star svg path,
.review-rating input:checked+.review-rating__star svg path,
.review-rating input:checked+.review-rating__star~.review-rating__star svg path {
    fill: #E53935;
    stroke: #E53935;
}


.product-rating {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    font-size: clamp(10px, 1.5vw, 16px);
}

.product-rating-detail.product-rating {
    margin-left: auto;
}

.product-rating__star.disabled svg path {
    fill: rgba(0, 0, 0, 0.4);
    stroke: rgba(0, 0, 0, 0.4);
}

.product-rating__star svg {
    display: block;
    width: clamp(10px, 2vw, 18px);
    height: clamp(10px, 2vw, 18px);
}

.product-rating__star svg path {
    fill: #E53935;
    stroke: #E53935;
}

.product-rating__value {
    font-size: inherit;
    font-family: ArabicPro, sans-serif;
    font-weight: 500;
    color: #181818;
    margin-right: 10px;
    margin-left: 1px;
}

.product-rating__btn {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    transition: all .3s;
}

.product-rating__btn:hover {
    color: #E53935;
}

.product-rating__count {
    color: rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    font-size: inherit;
    font-family: ArabicPro, sans-serif;
}

.product-rating-detail .product-rating__star svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 576px) {

    .product-rating__value {
        margin-right: 0;
    }

    .product-rating-detail .product-rating__value {
        margin-right: 10px;
    }

    .product-rating__count {
        width: max-content;
        text-align: right;
        margin-left: 2px;
    }

    .label._theme_red._size_lg {
        font-size: 8px;
        padding: 4px;
        min-width: 0;
        line-height: 1.2;
    }
}