/* CN_REV_WHATSAPP_FLOAT_V104F75B */

#cn-rev-whatsapp-float-v1 {
    position: fixed;
    right: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483000;
    pointer-events: none;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    transition: bottom 220ms ease, right 220ms ease;
}

#cn-rev-whatsapp-float-v1 .cn-wa-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: auto;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#cn-rev-whatsapp-float-v1 .cn-wa-bubble {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: 58px;
    max-width: 240px;
    padding: 10px 16px;
    white-space: nowrap;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(24, 37, 59, 0.98),
            rgba(10, 17, 31, 0.98)
        );
    border: 1px solid rgba(78, 255, 152, 0.30);
    border-radius: 17px;
    box-shadow:
        0 15px 38px rgba(0, 0, 0, 0.48),
        0 0 26px rgba(37, 211, 102, 0.12);
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transform-origin: right center;
    transition:
        max-width 300ms cubic-bezier(.2, .9, .25, 1),
        min-height 300ms ease,
        padding 300ms ease,
        opacity 200ms ease,
        transform 300ms cubic-bezier(.2, .9, .25, 1),
        border-width 200ms ease;
}

#cn-rev-whatsapp-float-v1 .cn-wa-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 10px;
    height: 10px;
    background: rgba(13, 22, 38, 0.98);
    border-top: 1px solid rgba(78, 255, 152, 0.30);
    border-right: 1px solid rgba(78, 255, 152, 0.30);
    transform: translateY(-50%) rotate(45deg);
}

#cn-rev-whatsapp-float-v1 .cn-wa-bubble strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.15px;
}

#cn-rev-whatsapp-float-v1 .cn-wa-bubble span {
    display: block;
    margin-top: 4px;
    color: #b3c1d5;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

#cn-rev-whatsapp-float-v1 .cn-wa-button {
    position: relative;
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    box-sizing: border-box;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 31% 24%,
            #66f49b 0%,
            #25d366 42%,
            #10a94e 100%
        );
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    box-shadow:
        0 15px 36px rgba(0, 0, 0, 0.50),
        0 0 0 6px rgba(37, 211, 102, 0.10),
        0 0 30px rgba(37, 211, 102, 0.38);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
    animation:
        cnWaEnterV1 500ms cubic-bezier(.15, .9, .25, 1) both,
        cnWaFloatV1 3.5s ease-in-out 600ms infinite;
}

#cn-rev-whatsapp-float-v1 .cn-wa-button::before {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(37, 211, 102, 0.38);
    border-radius: inherit;
    opacity: 0;
    animation: cnWaRingV1 2.8s ease-out 1s infinite;
}

#cn-rev-whatsapp-float-v1 .cn-wa-button::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 9px;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border: 2px solid #11ad50;
    border-radius: 50%;
    box-shadow: 0 0 11px rgba(255, 255, 255, 0.85);
}

#cn-rev-whatsapp-float-v1 .cn-wa-button svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 34px;
    height: 34px;
    fill: currentColor;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
}

#cn-rev-whatsapp-float-v1 .cn-wa-link:hover .cn-wa-button,
#cn-rev-whatsapp-float-v1 .cn-wa-link:focus-visible .cn-wa-button {
    filter: brightness(1.07);
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        0 19px 43px rgba(0, 0, 0, 0.54),
        0 0 0 8px rgba(37, 211, 102, 0.13),
        0 0 38px rgba(37, 211, 102, 0.52);
}

#cn-rev-whatsapp-float-v1 .cn-wa-link:active .cn-wa-button {
    transform: scale(0.96);
}

#cn-rev-whatsapp-float-v1.cn-wa-resting .cn-wa-bubble {
    min-height: 0;
    max-width: 0;
    padding-right: 0;
    padding-left: 0;
    border-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px) scale(0.94);
}

#cn-rev-whatsapp-float-v1.cn-wa-resting:hover .cn-wa-bubble,
#cn-rev-whatsapp-float-v1.cn-wa-resting:focus-within .cn-wa-bubble,
#cn-rev-whatsapp-float-v1.cn-wa-speaking .cn-wa-bubble {
    min-height: 58px;
    max-width: 240px;
    padding: 10px 16px;
    border-width: 1px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

@keyframes cnWaEnterV1 {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.72);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cnWaFloatV1 {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes cnWaRingV1 {
    0% {
        opacity: 0.55;
        transform: scale(0.82);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.42);
    }
}

@media (max-width: 700px) {
    #cn-rev-whatsapp-float-v1 {
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    #cn-rev-whatsapp-float-v1 .cn-wa-link {
        gap: 9px;
    }

    #cn-rev-whatsapp-float-v1 .cn-wa-button {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    #cn-rev-whatsapp-float-v1 .cn-wa-button svg {
        width: 31px;
        height: 31px;
    }

    #cn-rev-whatsapp-float-v1 .cn-wa-bubble,
    #cn-rev-whatsapp-float-v1.cn-wa-resting:hover .cn-wa-bubble,
    #cn-rev-whatsapp-float-v1.cn-wa-resting:focus-within .cn-wa-bubble,
    #cn-rev-whatsapp-float-v1.cn-wa-speaking .cn-wa-bubble {
        max-width: 205px;
        padding: 9px 13px;
    }
}

@media (max-width: 390px) {
    #cn-rev-whatsapp-float-v1 .cn-wa-bubble,
    #cn-rev-whatsapp-float-v1.cn-wa-resting:hover .cn-wa-bubble,
    #cn-rev-whatsapp-float-v1.cn-wa-resting:focus-within .cn-wa-bubble,
    #cn-rev-whatsapp-float-v1.cn-wa-speaking .cn-wa-bubble {
        max-width: 180px;
    }

    #cn-rev-whatsapp-float-v1 .cn-wa-bubble span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cn-rev-whatsapp-float-v1 *,
    #cn-rev-whatsapp-float-v1 *::before,
    #cn-rev-whatsapp-float-v1 *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
