.js-chililab-set-rating {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.js-chililab-set-rating::before {
    content: "\2605";
    position: absolute;
    color: #D7D7D7;
}

.js-chililab-set-rating.checked::before {
    content: "\2605";
    position: absolute;
    opacity: 1;
    color: #FFBE4A;
}

.js-chililab-set-rating:hover::before,
.js-chililab-set-rating:hover ~ .js-chililab-set-rating::before {
    color: #FFBE4A;
}

.red-rating-info {
    position: relative;
    display: inline-block;
}

.rating-overall {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-popup {
    position: absolute;
    top: 20px;
    left: 15%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    gap: 10px;
}


.red-rating-info:hover .rating-popup {
    display: flex;
}

.red-rating-stars.rating-popup {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    flex-wrap: nowrap;
}

.red-rating-stars.rating-popup label {
    display: inline-block;
}

.red-rating-auth.rating-popup {
    text-align: center;
    width: auto;
    white-space: nowrap;
}

.red-rating-auth.rating-popup p,
.red-rating-auth.rating-popup a {
    margin: 5px;
    display: inline-block;
}
@media (max-width: 768px) {
    .rating-popup {
        left: 10px;
        transform: none;
        max-width: 90vw; /* Не выходит за рамки экрана */
        min-width: 0; /* Убираем минимальную ширину для адаптивности */
        width: auto; /* Адаптивная ширина */
        box-sizing: border-box; /* Учитываем padding в ширине */
    }
    .red-rating-auth.rating-popup {
        white-space: wrap;
        width: 90vw;
    }
}