/* =========================================================
   SAVVY LEATHER CRAFT
   WHATSAPP FLOATING BUTTON
   ========================================================= */


/* =========================================================
   WIDGET
   ========================================================= */

.whatsapp-widget {

    position: fixed;

    right: 24px;

    bottom: 24px;

    z-index: 1050;

    display: flex;

    align-items: center;

    justify-content: flex-end;

}


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

.whatsapp-button {

    position: relative;

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 50%;

    background: #25D366;

    color: #fff;

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(37, 211, 102, 0.30);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        width 0.3s ease,
        border-radius 0.3s ease;

}


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

.whatsapp-icon {

    width: 28px;

    height: 28px;

    flex-shrink: 0;

}


/* =========================================================
   BUTTON TEXT
   ========================================================= */

.whatsapp-button-text {

    display: none;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .3px;

    white-space: nowrap;

}


/* =========================================================
   HOVER
   ========================================================= */

.whatsapp-button:hover {

    width: 132px;

    border-radius: 30px;

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(37, 211, 102, 0.38);

}


.whatsapp-button:hover
.whatsapp-button-text {

    display: block;

}


/* =========================================================
   TOOLTIP
   ========================================================= */

.whatsapp-tooltip {

    position: absolute;

    right: 72px;

    bottom: 4px;

    width: 175px;

    padding: 12px 15px;

    background: #211b17;

    color: #fff;

    border-radius: 6px;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.18);

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(8px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    pointer-events: none;

}


/* tooltip arrow */

.whatsapp-tooltip::after {

    content: "";

    position: absolute;

    right: -6px;

    top: 50%;

    width: 12px;

    height: 12px;

    background: #211b17;

    transform:
        translateY(-50%)
        rotate(45deg);

}


.whatsapp-tooltip strong {

    display: block;

    margin-bottom: 3px;

    font-size: 11px;

    font-weight: 700;

}


.whatsapp-tooltip span {

    display: block;

    color: #b9aea4;

    font-size: 9px;

    line-height: 1.4;

}


/* =========================================================
   SHOW TOOLTIP
   ========================================================= */

.whatsapp-widget:hover
.whatsapp-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(0);

}


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

.whatsapp-button::before {

    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 50%;

    border: 1px solid
        rgba(37, 211, 102, .35);

    animation:
        whatsapp-pulse
        2.4s
        ease-out
        infinite;

}


@keyframes whatsapp-pulse {

    0% {

        transform: scale(.9);

        opacity: .8;

    }

    70% {

        transform: scale(1.2);

        opacity: 0;

    }

    100% {

        transform: scale(1.2);

        opacity: 0;

    }

}


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

@media (max-width: 820px) {

    .whatsapp-widget {

        right: 18px;

        bottom: 18px;

    }


    .whatsapp-button {

        width: 54px;

        height: 54px;

    }


    .whatsapp-icon {

        width: 26px;

        height: 26px;

    }


    .whatsapp-tooltip {

        display: none;

    }


    .whatsapp-button:hover {

        width: 54px;

        border-radius: 50%;

        transform:
            translateY(-3px);

    }


    .whatsapp-button:hover
    .whatsapp-button-text {

        display: none;

    }

}


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

@media (max-width: 480px) {

    .whatsapp-widget {

        right: 15px;

        bottom: 15px;

    }


    .whatsapp-button {

        width: 52px;

        height: 52px;

    }


    .whatsapp-icon {

        width: 25px;

        height: 25px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .whatsapp-button,
    .whatsapp-tooltip {

        transition: none;

    }


    .whatsapp-button::before {

        animation: none;

    }

}