/* WhatsApp Floating Button Styles */
:root {
    --wa-green: #25D366;
    --wa-green-dark: #128C7E;
    --wa-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    --support-edge: 24px;
    --support-bottom: 24px;
    --support-gap: 12px;
    --support-wa-size: 56px;
}

.wa-float-container {
    position: fixed;
    bottom: var(--support-bottom);
    right: var(--support-edge);
    left: auto;
    z-index: 1089;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--support-gap);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.wa-float-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.wa-button {
    width: var(--support-wa-size);
    height: var(--support-wa-size);
    background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--wa-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: wa-pulse 2.8s ease-out 2;
}

.wa-button i {
    font-size: 32px;
    position: relative;
    z-index: 2;
}

.wa-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.wa-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.wa-button:hover::before {
    transform: translateX(100%);
}

.wa-button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 3px;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* RTL Support - Move to far left side */
[dir="rtl"] .wa-float-container,
html[dir="rtl"] .wa-float-container,
body[dir="rtl"] .wa-float-container {
    right: auto !important;
    left: var(--support-edge) !important;
}

@media (max-width: 575.98px) {
    :root {
        --support-edge: 16px;
        --support-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        --support-gap: 10px;
        --support-wa-size: 52px;
    }

    .wa-button i {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float-container,
    .wa-button {
        transition-duration: 0ms;
    }

    .wa-button {
        animation: none;
    }
}
