/* =========================================================
   WISHWAA INTERIOR DESIGNING PRIVATE LIMITED
   FLOATING CALL + WHATSAPP ACTION BUTTONS
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --wsh-float-blue: #0755A5;
    --wsh-float-blue-dark: #063B73;

    --wsh-float-whatsapp: #25D366;
    --wsh-float-whatsapp-dark: #128C7E;

    --wsh-float-white: #FFFFFF;

    --wsh-float-dark: #171717;

}


/* =========================================================
   FLOATING ACTION WRAPPER
========================================================= */

.wsh-floating-actions {

    position: fixed;

    left: 18px;

    top: 50%;

    z-index: 9990;

    width: auto;

    height: auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 0;

    padding: 0;

    transform: translateY(-50%);

}


/* =========================================================
   COMMON ACTION BUTTON
========================================================= */

.wsh-floating-action {

    position: relative;

    width: 56px;

    min-width: 56px;

    max-width: 56px;

    height: 56px;

    min-height: 56px;

    max-height: 56px;

    flex: 0 0 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    margin: 0;

    border: 0;

    border-radius: 50%;

    outline: none;

    box-sizing: border-box;

    color: #FFFFFF;

    text-decoration: none;

    overflow: visible;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.20);

    transform: translateZ(0);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


/* =========================================================
   CALL BUTTON
========================================================= */

.wsh-floating-call {

    background:
        linear-gradient(
            135deg,
            var(--wsh-float-blue) 0%,
            var(--wsh-float-blue-dark) 100%
        );

}


/* =========================================================
   WHATSAPP BUTTON
========================================================= */

.wsh-floating-whatsapp {

    background:
        linear-gradient(
            135deg,
            var(--wsh-float-whatsapp) 0%,
            var(--wsh-float-whatsapp-dark) 100%
        );

}


/* =========================================================
   ICON CONTAINER
========================================================= */

.wsh-floating-icon {

    width: 56px;

    min-width: 56px;

    max-width: 56px;

    height: 56px;

    min-height: 56px;

    max-height: 56px;

    flex: 0 0 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    margin: 0;

    border: 0;

    border-radius: 50%;

    box-sizing: border-box;

    color: #FFFFFF;

    background: transparent;

}


/* =========================================================
   ICON
========================================================= */

.wsh-floating-icon i {

    display: block;

    margin: 0;

    padding: 0;

    color: #FFFFFF;

    font-size: 20px;

    line-height: 1;

    text-align: center;

}


/* =========================================================
   DESKTOP HOVER
========================================================= */

.wsh-floating-action:hover {

    color: #FFFFFF;

    transform: translateY(-2px) scale(1.07);

    box-shadow:
        0 13px 32px rgba(0, 0, 0, 0.28);

}


/* =========================================================
   TOOLTIP
========================================================= */

.wsh-floating-tooltip {

    position: absolute;

    left: calc(100% + 13px);

    top: 50%;

    z-index: 10;

    padding: 10px 14px;

    border-radius: 5px;

    background: var(--wsh-float-dark);

    color: #FFFFFF;

    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-50%)
        translateX(-8px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

}


/* =========================================================
   TOOLTIP ARROW
========================================================= */

.wsh-floating-tooltip::before {

    content: "";

    position: absolute;

    left: -5px;

    top: 50%;

    width: 10px;

    height: 10px;

    background: var(--wsh-float-dark);

    transform:
        translateY(-50%)
        rotate(45deg);

}


/* =========================================================
   SHOW TOOLTIP
========================================================= */

.wsh-floating-action:hover
.wsh-floating-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);

}


/* =========================================================
   CALL OUTER PULSE
========================================================= */

.wsh-floating-call::before {

    content: "";

    position: absolute;

    inset: -4px;

    z-index: -1;

    border-radius: 50%;

    border: 2px solid rgba(7, 85, 165, 0.50);

    pointer-events: none;

    animation:
        wsh-call-pulse 2.6s ease-out infinite;

}


@keyframes wsh-call-pulse {

    0% {

        opacity: .75;

        transform: scale(.92);

    }

    55% {

        opacity: 0;

        transform: scale(1.35);

    }

    100% {

        opacity: 0;

        transform: scale(1.35);

    }

}


/* =========================================================
   CALL PHONE RING
========================================================= */

.wsh-floating-call
.wsh-floating-icon i {

    animation:
        wsh-phone-ring 3s ease-in-out infinite;

}


@keyframes wsh-phone-ring {

    0%,
    58%,
    100% {

        transform: rotate(0deg);

    }

    62% {

        transform: rotate(-13deg);

    }

    66% {

        transform: rotate(13deg);

    }

    70% {

        transform: rotate(-10deg);

    }

    74% {

        transform: rotate(7deg);

    }

    78% {

        transform: rotate(0deg);

    }

}


/* =========================================================
   WHATSAPP OUTER PULSE
========================================================= */

.wsh-floating-whatsapp::before {

    content: "";

    position: absolute;

    inset: -4px;

    z-index: -1;

    border-radius: 50%;

    border: 2px solid rgba(37, 211, 102, 0.42);

    pointer-events: none;

    animation:
        wsh-whatsapp-pulse 3.2s ease-out infinite;

    animation-delay: 1.2s;

}


@keyframes wsh-whatsapp-pulse {

    0% {

        opacity: .70;

        transform: scale(.92);

    }

    55% {

        opacity: 0;

        transform: scale(1.35);

    }

    100% {

        opacity: 0;

        transform: scale(1.35);

    }

}


/* =========================================================
   WHATSAPP ICON
========================================================= */

.wsh-floating-whatsapp
.wsh-floating-icon i {

    transform: scale(1);

    transition:
        transform .25s ease;

}


.wsh-floating-whatsapp:hover
.wsh-floating-icon i {

    transform: scale(1.10);

}


/* =========================================================
   FOCUS
========================================================= */

.wsh-floating-action:focus-visible {

    outline: 2px solid #FFFFFF;

    outline-offset: 4px;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .wsh-floating-actions {

        left: 15px;

        top: auto;

        bottom: 25px;

        transform: none;

        gap: 10px;

    }


    .wsh-floating-action {

        width: 54px;

        min-width: 54px;

        max-width: 54px;

        height: 54px;

        min-height: 54px;

        max-height: 54px;

        flex: 0 0 54px;

        border-radius: 50%;

    }


    .wsh-floating-icon {

        width: 54px;

        min-width: 54px;

        max-width: 54px;

        height: 54px;

        min-height: 54px;

        max-height: 54px;

        flex: 0 0 54px;

        border-radius: 50%;

    }


    .wsh-floating-icon i {

        font-size: 19px;

    }


    .wsh-floating-tooltip {

        display: none;

    }


    .wsh-floating-action:hover {

        transform: translateY(-2px) scale(1.05);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .wsh-floating-actions {

        position: fixed !important;

        left: 14px !important;

        right: auto !important;

        top: auto !important;

        bottom: 18px !important;

        width: auto !important;

        height: auto !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: center !important;

        gap: 9px !important;

        margin: 0 !important;

        padding: 0 !important;

        transform: none !important;

    }


    .wsh-floating-action,
    .wsh-floating-call,
    .wsh-floating-whatsapp {

        position: relative !important;

        width: 52px !important;

        min-width: 52px !important;

        max-width: 52px !important;

        height: 52px !important;

        min-height: 52px !important;

        max-height: 52px !important;

        flex: 0 0 52px !important;

        padding: 0 !important;

        margin: 0 !important;

        border: 0 !important;

        border-radius: 50% !important;

        outline: none;

        box-sizing: border-box !important;

        overflow: visible !important;

        transform: none !important;

    }


    .wsh-floating-icon {

        width: 52px !important;

        min-width: 52px !important;

        max-width: 52px !important;

        height: 52px !important;

        min-height: 52px !important;

        max-height: 52px !important;

        flex: 0 0 52px !important;

        padding: 0 !important;

        margin: 0 !important;

        border: 0 !important;

        border-radius: 50% !important;

        box-sizing: border-box !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

    }


    .wsh-floating-icon i {

        display: block !important;

        margin: 0 !important;

        padding: 0 !important;

        font-size: 18px !important;

        line-height: 1 !important;

    }


    .wsh-floating-tooltip {

        display: none !important;

    }


    .wsh-floating-action::after {

        display: none !important;

    }


    .wsh-floating-call::before,
    .wsh-floating-whatsapp::before {

        border-radius: 50% !important;

        inset: -4px !important;

    }


    .wsh-floating-action:hover {

        transform: scale(1.05) !important;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .wsh-floating-actions {

        left: 12px !important;

        bottom: 15px !important;

        gap: 8px !important;

    }


    .wsh-floating-action,
    .wsh-floating-call,
    .wsh-floating-whatsapp {

        width: 49px !important;

        min-width: 49px !important;

        max-width: 49px !important;

        height: 49px !important;

        min-height: 49px !important;

        max-height: 49px !important;

        flex-basis: 49px !important;

        border-radius: 50% !important;

    }


    .wsh-floating-icon {

        width: 49px !important;

        min-width: 49px !important;

        max-width: 49px !important;

        height: 49px !important;

        min-height: 49px !important;

        max-height: 49px !important;

        flex-basis: 49px !important;

        border-radius: 50% !important;

    }


    .wsh-floating-icon i {

        font-size: 17px !important;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .wsh-floating-actions {

        left: 10px !important;

        bottom: 12px !important;

        gap: 8px !important;

    }


    .wsh-floating-action,
    .wsh-floating-call,
    .wsh-floating-whatsapp {

        width: 46px !important;

        min-width: 46px !important;

        max-width: 46px !important;

        height: 46px !important;

        min-height: 46px !important;

        max-height: 46px !important;

        flex-basis: 46px !important;

        border-radius: 50% !important;

    }


    .wsh-floating-icon {

        width: 46px !important;

        min-width: 46px !important;

        max-width: 46px !important;

        height: 46px !important;

        min-height: 46px !important;

        max-height: 46px !important;

        flex-basis: 46px !important;

        border-radius: 50% !important;

    }


    .wsh-floating-icon i {

        font-size: 16px !important;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .wsh-floating-call::before,
    .wsh-floating-whatsapp::before,
    .wsh-floating-call
    .wsh-floating-icon i {

        animation: none !important;

    }


    .wsh-floating-action,
    .wsh-floating-tooltip,
    .wsh-floating-icon i {

        transition: none !important;

    }

}