/* ============================================================
   WA Float Button — Frontend Stylesheet
   Plugin: WA Float Button v1.0.0
   ============================================================ */

/* Floating anchor */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;           /* overridden by inline CSS for left position */
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
}

/* ── Label pill ── */
.wa-label {
    background: #fff;
    color: #128c7e;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px 10px 22px;
    border-radius: 50px 0 0 50px;
    box-shadow: -4px 0 18px rgba(0, 0, 0, .10);
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-width .4s cubic-bezier(.4, 0, .2, 1),
        opacity   .3s ease,
        padding   .3s ease;
    pointer-events: none;
}

.wa-float:hover .wa-label,
.wa-float:focus .wa-label {
    max-width: 220px;
    opacity: 1;
    pointer-events: auto;
}

/* ── Icon circle ── */
.wa-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
    transition: transform .25s ease, box-shadow .25s ease;
    flex-shrink: 0;
    position: relative;
}

.wa-float:hover .wa-icon {
    transform: scale(1.10);
    box-shadow: 0 10px 32px rgba(37, 211, 102, .60);
}

.wa-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* ── Pulse ring ── */
.wa-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, .5);
    animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: .8; }
    70%  { transform: scale(1.35); opacity: 0;  }
    100% { transform: scale(1.35); opacity: 0;  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .wa-float { bottom: 18px; right: 18px; }
    .wa-icon  { width: 52px; height: 52px; }
    .wa-icon svg { width: 28px; height: 28px; }
    .wa-label { display: none; }
}
