/* Estilos para el popup de valoración */
#popup-main {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#popup-main.popup-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

#backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

#backdrop.backdrop {
    display: block;
}

#popup {
    display: none;
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

#popup.open-popup {
    display: block;
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

#close-popup:hover {
    color: #333;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin: 20px 0;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: #ccc;
    transition: color 0.3s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: #ffcc00;
}

.comment-area {
    margin: 20px 0;
}

.comment-area textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

#btn-submit-review {
    background-color: var(--primary-color, #3BB77E);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#btn-submit-review:hover {
    background-color: var(--secondary-color, #29A56C);
}
