/* ============================================================
   FLOATING WHATSAPP BUTTON
   Layout: [Chat with us pill] [× ] [● WhatsApp circle]
   All on one row, anchored to bottom-right
   ============================================================ */

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 99999;
    /* Row: tooltip on left, button on right */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

/* ── Pill tooltip ── */
.wa-tooltip {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 16px 10px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    /* hidden until shown */
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.wa-tooltip.wa-tooltip-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.wa-tooltip span {
    line-height: 1;
}

/* × dismiss inside pill */
.wa-tooltip-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #555;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
    pointer-events: auto;
}

.wa-tooltip-close:hover {
    background: #ccc;
    color: #111;
}

/* ── Circular WhatsApp button ── */
.wa-btn {
    pointer-events: auto;
    position: relative;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5),
                0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6),
                0 4px 12px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.wa-btn:active {
    transform: scale(0.96);
}

.wa-btn i {
    position: relative;
    z-index: 1;
}

/* Pulse rings */
.wa-btn::before,
.wa-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2.6s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

.wa-btn::after {
    animation-delay: 1.3s;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.65; }
    70%  { transform: scale(1.8); opacity: 0;    }
    100% { transform: scale(1.8); opacity: 0;    }
}

/* ── Mobile ── */
@media (max-width: 575.98px) {
    .wa-float {
        bottom: 72px;
        right: 14px;
        gap: 8px;
    }

    .wa-btn {
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }

    .wa-tooltip {
        font-size: 0.8rem;
        padding: 8px 12px 8px 16px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .wa-btn::before,
    .wa-btn::after { animation: none; }
    .wa-btn        { transition: none; }
    .wa-tooltip    { transition: none; }
}