.support-chat,
.support-chat.support-chat--ltr,
.support-chat.support-chat--rtl {
    --chat-green-dark: #002f28;
    --chat-gold-light: #e0c783;
    --support-chat-edge-gap: 32px;

    position: fixed !important;
    inset: 0 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1200;
    pointer-events: none;
    font-family: var(--font-body);
}

.support-chat__launcher {
    position: fixed !important;
    inset: auto var(--support-chat-edge-gap) var(--support-chat-edge-gap) auto !important;
    isolation: isolate;
    z-index: 1202 !important;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 0;
    margin: 0 !important;
    border: 1px solid rgba(224, 199, 131, 0.74);
    border-radius: 50%;
    background: var(--chat-green-dark);
    box-shadow:
        0 18px 42px rgba(0, 55, 45, 0.34),
        inset 0 0 0 3px rgba(255, 255, 255, 0.06);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(28px) scale(0.97);
    transition:
        opacity 520ms ease,
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 620ms,
        box-shadow var(--transition-fast);
}

.support-chat__launcher.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        opacity 520ms ease,
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s,
        box-shadow var(--transition-fast);
}

.support-chat__launcher.is-visible:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 22px 48px rgba(0, 55, 45, 0.42),
        inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.support-chat__launcher:focus-visible {
    outline: 2px solid var(--chat-gold-light);
    outline-offset: 3px;
}

.support-chat__launcher img {
    position: relative;
    z-index: 3;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.support-chat__launcher-pulse {
    position: absolute;
    inset: -4px;
    z-index: 1;
    border: 1px solid rgba(205, 172, 101, 0.62);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: support-chat-pulse-final 3.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.support-chat__launcher-pulse::before,
.support-chat__launcher-pulse::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(205, 172, 101, 0.46);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.support-chat__launcher-pulse::before {
    animation: support-chat-pulse-final 3.6s cubic-bezier(0.22, 0.61, 0.36, 1) 1.2s infinite;
}

.support-chat__launcher-pulse::after {
    animation: support-chat-pulse-final 3.6s cubic-bezier(0.22, 0.61, 0.36, 1) 2.4s infinite;
}

@keyframes support-chat-pulse-final {
    0% {
        opacity: 0;
        transform: scale(0.99);
    }
    10% {
        opacity: 0.58;
    }
    58% {
        opacity: 0.22;
    }
    100% {
        opacity: 0;
        transform: scale(1.17);
    }
}

@media (max-width: 640px) {
    .support-chat,
    .support-chat.support-chat--ltr,
    .support-chat.support-chat--rtl {
        --support-chat-edge-gap: 18px;
    }

    .support-chat__launcher {
        width: 64px;
        height: 64px;
    }

    .support-chat__launcher img {
        width: 57px;
        height: 57px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-chat__launcher,
    .support-chat__launcher.is-visible {
        transition: none;
    }

    .support-chat__launcher-pulse,
    .support-chat__launcher-pulse::before,
    .support-chat__launcher-pulse::after {
        animation: none;
    }
}
