/* Container for the entire rating widget */
.asr-rating-container {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    clear: both;
}

/* User Rating Area */
.asr-user-rating h3 {
    font-size: 1.1em;
    margin-top: 0;
}

/* Star Rating CSS Hack */
.stars-wrapper {
    display: flex;
    flex-direction: row-reverse; 
    justify-content: flex-end;
    width: 150px; 
    height: 30px;
    overflow: hidden;
    /* CSS Variables are received from PHP inline style */
}

.stars-wrapper input {
    display: none; /* Hide the actual radio buttons */
}

/* Styling the labels as stars */
.stars-wrapper label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
    background: none;
    color: var(--asr-default-color); /* Default color from settings */
}

/* Displaying the star character itself */
.stars-wrapper label::before {
    content: "★"; 
}

/* Hover effect */
.stars-wrapper:not(.processing) label:hover, 
.stars-wrapper:not(.processing) label:hover ~ label {
    color: var(--asr-rated-color); /* Rated color from settings on hover */
}

/* Selected/Checked state */
.stars-wrapper input:checked ~ label {
    color: var(--asr-rated-color); 
}

/* Message Area */
.asr-message {
    margin-top: 5px;
    min-height: 20px;
    font-weight: bold;
}
.asr-message .success-message {
    color: green;
}
.asr-message .error-message {
    color: red;
}

.asr-average-display {
    font-size: 1.1em;
    font-weight: 500;
}