.rsr-rating-container {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.rsr-rating-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.rsr-stars-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rsr-stars {
    display: inline-flex;
    gap: 4px;
}

.rsr-star {
    cursor: pointer;
    transition: transform 0.15s ease;
    display: inline-flex;
}

.rsr-star svg {
    fill: #ddd;
    stroke: #ccc;
    stroke-width: 1px;
    transition: fill 0.15s ease;
}

.rsr-star:hover {
    transform: scale(1.15);
}

.rsr-star.rsr-star-filled svg,
.rsr-star.rsr-star-hover svg {
    fill: var(--star-color, #FFD700);
    stroke: var(--star-color, #FFD700);
}

.rsr-rating-container[data-rated="1"] .rsr-star {
    cursor: default;
    pointer-events: none;
}

.rsr-rating-label {
    font-size: 13px;
    color: #666;
    min-width: 80px;
    font-weight: 500;
}

.rsr-stats {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.rsr-average {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.rsr-separator {
    margin: 0 2px;
    color: #999;
}

.rsr-max {
    color: #999;
}

.rsr-count {
    color: #888;
    font-size: 13px;
    margin-left: 4px;
}

.rsr-message {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.rsr-message.rsr-success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsr-message.rsr-error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rsr-already-rated {
    font-size: 13px;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

.rsr-rating-container.rsr-loading .rsr-stars {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 480px) {
    .rsr-rating-container {
        padding: 20px 16px;
    }
    
    .rsr-stars-wrapper {
        flex-direction: column;
        gap: 4px;
    }
}
