/*
 * ==========================================================
 * ACTIONS GROUPÉES
 * ==========================================================
 */

.elteor-gestion-avis__actions-groupees {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 14px;
}


/*
 * Sélection de tous les avis
 * visibles sur la page courante.
 */
.elteor-gestion-avis__tout-selectionner {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}


/*
 * Future barre d'action.
 *
 * Pour l'instant elle reste visible
 * afin de valider uniquement le rendu.
 */
.elteor-gestion-avis__barre-selection {
    display: flex;
    align-items: center;
    gap: 12px;
}


/*
 * Compteur des avis sélectionnés.
 */
.elteor-gestion-avis__compteur-selection {
    font-size: 13px;
    opacity: 0.65;
}


/*
 * Bouton désactivé tant qu'aucun avis
 * n'est sélectionné.
 */
.elteor-gestion-avis__valider-selection:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/*
 * ==========================================================
 * SÉLECTION D'UNE CARTE
 * ==========================================================
 */

.elteor-gestion-avis__carte {
    position: relative;
}


/*
 * Checkbox discrète placée
 * dans le coin supérieur gauche.
 */
.elteor-gestion-avis__selection {
    position: absolute;
    top: 18px;
    left: 18px;

    display: flex;
    align-items: center;

    cursor: pointer;
}


/*
 * Décalage du contenu afin que
 * la checkbox ne chevauche pas les étoiles.
 */
.elteor-gestion-avis__selection
    + .elteor-gestion-avis__haut {
    padding-left: 28px;
}


/*
 * Taille volontairement sobre.
 */
.elteor-gestion-avis__selection-checkbox,
.elteor-gestion-avis__tout-selectionner-checkbox {
    width: 16px;
    height: 16px;

    margin: 0;

    cursor: pointer;
}

/* ==========================================================
 * ELTÉOR - GESTION DES AVIS
 * Page "Avis en attente"
 * ========================================================== */


/*
 * Liste des avis à traiter.
 *
 * Une seule colonne permet une lecture rapide
 * sous forme de file de travail.
 */
.elteor-gestion-avis__liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}


/*
 * Carte compacte représentant un avis.
 */
.elteor-gestion-avis__carte {
    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 14px;

    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/*
 * Survol volontairement discret.
 */
.elteor-gestion-avis__carte:hover {
    border-color: rgba(15, 39, 66, 0.16);

    box-shadow:
        0 4px 14px rgba(15, 39, 66, 0.04);
}


/*
 * Première ligne :
 * identité à gauche, date à droite.
 */
.elteor-gestion-avis__haut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 8px;
}


/*
 * Regroupe les étoiles
 * et le nom du client.
 */
.elteor-gestion-avis__identite {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


/*
 * Note de l'avis.
 */
.elteor-gestion-avis__note {
    display: flex;
    align-items: center;
    gap: 2px;

    line-height: 1;
}


/*
 * Nom du client.
 */
.elteor-gestion-avis__client {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    opacity: 0.72;
}


/*
 * Date de l'avis.
 */
.elteor-gestion-avis__date {
    flex: 0 0 auto;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    opacity: 0.55;
}


/*
 * Partie basse de la carte :
 * contenu à gauche, actions à droite.
 */
.elteor-gestion-avis__corps {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}


/*
 * Zone texte de l'avis.
 */
.elteor-gestion-avis__contenu {
    flex: 1 1 auto;
    min-width: 0;
}


/*
 * Titre de l'avis.
 */
.elteor-gestion-avis__titre-avis {
    margin: 0 0 4px;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
/*
 * Rappel discret du site actuellement
 * sélectionné dans les vues de gestion.
 */
.elteor-gestion-avis__titre-site {
    margin-left: 7px;

    color: #b87026;

    font-size: 14px;
    font-weight: 500;
}

.elteor-gestion-avis__titre {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}


/*
 * Commentaire.
 */
.elteor-gestion-avis__commentaire {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    opacity: 0.80;
}


/*
 * Actions de la carte.
 *
 * Elles restent visibles à droite
 * sans augmenter inutilement sa hauteur.
 */
.elteor-gestion-avis__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0;
    padding: 0;
}


/*
 * Style commun aux boutons.
 */
.elteor-gestion-avis__bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 7px 14px;

    border: 0;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


/*
 * Validation rapide.
 */
.elteor-gestion-avis__bouton--valider {
    color: #ffffff;
    background: #b87026;

    border: 1px solid #b87026;
}


/*
 * Ouverture du traitement détaillé.
 */
.elteor-gestion-avis__bouton--traiter {
    color: #b87026 !important;
    background: #ffffff !important;

    border: 1px solid #b87026;
}


.elteor-gestion-avis__bouton--traiter:hover {
    color: #ffffff !important;
    background: #b87026 !important;

    opacity: 1;
    transform: translateY(-1px);
}
/* ==========================================================
 * RESPONSIVE - TABLETTE ET MOBILE
 * ========================================================== */

@media (max-width: 767px) {

    .elteor-gestion-avis__actions-groupees {
        align-items: flex-start;
        flex-direction: column;
    }

    .elteor-gestion-avis__barre-selection {
        width: 100%;
        justify-content: space-between;
    }

    .elteor-gestion-avis__haut {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .elteor-gestion-avis__corps {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .elteor-gestion-avis__actions {
        justify-content: flex-start;
    }

    .elteor-gestion-avis__entete {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
/*
 * Zone de confirmation affichée après
 * un clic sur "Valider".
 */
.elteor-gestion-avis__confirmation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: auto;
    padding-top: 20px;
}


/*
 * Texte demandant au marchand
 * de confirmer la publication de l'avis.
 */
.elteor-gestion-avis__confirmation-texte {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: darkgreen;
}


/*
 * Bouton confirmant définitivement
 * la validation rapide.
 */
.elteor-gestion-avis__confirmation-valider {
    min-height: 36px;
    padding: 7px 14px;

    color: #ffffff;
    background: #b87026;

    border: 1px solid #b87026;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


/*
 * Bouton permettant d'annuler
 * la demande de validation rapide.
 */
.elteor-gestion-avis__confirmation-annuler {
    min-height: 36px;
    padding: 7px 14px;

    color: #b87026;
    background: #ffffff;

    border: 1px solid #b87026;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

/* =========================================================
   AVIS PUBLIÉS - ARCHIVE COMPACTE
   ========================================================= */

.elteor-avis-publies__filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 22px 0 24px;
}

.elteor-avis-publies__filtre {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 38px;

    padding: 7px 12px;

    border: 1px solid #dfe4e8;
    border-radius: 10px;

    color: #52616f;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.elteor-avis-publies__filtre:hover {
    border-color: #d48a3a;

    color: #b96d1f;
}

.elteor-avis-publies__filtre--actif {
    border-color: #d48a3a;

    background: #f8efe6;

    color: #b96d1f;
}

.elteor-avis-publies__filtre-etoiles {
    color: #ffae00;
}


/* =========================================================
   LISTE
   ========================================================= */

.elteor-avis-publies__liste {
    border-top: 1px solid #e2e6ea;
}

.elteor-avis-publies__ligne {
    padding: 18px 4px;

    border-bottom: 1px solid #e2e6ea;
}

.elteor-avis-publies__ligne-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 6px;
}

.elteor-avis-publies__identite {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.elteor-avis-publies__etoiles {
    display: inline-flex;

    white-space: nowrap;
}

.elteor-avis-publies__etoile {
    color: #ffae00;
}

.elteor-avis-publies__etoile--vide {
    color: #dce2e7;
}

.elteor-avis-publies__client {
    color: #52616f;

    font-size: 15px;
}

.elteor-avis-publies__date {
    flex: 0 0 auto;

    color: #8794a0;

    font-size: 14px;
}

.elteor-avis-publies__contenu {
    color: #52616f;

    font-size: 15px;
    line-height: 1.55;
}

.elteor-avis-publies__titre {
    color: #17324d;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.elteor-gestion-avis__pagination {
    margin-top: 28px;
}

.elteor-gestion-avis__pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.elteor-gestion-avis__pagination a,
.elteor-gestion-avis__pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #dfe4e8;
    border-radius: 9px;

    text-decoration: none;
}

.elteor-gestion-avis__pagination a {
    color: #52616f;
}

.elteor-gestion-avis__pagination a:hover {
    border-color: #d48a3a;

    color: #b96d1f;
}

.elteor-gestion-avis__pagination .current {
    border-color: #d48a3a;

    background: #f8efe6;

    color: #b96d1f;

    font-weight: 700;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .elteor-avis-publies__ligne-entete {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .elteor-avis-publies__identite {
        gap: 8px;
    }

    .elteor-avis-publies__filtres {
        gap: 6px;
    }
}

/* =========================================================
   AVIS MODÉRÉS - ARCHIVE COMPACTE
   ========================================================= */

.elteor-avis-moderes__liste {
    border-top: 1px solid #e2e6ea;
}

.elteor-avis-moderes__ligne {
    padding: 18px 4px;

    border-bottom: 1px solid #e2e6ea;
}

.elteor-avis-moderes__ligne-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 6px;
}

.elteor-avis-moderes__identite {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.elteor-avis-moderes__etoiles {
    display: inline-flex;

    white-space: nowrap;
}

.elteor-avis-moderes__etoile {
    color: #ffae00;
}

.elteor-avis-moderes__etoile--vide {
    color: #dce2e7;
}

.elteor-avis-moderes__client {
    color: #52616f;

    font-size: 15px;
}

.elteor-avis-moderes__date {
    flex: 0 0 auto;

    color: #8794a0;

    font-size: 14px;
}

.elteor-avis-moderes__contenu {
    color: #52616f;

    font-size: 15px;
    line-height: 1.55;
}

.elteor-avis-moderes__titre {
    color: #17324d;
}

.elteor-avis-moderes__motif {
    margin-top: 7px;

    color: #7b5e4c;

    font-size: 14px;
}

@media (max-width: 767px) {

    .elteor-avis-moderes__ligne-entete {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .elteor-avis-moderes__identite {
        gap: 8px;
    }
}

/*
 * Zone d'action d'un avis publié
 * n'ayant pas encore reçu de réponse.
 */
.elteor-avis-publies__actions {
    margin-top: 14px;
}


/*
 * Bouton permettant d'ouvrir
 * le panneau de réponse marchand.
 */
.elteor-avis-publies__bouton-repondre {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 16px;

    color: #ffffff;
    background: #b87026;

    border: 1px solid #b87026;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.elteor-avis-publies__bouton-repondre:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(184, 112, 38, 0.18);
}

/*
 * Réponse marchand repliable.
 *
 * Fermée par défaut afin de conserver
 * une archive d'avis compacte.
 */
.elteor-avis-publies__reponse {
    margin-top: 10px;
}


/*
 * Lien permettant d'afficher
 * ou masquer la réponse.
 */
.elteor-avis-publies__reponse-lien {
    display: inline-flex;
    align-items: center;

    font-size: 13px;
    font-weight: 600;

    color: #b87026;

    cursor: pointer;

    list-style: none;
}


/*
 * Suppression du marqueur natif
 * du navigateur.
 */
.elteor-avis-publies__reponse-lien::-webkit-details-marker {
    display: none;
}


/*
 * Petit indicateur visuel.
 */
.elteor-avis-publies__reponse-lien::after {
    content: "▾";

    margin-left: 6px;

    font-size: 11px;

    transition: transform 0.2s ease;
}


.elteor-avis-publies__reponse[open]
.elteor-avis-publies__reponse-lien::after {
    transform: rotate(180deg);
}


/*
 * Contenu visible uniquement
 * lorsque la réponse est dépliée.
 */
.elteor-avis-publies__reponse-contenu {
    margin-top: 10px;
    padding: 14px 16px;

    background: rgba(15, 39, 66, 0.035);

    border-left: 3px solid rgba(184, 112, 38, 0.65);
    border-radius: 0 10px 10px 0;
}

/*
 * En-tête de la réponse marchand.
 */
.elteor-avis-publies__reponse-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 6px;
}


.elteor-avis-publies__reponse-titre {
    font-size: 13px;
    font-weight: 700;
    color: #0f2742;
}


.elteor-avis-publies__reponse-date {
    font-size: 12px;
    color: rgba(15, 39, 66, 0.55);
}


/*
 * Texte de la réponse publiée.
 */
.elteor-avis-publies__reponse-texte {
    margin: 0;

    font-size: 14px;
    line-height: 1.55;

    color: rgba(15, 39, 66, 0.78);
}

/*
 * ==========================================================
 * NOMBRE D'AVIS PAR PAGE
 * ==========================================================
 */

.elteor-gestion-avis__entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


/*
 * Sélecteur du nombre d'avis
 * affichés par page.
 */
.elteor-gestion-avis__par-page {
    display: flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    font-size: 13px;
}


/*
 * Libellé.
 */
.elteor-gestion-avis__par-page-label,
.elteor-gestion-avis__par-page-texte {
    opacity: 0.65;
}


/*
 * Champ de sélection.
 */
.elteor-gestion-avis__par-page-select {
    width: auto;
    min-width: 66px;

    height: 36px;
    padding: 0 30px 0 11px;

    color: #0f2742;
    background-color: #ffffff;

    border: 1px solid rgba(15, 39, 66, 0.16);
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


/*
 * Focus clavier.
 */
.elteor-gestion-avis__par-page-select:focus {
    outline: none;

    border-color: rgba(184, 112, 38, 0.70);

    box-shadow:
        0 0 0 2px rgba(184, 112, 38, 0.10);
}

/* ==========================================================
 * CONTEXTE DES AVIS : SITE / PRODUITS
 * ========================================================== */

.elteor-gestion-avis__selecteur-type {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background: #f5f7fa;
}

.elteor-gestion-avis__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 7px 14px;
    border-radius: 7px;
    color: #596273;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.elteor-gestion-avis__type:hover,
.elteor-gestion-avis__type:focus {
    color: #10213b;
}

.elteor-gestion-avis__type--actif {
    background: #10213b;
    color: #ffffff!important;
    box-shadow: 0 2px 5px rgba(16, 33, 59, 0.18);
}

.elteor-gestion-avis__type--actif:hover,
.elteor-gestion-avis__type--actif:focus {
    color: #ffffff;
}

/* ----------------------------------------------------------
 * Repère produit dans une carte d'avis
 * ---------------------------------------------------------- */

.elteor-gestion-avis__repere-produit {
    display: flex;
    align-items: center;
    gap: 7px;

    max-width: 100%;
    margin: 0 0 7px;

    white-space: nowrap;
}

.elteor-gestion-avis__repere-produit-prefixe {
    flex: 0 0 auto;

    color: #7b8794;

    font-size: 12px;
    font-weight: 500;
}

.elteor-gestion-avis__repere-produit-libelle {
    min-width: 0;
    max-width: 420px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #a7652b;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

a.elteor-gestion-avis__repere-produit-libelle:hover,
a.elteor-gestion-avis__repere-produit-libelle:focus {
    color: #0e3158;
    text-decoration: underline;
}

.elteor-gestion-avis__repere-produit-reference {
    flex: 0 0 auto;

    padding: 2px 7px;

    border-radius: 999px;

    background: #f7efe8;
    color: #7b542f;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.elteor-gestion-avis__variation-produit {
    margin-top: 3px;

    color: #7b8794;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 767px) {
    .elteor-gestion-avis__selecteur-type {
        width: 100%;
    }

    .elteor-gestion-avis__type {
        flex: 1;
    }

    .elteor-gestion-avis__repere-produit-libelle {
        max-width: 210px;
    }
}


/* Avis publiés — provenance des imports et densité d'affichage */
.elteor-avis-publies__ligne {
    padding-top: 11px;
    padding-bottom: 11px;
}

.elteor-avis-publies__ligne-entete {
    margin-bottom: 3px;
}

.elteor-avis-publies__identite {
    gap: 8px;
}

.elteor-avis-publies__contenu {
    font-size: 14px;
    line-height: 1.42;
}

.elteor-avis-publies__date {
    font-size: 13px;
}

.elteor-avis-publies__provenance {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #e2cfba;
    border-radius: 999px;
    background: #fff8f0;
    color: #9a6028;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.elteor-avis-publies__actions {
    margin-top: 5px;
}

.elteor-avis-publies__reponse {
    margin-top: 5px;
}

.elteor-avis-publies__reponse-contenu {
    margin-top: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Avis publiés : bouton Répondre compact dans l'en-tête */
.elteor-avis-publies__identite {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

button.elteor-avis-publies__bouton-repondre.elteor-avis-publies__bouton-repondre--compact {
    width: auto !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;

    padding: 0 9px !important;
    margin: 0 !important;

    border-radius: 6px !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 24px !important;

    white-space: nowrap;
}