.xlab-whatsapp-float {
    position: fixed;
    bottom: 24px;
    z-index: 1080;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .38);
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.xlab-whatsapp-float--right {
    right: 22px;
}

.xlab-whatsapp-float--left {
    left: 22px;
}

.xlab-whatsapp-float i {
    font-size: 32px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.xlab-whatsapp-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, .45);
    animation: xlabWhatsappPulse 2s ease-out infinite;
}

.xlab-whatsapp-float__label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #11131a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.xlab-whatsapp-float--left .xlab-whatsapp-float__label {
    right: auto;
    left: calc(100% + 12px);
}

.xlab-whatsapp-float:hover,
.xlab-whatsapp-float:focus {
    background: #1ebe57;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, .45);
}

.xlab-whatsapp-float:hover .xlab-whatsapp-float__label,
.xlab-whatsapp-float:focus .xlab-whatsapp-float__label {
    opacity: 1;
    visibility: visible;
}

.xlab-whatsapp-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1070;
    min-height: 58px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #25d366;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(17, 19, 26, .16);
}

.xlab-whatsapp-sticky i {
    font-size: 22px;
}

.xlab-whatsapp-sticky:hover,
.xlab-whatsapp-sticky:focus {
    background: #1ebe57;
    color: #fff;
    text-decoration: none;
}

@keyframes xlabWhatsappPulse {
    0% {
        transform: scale(1);
        opacity: .7;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media only screen and (max-width: 991px) {
    .xlab-whatsapp-sticky {
        display: flex;
    }

    .xlab-whatsapp-float--hide-mobile {
        display: none;
    }

    body:has(.xlab-whatsapp-sticky) {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    body:has(.xlab-whatsapp-sticky) .back-to-top {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }

    body:has(.xlab-whatsapp-sticky) #gdpr-cookie-message {
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .xlab-whatsapp-float__pulse {
        animation: none;
    }

    .xlab-whatsapp-float {
        transition: none;
    }
}
