/* === Widget global === */
#mwac-widget {
    position: fixed;
    bottom: 40px;
    right: 20px;
    font-family: Arial, sans-serif;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* === Bouton WhatsApp === */
#mwac-button {
    -background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#mwac-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* === Popup === */
#mwac-popup {
    display: none;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

/* === Header === */
.mwac-header {
    background: #25D366;
    color: #fff;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

#mwac-close {
    cursor: pointer;
    font-size: 18px;
}

/* === Body === */
.mwac-body {
    padding: 12px;
}

.mwac-body p {
    margin: 0 0 10px;
    font-size: 14px;
}

/* === Users (Sfax / Tunis) === */
.mwac-user {
    padding: 10px;
    border-radius: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.mwac-user:last-child {
    border-bottom: none;
}

.mwac-user:hover {
    background: #f5f5f5;
}

.mwac-user strong {
    font-size: 14px;
}

.mwac-user small {
    color: #666;
    font-size: 12px;
}
/* === User avec icône WhatsApp === */
.mwac-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mwac-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mwac-icon svg {
    width: 100%;
    height: 100%;
}

/* Contenu texte */
.mwac-text {
    line-height: 1.3;
}

/* Option UX (petit effet sympa) */
.mwac-user:hover .mwac-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* === Animation === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Cacher le bouton quand popup ouverte */
#mwac-widget.mwac-open #mwac-button {
    display: none;
}