/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* --- Main Container --- */
.fwc-container {
    position: fixed;
    bottom: 25px;
    right: 25px; /* Jarak dari tepi kanan layar */
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* --- [SOLUSI FINAL] Tombol Utama --- */
.fwc-toggle-btn {
    /* Menggunakan inline-flex agar lebar tombol pas dengan konten */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Memberi jarak antara teks dan ikon */
    gap: 8px;

    /* Memberi warna latar dan bentuk pil */
    background-color: #075E54;
    color: #ffffff;
    
    /* Padding yang seimbang untuk memberi ruang di dalam tombol */
    padding: 12px 18px;
    border-radius: 50px;
    
    /* Standar styling */
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fwc-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Gaya untuk Teks "Customer Service" */
.fwc-trigger-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1; /* Memastikan tinggi teks konsisten */
}

/* Gaya untuk Ikon di dalam tombol */
.fwc-toggle-btn img {
    width: 28px;
    height: 28px;
    flex-shrink: 0; /* Mencegah ikon menyusut */
}
/* --- Akhir Solusi Final --- */


/* --- Chat Box --- */
.fwc-box {
    position: absolute;
    bottom: 120%; /* Posisi di atas tombol dengan sedikit jarak */
    right: 0;
    width: 350px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: bottom right;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
}

.fwc-box:not(.fwc-hidden) {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.fwc-hidden {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    pointer-events: none;
}


/* --- Box Header --- */
.fwc-header {
    background: linear-gradient(90deg, #075E54, #128C7E);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fwc-header-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.fwc-header-text p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.fwc-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.fwc-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Contact List --- */
.fwc-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fwc-contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid #f0f0f0;
}

.fwc-contact-item:hover {
    background-color: #f5f5f5;
    transform: translateX(4px);
    border-color: #e0e0e0;
}

.fwc-contact-icon {
    margin-right: 12px;
    color: #128C7E;
    background-color: #E6F3F1;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fwc-contact-details {
    flex-grow: 1;
}

.fwc-contact-label {
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    color: #1c1c1c;
}

.fwc-contact-action {
    font-size: 0.8rem;
    color: #666;
}

.fwc-arrow-icon {
    color: #aaa;
    transition: transform 0.2s ease;
}

.fwc-contact-item:hover .fwc-arrow-icon {
    transform: translateX(3px);
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 480px) {
    .fwc-container {
        right: 15px;
        bottom: 15px;
    }

    .fwc-toggle-btn {
        padding: 10px 16px;
        gap: 8px;
    }

    .fwc-trigger-text {
        font-size: 0.9rem;
    }

    .fwc-toggle-btn img {
        width: 24px;
        height: 24px;
    }

    .fwc-box {
        width: calc(100vw - 30px);
    }
}

