.wa-support-root {
    --wa-support-green: #25d366;
    --wa-support-green-dark: #128c7e;
    --wa-support-ink: #10211b;
    --wa-support-muted: #65756f;
    --wa-support-line: rgba(16, 33, 27, 0.11);
    --wa-support-panel: rgba(255, 255, 255, 0.88);
    --wa-support-shadow: 0 24px 70px rgba(10, 55, 44, 0.22);
    color: var(--wa-support-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147482000;
}

.wa-support-button {
    align-items: center;
    background: linear-gradient(135deg, var(--wa-support-green), var(--wa-support-green-dark));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(18, 140, 126, 0.34);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    min-height: 58px;
    padding: 0 20px 0 16px;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wa-support-button:hover {
    box-shadow: 0 22px 58px rgba(18, 140, 126, 0.42);
    transform: translateY(-2px);
}

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

.wa-support-button-icon {
    align-items: center;
    animation: wa-support-icon-flash 1.9s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.wa-support-button-icon svg {
    height: 24px;
    width: 24px;
}

.wa-support-button-text {
    display: grid;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-align: left;
}

.wa-support-button-text small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 3px;
}

.wa-support-button::before {
    animation: wa-support-pulse 2.4s ease-out infinite;
    background: rgba(37, 211, 102, 0.22);
    border-radius: 999px;
    bottom: -8px;
    content: "";
    left: -8px;
    position: absolute;
    right: -8px;
    top: -8px;
    z-index: -1;
}

.wa-support-button::after {
    animation: wa-support-shine 3.2s ease-in-out infinite;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
    content: "";
    height: 150%;
    left: -80%;
    pointer-events: none;
    position: absolute;
    top: -25%;
    transform: rotate(8deg);
    width: 58%;
}

.wa-support-panel {
    backdrop-filter: blur(22px);
    background: var(--wa-support-panel);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 24px;
    bottom: 78px;
    box-shadow: var(--wa-support-shadow);
    max-width: calc(100vw - 32px);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(18px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 190ms ease, transform 190ms ease;
    width: 378px;
}

.wa-support-root.is-open .wa-support-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.wa-support-panel-header {
    background: linear-gradient(145deg, #0f7f72, #21c666);
    color: #ffffff;
    padding: 20px;
    position: relative;
}

.wa-support-panel-header::after {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 42%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.wa-support-header-content {
    position: relative;
    z-index: 1;
}

.wa-support-kicker {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wa-support-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    margin-top: 5px;
}

.wa-support-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 7px;
}

.wa-support-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
    z-index: 2;
}

.wa-support-close svg {
    height: 18px;
    width: 18px;
}

.wa-support-agent-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.wa-support-agent-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--wa-support-line);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: 46px 1fr auto;
    min-height: 74px;
    padding: 12px;
}

.wa-support-avatar {
    align-items: center;
    background: linear-gradient(145deg, #e7fff1, #d6f4ff);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.16), 0 0 0 1px rgba(37, 211, 102, 0.22);
    color: #087462;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.wa-support-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.wa-support-agent-name {
    color: var(--wa-support-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.wa-support-agent-role {
    color: var(--wa-support-muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.wa-support-status {
    align-items: center;
    color: var(--wa-support-muted);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    margin-top: 8px;
}

.wa-support-status-dot {
    background: #99a3a0;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(153, 163, 160, 0.13);
    height: 8px;
    width: 8px;
}

.wa-support-agent-card.is-online .wa-support-status-dot {
    background: var(--wa-support-green);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14);
}

.wa-support-agent-link {
    align-items: center;
    background: #ecfdf4;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 999px;
    color: #087462;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.wa-support-agent-link:hover {
    background: #d9fae8;
    color: #087462;
    transform: translateY(-1px);
}

.wa-support-agent-link svg {
    height: 15px;
    width: 15px;
}

.wa-support-agent-card.is-offline {
    opacity: 0.62;
}

.wa-support-footer {
    border-top: 1px solid var(--wa-support-line);
    color: var(--wa-support-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 12px 16px 15px;
}

@keyframes wa-support-pulse {
    0% {
        opacity: 0.95;
        transform: scale(0.92);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}

@keyframes wa-support-icon-flash {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
        transform: scale(1);
    }

    45% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 255, 255, 0.45);
        transform: scale(1.06);
    }
}

@keyframes wa-support-shine {
    0%,
    34% {
        left: -80%;
    }

    58%,
    100% {
        left: 128%;
    }
}

@media (max-width: 575.98px) {
    .wa-support-root {
        bottom: 14px;
        right: 14px;
    }

    .wa-support-button {
        min-height: 54px;
        padding: 0 15px 0 11px;
    }

    .wa-support-button-text span {
        display: none;
    }

    .wa-support-button-text small {
        font-size: 12px;
        margin-top: 0;
    }

    .wa-support-panel {
        border-radius: 22px;
        bottom: 70px;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        width: calc(100vw - 28px);
    }

    .wa-support-agent-card {
        grid-template-columns: 44px 1fr;
    }

    .wa-support-agent-link {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
}
