.support-chat__emojis {
    display: flex;
    padding: 8px 12px 0;
    gap: 6px;
    border-top: 1px solid var(--color-border-base-alfa-static-white-8, rgba(255, 255, 255, 0.08));
    background: var(--brand-primary-dark-2);
}

.support-chat__emojis[hidden] {
    display: none;
}

.support-chat__emojis button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-border-base-alfa-static-white-8, rgba(255, 255, 255, 0.1));
    border-radius: 9px;
    background: var(--brand-primary-dark-3);
    font-size: 18px;
    cursor: pointer;
}

.support-chat__emojis button:hover,
.support-chat__emojis button:focus-visible {
    border-color: var(--brand-primary-dark-9);
    outline: 0;
}

.support-button_root-KR2Gd {
    cursor: pointer;
}

.support-chat.is-hidden,
#support-chat[hidden] {
    display: none !important;
}

.support-chat {
    position: fixed;
    inset-inline-end: 20px;
    inset-block-end: 20px;
    z-index: 2147483000;
    width: min(400px, calc(100vw - 24px));
    max-height: min(640px, calc(var(--app-vh, 100dvh) - 40px));
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.support-chat__panel {
    display: flex;
    flex-direction: column;
    height: min(640px, calc(var(--app-vh, 100dvh) - 40px));
    border-radius: 18px;
    overflow: hidden;
    background: var(--theme-surface-elevated, #192859);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.support-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: var(--color-background-base-secondary, #141f48);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-chat__agent {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.support-chat__avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-solid-brand-primary-default, #1e46eb);
    color: var(--color-content-base-on-primary, #fff);
    font-weight: 700;
    flex: none;
}

.support-chat__pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(30, 70, 235, 0.65);
    opacity: 0;
    pointer-events: none;
}

.support-chat.is-live .support-chat__pulse {
    animation: support-pulse 1.8s ease-out infinite;
}

.support-chat__status {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.support-chat.is-live .support-chat__status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline-end: 6px;
    border-radius: 50%;
    background: var(--color-solid-action-cta, #1e46eb);
    box-shadow: 0 0 0 4px rgba(103, 186, 244, 0.2);
    vertical-align: 1px;
}

.support-chat__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-chat__iconBtn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.support-chat__iconBtn:hover,
.support-chat__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.support-chat__iconBtn .support-chat__ic-off {
    display: none;
}

.support-chat__iconBtn.is-muted .support-chat__ic-on {
    display: none;
}

.support-chat__iconBtn.is-muted .support-chat__ic-off {
    display: block;
}

.support-chat__name {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
}

.support-chat__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.support-chat__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.support-chat__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(30, 70, 235, 0.08), transparent 45%),
        var(--color-background-base-primary, #0f1738);
}

.support-chat__tip {
    align-self: center;
    max-width: 90%;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.support-chat__msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 85%;
}

.support-chat__msg--agent {
    align-self: flex-start;
}

.support-chat__msg--user {
    align-self: flex-end;
    align-items: flex-end;
}

.support-chat__bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.support-chat__msg--agent .support-chat__bubble {
    background: var(--color-background-base-tertiary, #192859);
    border-bottom-left-radius: 4px;
}

.support-chat__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
}

.support-chat__choice {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--color-background-base-tertiary, #192859);
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.support-chat__choice:hover {
    border-color: var(--color-solid-brand-primary-default, #1e46eb);
}

.support-chat__choice:focus-visible {
    outline: 2px solid var(--color-solid-brand-primary-default, #1e46eb);
    outline-offset: 2px;
}

.support-chat__msg--user .support-chat__bubble {
    background: var(--color-solid-brand-primary-default, #1e46eb);
    color: var(--color-content-base-on-primary, #fff);
    border-bottom-right-radius: 4px;
}

.support-chat__time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding-inline: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.support-chat__receipt {
    letter-spacing: 0.01em;
}

.support-chat__receipt.is-read {
    color: var(--theme-color-light-blue, #67baf4);
}

.support-chat__typing {
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
}

.support-chat__typing:not([hidden]) {
    display: inline-flex;
}

.support-chat__typing[hidden] {
    display: none !important;
}

.support-chat__dots {
    display: inline-flex;
    gap: 4px;
}

.support-chat__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-solid-brand-primary-default, #1e46eb);
    animation: support-dot 1s ease-in-out infinite;
}

.support-chat__dots i:nth-child(2) { animation-delay: 0.15s; }
.support-chat__dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes support-pulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes support-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-3px); opacity: 1; }
}

.support-chat__composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--color-background-base-secondary, #141f48);
}

.support-chat__inputWrap {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
}

.support-chat__input {
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    max-height: 120px;
}

.support-chat__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.support-chat__send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--color-solid-brand-primary-default, #1e46eb);
    color: var(--color-content-base-on-primary, #fff);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: none;
}

.support-chat__send:hover {
    filter: brightness(1.05);
}

@media (max-width: 640px) {
    .support-chat {
        inset: auto 8px 8px 8px;
        width: auto;
        max-height: calc(var(--app-vh, 100dvh) - 16px);
    }

    .support-chat__panel {
        height: min(72dvh, calc(var(--app-vh, 100dvh) - 16px), 620px);
        border-radius: 16px;
    }
}

html[dir="rtl"] .support-chat__msg--agent .support-chat__bubble {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px;
}

html[dir="rtl"] .support-chat__msg--user .support-chat__bubble {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 4px;
}
