/* Shared star display (averages + per-comment) */
.yads-stars {
    position: relative;
    display: inline-block;
    direction: ltr;
    line-height: 1;
    white-space: nowrap;
    font-size: 20px;
}

.yads-stars-empty {
    color: #d1d5db;
}

.yads-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
}

.yads-comment-rating {
    margin-bottom: 6px;
}

/* Interactive rating input in the comment form */
.yads-rating-field {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.yads-rating-label {
    font-weight: 600;
}

.yads-rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    direction: ltr;
    font-size: 28px;
    line-height: 1;
}

.yads-rating-stars input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.yads-rating-stars label {
    color: #d1d5db;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s ease;
}

.yads-rating-stars input:checked ~ label,
.yads-rating-stars label:hover,
.yads-rating-stars label:hover ~ label {
    color: #f5a623;
}
