/* Correctif CSS pour le bouton de fermeture du chat */

/* S'assurer que le bouton de fermeture est visible et cliquable */
.chat-close-btn,
#chatCloseBtn,
.close-chat,
[data-action="close-chat"],
.chat-header button {
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* S'assurer que l'en-tête du chat n'empêche pas les clics */
.chat-header {
    position: relative !important;
    z-index: 9998 !important;
}

/* S'assurer que la fenêtre de chat est au bon niveau (SANS !important pour permettre réouverture) */
#chatWindow,
.chat-window {
    z-index: 9997;
}

/* Style visuel du bouton de fermeture pour le rendre évident */
.chat-close-btn:hover,
#chatCloseBtn:hover,
.close-chat:hover {
    background-color: rgba(255, 0, 0, 0.1) !important;
    transform: scale(1.1) !important;
    transition: all 0.2s ease !important;
}
