/* EasyContentFlow Recipe Schema - Rating Widget */
.ecfrs-rating-widget {
    background: #faf8f5;
    border: 1px solid #e8e3dc;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 30px 0 10px;
    text-align: center;
    max-width: 400px;
}

.ecfrs-rating-label {
    font-size: 15px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.ecfrs-stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 8px;
}

.ecfrs-star {
    font-size: 32px;
    color: #d4d0ca;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.ecfrs-star:hover,
.ecfrs-star:focus {
    transform: scale(1.15);
    outline: none;
}

.ecfrs-star-filled {
    color: #f5a623;
}

.ecfrs-stars:hover .ecfrs-star {
    color: #d4d0ca;
}

.ecfrs-stars:hover .ecfrs-star:hover,
.ecfrs-stars:hover .ecfrs-star:hover ~ .ecfrs-star {
    color: #d4d0ca;
}

.ecfrs-stars .ecfrs-star:hover,
.ecfrs-stars .ecfrs-star:hover ~ .ecfrs-star {
    color: #d4d0ca;
}

/* Highlight stars up to hovered one */
.ecfrs-stars:hover .ecfrs-star {
    color: #d4d0ca;
}

.ecfrs-star:hover ~ .ecfrs-star {
    color: #d4d0ca !important;
}

.ecfrs-stars:hover .ecfrs-star:hover {
    color: #f5a623;
}

.ecfrs-rating-info {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.ecfrs-rating-msg {
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.ecfrs-rating-msg.ecfrs-success {
    color: #2d8a4e;
}

.ecfrs-rating-msg.ecfrs-error {
    color: #c0392b;
}

.ecfrs-voted .ecfrs-star {
    cursor: default;
    pointer-events: none;
}

@media (max-width: 480px) {
    .ecfrs-rating-widget {
        max-width: 100%;
        padding: 16px;
    }
    .ecfrs-star {
        font-size: 28px;
    }
}
