.wa-widget {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: calc(100vw - 32px);
}

.wa-float {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.wa-float-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6), 0 2px 6px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-float-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25D366;
    z-index: -1;
    animation: waPulse 2.6s ease-out infinite;
}

.wa-float:hover .wa-float-btn {
    transform: scale(1.08);
    box-shadow: 0 14px 30px -6px rgba(37, 211, 102, 0.75), 0 2px 6px rgba(15, 23, 42, 0.25);
}

.wa-float:focus-visible {
    outline: none;
}

.wa-float:focus-visible .wa-float-btn {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px #25D366;
}

.wa-float-label {
    padding: 8px 14px;
    border-radius: 999px;
    background-color: #0F172A;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.55; }
    70%, 100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float-btn::before {
        animation: none;
        display: none;
    }
}

/* ---- Speech bubble ---- */
.wa-bubble {
    position: relative;
    width: 300px;
    max-width: 100%;
    padding: 18px 40px 18px 20px;
    border-radius: 18px;
    background-color: #fff;
    color: #1E293B;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom left;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-bubble[hidden] {
    display: none;
}

.wa-bubble.is-open {
    opacity: 1;
    transform: none;
}

.wa-bubble-text {
    display: block;
    color: inherit;
}

.wa-bubble-text:focus-visible {
    outline: 2px solid #1A56DB;
    outline-offset: 4px;
    border-radius: 6px;
}

.wa-bubble-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wa-bubble-close:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}

.wa-bubble-close:focus-visible {
    outline: 2px solid #1A56DB;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .wa-bubble {
        transition: none;
    }
}

@media (max-width: 575px) {
    .wa-widget {
        left: 16px;
        bottom: 16px;
    }

    .wa-bubble {
        width: 270px;
    }

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

    .wa-float-label {
        display: none;
    }
}
