/* Explain: Styles for the floating WhatsApp button. */
/* ===== Floating WhatsApp button — appears on every page and opens a chat with a ready message ===== */
.wa-float {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: calc(100vw - 2rem);
    padding: 0.6rem;
    color: #ffffff;
    background: #25d366;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    box-shadow: 0 16px 32px -16px rgba(20, 16, 10, 0.75);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
    background: #1eb958;
    color: #ffffff;
    transform: translateY(-2px);
}

.wa-float-icon {
    font-size: 1.55rem;
    line-height: 1;
}

.wa-float-text {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .wa-float {
        padding: 0.55rem 1.05rem 0.55rem 0.8rem;
    }

    .wa-float-text {
        display: block;
    }
}

.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #25d366;
    border-radius: inherit;
    animation: waFloatPulse 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes waFloatPulse {
    0% {
        opacity: 0.65;
        transform: scale(1);
    }
    70% {
        opacity: 0;
        transform: scale(1.35);
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float::after {
        animation: none;
        opacity: 0;
    }
}

html.a11y-no-anim .wa-float::after {
    animation: none;
    opacity: 0;
}