.customer-service-widget-root,
.customer-service-admin-root {
    --cs-primary: #2864e8;
    --cs-primary-deep: #1d4fc6;
    --cs-primary-soft: #eaf1ff;
    --cs-page: #f3f7ff;
    --cs-surface: rgba(255, 255, 255, .88);
    --cs-surface-strong: rgba(255, 255, 255, .96);
    --cs-line: rgba(104, 137, 194, .22);
    --cs-glass-line: rgba(255, 255, 255, .72);
    --cs-text: #172a4a;
    --cs-muted: #5a6d8a;
    --cs-shadow: 0 18px 46px rgba(24, 55, 110, .22), 0 2px 8px rgba(31, 76, 154, .12);
    --cs-radius: 18px;
    --cs-ease: cubic-bezier(.2, .8, .2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.customer-service-widget-root {
    --cs-frontend-dock-offset: 0px;
}

.customer-service-widget-root *,
.customer-service-admin-root * {
    box-sizing: border-box;
}

.cs-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147482600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: linear-gradient(145deg, #4e8aff, #2458dd 72%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 11px 28px rgba(35, 86, 218, .42), inset 0 1px 1px rgba(255, 255, 255, .34);
    touch-action: manipulation;
    transition: transform .18s var(--cs-ease), box-shadow .18s var(--cs-ease), filter .18s var(--cs-ease);
}

.cs-fab:hover,
.cs-fab:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 34px rgba(35, 86, 218, .5), inset 0 1px 1px rgba(255, 255, 255, .38);
    outline: 2px solid rgba(255, 255, 255, .94);
    outline-offset: 2px;
}

.cs-fab:active { transform: scale(.96); }
.cs-fab svg { width: 25px; height: 25px; fill: currentColor; }
.cs-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font: 700 11px/15px Arial, sans-serif;
    text-align: center;
}

.cs-fab.is-flashing { animation: cs-fab-pulse 1.1s infinite; }

@keyframes cs-fab-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7), 0 11px 28px rgba(35, 86, 218, .42); }
    50% { box-shadow: 0 0 0 13px rgba(239, 68, 68, 0), 0 11px 28px rgba(35, 86, 218, .42); }
}

.cs-panel,
.cs-admin-panel {
    position: fixed;
    z-index: 2147482601;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cs-glass-line);
    background: linear-gradient(145deg, rgba(249, 252, 255, .96), rgba(235, 242, 255, .88));
    box-shadow: var(--cs-shadow);
    color: var(--cs-text);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
}

.cs-panel {
    right: 16px;
    bottom: 78px;
    width: min(368px, calc(100vw - 24px));
    height: min(508px, calc(100vh - 94px));
    height: min(508px, calc(100dvh - 94px));
    border-radius: var(--cs-radius);
}

.cs-panel[hidden],
.cs-admin-panel[hidden],
.cs-form-view[hidden],
.cs-chat-view[hidden],
.cs-admin-compose[hidden],
.cs-notice[hidden] {
    display: none !important;
}

.cs-panel__header,
.cs-admin-panel__header {
    position: relative;
    isolation: isolate;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px 0 14px;
    overflow: hidden;
    background: linear-gradient(122deg, #1f56d3, #3275f7 58%, #5a91ff);
    color: #fff;
    box-shadow: inset 0 -1px rgba(255, 255, 255, .18);
}

.cs-panel__header::after,
.cs-admin-panel__header::after {
    position: absolute;
    z-index: -1;
    top: -40px;
    right: 18%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    content: '';
    filter: blur(1px);
}

.cs-panel__title,
.cs-admin-panel__header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.cs-panel__tools { display: flex; align-items: center; gap: 0; }

.cs-panel__tool,
.cs-admin-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 600 13px/1.2 inherit;
    touch-action: manipulation;
    transition: background .16s var(--cs-ease), transform .16s var(--cs-ease);
}

.cs-panel__tool:hover,
.cs-panel__tool:focus-visible,
.cs-admin-panel__close:hover,
.cs-admin-panel__close:focus-visible {
    background: rgba(255, 255, 255, .16);
    outline: 2px solid rgba(255, 255, 255, .72);
    outline-offset: -2px;
}

.cs-panel__tool:active,
.cs-admin-panel__close:active { transform: scale(.94); }
.cs-panel__close,
.cs-admin-panel__close { font-size: 26px; font-weight: 300; line-height: 1; }

.cs-form-view,
.cs-chat-view {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cs-form-view { overflow-y: auto; scrollbar-color: #b5c9e8 transparent; }
.cs-intro,
.cs-chat-intro {
    flex: 0 0 auto;
    max-width: 344px;
    margin: 0 auto;
    padding: 10px 12px 7px;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.cs-form-fields {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 12px;
}

.cs-field { display: block; margin: 0; }
.cs-field__label {
    display: block;
    margin: 0 0 4px;
    color: #304766;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.cs-required { color: #e74358; }

.cs-input,
.cs-textarea,
.cs-compose__input {
    width: 100%;
    border: 1px solid rgba(125, 153, 195, .25);
    border-radius: 10px;
    background: var(--cs-surface-strong);
    color: #304766;
    font: 15px/1.45 inherit;
    outline: 0;
    transition: border-color .16s var(--cs-ease), box-shadow .16s var(--cs-ease), background .16s var(--cs-ease);
}

.cs-input { height: 42px; padding: 8px 10px; }
.cs-textarea { min-height: 76px; max-height: 126px; padding: 9px 10px; resize: vertical; }

.cs-input:focus,
.cs-textarea:focus,
.cs-compose__input:focus {
    border-color: #5b8cff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(61, 118, 255, .14);
}

.cs-input[readonly] {
    border-color: rgba(119, 151, 203, .2);
    background: rgba(233, 241, 255, .78);
    color: #526988;
    cursor: default;
}

.cs-send-initial,
.cs-compose__send {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3478fa, var(--cs-primary));
    color: #fff;
    cursor: pointer;
    font: 700 15px/1 inherit;
    box-shadow: 0 6px 14px rgba(40, 100, 232, .22);
    touch-action: manipulation;
    transition: filter .16s var(--cs-ease), transform .16s var(--cs-ease), box-shadow .16s var(--cs-ease);
}

.cs-send-initial { width: 100%; min-height: 44px; margin-top: 0; }

.cs-send-initial:hover,
.cs-send-initial:focus-visible,
.cs-compose__send:hover,
.cs-compose__send:focus-visible {
    filter: brightness(.96);
    box-shadow: 0 8px 17px rgba(40, 100, 232, .3);
    outline: 2px solid rgba(64, 120, 255, .45);
    outline-offset: 2px;
}

.cs-send-initial:active,
.cs-compose__send:active { transform: translateY(1px); }
.cs-send-initial:disabled,
.cs-compose__send:disabled { cursor: not-allowed; opacity: .62; }

.cs-chat-intro { padding-bottom: 5px; }
.cs-message-list,
.cs-admin-message-list {
    flex: 1;
    overflow: auto;
    scrollbar-color: #b5c9e8 transparent;
}

.cs-message-list { padding: 0 10px 8px; }
.cs-message { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 7px 0; }
.cs-message--visitor { align-items: flex-end; }
.cs-message__bubble {
    max-width: min(84%, 350px);
    padding: 8px 11px;
    border: 1px solid rgba(115, 143, 189, .15);
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, .92);
    color: #344961;
    box-shadow: 0 2px 7px rgba(51, 69, 98, .07);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.cs-message--visitor .cs-message__bubble {
    border-color: transparent;
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, #3478fa, var(--cs-primary));
    color: #fff;
    box-shadow: none;
}

.cs-message__link {
    color: #235db9;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(35, 93, 185, .45);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.cs-message__link:hover,
.cs-message__link:focus-visible {
    color: #17458f;
    text-decoration-color: currentColor;
    outline: 2px solid rgba(45, 107, 218, .34);
    outline-offset: 2px;
}

.cs-message--visitor .cs-message__link { color: #fff; text-decoration-color: rgba(255, 255, 255, .68); }
.cs-message--visitor .cs-message__link:hover,
.cs-message--visitor .cs-message__link:focus-visible { color: #fff; outline-color: rgba(255, 255, 255, .9); }

.cs-message__time { color: #7e90a9; font-size: 11px; line-height: 1.25; }
.cs-message__attachments { display: flex; flex-wrap: wrap; justify-content: inherit; gap: 5px; max-width: min(84%, 350px); }
.cs-message__image { display: block; width: 88px; height: 88px; border: 1px solid rgba(96, 119, 154, .2); border-radius: 8px; object-fit: cover; background: #eef3fb; }
.cs-message--visitor .cs-message__image { border-color: rgba(255, 255, 255, .55); }
.cs-message__image { cursor: zoom-in; touch-action: manipulation; }
.cs-message__image:focus-visible { outline: 2px solid #3f78f4; outline-offset: 2px; }
.cs-message__video { display: block; width: min(240px, 100%); max-height: 180px; border: 1px solid rgba(96, 119, 154, .2); border-radius: 8px; background: #101c31; }
.cs-message__audio { width: min(240px, 100%); height: 36px; }
.cs-message__file { display: inline-flex; max-width: 100%; align-items: center; min-height: 34px; padding: 6px 9px; overflow: hidden; border: 1px solid rgba(83, 120, 190, .2); border-radius: 8px; background: rgba(255, 255, 255, .82); color: #285cbd; font-size: 12px; line-height: 1.35; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cs-message__file:hover,
.cs-message__file:focus-visible { background: #eaf2ff; outline: 2px solid rgba(64, 120, 255, .38); outline-offset: 1px; }

.cs-image-preview {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 18, 40, .74);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
    backdrop-filter: blur(8px) saturate(125%);
}

.cs-image-preview[hidden] { display: none !important; }
.cs-image-preview__frame { position: relative; display: flex; max-width: min(960px, 100%); max-height: 100%; flex-direction: column; align-items: center; padding: 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px; background: rgba(238, 245, 255, .92); box-shadow: 0 22px 64px rgba(0, 0, 0, .42); }
.cs-image-preview__image { display: block; max-width: min(900px, calc(100vw - 52px)); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); border-radius: 8px; object-fit: contain; }
.cs-image-preview__caption { width: 100%; max-width: 100%; margin: 7px 26px 0 0; overflow: hidden; color: #324761; font-size: 12px; line-height: 1.35; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.cs-image-preview__close { position: absolute; top: -12px; right: -12px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 50%; background: #2f69e9; color: #fff; cursor: pointer; font: 400 26px/1 Arial, sans-serif; box-shadow: 0 5px 14px rgba(16, 46, 110, .35); }
.cs-image-preview__close:hover,
.cs-image-preview__close:focus-visible { background: #1c52ca; outline: 2px solid #fff; outline-offset: 2px; }

.cs-compose,
.cs-admin-compose {
    flex: 0 0 auto;
    border-top: 1px solid rgba(112, 142, 190, .16);
    background: rgba(255, 255, 255, .72);
}

.cs-pending-attachments { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 10px 0; }
.cs-pending-attachments:empty { display: none; }
.cs-pending-attachment { display: inline-flex; align-items: center; gap: 4px; max-width: 146px; padding: 3px 6px; border-radius: 6px; background: #eaf1ff; color: #42618f; font-size: 11px; }
.cs-pending-attachment button { border: 0; background: transparent; color: #5976a7; cursor: pointer; font: 700 14px/1 inherit; }
.cs-pending-attachment-error { display: block; width: 100%; color: #bb2343; font-size: 11px; line-height: 1.35; }
.cs-compose__row { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; }
.cs-attachment-button {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(99, 137, 219, .12);
    border-radius: 10px;
    background: rgba(234, 240, 255, .92);
    color: #3f68e8;
    cursor: pointer;
    touch-action: manipulation;
}

.cs-attachment-button:hover,
.cs-attachment-button:focus-visible { background: #dce7ff; outline: 2px solid rgba(64, 120, 255, .38); outline-offset: 1px; }
.cs-attachment-button:active { transform: scale(.96); }
.cs-attachment-button svg { width: 21px; height: 21px; fill: currentColor; }
.cs-compose__input { height: 44px; min-height: 44px; padding: 9px 10px; resize: none; font-size: 15px; }
.cs-compose__send { flex: 0 0 62px; height: 44px; }
.cs-notice { position: absolute; z-index: 2; right: 10px; left: 10px; bottom: 68px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 9px; background: rgba(23, 42, 74, .92); color: #fff; font-size: 13px; line-height: 1.35; text-align: center; pointer-events: none; }

.customer-service-admin-root .cs-fab { right: 16px; bottom: 16px; }

.cs-admin-panel {
    right: 16px;
    bottom: 78px;
    width: min(840px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 94px));
    height: min(580px, calc(100dvh - 94px));
    border-radius: var(--cs-radius);
}

.cs-admin-panel__header { padding-left: 16px; }
.cs-admin-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.cs-admin-list { min-height: 0; overflow: auto; border-right: 1px solid rgba(112, 142, 190, .18); background: rgba(255, 255, 255, .58); scrollbar-color: #b5c9e8 transparent; }
.cs-admin-empty,
.cs-admin-welcome { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 20px; color: var(--cs-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.cs-admin-conversation { width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid rgba(118, 148, 195, .12); background: transparent; color: inherit; cursor: pointer; text-align: left; transition: background .14s var(--cs-ease); }
.cs-admin-conversation:hover,
.cs-admin-conversation:focus-visible,
.cs-admin-conversation.is-selected { background: rgba(222, 234, 255, .76); outline: 0; }
.cs-admin-conversation:focus-visible { box-shadow: inset 3px 0 #4f83ff; }
.cs-admin-conversation__top,
.cs-admin-conversation__meta { display: flex; align-items: center; gap: 6px; }
.cs-admin-conversation__top { justify-content: flex-start; }
.cs-admin-conversation__meta { justify-content: space-between; }
.cs-admin-conversation__contact { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cs-admin-conversation__time,
.cs-admin-conversation__preview { color: var(--cs-muted); font-size: 11px; }
.cs-admin-conversation__preview { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.cs-admin-conversation__identity { display: inline-flex; min-width: 0; align-items: center; gap: 4px; color: var(--cs-muted); font-size: 11px; }
.cs-admin-conversation__id { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-participant-tag { flex: 0 0 auto; padding: 2px 5px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.cs-participant-tag--visitor { border-color: #b8d4ff; background: #eaf3ff; color: #175fc0; }
.cs-participant-tag--member { border-color: #d8c7ff; background: #f3edff; color: #7243bf; }
.cs-participant-tag--substation { border-color: #9ce6d4; background: #e8fbf5; color: #08785f; }
.cs-status { flex: 0 0 auto; margin-left: auto; padding: 2px 5px; border-radius: 5px; font-size: 10px; font-weight: 700; line-height: 1.35; }
.cs-status--new { background: #fee2e2; color: #bd1837; }
.cs-status--read { background: #fef3c7; color: #995d06; }
.cs-status--replied { background: #dcfce7; color: #167337; }
.cs-admin-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.cs-admin-chat__head { flex: 0 0 auto; padding: 9px 12px; border-bottom: 1px solid rgba(112, 142, 190, .16); background: rgba(255, 255, 255, .54); }
.cs-admin-chat__head strong { display: block; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; }
.cs-admin-chat__head small { display: block; margin-top: 2px; color: var(--cs-muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.cs-admin-message-list { padding: 8px 12px; }

@media (min-width: 621px) and (max-width: 1100px) {
    .cs-panel { right: 14px; bottom: 76px; width: min(376px, calc(100vw - 28px)); height: min(516px, calc(100vh - 92px)); height: min(516px, calc(100dvh - 92px)); }
    .cs-admin-panel { right: 14px; bottom: 76px; width: calc(100vw - 28px); height: min(552px, calc(100vh - 92px)); height: min(552px, calc(100dvh - 92px)); }
    .cs-admin-layout { grid-template-columns: 232px minmax(0, 1fr); }
}

@media (max-width: 620px) {
    .cs-fab { right: 12px; bottom: 12px; width: 52px; height: 52px; }
    .cs-panel { right: 8px; bottom: 72px; width: calc(100% - 16px); height: min(496px, calc(100vh - 80px)); height: min(496px, calc(100dvh - 80px)); border-radius: 16px; }
    .cs-panel__header,
    .cs-admin-panel__header { flex-basis: 48px; padding-left: 12px; }
    .cs-panel__title,
    .cs-admin-panel__header h2 { font-size: 16px; }
    .cs-panel__tool,
    .cs-admin-panel__close { min-width: 40px; min-height: 40px; }
    .cs-intro,
    .cs-chat-intro { padding-top: 8px; padding-bottom: 6px; font-size: 13px; }
    .cs-form-fields { gap: 7px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; }
    .cs-input,
    .cs-textarea,
    .cs-compose__input { font-size: 16px; }
    .cs-input { height: 42px; }
    .cs-textarea { min-height: 72px; }
    .cs-message-list { padding-right: 8px; padding-bottom: 6px; padding-left: 8px; }
    .cs-message__bubble { max-width: 86%; font-size: 14px; }
    .cs-compose__row { padding: 7px 7px 7px 8px; }
    .cs-attachment-button { flex-basis: 44px; width: 44px; height: 44px; }
    .cs-compose__input { height: 44px; min-height: 44px; }
    .cs-compose__send { flex-basis: 60px; height: 44px; }
    .cs-notice { right: 8px; bottom: 62px; left: 8px; }
    .customer-service-admin-root .cs-fab { right: 12px; bottom: 12px; }
    .cs-admin-panel { right: 8px; bottom: 72px; width: calc(100% - 16px); height: calc(100vh - 80px); height: calc(100dvh - 80px); border-radius: 16px; }
    .cs-admin-layout { grid-template-columns: 38% 62%; }
    .cs-admin-list { min-width: 0; }
    .cs-admin-conversation { padding: 8px; }
    .cs-admin-conversation__time { display: none; }
    .cs-admin-message-list { padding: 8px; }
    .cs-admin-compose .cs-compose__row { padding-right: 7px; }
}

/* 前台仅在移动端按实际可见的底部导航/购买栏上移，不影响后台工作台或桌面布局。 */
@media (max-width: 768px) {
    .customer-service-widget-root {
        --cs-frontend-fab-size: 54px;
        --cs-frontend-fab-gap: 6px;
        --cs-frontend-safe-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        --cs-frontend-fab-bottom: calc(var(--cs-frontend-safe-bottom) + var(--cs-frontend-dock-offset));
        --cs-frontend-panel-bottom: calc(var(--cs-frontend-fab-bottom) + var(--cs-frontend-fab-size) + var(--cs-frontend-fab-gap));
        --cs-frontend-panel-top-gap: 16px;
    }

    .customer-service-widget-root .cs-fab {
        bottom: var(--cs-frontend-fab-bottom);
    }

    .customer-service-widget-root .cs-panel {
        bottom: var(--cs-frontend-panel-bottom);
        height: min(516px, calc(100vh - var(--cs-frontend-panel-bottom) - var(--cs-frontend-panel-top-gap)));
        height: min(516px, calc(100dvh - var(--cs-frontend-panel-bottom) - var(--cs-frontend-panel-top-gap)));
    }
}

@media (min-width: 621px) and (max-width: 768px) {
    .customer-service-widget-root .cs-fab { right: 14px; }
}

@media (max-width: 620px) {
    .customer-service-widget-root {
        --cs-frontend-fab-size: 52px;
        --cs-frontend-fab-gap: 8px;
        --cs-frontend-safe-bottom: max(12px, env(safe-area-inset-bottom, 0px));
        --cs-frontend-panel-top-gap: 8px;
    }

    .customer-service-widget-root .cs-panel {
        height: min(496px, calc(100vh - var(--cs-frontend-panel-bottom) - var(--cs-frontend-panel-top-gap)));
        height: min(496px, calc(100dvh - var(--cs-frontend-panel-bottom) - var(--cs-frontend-panel-top-gap)));
    }
}

@media (max-height: 560px) {
    .cs-panel { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
    .cs-intro { padding-top: 7px; padding-bottom: 5px; }
    .cs-textarea { min-height: 66px; max-height: 92px; }
}

@media (max-width: 768px) and (max-height: 560px) {
    .customer-service-widget-root .cs-panel {
        height: calc(100vh - var(--cs-frontend-panel-bottom));
        height: calc(100dvh - var(--cs-frontend-panel-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-service-widget-root *,
    .customer-service-admin-root * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
