.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Button Body */
.wa-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
    cursor: pointer;
}

/* SVG Icon Coloring and Sizing */
.wa-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Interactive Hover States */
.wa-btn:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Soft Pulsing Ambient Glow Ring */
.wa-float::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    animation: wa-pulse 2s infinite ease-out;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip Layout and Typography */
.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: #1e293b;
    /* Matches var(--dark3) */
    color: #f8fafc;
    /* Matches var(--light) */
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

/* Tooltip Small Pointer Arrow */
.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #1e293b;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Trigger Tooltip Presentation State on Container Hover */
.wa-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* RESPONSIVE LAYOUT CONTROL */
@media (max-width: 768px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
    }

    .wa-btn {
        width: 52px;
        height: 52px;
    }

    .wa-btn svg {
        width: 28px;
        height: 28px;
    }

    .wa-float::after {
        width: 52px;
        height: 52px;
    }

    /* Hide the tooltip on mobile devices to prevent layout overlap */
    .wa-tooltip {
        display: none;
    }
}