:root {
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
    --wa-shadow: rgba(37, 211, 102, 0.3);
}

.wa-floating-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
}

.wa-floating-tooltip {
    max-width: 250px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.wa-floating-container.active .wa-floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-floating-button {
    position: relative;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wa-green);
    box-shadow: 0 8px 20px var(--wa-shadow);
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
    transition: transform .2s ease, background-color .2s ease;
}

.wa-floating-button:hover,
.wa-floating-button:focus-visible {
    background: var(--wa-green-dark);
    color: #fff;
    transform: scale(1.08);
}

.wa-floating-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.wa-floating-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.wa-floating-button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--wa-green);
    animation: wa-pulse 2s infinite;
}

.wa-floating-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff3b30;
}

@keyframes wa-pulse {
    from { opacity: .55; transform: scale(1); }
    to { opacity: 0; transform: scale(1.75); }
}

@media (max-width: 37rem) {
    .wa-floating-container {
        right: 18px;
        bottom: 18px;
    }

    .wa-floating-button {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-floating-button::before {
        animation: none;
    }

    .wa-floating-tooltip,
    .wa-floating-button {
        transition: none;
    }
}
