.rating-user {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
}

#reviewModal {
    --bs-modal-zindex: 1305;
}

.modal-backdrop.show {
    z-index: 1295;
}

#reviewModal .new-review-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

#reviewModal .review-upload-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

#reviewModal .review-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rating-user input {
    display: none;
}

.rating-user label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

/* Hover effect */
.rating-user label:hover,
.rating-user label:hover ~ label {
    color: #FFD700;
}

/* Checked effect for the selected star and all previous stars */
.rating-user input:checked + label {
    color: #FFD700; /* Highlight the selected star */
}

.rating-user input:checked + label ~ label {
    color: #ccc; /* Reset the color of the stars after the selected one */
}

/* This rule ensures that all previous stars are highlighted */
.rating-user input:checked + label,
.rating-user input:checked + label ~ label {
    color: #FFD700; /* Highlight all stars up to the selected one */
}
