/* ===== RATING SYSTEM STYLES ===== */
.rating-container {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(248, 243, 242, 0.8);
    border-radius: 10px;
    border-left: 4px solid #9b4c2e;
}

.rating-title {
    color: #233c3c;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rating-stars {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    margin-right: 5px;
}

.star:hover,
.star.hovered {
    color: #ffc107;
    transform: scale(1.1);
}

.star.selected {
    color: #ffc107;
}

.rating-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.average-rating {
    font-size: 1.1rem;
    font-weight: 600;
    color: #233c3c;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.rating-message {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 24px;
}

.rating-success {
    color: #28a745;
}

.rating-error {
    color: #dc3545;
}

.rating-reset {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.rating-reset:hover {
    color: #233c3c;
}

@media (max-width: 768px) {
    .star {
        font-size: 24px;
    }
    
    .rating-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}