/* =========================================
   FLOATING WHATSAPP - LEFT
========================================= */

.floating-whatsapp {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: var(--body-font, "Roboto", sans-serif);
}

/* =========================================
   MAIN BUTTON
========================================= */

.floating-whatsapp .main-whatsapp-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(37, 211, 102, .35),
        0 5px 15px rgba(0, 0, 0, .15);

    transition: all .35s ease;
    z-index: 3;
}

.floating-whatsapp .main-whatsapp-btn i {
    position: relative;
    z-index: 2;
    font-size: 30px;
    transition: transform .35s ease;
}

.floating-whatsapp .main-whatsapp-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(37, 211, 102, .45),
        0 8px 20px rgba(0, 0, 0, .18);
}

.floating-whatsapp .main-whatsapp-btn:hover i {
    transform: rotate(-8deg) scale(1.08);
}


/* =========================================
   PULSE
========================================= */

.floating-whatsapp .whatsapp-pulse {
    position: absolute;
    inset: -6px;
    border: 2px solid #25d366;
    border-radius: 50%;
    opacity: .5;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(.9);
        opacity: .7;
    }

    70% {
        transform: scale(1.25);
        opacity: 0;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}


/* =========================================
   CONTACT LIST
   MUNCUL DI ATAS TOMBOL
========================================= */

.floating-whatsapp .whatsapp-contacts {
    position: absolute;
    left: 0;
    bottom: 78px;

    width: 285px;
    padding: 14px;

    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px) scale(.96);
    transform-origin: bottom left;

    transition:
        opacity .3s ease,
        transform .3s ease,
        visibility .3s ease;
}


/* AKTIF */

.floating-whatsapp.active .whatsapp-contacts {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* =========================================
   LABEL
========================================= */

.floating-whatsapp .whatsapp-label {
    padding: 4px 8px 10px;
}

.floating-whatsapp .whatsapp-label span {
    font-family: var(--heading-font, "Sora", sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #222;
}


/* =========================================
   CONTACT ITEM
========================================= */

.floating-whatsapp .contact-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 11px;

    border-radius: 14px;

    text-decoration: none;

    transition: all .3s ease;
}

.floating-whatsapp .contact-item + .contact-item {
    margin-top: 5px;
}

.floating-whatsapp .contact-item:hover {
    background: #f5f7f6;
    transform: translateX(3px);
}


/* =========================================
   ICON
========================================= */

.floating-whatsapp .contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #25d366;
    color: #fff;

    box-shadow:
        0 5px 15px rgba(37, 211, 102, .2);
}

.floating-whatsapp .contact-icon i {
    font-size: 21px;
}


/* =========================================
   INFO
========================================= */

.floating-whatsapp .contact-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
}

.floating-whatsapp .contact-title {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.floating-whatsapp .contact-number {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}


/* =========================================
   ARROW
========================================= */

.floating-whatsapp .arrow-icon {
    font-size: 13px;
    color: #999;

    transition: all .3s ease;
}

.floating-whatsapp .contact-item:hover .arrow-icon {
    color: #25d366;
    transform: translate(2px, -2px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .floating-whatsapp {
        left: 18px;
        bottom: 18px;
    }

    .floating-whatsapp .main-whatsapp-btn {
        width: 56px;
        height: 56px;
    }

    .floating-whatsapp .main-whatsapp-btn i {
        font-size: 27px;
    }

    .floating-whatsapp .whatsapp-contacts {
        width: calc(100vw - 36px);
        max-width: 300px;
        bottom: 70px;
    }
}