/* WA Floating Button – Frontend */
.wafb-wrapper {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
    animation: wafb-slide-in .5s cubic-bezier(.34,1.56,.64,1) both;
}
.wafb-right { right: 24px; }
.wafb-left  { left: 24px; }

@keyframes wafb-slide-in {
    from { opacity: 0; transform: translateY(20px) scale(.85); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.wafb-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 13px 20px 13px 14px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(37,211,102,.40), 0 2px 8px rgba(0,0,0,.12);
    transition: transform .18s, box-shadow .18s, background .18s;
    white-space: nowrap;
}
.wafb-button:hover {
    background: #1ebe59;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37,211,102,.50), 0 4px 12px rgba(0,0,0,.14);
    color: #fff;
    text-decoration: none;
}
.wafb-button:active { transform: scale(.97); }

.wafb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    flex-shrink: 0;
}
.wafb-icon svg { width: 18px; height: 18px; }
.wafb-label { line-height: 1; }

/* Pulse animation on the icon */
.wafb-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid #25D366;
    opacity: 0;
    animation: wafb-pulse 2.4s ease-out 1.2s infinite;
}
.wafb-wrapper { position: fixed; } /* ensure stacking context */

@keyframes wafb-pulse {
    0%   { opacity: .6; transform: scale(1); }
    70%  { opacity: 0;  transform: scale(1.18); }
    100% { opacity: 0;  transform: scale(1.18); }
}

@media (max-width: 480px) {
    .wafb-button { padding: 11px 16px 11px 12px; font-size: 14px; }
    .wafb-wrapper { bottom: 16px; }
    .wafb-right { right: 16px; }
    .wafb-left  { left: 16px; }
}
