:root {
    --wcs-color: #6d5dfc;
    --wcs-surface: #ffffff;
    --wcs-text: #172033;
    --wcs-muted: #6f7a90;
    --wcs-border: #e8ecf3;
    --wcs-soft: #f5f7fb;
    --wcs-shadow: 0 28px 78px rgba(39, 35, 92, .23), 0 8px 24px rgba(109, 93, 252, .08);
}

@media (min-width: 768px) {
    html.wcs-active a.telegram-service-float:not(.wcs-dream-support) {
        display: none !important;
    }
}

#webchat-support-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1080;
    color: var(--wcs-text);
    font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#webchat-support-root.wcs-position-bottom-left {
    right: auto;
    left: 22px;
}

#webchat-support-root *,
#webchat-support-root *::before,
#webchat-support-root *::after {
    box-sizing: border-box;
}

.wcs-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--wcs-color);
    box-shadow: 0 13px 32px color-mix(in srgb, var(--wcs-color) 35%, transparent);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.wcs-launcher:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 17px 38px color-mix(in srgb, var(--wcs-color) 42%, transparent);
}

.wcs-launcher:focus-visible,
.wcs-back-button:focus-visible,
.wcs-icon-button:focus-visible,
.wcs-primary-button:focus-visible,
.wcs-telegram-button:focus-visible,
.wcs-send-button:focus-visible,
.wcs-file-button:focus-visible,
.wcs-quick-link:focus-visible,
.wcs-composer textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--wcs-color) 25%, transparent);
    outline-offset: 2px;
}

.wcs-launcher-icon {
    font-size: 20px;
    line-height: 1;
}

.wcs-launcher-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ff476f;
    font-size: 10px;
    font-weight: 800;
}

.wcs-launcher-badge.is-visible {
    display: inline-flex;
}

.wcs-dream-support {
    position: relative !important;
}

.wcs-nav-badge {
    display: none;
    position: absolute;
    top: 1px;
    left: calc(50% + 7px);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ef3340;
    box-shadow: 0 3px 9px rgba(239, 51, 64, .3);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    z-index: 3;
}

.wcs-nav-badge.is-visible {
    display: inline-flex;
}

@media (min-width: 768px) {
    #webchat-support-root.wcs-protect-purchase {
        right: 2px;
    }

    #webchat-support-root.wcs-protect-purchase .wcs-launcher {
        width: 46px;
        min-height: 112px;
        padding: 10px 6px;
        flex-direction: column;
        gap: 6px;
        border-radius: 18px;
    }

    #webchat-support-root.wcs-protect-purchase .wcs-launcher-text {
        line-height: 1.15;
        letter-spacing: 2px;
        text-orientation: upright;
        writing-mode: vertical-rl;
    }
}

.wcs-panel {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    bottom: 70px;
    width: min(390px, calc(100vw - 32px));
    height: min(630px, calc(100vh - 118px));
    min-height: 470px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(225, 230, 239, .9);
    border-radius: 28px;
    background: var(--wcs-surface);
    box-shadow: var(--wcs-shadow);
    transform: translateY(16px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 50;
}

.wcs-position-bottom-left .wcs-panel {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.wcs-panel.wcs-panel--open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.wcs-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 94px;
    padding: 14px 16px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .22), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--wcs-color) 88%, #182052), var(--wcs-color));
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}

.wcs-avatar {
    display: grid;
    overflow: hidden;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px rgba(31, 28, 97, .2);
    color: #fff;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: .01em;
}

.wcs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcs-avatar.is-hidden {
    display: none;
}

.wcs-back-button {
    display: none;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 7px 16px rgba(25, 21, 96, .18);
    color: #fff;
    font: 700 26px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.wcs-back-button.is-visible {
    display: grid;
}

.wcs-back-button:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateX(-1px);
}

.wcs-agent {
    min-width: 0;
    flex: 1;
}

.wcs-agent-name {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-agent-working-hours,
.wcs-agent-status {
    overflow: hidden;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-agent-working-hours {
    font-weight: 750;
}

.wcs-agent-status {
    width: fit-content;
    max-width: 100%;
    margin-top: 1px;
    padding: 1px 7px;
    border-radius: 999px;
    color: #e92f4f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 9px rgba(50, 34, 121, .12);
    font-size: 11px;
    font-weight: 800;
}

.wcs-icon-button {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 7px 16px rgba(25, 21, 96, .18);
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    transition: background .15s ease, transform .15s ease;
}

.wcs-icon-button:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-1px) rotate(2deg);
}

.wcs-view {
    display: none;
    min-height: 0;
    flex: 1;
}

.wcs-view.is-active {
    display: flex;
}

.wcs-welcome {
    overflow-y: auto;
    flex-direction: column;
    padding: 24px 18px 18px;
    background:
        radial-gradient(circle at 92% 5%, color-mix(in srgb, var(--wcs-color) 10%, transparent), transparent 25%),
        linear-gradient(180deg, color-mix(in srgb, var(--wcs-color) 7%, #fff), #fff 38%);
}

.wcs-welcome-eyebrow {
    margin-bottom: 8px;
    color: var(--wcs-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wcs-welcome-title {
    margin: 0 0 10px;
    color: var(--wcs-text);
    font-size: 26px;
    font-weight: 850;
    letter-spacing: .005em;
    line-height: 1.35;
}

.wcs-welcome-copy {
    margin: 0 0 20px;
    color: #4f5b70;
    font-size: 14px;
    font-weight: 520;
    line-height: 1.8;
    white-space: pre-line;
}

.wcs-welcome-highlight {
    padding: 1px 4px;
    border-radius: 6px;
    color: #e92f4f;
    background: #fff0f3;
    box-shadow: inset 0 -1px 0 rgba(233, 47, 79, .12);
    font-weight: 850;
}

.wcs-quick-links {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.wcs-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--wcs-border);
    border-radius: 18px;
    color: #303a4d;
    background: #fff;
    box-shadow: 0 5px 16px rgba(28, 39, 63, .035);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.wcs-quick-link:hover {
    border-color: color-mix(in srgb, var(--wcs-color) 40%, var(--wcs-border));
    color: var(--wcs-color);
    transform: translateY(-1px);
}

.wcs-quick-link-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    color: var(--wcs-color);
    background: color-mix(in srgb, var(--wcs-color) 10%, #fff);
}

.wcs-quick-link-title {
    min-width: 0;
    flex: 1;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wcs-quick-link-arrow {
    color: #a2aabd;
    font-size: 18px;
}

.wcs-welcome-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.wcs-welcome-actions.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.wcs-welcome-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 64px;
    height: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wcs-welcome-action:hover {
    color: #fff;
    filter: saturate(1.04);
    transform: translateY(-2px);
}

.wcs-primary-button {
    background: linear-gradient(145deg, color-mix(in srgb, var(--wcs-color) 84%, #8d83ff), var(--wcs-color));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--wcs-color) 29%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.wcs-telegram-button {
    background: #229ED9;
    background-image: linear-gradient(145deg, #32b1e9, #229ED9);
    box-shadow: 0 12px 28px rgba(34, 158, 217, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.wcs-telegram-button:hover {
    color: #fff;
    background: #1c91ca;
}

.wcs-action-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 10px rgba(26, 37, 98, .12);
    font-size: 15px;
    line-height: 1;
}

.wcs-telegram-action-icon {
    padding: 0 0 2px 1px;
    font-size: 17px;
    transform: rotate(-28deg);
}

.wcs-webchat-action-icon {
    font-size: 16px;
}

.wcs-action-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.wcs-action-title {
    font-weight: 850;
    white-space: nowrap;
}

.wcs-action-subtitle {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 750;
    opacity: .9;
    white-space: nowrap;
}

.wcs-welcome-unread-badge {
    display: none;
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ef3340;
    box-shadow: 0 5px 13px rgba(239, 51, 64, .36);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    z-index: 2;
}

.wcs-welcome-unread-badge.is-visible {
    display: inline-flex;
}

.wcs-chat {
    position: relative;
    min-height: 0;
    flex-direction: column;
    background: var(--wcs-soft);
}

.wcs-messages-shell {
    position: relative;
    display: flex;
    min-height: 0;
    flex: 1;
}

.wcs-messages {
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px 12px;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.wcs-new-messages-button {
    display: none;
    position: absolute;
    right: 14px;
    bottom: 12px;
    min-height: 34px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, #ff5c70, #e92f4f);
    box-shadow: 0 8px 20px rgba(233, 47, 79, .3);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    z-index: 4;
}

.wcs-new-messages-button.is-visible {
    display: inline-flex;
}

.wcs-chat-intro {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 2px;
}

.wcs-chat-intro-note {
    padding: 1px 6px 3px;
    color: #7f8a9f;
    font-size: 11px;
    text-align: center;
}

.wcs-intro-message {
    width: 100%;
}

.wcs-recent-orders {
    display: none;
    overflow-y: auto;
    max-height: min(290px, 42vh);
    margin: 7px 0 0;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--wcs-color) 18%, var(--wcs-border));
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(24, 34, 55, .055);
}

.wcs-recent-orders.is-open {
    display: block;
}

.wcs-order-dock {
    margin-bottom: 7px;
}

.wcs-orders-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wcs-orders-toggle {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--wcs-color) 24%, var(--wcs-border));
    border-radius: 999px;
    color: color-mix(in srgb, var(--wcs-color) 78%, #24324b);
    background: color-mix(in srgb, var(--wcs-color) 8%, #fff);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--wcs-color) 10%, transparent);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.wcs-orders-toggle-icon {
    font-size: 15px;
}

.wcs-orders-toggle-state {
    color: var(--wcs-color);
    font-size: 11px;
}

.wcs-orders-expired-warning {
    min-width: 0;
    flex: 1;
    color: #e32636;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
}

.wcs-recent-orders-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.wcs-recent-orders-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--wcs-color) 10%, #fff);
    font-size: 17px;
}

.wcs-recent-orders-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.wcs-recent-orders-copy strong {
    color: #273149;
    font-size: 13px;
}

.wcs-recent-orders-copy span {
    color: #7b869a;
    font-size: 10px;
}

.wcs-recent-order {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid #eef1f6;
}

.wcs-recent-order-meta {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.wcs-recent-order-no {
    overflow: hidden;
    color: var(--wcs-color);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-recent-order-product {
    overflow: hidden;
    color: #596579;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-order-send-button {
    min-height: 32px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--wcs-color);
    box-shadow: 0 5px 13px color-mix(in srgb, var(--wcs-color) 20%, transparent);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
}

.wcs-order-send-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.wcs-order-send-button.is-submitted {
    color: #23744a;
    background: #e6f7ed;
    box-shadow: inset 0 0 0 1px #b9e6cb;
}

.wcs-recent-orders-help {
    margin: 8px 0 0;
    padding: 8px 9px;
    border-radius: 10px;
    color: #d51f32;
    background: #fff0f2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.55;
    white-space: pre-line;
}

.wcs-orders-empty {
    padding: 14px 8px;
    border-top: 1px solid #eef1f6;
    color: #8a94a6;
    font-size: 11px;
    text-align: center;
}

.wcs-message-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 84%;
}

.wcs-message-row.is-visitor {
    align-self: flex-end;
    align-items: flex-end;
}

.wcs-message-row.is-admin {
    align-self: flex-start;
    align-items: flex-start;
}

.wcs-message-bubble {
    overflow: hidden;
    padding: 10px 12px;
    border: 1px solid var(--wcs-border);
    border-radius: 5px 16px 16px 16px;
    color: #344054;
    background: #fff;
    box-shadow: 0 4px 12px rgba(22, 32, 52, .045);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.wcs-message-row.is-visitor .wcs-message-bubble {
    border-color: transparent;
    border-radius: 16px 16px 5px 16px;
    color: #fff;
    background: var(--wcs-color);
}

.wcs-message-bubble img,
.wcs-message-bubble video {
    display: block;
    width: 100%;
    max-width: 240px;
    max-height: 260px;
    border-radius: 10px;
    object-fit: cover;
}

.wcs-message-bubble video {
    background: #0e1420;
}

.wcs-media-caption {
    max-width: 240px;
    padding-top: 8px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.wcs-file-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 190px;
    color: inherit;
    text-decoration: none;
}

.wcs-file-card:hover {
    color: inherit;
}

.wcs-file-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(120, 130, 150, .12);
    font-size: 17px;
}

.wcs-file-meta {
    min-width: 0;
}

.wcs-file-name {
    overflow: hidden;
    max-width: 170px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-file-size,
.wcs-message-time {
    color: #97a0b2;
    font-size: 10px;
}

.wcs-message-row.is-visitor .wcs-message-time {
    color: #8d97aa;
}

.wcs-message-time {
    margin-top: 3px;
    padding: 0 3px;
}

.wcs-pending-message.is-failed .wcs-message-bubble {
    background: #ef5964;
}

.wcs-pending-restore {
    margin-top: 4px;
    padding: 0 3px;
    border: 0;
    color: #d92d3a;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
}

.wcs-empty-chat {
    margin: auto;
    padding: 24px;
    color: #8b95a7;
    font-size: 13px;
    text-align: center;
}

.wcs-composer-wrap {
    flex: 0 0 auto;
    padding: 10px 11px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--wcs-border);
    background: #fff;
}

.wcs-order-quote {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-left: 4px solid var(--wcs-color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--wcs-color) 7%, #fff);
}

.wcs-order-quote.is-visible {
    display: flex;
}

.wcs-order-quote-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.wcs-order-quote-copy strong {
    overflow: hidden;
    color: #273149;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-order-quote-copy span {
    color: #dc2638;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.45;
}

.wcs-order-quote-remove {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #7d8799;
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.wcs-composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.wcs-composer.is-hidden,
.wcs-composer-hint.is-hidden {
    display: none;
}

.wcs-muted-composer {
    display: none;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #ffd0d6;
    border-radius: 14px;
    color: #d92d20;
    background: #fff3f5;
    text-align: center;
}

.wcs-muted-composer.is-visible {
    display: flex;
}

.wcs-muted-reason {
    font-size: 14px;
}

.wcs-muted-until {
    color: #a44c58;
    font-size: 10px;
}

.wcs-composer textarea {
    width: 100%;
    min-height: 42px;
    max-height: 104px;
    padding: 10px 12px;
    resize: none;
    border: 1px solid var(--wcs-border);
    border-radius: 13px;
    outline: 0;
    color: var(--wcs-text);
    background: #f8fafc;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    transition: border-color .15s ease, background .15s ease;
}

.wcs-composer textarea:focus {
    border-color: color-mix(in srgb, var(--wcs-color) 48%, var(--wcs-border));
    background: #fff;
}

.wcs-file-button,
.wcs-send-button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: inherit;
}

.wcs-file-button {
    color: #687386;
    background: #eef1f6;
    font-size: 18px;
}

.wcs-file-button input {
    display: none;
}

.wcs-send-button {
    color: #fff;
    background: var(--wcs-color);
    font-size: 17px;
}

.wcs-file-button.is-busy,
.wcs-file-button.is-disabled,
.wcs-send-button:disabled {
    cursor: wait;
    opacity: .55;
}

.wcs-send-button.is-sending:disabled {
    opacity: 1;
}

.wcs-composer-hint {
    margin-top: 5px;
    padding: 0 3px;
    color: #9aa3b3;
    font-size: 9px;
}

.wcs-toast {
    display: none;
    position: absolute;
    right: 14px;
    bottom: 84px;
    left: 14px;
    padding: 10px 12px;
    border-radius: 11px;
    color: #fff;
    background: rgba(27, 34, 48, .92);
    box-shadow: 0 8px 24px rgba(10, 16, 28, .18);
    font-size: 12px;
    text-align: center;
    z-index: 5;
}

.wcs-toast.is-visible {
    display: block;
}

@media (max-width: 767.98px) {
    #webchat-support-root {
        right: 14px;
        bottom: calc(76px + env(safe-area-inset-bottom));
    }

    #webchat-support-root.wcs-position-bottom-left {
        right: auto;
        left: 14px;
    }

    #webchat-support-root.wcs-use-dream-nav .wcs-launcher {
        display: none;
    }

    .wcs-panel,
    .wcs-position-bottom-left .wcs-panel {
        position: fixed;
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        height: min(650px, calc(100dvh - 88px - env(safe-area-inset-bottom)));
        min-height: min(460px, calc(100dvh - 88px - env(safe-area-inset-bottom)));
        border-radius: 26px;
        transform-origin: bottom center;
    }

    .wcs-header {
        min-height: 92px;
        padding: 12px 14px;
    }

    .wcs-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .wcs-back-button,
    .wcs-icon-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .wcs-welcome {
        padding: 20px 16px 15px;
    }

    .wcs-welcome-title {
        font-size: 24px;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .wcs-panel,
    .wcs-position-bottom-left .wcs-panel {
        top: 8px;
        bottom: 8px;
        height: auto;
        min-height: 0;
    }

    .wcs-header {
        min-height: 64px;
        padding: 8px 12px;
    }

    .wcs-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .wcs-back-button,
    .wcs-icon-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcs-panel,
    .wcs-launcher,
    .wcs-quick-link,
    .wcs-messages {
        scroll-behavior: auto;
        transition: none;
    }
}
