/* ============================================================
   RAEES IMPORT & EXPORT
   WHATSAPP FLOAT
   File: /public_html/assets/css/components/whatsapp-float.css
   ============================================================ */


/* ============================================================
   01. WHATSAPP FLOAT
   ============================================================ */

.whatsapp-float {
    position: fixed !important;

    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    top: auto !important;

    z-index: 9998 !important;

    display: inline-flex !important;

    width: auto !important;
    min-width: 56px;
    height: 56px;

    align-items: center !important;
    justify-content: center !important;

    gap: 10px;

    margin: 0 !important;
    padding: 0 20px 0 7px !important;

    border: 0 !important;
    border-radius: 999px !important;

    color: #ffffff !important;
    background: #25D366 !important;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1 !important;

    text-decoration: none !important;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        0 5px 15px rgba(37, 211, 102, 0.22);

    visibility: visible !important;
    opacity: 1 !important;

    transform: translate3d(0, 0, 0);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;

    isolation: isolate;
}


/* ============================================================
   02. ICON
   ============================================================ */

.whatsapp-float-icon {
    position: relative;

    display: grid !important;

    flex: 0 0 44px;

    width: 44px !important;
    height: 44px !important;

    place-items: center;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50%;

    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);

    font-size: 22px !important;
    line-height: 1 !important;
}

.whatsapp-float-icon i {
    display: block;

    margin: 0;
    padding: 0;

    color: #ffffff !important;

    font-size: 22px !important;
    line-height: 1 !important;
}


/* ============================================================
   03. TEXT
   ============================================================ */

.whatsapp-float-text {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1 !important;

    white-space: nowrap;
}


/* ============================================================
   04. HOVER
   ============================================================ */

.whatsapp-float:hover {
    color: #ffffff !important;
    background: #20bd5a !important;

    text-decoration: none !important;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.22),
        0 7px 20px rgba(37, 211, 102, 0.30);

    transform: translateY(-3px);
}

.whatsapp-float:hover .whatsapp-float-icon,
.whatsapp-float:hover .whatsapp-float-text,
.whatsapp-float:hover i {
    color: #ffffff !important;
}


/* ============================================================
   05. FOCUS
   ============================================================ */

.whatsapp-float:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.28);
    outline-offset: 4px;
}


/* ============================================================
   06. ACTIVE
   ============================================================ */

.whatsapp-float:active {
    transform: translateY(-1px) scale(0.98);
}


/* ============================================================
   07. MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .whatsapp-float {
        right: 18px !important;
        bottom: 18px !important;

        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;

        gap: 0;

        padding: 0 !important;

        border-radius: 50% !important;

        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.20),
            0 5px 14px rgba(37, 211, 102, 0.24);
    }

    .whatsapp-float-icon {
        flex: 0 0 54px;

        width: 54px !important;
        height: 54px !important;

        background: transparent;
    }

    .whatsapp-float-icon i {
        font-size: 25px !important;
    }

    .whatsapp-float-text {
        display: none !important;
    }

}


/* ============================================================
   08. SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .whatsapp-float {
        right: 15px !important;
        bottom: 15px !important;

        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
    }

    .whatsapp-float-icon {
        flex-basis: 52px;

        width: 52px !important;
        height: 52px !important;
    }

    .whatsapp-float-icon i {
        font-size: 24px !important;
    }

}


/* ============================================================
   09. SAFE AREA - MOBILE DEVICES
   ============================================================ */

@supports (
    bottom: env(safe-area-inset-bottom)
) {

    .whatsapp-float {
        bottom: calc(
            24px + env(safe-area-inset-bottom)
        ) !important;
    }

    @media (max-width: 767px) {

        .whatsapp-float {
            bottom: calc(
                18px + env(safe-area-inset-bottom)
            ) !important;
        }

    }

    @media (max-width: 420px) {

        .whatsapp-float {
            bottom: calc(
                15px + env(safe-area-inset-bottom)
            ) !important;
        }

    }

}


/* ============================================================
   10. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .whatsapp-float {
        transition: none !important;
    }

}