/* -------------------------------
   Box général du chat
--------------------------------*/

#scfr-chat-box,
#scfr-admin-chat-box {
    max-width: 900px;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    height: 450px;
    overflow-y: auto;
    margin-bottom: 25px;
}


/* -------------------------------
   Ligne d'un message
--------------------------------*/

.scfr-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}


/* -------------------------------
   Avatar (photo profil WordPress)
--------------------------------*/

.scfr-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}


/* -------------------------------
   Conteneur message
--------------------------------*/

.scfr-msg {
    max-width: 80%;
}

.scfr-bubble {
    padding: 12px 15px;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

/* Message Utilisateur = Bleu clair */
.scfr-msg.user .scfr-bubble {
    background: #f5f5f5;
}

/* Message Admin = Jaune clair */
.scfr-msg.admin .scfr-bubble {
    background: #e9ecef;
}

/* Temps du message */
.scfr-time {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}


/* -------------------------------
   Formulaire d'envoi (Front-end)
--------------------------------*/

#scfr-chat-form {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#scfr-chat-form textarea,
#scfr-chat-form textarea:focus {
    width: 100%;
    height: 100px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

#scfr-chat-form button {
    width: 150px;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    background: #2d6760;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

#scfr-chat-form button:hover {
    background: #24504b;
}


/* -------------------------------
   Formulaire admin (déjà WP style)
--------------------------------*/

button.button-primary {
    background-color: #2d6760 !important;
}
