/* Overlay de la popup */
.tlvcar-ratings-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Popup principale */
.tlvcar-ratings-popup {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* En-tête de la popup */
.tlvcar-ratings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f6f7f7;
    border-bottom: 1px solid #ddd;
}

.tlvcar-ratings-popup-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.tlvcar-ratings-popup-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #646970;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s;
}

.tlvcar-ratings-popup-close:hover {
    color: #1d2327;
}

/* Filtres */
.tlvcar-ratings-popup-filters {
    padding: 15px 25px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.tlvcar-ratings-popup-filters label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
    color: #1d2327;
}

.tlvcar-ratings-popup-filters select {
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

.tlvcar-ratings-popup-filters select:hover {
    border-color: #2271b1;
}

.tlvcar-ratings-popup-filters select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Contenu de la popup */
.tlvcar-ratings-popup-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

.tlvcar-ratings-comments-list {
    padding: 0;
}

.tlvcar-rating-comment-item {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.tlvcar-rating-comment-item:last-child {
    border-bottom: none;
}

.tlvcar-rating-comment-item:hover {
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .tlvcar-ratings-popup {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .tlvcar-ratings-popup-header {
        padding: 15px 20px;
    }
    
    .tlvcar-ratings-popup-header h2 {
        font-size: 18px;
    }
    
    .tlvcar-ratings-popup-filters {
        padding: 12px 20px;
    }
    
    .tlvcar-ratings-popup-filters select {
        width: 100%;
        margin-top: 8px;
    }
    
    .tlvcar-rating-comment-item {
        padding: 15px 20px;
    }
    
    .tlvcar-ratings-popup-content {
        max-height: 70vh;
    }
}

/* Style pour le lien "Voir les commentaires" */
.tlvcar-view-ratings-link {
    transition: color 0.2s;
}

.tlvcar-view-ratings-link:hover {
    color: #135e96 !important;
    text-decoration: underline !important;
}





