.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: calc(var(--z-index-modal-layout, 1000) + 80);
    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: #121820;
    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: linear-gradient(180deg, #1b2430 0%, #151c26 100%);
    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: linear-gradient(135deg, #12b857, #0a7a3a);
    color: #04140a;
    font-weight: 700;
    flex: none;
}

.support-chat__pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(18, 184, 87, 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: #12b857;
    box-shadow: 0 0 0 4px rgba(18, 184, 87, 0.18);
    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(18, 184, 87, 0.08), transparent 45%),
        #0e1319;
}

.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: #1c2733;
    border-bottom-left-radius: 4px;
}

.support-chat__msg--user .support-chat__bubble {
    background: #12b857;
    color: #04140a;
    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: #7eb6ff;
}

.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: #12b857;
    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: #121820;
}

.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: #12b857;
    color: #04140a;
    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;
}
