.floatingButtonWrap {
    display: block;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999999;
}

.floatingButtonInner {
    position: relative;
}

.whatsappButton {
    display: block;
    width: 64px;
    height: 64px;
    text-align: center;
    background: #25d366;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    color: #fff;
    line-height: 64px;
    position: absolute;
    border-radius: 50%;
    bottom: 0px;
    right: 0px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.4s;
    overflow: hidden;
}

.whatsappButton .fa {
    font-size: 30px !important;
}

.whatsappButton:hover,
.whatsappButton:focus,
.whatsappButton:active {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.whatsappButton:active {
    transform: translateY(0);
}

.whatsappButton:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.35), 0 10px 25px rgba(0, 0, 0, 0.25);
}

.whatsappButton.whatsapp-only .fa {
    line-height: 64px;
}

.whatsappButton.whatsapp-only::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -120%;
    width: 70%;
    height: 140%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0) 80%);
    transform: skewX(-20deg);
    animation: whatsapp-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-shine {
    0% {
        left: -120%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    45% {
        left: 140%;
        opacity: 0;
    }
    100% {
        left: 140%;
        opacity: 0;
    }
}

.whatsappButton.attention {
    animation: whatsapp-attention 1.2s ease-in-out 2;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.whatsappButton.attention::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.35);
    animation: whatsapp-ring 1.2s ease-out 2;
    pointer-events: none;
}

@keyframes whatsapp-attention {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-2px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes whatsapp-ring {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 768px) {
    .floatingButtonWrap {
        bottom: 18px;
        right: 18px;
    }

    .whatsappButton {
        width: 58px;
        height: 58px;
        line-height: 58px;
    }

    .whatsappButton .fa {
        font-size: 27px !important;
    }

    .whatsappButton.whatsapp-only .fa {
        line-height: 58px;
    }
}

.whatsapp-welcome {
    position: fixed;
    right: 24px;
    bottom: 110px;
    z-index: 999999998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-welcome.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.whatsapp-welcome__card {
    background: #ffffff;
    color: #1f2937;
    width: 280px;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.whatsapp-welcome__title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.whatsapp-welcome__text {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 12px;
}

.whatsapp-welcome__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-welcome__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

.whatsapp-welcome__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.whatsapp-welcome__close:hover {
    color: #6b7280;
}

@media (max-width: 768px) {
    .whatsapp-welcome {
        right: 18px;
        bottom: 96px;
    }

    .whatsapp-welcome__card {
        width: 250px;
        padding: 12px;
    }
}
