/* =================================== */
/* STYLE MODUL CHAT WHATSAPP       */
/* =================================== */

.wa-widget-container {
    font-family: Arial, sans-serif;
}

/* 1. Checkbox Toggle (Tersembunyi) */
.wa-toggle-checkbox {
    display: none;
}

/* 2. Tombol "Buka" (Hai, apa yang bisa saya bantu?) */
.wa-open-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* Warna hijau WA */
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 9998;
    transition: all 0.3s ease;
}

.wa-open-button:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.wa-open-button .fa-whatsapp {
    font-size: 24px;
    margin-right: 10px;
}

/* 3. Kotak Chat (Container utama) */
.wa-chat-box {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 340px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 9999;
    
    /* Sembunyikan secara default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease-out;
}

/* 4. Logika Tampil/Sembunyi */
.wa-toggle-checkbox:checked ~ .wa-chat-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Sembunyikan tombol "Buka" saat kotak chat terbuka */
.wa-toggle-checkbox:checked ~ .wa-open-button {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
}

/* Header Kotak Chat */
.wa-chat-header {
    background-color: #25D366; /* Warna hijau WA */
    color: white;
    padding: 20px;
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.wa-header-text {
    font-size: 16px;
    line-height: 1.4;
}

/* Tombol Close (X) */
.wa-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    line-height: 1;
}

/* Daftar Agen */
.wa-agent-list {
    background-color: #ffffff;
    padding: 10px;
    max-height: 400px; /* Batas tinggi jika agen banyak */
    overflow-y: auto;
}

.wa-agent-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.wa-agent-item:last-child {
    border-bottom: none;
}

.wa-agent-item:hover {
    background-color: #f7f7f7;
}

/* Foto Agen */
.wa-agent-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #eee;
}

/* Info Agen */
.wa-agent-info {
    display: flex;
    flex-direction: column;
}

.wa-agent-title {
    font-size: 12px;
    color: #888;
}

.wa-agent-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.wa-agent-status {
    font-size: 13px;
    color: #25D366; /* Warna hijau */
    font-weight: 500;
}