.itc-chat {
    --itc-bg: #ffffff;
    --itc-panel: #ffffff;
    --itc-text: #172033;
    --itc-muted: #64748b;
    --itc-border: rgba(15, 23, 42, 0.12);
    --itc-primary: #2563eb;
    --itc-primary-contrast: #ffffff;
    --itc-soft: #f1f5f9;
    --itc-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: inherit;
    color: var(--itc-text);
}

.itc-chat * {
    box-sizing: border-box;
}

.itc-chat__launcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--itc-primary);
    color: var(--itc-primary-contrast);
    padding: 13px 18px;
    box-shadow: var(--itc-shadow);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
}

.itc-chat__launcher-icon {
    font-size: 20px;
    line-height: 1;
}

.itc-chat__panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(380px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--itc-border);
    border-radius: 22px;
    background: var(--itc-panel);
    box-shadow: var(--itc-shadow);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.itc-chat--open .itc-chat__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.itc-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--itc-border);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
}

.itc-chat__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.itc-chat__title {
    font-size: 16px;
    line-height: 1.2;
}

.itc-chat__subtitle {
    color: var(--itc-muted);
    font-size: 13px;
    line-height: 1.35;
}

.itc-chat__close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--itc-text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0;
}

.itc-chat__intro {
    padding: 14px 16px 8px;
}

.itc-chat__intro p {
    margin: 0 0 10px;
    color: var(--itc-muted);
    font-size: 13px;
    line-height: 1.45;
}


.itc-chat__intro--compact .itc-chat__suggestions {
    display: none;
}

.itc-chat__intro--compact {
    padding-bottom: 6px;
}

.itc-chat__suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.itc-chat__suggestion {
    width: 100%;
    border: 1px solid var(--itc-border);
    border-radius: 14px;
    background: var(--itc-soft);
    color: var(--itc-text);
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.itc-chat__messages {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    padding: 8px 16px 14px;
}

.itc-chat__message {
    display: flex;
    margin: 8px 0;
}

.itc-chat__message--visitor {
    justify-content: flex-end;
}

.itc-chat__message--operator,
.itc-chat__message--system {
    justify-content: flex-start;
}

.itc-chat__bubble {
    max-width: 84%;
    border-radius: 16px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.itc-chat__message--visitor .itc-chat__bubble {
    border-bottom-right-radius: 5px;
    background: var(--itc-primary);
    color: var(--itc-primary-contrast);
}

.itc-chat__message--operator .itc-chat__bubble {
    border-bottom-left-radius: 5px;
    background: var(--itc-soft);
    color: var(--itc-text);
}

.itc-chat__message--system .itc-chat__bubble {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.itc-chat__form {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--itc-border);
    background: var(--itc-bg);
}

.itc-chat__input {
    flex: 1;
    min-height: 42px;
    max-height: 110px;
    resize: vertical;
    border: 1px solid var(--itc-border);
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--itc-text);
    background: var(--itc-bg);
    outline: none;
}

.itc-chat__input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.itc-chat__send {
    border: 0;
    border-radius: 14px;
    background: var(--itc-primary);
    color: var(--itc-primary-contrast);
    padding: 0 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.itc-chat__send:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
    .itc-chat {
        --itc-bg: #0f172a;
        --itc-panel: #111827;
        --itc-text: #e5e7eb;
        --itc-muted: #9ca3af;
        --itc-border: rgba(148, 163, 184, 0.22);
        --itc-soft: #1f2937;
        --itc-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 640px) {
    .itc-chat {
        right: 14px;
        bottom: 14px;
    }

    .itc-chat__launcher {
        width: 54px;
        height: 54px;
        justify-content: center;
        padding: 0;
    }

    .itc-chat__launcher-text {
        display: none;
    }

    .itc-chat__panel {
        position: fixed;
        right: 10px;
        left: 10px;
        bottom: 78px;
        width: auto;
        max-height: calc(100vh - 96px);
        border-radius: 20px;
    }

    .itc-chat__subtitle {
        font-size: 12px;
    }
}

/* Fase 2 hotfix v2.0.4: botão de fechar centralizado na classe real */
.itc-chat .itc-chat__close {
    appearance: none;
    -webkit-appearance: none;
    width: 58px;
    height: 30px;
    min-width: 58px;
    min-height: 30px;
    max-width: 58px;
    max-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    flex: 0 0 58px;
    padding: 0;
    margin: 0;
    border: 0;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
}

.itc-chat .itc-chat__close::before {
    content: "×";
    display: block;
    width: 100%;
    height: 30px;
    line-height: 28px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.itc-chat .itc-chat__close {
    font-size: 0;
}

/* Fase 2.1.3: configurações sem alterar a estrutura visual validada */
.itc-chat {
    bottom: var(--itc-offset-bottom, 24px);
}

.itc-chat--right {
    right: var(--itc-offset-side, 24px);
    left: auto;
}

.itc-chat--left {
    left: var(--itc-offset-side, 24px);
    right: auto;
}

.itc-chat--left .itc-chat__panel {
    left: 0;
    right: auto;
}

.itc-chat__title-wrap {
    min-width: 0;
}

.itc-chat__initial-text {
    display: inline-block;
    width: fit-content;
    max-width: 82%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: var(--itc-soft);
    color: var(--itc-text);
    font-size: 14px;
    line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
    .itc-chat__initial-text {
        background: rgba(255, 255, 255, 0.08);
        color: var(--itc-text);
    }
}

/* Fase 2.1.1: polimento visual e UX */
.itc-chat {
    z-index: 999999;
}

.itc-chat__panel {
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.itc-chat__header {
    min-height: 72px;
    align-items: center;
    gap: 14px;
}

.itc-chat__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.itc-chat__title {
    line-height: 1.2;
}

.itc-chat__subtitle {
    display: block;
    line-height: 1.35;
    opacity: 0.92;
}

.itc-chat__close {
    flex: 0 0 auto;
}

.itc-chat__body {
    min-height: 230px;
}

.itc-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
}

.itc-chat__intro {
    margin-bottom: 4px;
}

.itc-chat__initial-text {
    display: inline-block;
    width: fit-content;
    max-width: 82%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 14px;
    line-height: 1.35;
}

.itc-chat__message {
    margin: 0;
}

.itc-chat__bubble {
    line-height: 1.38;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.itc-chat__suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.itc-chat__starter-hint {
    margin: -4px 8px 12px;
    color: var(--itc-muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.itc-chat__suggestion {
    line-height: 1.3;
    min-height: 44px;
    white-space: normal;
}

.itc-chat__form {
    align-items: stretch;
    gap: 10px;
}

.itc-chat__input {
    min-height: 50px;
    max-height: 110px;
    line-height: 1.35;
    padding: 14px 14px;
    resize: none;
}

.itc-chat__send {
    min-width: 88px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.itc-chat__launcher {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

@media (max-width: 480px) {
    .itc-chat {
        bottom: 12px;
    }

    .itc-chat--right {
        right: 12px;
        left: auto;
    }

    .itc-chat--left {
        left: 12px;
        right: auto;
    }

    .itc-chat__panel {
        width: auto;
        max-width: none;
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .itc-chat__body {
        min-height: 260px;
    }

    .itc-chat__header {
        min-height: 68px;
    }

    .itc-chat__form {
        padding: 12px;
    }

    .itc-chat__input {
        min-height: 48px;
        font-size: 14px;
    }

    .itc-chat__send {
        min-width: 78px;
        min-height: 48px;
    }
}

/* Fase 2.1.1 hotfix v2.1.6: mobile position + Enter */
@media (max-width: 480px) {
    .itc-chat {
        bottom: 12px;
        width: auto;
    }

    .itc-chat--right {
        right: 12px;
        left: auto;
    }

    .itc-chat--left {
        left: 12px;
        right: auto;
    }

    .itc-chat__panel {
        width: min(380px, calc(100vw - 24px));
    }
}

/* Fase 2.1.1 v2.1.7: badge SVG moderno */
.itc-chat__launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 152px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    background: #4f5fe3;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.30);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.itc-chat__launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.itc-chat__launcher:active {
    transform: translateY(0);
}

.itc-chat__launcher-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
}

.itc-chat__launcher-svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.itc-chat__launcher-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

@media (max-width: 480px) {
    .itc-chat__launcher {
        width: 58px;
        height: 58px;
        min-width: 58px;
        min-height: 58px;
        max-width: 58px;
        max-height: 58px;
        padding: 0;
        border-radius: 999px;
        gap: 0;
    }

    .itc-chat__launcher-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .itc-chat__launcher-svg {
        width: 28px;
        height: 28px;
    }

    .itc-chat__launcher-text {
        display: none;
    }
}

/* Fase 2.1.1 v2.1.8: badge corrigido */
.itc-chat .itc-chat__launcher {
    width: auto !important;
    height: 48px !important;
    min-width: 142px !important;
    min-height: 48px !important;
    max-width: none !important;
    max-height: 48px !important;
    padding: 0 17px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    background: #4f5fe3 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

.itc-chat .itc-chat__launcher-icon {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
}

.itc-chat .itc-chat__launcher-svg {
    width: 23px !important;
    height: 23px !important;
    display: block !important;
}

.itc-chat .itc-chat__launcher-text {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: inherit !important;
}

@media (max-width: 480px) {
    .itc-chat .itc-chat__launcher {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        gap: 0 !important;
    }

    .itc-chat .itc-chat__launcher-icon {
        width: 31px !important;
        height: 31px !important;
        min-width: 31px !important;
    }

    .itc-chat .itc-chat__launcher-svg {
        width: 31px !important;
        height: 31px !important;
    }

    .itc-chat .itc-chat__launcher-text {
        display: none !important;
    }
}

/* Fase 2.1.1 v2.1.9: alinhamento desktop do badge */
.itc-chat .itc-chat__launcher {
    align-items: center !important;
    vertical-align: middle !important;
}

.itc-chat .itc-chat__launcher-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex: 0 0 22px !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(0) !important;
}

.itc-chat .itc-chat__launcher-svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    flex: 0 0 22px !important;
    transform: translateY(0.5px) !important;
}

.itc-chat .itc-chat__launcher-text {
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
    line-height: 22px !important;
    transform: translateY(0) !important;
}

@media (max-width: 480px) {
    .itc-chat .itc-chat__launcher-icon {
        width: 31px !important;
        height: 31px !important;
        min-width: 31px !important;
        flex-basis: 31px !important;
    }

    .itc-chat .itc-chat__launcher-svg {
        width: 31px !important;
        height: 31px !important;
        flex-basis: 31px !important;
        transform: none !important;
    }

    .itc-chat .itc-chat__launcher-text {
        display: none !important;
    }
}

/* Fase 2.1.1 v2.1.10: badge desktop alinhado ao site */
.itc-chat .itc-chat__launcher {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    min-width: 138px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    gap: 8px !important;
    background: #4f5fe3 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
}

.itc-chat .itc-chat__launcher-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
}

.itc-chat .itc-chat__launcher-svg {
    width: 20px !important;
    height: 20px !important;
}

.itc-chat .itc-chat__launcher-text {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 480px) {
    .itc-chat .itc-chat__launcher {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
}

/* Fase 2.1.1 v2.1.11: aproximação visual Elementor */
.itc-chat .itc-chat__launcher {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    min-width: 132px !important;
    padding: 0 15px !important;
    border-radius: 6px !important;
    gap: 7px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.18) !important;
}

.itc-chat .itc-chat__launcher-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
}

.itc-chat .itc-chat__launcher-svg {
    width: 18px !important;
    height: 18px !important;
}

.itc-chat .itc-chat__launcher-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 480px) {
    .itc-chat .itc-chat__launcher {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
}

/* Fase 2.1.1 v2.1.12: equilíbrio ícone mobile */
@media (max-width: 480px) {
    .itc-chat .itc-chat__launcher-icon {
        width: 27px !important;
        height: 27px !important;
        min-width: 27px !important;
        flex: 0 0 27px !important;
    }

    .itc-chat .itc-chat__launcher-svg {
        width: 27px !important;
        height: 27px !important;
    }
}

/* Fase 2.2 v2.2.3: unread badge and history */
.itc-chat .itc-chat__history {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.itc-chat .itc-chat__launcher {
    position: relative !important;
}

.itc-chat .itc-chat__unread-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.22);
    opacity: 0;
    transform: scale(.82);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.itc-chat.itc-chat--has-unread .itc-chat__unread-badge {
    opacity: 1;
    transform: scale(1);
}

.itc-chat.itc-chat--operator-replied .itc-chat__launcher {
    animation: itc-launcher-pulse 1.2s ease-in-out 2;
}

@keyframes itc-launcher-pulse {
    0%, 100% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(-2px);
    }

    70% {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .itc-chat .itc-chat__unread-badge {
        top: -5px;
        right: -5px;
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
    }
}

/* Fase 2.2 v2.2.4: scroll render fix */
.itc-chat .itc-chat__body {
    min-height: 0 !important;
    overflow: hidden !important;
}

.itc-chat .itc-chat__messages {
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

.itc-chat .itc-chat__history {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    width: 100%;
}

.itc-chat .itc-chat__history .itc-chat__message:last-child {
    margin-bottom: 2px;
}

.itc-chat .itc-chat__bubble {
    white-space: pre-wrap;
}

/* Fase 2.2 v2.2.6: scroll livre e espaçamento */
.itc-chat .itc-chat__panel {
    display: flex !important;
    flex-direction: column !important;
}

.itc-chat .itc-chat__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.itc-chat .itc-chat__messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 14px !important;
}

.itc-chat .itc-chat__history {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
}

.itc-chat .itc-chat__message {
    margin: 0 !important;
}

.itc-chat .itc-chat__message--same-sender {
    margin-top: 5px !important;
}

.itc-chat .itc-chat__message--new-sender {
    margin-top: 12px !important;
}

.itc-chat .itc-chat__history .itc-chat__message:first-child {
    margin-top: 0 !important;
}

.itc-chat .itc-chat__bubble {
    white-space: pre-wrap !important;
}

.itc-chat .itc-chat__intro {
    margin-bottom: 10px !important;
}

.itc-chat .itc-chat__suggestions {
    margin-bottom: 12px !important;
}

/* Fase 2.2 v2.2.7: respiro inferior do histórico */
.itc-chat .itc-chat__messages {
    padding-bottom: 30px !important;
    scroll-padding-bottom: 30px !important;
}

.itc-chat .itc-chat__history {
    padding-bottom: 16px !important;
}

.itc-chat .itc-chat__history .itc-chat__message:last-child {
    margin-bottom: 10px !important;
}

/* Fase 2.2 v2.2.8: espaçador final real */
.itc-chat .itc-chat__history::after {
    content: "";
    display: block;
    flex: 0 0 28px;
    width: 100%;
    height: 28px;
}

.itc-chat .itc-chat__history .itc-chat__message:last-child {
    margin-bottom: 0 !important;
}

.itc-chat .itc-chat__messages {
    padding-bottom: 16px !important;
}

.itc-chat .itc-chat__form {
    flex: 0 0 auto !important;
}

/* Fase 2.2 v2.2.9: notificação persistente */
.itc-chat.itc-chat--has-unread .itc-chat__launcher {
    outline: 0 solid transparent;
}

/* Fase 2.2 v2.2.10: painel mobile centralizado e scroll interno */
@media (max-width: 768px) {
    .itc-chat.itc-chat--open .itc-chat__panel {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: 12px !important;
        bottom: 12px !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 24px) !important;
        max-width: 420px !important;
        height: auto !important;
        max-height: calc(100dvh - 24px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        z-index: 999999 !important;
    }

    .itc-chat.itc-chat--open .itc-chat__header {
        flex: 0 0 auto !important;
    }

    .itc-chat.itc-chat--open .itc-chat__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .itc-chat.itc-chat--open .itc-chat__messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .itc-chat.itc-chat--open .itc-chat__form {
        flex: 0 0 auto !important;
    }

    .itc-chat.itc-chat--open .itc-chat__close {
        flex: 0 0 auto !important;
        position: relative !important;
        z-index: 2 !important;
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 768px) {
        .itc-chat.itc-chat--open .itc-chat__panel {
            max-height: calc(100vh - 24px) !important;
        }
    }
}

/* Fase 2.2 v2.2.11: animação mobile modal */
@media (max-width: 768px) {
    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) translateY(10px) scale(.965) !important;
        transform-origin: center bottom !important;
        transition:
            opacity .18s ease,
            visibility .18s ease,
            transform .22s cubic-bezier(.2, .8, .2, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__panel {
        transition: none !important;
        transform: translateX(-50%) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        transform: translateX(-50%) !important;
    }
}

/* Fase 2.2 v2.2.12: animação mobile suavizada */
@media (max-width: 768px) {
    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) translateY(18px) scale(.94) !important;
        transform-origin: center bottom !important;
        will-change: opacity, transform !important;
        transition:
            opacity .32s ease,
            transform .36s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .36s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
        transition:
            opacity .28s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__panel::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
        transition: opacity .34s ease !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel::before {
        opacity: 1;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__panel,
    .itc-chat.itc-chat--open .itc-chat__panel {
        transition: none !important;
        transform: translateX(-50%) !important;
    }
}

/* Fase 2.2 v2.2.13: motion premium desktop e mobile */
.itc-chat .itc-chat__launcher,
.itc-chat .itc-chat__panel {
    will-change: opacity, transform !important;
}

/* Desktop/tablet: widget contextual, sem scale exagerado */
@media (min-width: 769px) {
    .itc-chat .itc-chat__launcher {
        transition:
            opacity .18s ease,
            transform .22s cubic-bezier(.2, .8, .2, 1),
            box-shadow .22s ease !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translateY(8px) scale(.98) !important;
        pointer-events: none !important;
    }

    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(12px) !important;
        transform-origin: right bottom !important;
        transition:
            opacity .22s ease,
            transform .28s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .28s !important;
    }

    .itc-chat.itc-chat--left .itc-chat__panel {
        transform-origin: left bottom !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        transition:
            opacity .2s ease,
            transform .28s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }
}

/* Mobile: modal/sheet leve, centralizado e sem troca lateral */
@media (max-width: 768px) {
    .itc-chat .itc-chat__launcher {
        transition:
            opacity .16s ease,
            transform .2s cubic-bezier(.2, .8, .2, 1),
            box-shadow .2s ease !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translateY(10px) scale(.88) !important;
        pointer-events: none !important;
    }

    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) translateY(24px) scale(.925) !important;
        transform-origin: center bottom !important;
        filter: saturate(.96) blur(.2px);
        transition:
            opacity .28s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1),
            filter .28s ease,
            visibility 0s linear .34s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
        filter: saturate(1) blur(0);
        transition:
            opacity .24s ease,
            transform .36s cubic-bezier(.16, 1, .3, 1),
            filter .24s ease,
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__panel::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        box-shadow: 0 22px 58px rgba(0, 0, 0, .34);
        transition: opacity .32s ease !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel::before {
        opacity: 1;
    }
}

/* Acessibilidade: respeita usuários que reduzem movimento no sistema */
@media (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__launcher,
    .itc-chat .itc-chat__panel,
    .itc-chat .itc-chat__panel::before {
        transition: none !important;
        animation: none !important;
        filter: none !important;
    }

    @media (max-width: 768px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translateX(-50%) !important;
        }
    }

    @media (min-width: 769px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: none !important;
        }
    }
}

/* Fase 2.2 v2.2.14: motion linear sem deslocamento diagonal */
.itc-chat .itc-chat__launcher {
    will-change: opacity, transform !important;
}

/* Desktop: movimento vertical puro */
@media (min-width: 769px) {
    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 14px, 0) !important;
        transform-origin: center bottom !important;
        will-change: opacity, transform !important;
        transition:
            opacity .26s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .34s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        transition:
            opacity .22s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .18s ease,
            transform .24s cubic-bezier(.16, 1, .3, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 6px, 0) !important;
        pointer-events: none !important;
    }
}

/* Mobile: centralização fixa + movimento visual somente vertical */
@media (max-width: 768px) {
    .itc-chat.itc-chat--open .itc-chat__panel,
    .itc-chat .itc-chat__panel {
        left: 50% !important;
        right: auto !important;
    }

    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(-50%, 18px, 0) scale(.985) !important;
        transform-origin: center bottom !important;
        will-change: opacity, transform !important;
        filter: none !important;
        transition:
            opacity .28s ease,
            transform .36s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .36s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(-50%, 0, 0) scale(1) !important;
        transition:
            opacity .24s ease,
            transform .36s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .18s ease,
            transform .22s cubic-bezier(.16, 1, .3, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 8px, 0) scale(.96) !important;
        pointer-events: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__launcher,
    .itc-chat .itc-chat__panel {
        transition: none !important;
        animation: none !important;
        filter: none !important;
    }

    @media (max-width: 768px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translate3d(-50%, 0, 0) !important;
        }
    }

    @media (min-width: 769px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translate3d(0, 0, 0) !important;
        }
    }
}

/* Fase 2.2 v2.2.15: limpeza de motion e suavização final */
.itc-chat .itc-chat__panel::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
}

/* Desktop: abertura/fechamento vertical mais suave */
@media (min-width: 769px) {
    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        filter: none !important;
        transform: translate3d(0, 16px, 0) !important;
        transition:
            opacity .34s ease,
            transform .46s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .46s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        filter: none !important;
        transform: translate3d(0, 0, 0) !important;
        transition:
            opacity .3s ease,
            transform .46s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .24s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 8px, 0) !important;
        pointer-events: none !important;
    }
}

/* Mobile: movimento apenas vertical, sem scale e sem camada fantasma */
@media (max-width: 768px) {
    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        filter: none !important;
        transform: translate3d(-50%, 26px, 0) !important;
        transform-origin: center bottom !important;
        transition:
            opacity .34s ease,
            transform .48s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .48s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        filter: none !important;
        transform: translate3d(-50%, 0, 0) !important;
        transition:
            opacity .3s ease,
            transform .48s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .22s ease,
            transform .32s cubic-bezier(.16, 1, .3, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 10px, 0) !important;
        pointer-events: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__launcher,
    .itc-chat .itc-chat__panel {
        transition: none !important;
        animation: none !important;
        filter: none !important;
    }

    @media (max-width: 768px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translate3d(-50%, 0, 0) !important;
        }
    }

    @media (min-width: 769px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translate3d(0, 0, 0) !important;
        }
    }
}

/* Fase 2.2 v2.2.16: mobile como sheet parcial e desktop mais suave */

/* Desktop: movimento vertical mais discreto e fluido */
@media (min-width: 769px) {
    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 10px, 0) !important;
        transition:
            opacity .36s ease,
            transform .5s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .5s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        transition:
            opacity .32s ease,
            transform .5s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .26s ease,
            transform .38s cubic-bezier(.16, 1, .3, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 6px, 0) !important;
        pointer-events: none !important;
    }
}

/* Mobile: card/sheet parcial em vez de quase fullscreen */
@media (max-width: 768px) {
    .itc-chat.itc-chat--open .itc-chat__panel {
        top: auto !important;
        bottom: calc(var(--itc-offset-bottom, 24px) + 76px) !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100vw - 28px) !important;
        max-width: 410px !important;
        height: min(72dvh, 560px) !important;
        max-height: min(72dvh, 560px) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(-50%, 10px, 0) scale(.99) !important;
        transform-origin: center bottom !important;
        transition:
            opacity .28s ease,
            transform .38s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .38s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(-50%, 0, 0) scale(1) !important;
        transition:
            opacity .26s ease,
            transform .42s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .itc-chat.itc-chat--open .itc-chat__messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .22s ease,
            transform .32s cubic-bezier(.16, 1, .3, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 6px, 0) scale(.96) !important;
        pointer-events: none !important;
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 768px) {
        .itc-chat.itc-chat--open .itc-chat__panel {
            height: min(72vh, 560px) !important;
            max-height: min(72vh, 560px) !important;
        }
    }
}

@media (max-width: 380px) {
    .itc-chat.itc-chat--open .itc-chat__panel {
        height: min(76dvh, 560px) !important;
        max-height: min(76dvh, 560px) !important;
        bottom: calc(var(--itc-offset-bottom, 24px) + 70px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__launcher,
    .itc-chat .itc-chat__panel {
        transition: none !important;
        animation: none !important;
    }

    @media (max-width: 768px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translate3d(-50%, 0, 0) !important;
        }
    }

    @media (min-width: 769px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            transform: translate3d(0, 0, 0) !important;
        }
    }
}

/* Fase 2.2 v2.2.17: correção definitiva do fechamento mobile
   Mantém o MESMO tamanho/posição no estado aberto e fechado.
   Só anima opacity/transform/visibility para evitar expansão fullscreen no fechamento. */
@media (max-width: 768px) {
    .itc-chat .itc-chat__panel,
    .itc-chat.itc-chat--open .itc-chat__panel {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: calc(var(--itc-offset-bottom, 24px) + 76px) !important;
        width: calc(100vw - 28px) !important;
        max-width: 410px !important;
        height: min(72dvh, 560px) !important;
        max-height: min(72dvh, 560px) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        transform-origin: center bottom !important;
        filter: none !important;
        z-index: 999999 !important;
    }

    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(-50%, 10px, 0) !important;
        transition:
            opacity .26s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .34s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(-50%, 0, 0) !important;
        transition:
            opacity .24s ease,
            transform .34s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__header {
        flex: 0 0 auto !important;
    }

    .itc-chat.itc-chat--open .itc-chat__body,
    .itc-chat .itc-chat__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .itc-chat.itc-chat--open .itc-chat__messages,
    .itc-chat .itc-chat__messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .itc-chat.itc-chat--open .itc-chat__form,
    .itc-chat .itc-chat__form {
        flex: 0 0 auto !important;
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 768px) {
        .itc-chat .itc-chat__panel,
        .itc-chat.itc-chat--open .itc-chat__panel {
            height: min(72vh, 560px) !important;
            max-height: min(72vh, 560px) !important;
        }
    }
}

@media (max-width: 380px) {
    .itc-chat .itc-chat__panel,
    .itc-chat.itc-chat--open .itc-chat__panel {
        height: min(76dvh, 560px) !important;
        max-height: min(76dvh, 560px) !important;
        bottom: calc(var(--itc-offset-bottom, 24px) + 70px) !important;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__panel,
    .itc-chat.itc-chat--open .itc-chat__panel {
        transition: none !important;
        transform: translate3d(-50%, 0, 0) !important;
    }
}

/* Fase 2.2 v2.2.18: ajuste mobile somente com teclado aberto */
@media (max-width: 768px) {
    .itc-chat.itc-chat--keyboard-open .itc-chat__panel,
    .itc-chat.itc-chat--keyboard-open.itc-chat--open .itc-chat__panel {
        top: 8px !important;
        bottom: auto !important;
        height: var(--itc-mobile-keyboard-height, 420px) !important;
        max-height: var(--itc-mobile-keyboard-height, 420px) !important;
        transform: translate3d(-50%, 0, 0) !important;
    }

    .itc-chat.itc-chat--keyboard-open .itc-chat__messages {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .itc-chat.itc-chat--keyboard-open .itc-chat__form {
        flex: 0 0 auto !important;
    }
}

/* Fase 2.2 v2.2.19: refinamento final motion mobile
   Objetivo:
   - eliminar sensação de tela fechando por cima
   - reduzir peso visual
   - motion mais natural estilo sheet/modal leve
*/
@media (max-width: 768px) {
    .itc-chat .itc-chat__panel,
    .itc-chat.itc-chat--open .itc-chat__panel {
        backface-visibility: hidden !important;
        perspective: 1000px !important;
        contain: layout paint style !important;
    }

    .itc-chat .itc-chat__panel {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(-50%, 6px, 0) !important;
        transition:
            opacity .22s ease,
            transform .28s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .28s !important;
    }

    .itc-chat.itc-chat--open .itc-chat__panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(-50%, 0, 0) !important;
        transition:
            opacity .2s ease,
            transform .3s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear 0s !important;
    }

    .itc-chat .itc-chat__launcher {
        transition:
            opacity .16s ease,
            transform .22s cubic-bezier(.22, 1, .36, 1) !important;
    }

    .itc-chat.itc-chat--open .itc-chat__launcher {
        opacity: 0 !important;
        transform: translate3d(0, 3px, 0) !important;
        pointer-events: none !important;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__panel,
    .itc-chat.itc-chat--open .itc-chat__panel,
    .itc-chat .itc-chat__launcher {
        transition: none !important;
        transform: translate3d(-50%, 0, 0) !important;
    }
}
/* Fase 2.2 v2.2.23: integração light/dark com variáveis globais do site
   Usa exclusivamente variáveis já existentes no tema:
   --bg, --text, --muted, --card, --card2, --border, --brand, --brand-hover.
   Escopo isolado em .itc-chat para não interferir no Elementor/site. */
.itc-chat {
    --itc-bg: var(--card, #ffffff);
    --itc-bg-strong: var(--card2, #f6f7f9);
    --itc-text: var(--text, #0f172a);
    --itc-muted: var(--muted, #475569);
    --itc-border: var(--border, rgba(15, 23, 42, .14));
    --itc-brand: var(--brand, #3A5BCC);
    --itc-brand-hover: var(--brand-hover, #5c77ff);
    --itc-panel-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    --itc-operator-bg: rgba(15, 23, 42, .08);
    --itc-input-bg: #ffffff;
    --itc-input-text: #0f172a;
    --itc-input-border: rgba(15, 23, 42, .16);
    color: var(--itc-text) !important;
}

.itc-chat .itc-chat__panel {
    background: var(--itc-bg) !important;
    color: var(--itc-text) !important;
    border: 1px solid var(--itc-border) !important;
    box-shadow: var(--itc-panel-shadow) !important;
}

.itc-chat .itc-chat__header {
    background: color-mix(in srgb, var(--itc-bg-strong) 72%, transparent) !important;
    color: var(--itc-text) !important;
    border-bottom: 1px solid var(--itc-border) !important;
}

.itc-chat .itc-chat__title {
    color: var(--itc-text) !important;
}

.itc-chat .itc-chat__subtitle {
    color: var(--itc-muted) !important;
}

.itc-chat .itc-chat__body,
.itc-chat .itc-chat__messages {
    background: var(--itc-bg) !important;
    color: var(--itc-text) !important;
}

.itc-chat .itc-chat__form {
    background: color-mix(in srgb, var(--itc-bg) 92%, var(--itc-bg-strong)) !important;
    border-top: 1px solid var(--itc-border) !important;
}

.itc-chat .itc-chat__initial-text,
.itc-chat .itc-chat__message--operator .itc-chat__bubble {
    background: var(--itc-operator-bg) !important;
    color: var(--itc-text) !important;
}

.itc-chat .itc-chat__message--visitor .itc-chat__bubble,
.itc-chat .itc-chat__suggestion,
.itc-chat .itc-chat__send,
.itc-chat .itc-chat__close,
.itc-chat .itc-chat__launcher {
    background: var(--itc-brand) !important;
    color: #ffffff !important;
}

.itc-chat .itc-chat__suggestion:hover,
.itc-chat .itc-chat__send:hover,
.itc-chat .itc-chat__close:hover,
.itc-chat .itc-chat__launcher:hover {
    background: var(--itc-brand-hover) !important;
    color: #ffffff !important;
}

.itc-chat .itc-chat__launcher-svg,
.itc-chat .itc-chat__launcher svg {
    color: currentColor !important;
    stroke: currentColor !important;
}

.itc-chat .itc-chat__input {
    background: var(--itc-input-bg) !important;
    color: var(--itc-input-text) !important;
    border: 1px solid var(--itc-input-border) !important;
}

.itc-chat .itc-chat__input::placeholder {
    color: color-mix(in srgb, var(--itc-input-text) 48%, transparent) !important;
}

.itc-chat .itc-chat__unread-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 2px solid var(--itc-bg) !important;
}

/* Dark forçado e dark automático do site */
html.force-dark .itc-chat,
html.infinity-dark .itc-chat {
    --itc-bg: rgba(11, 15, 25, .96);
    --itc-bg-strong: rgba(255, 255, 255, .045);
    --itc-text: var(--text, rgba(255, 255, 255, .86));
    --itc-muted: var(--muted, rgba(255, 255, 255, .65));
    --itc-border: var(--border, rgba(255, 255, 255, .10));
    --itc-operator-bg: rgba(255, 255, 255, .075);
    --itc-input-bg: #ffffff;
    --itc-input-text: #0f172a;
    --itc-input-border: rgba(255, 255, 255, .14);
    --itc-panel-shadow: 0 22px 52px rgba(0, 0, 0, .38);
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-bg: rgba(11, 15, 25, .96);
        --itc-bg-strong: rgba(255, 255, 255, .045);
        --itc-text: var(--text, rgba(255, 255, 255, .86));
        --itc-muted: var(--muted, rgba(255, 255, 255, .65));
        --itc-border: var(--border, rgba(255, 255, 255, .10));
        --itc-operator-bg: rgba(255, 255, 255, .075);
        --itc-input-bg: #ffffff;
        --itc-input-text: #0f172a;
        --itc-input-border: rgba(255, 255, 255, .14);
        --itc-panel-shadow: 0 22px 52px rgba(0, 0, 0, .38);
    }
}

html.force-dark .itc-chat .itc-chat__starter-hint,
html.infinity-dark .itc-chat .itc-chat__starter-hint {
    color: rgba(203, 213, 225, 0.68) !important;
    font-weight: 400;
    text-shadow: none;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__starter-hint {
        color: rgba(203, 213, 225, 0.68) !important;
        font-weight: 400;
        text-shadow: none;
    }
}

/* Light forçado: garante retorno ao visual claro mesmo se o sistema estiver dark */
html.force-light .itc-chat {
    --itc-bg: var(--card, #ffffff);
    --itc-bg-strong: var(--card2, #f6f7f9);
    --itc-text: var(--text, #0f172a);
    --itc-muted: var(--muted, #475569);
    --itc-border: var(--border, rgba(15, 23, 42, .14));
    --itc-operator-bg: rgba(15, 23, 42, .08);
    --itc-input-bg: #ffffff;
    --itc-input-text: #0f172a;
    --itc-input-border: rgba(15, 23, 42, .16);
    --itc-panel-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}



/* Fase 2.2 v2.2.24: refinamento visual UX */
.itc-chat {
    --itc-panel-shadow: 0 20px 52px rgba(15, 23, 42, .22);
}

.itc-chat .itc-chat__panel {
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.itc-chat .itc-chat__header {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-bg-strong) 92%, transparent),
            color-mix(in srgb, var(--itc-bg) 88%, transparent)
        ) !important;
}

.itc-chat .itc-chat__body,
.itc-chat .itc-chat__messages {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-bg) 98%, transparent),
            color-mix(in srgb, var(--itc-bg-strong) 22%, var(--itc-bg))
        ) !important;
}

.itc-chat .itc-chat__initial-text,
.itc-chat .itc-chat__message--operator .itc-chat__bubble {
    background:
        color-mix(in srgb, var(--itc-operator-bg) 88%, var(--itc-bg-strong)) !important;
    border: 1px solid color-mix(in srgb, var(--itc-border) 82%, transparent) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}

.itc-chat .itc-chat__message--visitor .itc-chat__bubble {
    box-shadow:
        0 6px 18px color-mix(in srgb, var(--itc-brand) 28%, transparent);
}

.itc-chat .itc-chat__form {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-bg) 94%, transparent),
            color-mix(in srgb, var(--itc-bg-strong) 40%, var(--itc-bg))
        ) !important;
}

.itc-chat .itc-chat__launcher {
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--itc-brand) 30%, transparent);
}

html.force-dark .itc-chat,
html.infinity-dark .itc-chat {
    --itc-bg: rgba(8, 13, 24, .92);
    --itc-bg-strong: rgba(255,255,255,.055);
    --itc-operator-bg: rgba(255,255,255,.065);
    --itc-panel-shadow: 0 24px 64px rgba(0,0,0,.42);
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-bg: rgba(8, 13, 24, .92);
        --itc-bg-strong: rgba(255,255,255,.055);
        --itc-operator-bg: rgba(255,255,255,.065);
        --itc-panel-shadow: 0 24px 64px rgba(0,0,0,.42);
    }
}

html.force-light .itc-chat {
    --itc-bg: #eef1f5;
    --itc-bg-strong: #f8fafc;
    --itc-operator-bg: rgba(15,23,42,.055);
}

@media (prefers-color-scheme: light) {
    html:not(.force-dark):not(.force-light) .itc-chat {
        --itc-bg: #eef1f5;
        --itc-bg-strong: #f8fafc;
        --itc-operator-bg: rgba(15,23,42,.055);
    }
}

@media (max-width: 768px) {
    .itc-chat .itc-chat__panel {
        backdrop-filter: blur(18px) saturate(155%);
        -webkit-backdrop-filter: blur(18px) saturate(155%);
    }
}

/* Fase 2.2 v2.2.25: contraste de marca e separação visual premium
   Escopo: apenas .itc-chat.
   Objetivo: chat herda o tema, mas ganha hierarquia própria como widget flutuante. */
.itc-chat {
    --itc-header-bg: linear-gradient(135deg, var(--itc-brand), var(--itc-brand-hover));
    --itc-header-text: #ffffff;
    --itc-header-muted: rgba(255,255,255,.82);
    --itc-panel-shadow:
        0 24px 70px rgba(15, 23, 42, .24),
        0 0 0 1px rgba(255,255,255,.45);
    --itc-panel-glow: 0 0 0 1px color-mix(in srgb, var(--itc-brand) 14%, transparent);
    --itc-operator-bg: rgba(15,23,42,.075);
}

.itc-chat .itc-chat__panel {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-bg) 96%, #ffffff),
            color-mix(in srgb, var(--itc-bg) 86%, var(--itc-bg-strong))
        ) !important;
    border: 1px solid color-mix(in srgb, var(--itc-border) 72%, var(--itc-brand) 28%) !important;
    box-shadow:
        var(--itc-panel-shadow),
        var(--itc-panel-glow) !important;
}

.itc-chat .itc-chat__header {
    background: var(--itc-header-bg) !important;
    color: var(--itc-header-text) !important;
    border-bottom: 1px solid color-mix(in srgb, #ffffff 18%, transparent) !important;
}

.itc-chat .itc-chat__title {
    color: var(--itc-header-text) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.14);
}

.itc-chat .itc-chat__subtitle {
    color: var(--itc-header-muted) !important;
}

.itc-chat .itc-chat__close {
    background: rgba(255,255,255,.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: none !important;
}

.itc-chat .itc-chat__close:hover {
    background: rgba(255,255,255,.24) !important;
    color: #ffffff !important;
}

.itc-chat .itc-chat__body,
.itc-chat .itc-chat__messages {
    background:
        radial-gradient(
            circle at 80% 10%,
            color-mix(in srgb, var(--itc-brand) 7%, transparent),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-bg) 96%, transparent),
            color-mix(in srgb, var(--itc-bg-strong) 30%, var(--itc-bg))
        ) !important;
}

.itc-chat .itc-chat__form {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-bg) 88%, var(--itc-bg-strong)),
            color-mix(in srgb, var(--itc-bg-strong) 56%, var(--itc-bg))
        ) !important;
    border-top: 1px solid color-mix(in srgb, var(--itc-border) 82%, var(--itc-brand) 18%) !important;
}

.itc-chat .itc-chat__initial-text,
.itc-chat .itc-chat__message--operator .itc-chat__bubble {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-operator-bg) 78%, #ffffff 22%),
            color-mix(in srgb, var(--itc-operator-bg) 94%, var(--itc-bg))
        ) !important;
    border: 1px solid color-mix(in srgb, var(--itc-border) 70%, transparent) !important;
}

.itc-chat .itc-chat__message--visitor .itc-chat__bubble {
    background:
        linear-gradient(
            135deg,
            var(--itc-brand),
            color-mix(in srgb, var(--itc-brand-hover) 84%, var(--itc-brand))
        ) !important;
    color: #ffffff !important;
    box-shadow:
        0 8px 22px color-mix(in srgb, var(--itc-brand) 32%, transparent) !important;
}

.itc-chat .itc-chat__input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid color-mix(in srgb, var(--itc-border) 70%, transparent) !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.06) !important;
}

.itc-chat .itc-chat__launcher {
    background:
        linear-gradient(
            135deg,
            var(--itc-brand),
            color-mix(in srgb, var(--itc-brand-hover) 88%, var(--itc-brand))
        ) !important;
    box-shadow:
        0 12px 32px color-mix(in srgb, var(--itc-brand) 36%, transparent),
        0 0 0 1px color-mix(in srgb, #ffffff 20%, transparent) !important;
}

/* Light: painel levemente mais fechado que o site para reduzir fadiga e separar camadas */
html.force-light .itc-chat,
html:not(.force-dark):not(.force-light) .itc-chat {
    --itc-bg: #eef2f7;
    --itc-bg-strong: #f8fafc;
    --itc-operator-bg: rgba(15,23,42,.075);
}

/* Dark: separação real do fundo do site, sem virar bloco claro */
html.force-dark .itc-chat,
html.infinity-dark .itc-chat {
    --itc-bg: rgba(13, 19, 34, .98);
    --itc-bg-strong: rgba(23, 31, 52, .74);
    --itc-operator-bg: rgba(255,255,255,.085);
    --itc-panel-shadow:
        0 28px 76px rgba(0,0,0,.54),
        0 0 0 1px rgba(255,255,255,.075),
        0 0 42px color-mix(in srgb, var(--itc-brand) 18%, transparent);
    --itc-panel-glow: 0 0 0 1px color-mix(in srgb, var(--itc-brand) 18%, transparent);
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-bg: rgba(13, 19, 34, .98);
        --itc-bg-strong: rgba(23, 31, 52, .74);
        --itc-operator-bg: rgba(255,255,255,.085);
        --itc-panel-shadow:
            0 28px 76px rgba(0,0,0,.54),
            0 0 0 1px rgba(255,255,255,.075),
            0 0 42px color-mix(in srgb, var(--itc-brand) 18%, transparent);
        --itc-panel-glow: 0 0 0 1px color-mix(in srgb, var(--itc-brand) 18%, transparent);
    }
}

html.force-dark .itc-chat .itc-chat__panel,
html.infinity-dark .itc-chat .itc-chat__panel {
    background:
        radial-gradient(
            circle at 88% 8%,
            color-mix(in srgb, var(--itc-brand) 15%, transparent),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(15, 22, 39, .985),
            rgba(8, 12, 24, .985)
        ) !important;
    border-color: rgba(255,255,255,.12) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__panel {
        background:
            radial-gradient(
                circle at 88% 8%,
                color-mix(in srgb, var(--itc-brand) 15%, transparent),
                transparent 34%
            ),
            linear-gradient(
                180deg,
                rgba(15, 22, 39, .985),
                rgba(8, 12, 24, .985)
            ) !important;
        border-color: rgba(255,255,255,.12) !important;
    }
}

html.force-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
html.infinity-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
html.force-dark .itc-chat .itc-chat__initial-text,
html.infinity-dark .itc-chat .itc-chat__initial-text {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.105),
            rgba(255,255,255,.07)
        ) !important;
    border-color: rgba(255,255,255,.105) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__message--operator .itc-chat__bubble,
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__initial-text {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.105),
                rgba(255,255,255,.07)
            ) !important;
        border-color: rgba(255,255,255,.105) !important;
    }
}

@media (max-width: 768px) {
    .itc-chat .itc-chat__panel {
        box-shadow:
            0 24px 64px rgba(15, 23, 42, .30),
            0 0 0 1px color-mix(in srgb, var(--itc-brand) 16%, transparent) !important;
    }

    html.force-dark .itc-chat .itc-chat__panel,
    html.infinity-dark .itc-chat .itc-chat__panel {
        box-shadow:
            0 28px 74px rgba(0,0,0,.58),
            0 0 0 1px rgba(255,255,255,.09),
            0 0 46px color-mix(in srgb, var(--itc-brand) 16%, transparent) !important;
    }

    @media (prefers-color-scheme: dark) {
        html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__panel {
            box-shadow:
                0 28px 74px rgba(0,0,0,.58),
                0 0 0 1px rgba(255,255,255,.09),
                0 0 46px color-mix(in srgb, var(--itc-brand) 16%, transparent) !important;
        }
    }
}



/* Fase 2.2 v2.2.26: refinamento final de profundidade dark */
html.force-dark .itc-chat,
html.infinity-dark .itc-chat {
    --itc-bg: rgba(18, 28, 48, .985);
    --itc-bg-strong: rgba(33, 46, 74, .92);
    --itc-operator-bg: rgba(255,255,255,.11);
    --itc-panel-shadow:
        0 34px 90px rgba(0,0,0,.62),
        0 0 0 1px rgba(255,255,255,.11),
        0 0 68px color-mix(in srgb, var(--itc-brand) 24%, transparent);
    --itc-panel-glow:
        0 0 0 1px color-mix(in srgb, var(--itc-brand) 24%, transparent);
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-bg: rgba(18, 28, 48, .985);
        --itc-bg-strong: rgba(33, 46, 74, .92);
        --itc-operator-bg: rgba(255,255,255,.11);
        --itc-panel-shadow:
            0 34px 90px rgba(0,0,0,.62),
            0 0 0 1px rgba(255,255,255,.11),
            0 0 68px color-mix(in srgb, var(--itc-brand) 24%, transparent);
        --itc-panel-glow:
            0 0 0 1px color-mix(in srgb, var(--itc-brand) 24%, transparent);
    }
}

html.force-dark .itc-chat .itc-chat__panel,
html.infinity-dark .itc-chat .itc-chat__panel {
    background:
        radial-gradient(
            circle at 88% 8%,
            color-mix(in srgb, var(--itc-brand) 20%, transparent),
            transparent 34%
        ),
        radial-gradient(
            circle at 12% 120%,
            rgba(255,255,255,.035),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(22, 33, 57, .992),
            rgba(12, 18, 34, .992)
        ) !important;

    border-color: rgba(255,255,255,.13) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__panel {
        background:
            radial-gradient(
                circle at 88% 8%,
                color-mix(in srgb, var(--itc-brand) 20%, transparent),
                transparent 34%
            ),
            radial-gradient(
                circle at 12% 120%,
                rgba(255,255,255,.035),
                transparent 42%
            ),
            linear-gradient(
                180deg,
                rgba(22, 33, 57, .992),
                rgba(12, 18, 34, .992)
            ) !important;

        border-color: rgba(255,255,255,.13) !important;
    }
}

html.force-dark .itc-chat .itc-chat__body,
html.force-dark .itc-chat .itc-chat__messages,
html.infinity-dark .itc-chat .itc-chat__body,
html.infinity-dark .itc-chat .itc-chat__messages {
    background:
        radial-gradient(
            circle at 82% 12%,
            color-mix(in srgb, var(--itc-brand) 11%, transparent),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(19, 28, 49, .96),
            rgba(10, 15, 29, .985)
        ) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__body,
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__messages {
        background:
            radial-gradient(
                circle at 82% 12%,
                color-mix(in srgb, var(--itc-brand) 11%, transparent),
                transparent 30%
            ),
            linear-gradient(
                180deg,
                rgba(19, 28, 49, .96),
                rgba(10, 15, 29, .985)
            ) !important;
    }
}

html.force-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
html.infinity-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 6px 14px rgba(0,0,0,.18) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__message--operator .itc-chat__bubble {
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.045),
            0 6px 14px rgba(0,0,0,.18) !important;
    }
}

@media (max-width: 768px) {
    html.force-dark .itc-chat .itc-chat__panel,
    html.infinity-dark .itc-chat .itc-chat__panel {
        box-shadow:
            0 38px 92px rgba(0,0,0,.68),
            0 0 0 1px rgba(255,255,255,.11),
            0 0 78px color-mix(in srgb, var(--itc-brand) 28%, transparent) !important;
    }

    @media (prefers-color-scheme: dark) {
        html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__panel {
            box-shadow:
                0 38px 92px rgba(0,0,0,.68),
                0 0 0 1px rgba(255,255,255,.11),
                0 0 78px color-mix(in srgb, var(--itc-brand) 28%, transparent) !important;
        }
    }
}

/* Fase 2.2 v2.2.27: polimento visual final dark
   Escopo: apenas .itc-chat em dark forçado/auto.
   Objetivo: mais profundidade no body, glow mais difuso, input menos branco e botão mais integrado. */
html.force-dark .itc-chat,
html.infinity-dark .itc-chat {
    --itc-input-bg: #f4f7fb;
    --itc-input-text: #111827;
    --itc-input-border: rgba(255,255,255,.18);
    --itc-panel-shadow:
        0 36px 96px rgba(0,0,0,.64),
        0 0 0 1px rgba(255,255,255,.12),
        0 0 96px color-mix(in srgb, var(--itc-brand) 20%, transparent);
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-input-bg: #f4f7fb;
        --itc-input-text: #111827;
        --itc-input-border: rgba(255,255,255,.18);
        --itc-panel-shadow:
            0 36px 96px rgba(0,0,0,.64),
            0 0 0 1px rgba(255,255,255,.12),
            0 0 96px color-mix(in srgb, var(--itc-brand) 20%, transparent);
    }
}

html.force-dark .itc-chat .itc-chat__body,
html.force-dark .itc-chat .itc-chat__messages,
html.infinity-dark .itc-chat .itc-chat__body,
html.infinity-dark .itc-chat .itc-chat__messages {
    background:
        radial-gradient(
            circle at 75% 18%,
            color-mix(in srgb, var(--itc-brand) 13%, transparent),
            transparent 32%
        ),
        radial-gradient(
            circle at 18% 92%,
            rgba(255,255,255,.045),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            rgba(22, 32, 56, .975),
            rgba(9, 14, 28, .99)
        ) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__body,
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__messages {
        background:
            radial-gradient(
                circle at 75% 18%,
                color-mix(in srgb, var(--itc-brand) 13%, transparent),
                transparent 32%
            ),
            radial-gradient(
                circle at 18% 92%,
                rgba(255,255,255,.045),
                transparent 36%
            ),
            linear-gradient(
                180deg,
                rgba(22, 32, 56, .975),
                rgba(9, 14, 28, .99)
            ) !important;
    }
}

html.force-dark .itc-chat .itc-chat__form,
html.infinity-dark .itc-chat .itc-chat__form {
    background:
        linear-gradient(
            180deg,
            rgba(14, 21, 38, .96),
            rgba(10, 15, 29, .985)
        ) !important;
    border-top-color: rgba(255,255,255,.13) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__form {
        background:
            linear-gradient(
                180deg,
                rgba(14, 21, 38, .96),
                rgba(10, 15, 29, .985)
            ) !important;
        border-top-color: rgba(255,255,255,.13) !important;
    }
}

html.force-dark .itc-chat .itc-chat__input,
html.infinity-dark .itc-chat .itc-chat__input {
    background: var(--itc-input-bg) !important;
    color: var(--itc-input-text) !important;
    border-color: var(--itc-input-border) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        0 8px 22px rgba(0,0,0,.18) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__input {
        background: var(--itc-input-bg) !important;
        color: var(--itc-input-text) !important;
        border-color: var(--itc-input-border) !important;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.72),
            0 8px 22px rgba(0,0,0,.18) !important;
    }
}

html.force-dark .itc-chat .itc-chat__send,
html.infinity-dark .itc-chat .itc-chat__send {
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--itc-brand) 92%, #ffffff 8%),
            color-mix(in srgb, var(--itc-brand-hover) 88%, var(--itc-brand))
        ) !important;
    box-shadow:
        0 8px 22px color-mix(in srgb, var(--itc-brand) 26%, transparent) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__send {
        background:
            linear-gradient(
                135deg,
                color-mix(in srgb, var(--itc-brand) 92%, #ffffff 8%),
                color-mix(in srgb, var(--itc-brand-hover) 88%, var(--itc-brand))
            ) !important;
        box-shadow:
            0 8px 22px color-mix(in srgb, var(--itc-brand) 26%, transparent) !important;
    }
}

html.force-dark .itc-chat .itc-chat__message--visitor .itc-chat__bubble,
html.infinity-dark .itc-chat .itc-chat__message--visitor .itc-chat__bubble {
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--itc-brand) 34%, transparent) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__message--visitor .itc-chat__bubble {
        box-shadow:
            0 10px 28px color-mix(in srgb, var(--itc-brand) 34%, transparent) !important;
    }
}

@media (max-width: 768px) {
    html.force-dark .itc-chat .itc-chat__panel,
    html.infinity-dark .itc-chat .itc-chat__panel {
        box-shadow:
            0 40px 104px rgba(0,0,0,.68),
            0 0 0 1px rgba(255,255,255,.12),
            0 0 112px color-mix(in srgb, var(--itc-brand) 22%, transparent) !important;
    }

    @media (prefers-color-scheme: dark) {
        html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__panel {
            box-shadow:
                0 40px 104px rgba(0,0,0,.68),
                0 0 0 1px rgba(255,255,255,.12),
                0 0 112px color-mix(in srgb, var(--itc-brand) 22%, transparent) !important;
        }
    }
}

/* Fase 2.2 v2.2.28: ajuste final de glow e hotspot dark */
.itc-chat .itc-chat__message--visitor .itc-chat__bubble {
    box-shadow: 0 6px 16px color-mix(in srgb, var(--itc-brand) 24%, transparent) !important;
}

html.force-dark .itc-chat .itc-chat__message--visitor .itc-chat__bubble,
html.infinity-dark .itc-chat .itc-chat__message--visitor .itc-chat__bubble {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--itc-brand) 25%, transparent) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__message--visitor .itc-chat__bubble {
        box-shadow: 0 8px 20px color-mix(in srgb, var(--itc-brand) 25%, transparent) !important;
    }
}

html.force-dark .itc-chat .itc-chat__body,
html.force-dark .itc-chat .itc-chat__messages,
html.infinity-dark .itc-chat .itc-chat__body,
html.infinity-dark .itc-chat .itc-chat__messages {
    background:
        radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--itc-brand) 8%, transparent), transparent 42%),
        radial-gradient(circle at 18% 92%, rgba(255,255,255,.032), transparent 44%),
        linear-gradient(180deg, rgba(22, 32, 56, .972), rgba(9, 14, 28, .99)) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__body,
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__messages {
        background:
            radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--itc-brand) 8%, transparent), transparent 42%),
            radial-gradient(circle at 18% 92%, rgba(255,255,255,.032), transparent 44%),
            linear-gradient(180deg, rgba(22, 32, 56, .972), rgba(9, 14, 28, .99)) !important;
    }
}

/* Fase 2.2 v2.2.36: Mobile Focus Modal Viewport Fix
   Painel focado usa top + height da VisualViewport para ficar inteiro na área visível. */
@media (max-width: 768px) {
    html.itc-chat-page-locked,
    body.itc-chat-page-locked {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100% !important;
        z-index: 2147483000 !important;
        pointer-events: auto !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(3, 7, 18, .38);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        pointer-events: none;
    }

    .itc-chat.itc-chat--mobile-focus-modal .itc-chat__launcher {
        display: none !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal .itc-chat__panel,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--open .itc-chat__panel {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: var(--itc-focus-modal-top, 8px) !important;
        bottom: auto !important;
        width: min(94vw, 430px) !important;
        height: var(--itc-focus-modal-height, 560px) !important;
        max-height: var(--itc-focus-modal-height, 560px) !important;
        min-height: 320px !important;
        transform: translate3d(-50%, 0, 0) !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal .itc-chat__body,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--open .itc-chat__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal .itc-chat__messages,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--open .itc-chat__messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: auto !important;
        padding-bottom: 18px !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal .itc-chat__form,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--open .itc-chat__form {
        flex: 0 0 auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .itc-chat.itc-chat--mobile-focus-modal .itc-chat__panel,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--open .itc-chat__panel {
        width: min(560px, 86vw) !important;
        border-radius: 22px !important;
    }
}

/* Fase 2.9 v2.4.76: formulário offline consolidado a partir da base limpa */
.itc-chat__offline {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--itc-brand) 18%, var(--itc-border));
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--itc-brand) 8%, var(--itc-panel)), var(--itc-panel));
    color: var(--itc-text);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

.itc-chat--attendance-closed .itc-chat__history,
.itc-chat--attendance-closed .itc-chat__suggestions,
.itc-chat--attendance-closed .itc-chat__starter-hint,
.itc-chat--attendance-closed > .itc-chat__panel > .itc-chat__form,
.itc-chat--attendance-closed .itc-chat__intro {
    display: none !important;
}

.itc-chat--attendance-closed .itc-chat__body {
    min-height: 0;
    overflow: hidden;
}

.itc-chat--attendance-closed .itc-chat__messages {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 18px 16px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.itc-chat--attendance-closed .itc-chat__offline {
    display: block !important;
    flex: 0 0 auto !important;
}

.itc-chat__offline-message {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0 0 14px;
    color: var(--itc-text);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.itc-chat__offline-form {
    display: grid;
    gap: 11px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.itc-chat__offline-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--itc-muted);
    font-size: 13px;
    line-height: 1.2;
}

.itc-chat .itc-chat__offline-field > label,
.itc-chat .itc-chat__offline-field > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    color: inherit;
    font: inherit;
}

.itc-chat__offline-field small {
    margin-left: 2px;
    color: color-mix(in srgb, var(--itc-muted) 78%, transparent);
    font-size: 11px;
    line-height: 1;
}

.itc-chat__offline-input,
.itc-chat__offline-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--itc-border) 84%, var(--itc-brand));
    border-radius: 13px;
    background: var(--itc-input-bg);
    color: var(--itc-input-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    outline: none;
    box-shadow: none;
}

.itc-chat__offline-input {
    min-height: 44px;
    padding: 10px 13px;
}

.itc-chat__offline-textarea {
    min-height: 86px;
    padding: 10px 13px;
    resize: vertical;
}

.itc-chat__offline-input:focus,
.itc-chat__offline-textarea:focus {
    border-color: color-mix(in srgb, var(--itc-brand) 72%, var(--itc-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--itc-brand) 18%, transparent);
}

.itc-chat__offline-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--itc-brand), color-mix(in srgb, var(--itc-brand) 82%, #ffffff));
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    padding: 12px 16px;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--itc-brand) 30%, transparent);
}

.itc-chat__offline-submit:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--itc-brand) 48%, #ffffff);
    outline-offset: 3px;
}

.itc-chat__offline-feedback {
    min-height: 18px;
    margin: 0;
    color: var(--itc-muted);
    font-size: 13px;
    line-height: 1.35;
}

.itc-chat__offline-feedback[data-itc-feedback-type="success"] {
    color: #3aa76d;
}

.itc-chat__offline-feedback[data-itc-feedback-type="error"] {
    color: #d9534f;
}

.itc-chat .itc-chat__offline-field--invalid .iti,
.itc-chat .itc-chat__offline-field--invalid .itc-chat__offline-input,
.itc-chat .itc-chat__offline-field--invalid .iti__selected-country,
.itc-chat .itc-chat__offline-field--invalid .iti__tel-input {
    border-color: #d9534f;
}

.itc-chat .itc-chat__offline-field--invalid .iti {
    box-shadow: 0 0 0 3px color-mix(in srgb, #d9534f 16%, transparent);
}

.itc-chat__offline-error {
    min-height: 16px;
    margin: -1px 0 0;
    color: #d9534f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.itc-chat--theme-dark .itc-chat__offline-error,
.itc-chat[data-itc-theme="dark"] .itc-chat__offline-error,
html.force-dark .itc-chat .itc-chat__offline-error,
html.infinity-dark .itc-chat .itc-chat__offline-error,
body.infinity-dark .itc-chat .itc-chat__offline-error,
body.dark .itc-chat .itc-chat__offline-error {
    color: #ff8a8a !important;
}

@media (max-width: 768px) {
    .itc-chat--attendance-closed .itc-chat__messages {
        justify-content: flex-start !important;
        padding: 20px 14px 14px !important;
        scroll-padding-top: 30px;
        scroll-padding-bottom: 30px;
    }

    .itc-chat__offline {
        padding: 14px;
        border-radius: 18px;
    }

    .itc-chat__offline-message {
        margin-bottom: 12px;
        font-size: 13.5px;
        line-height: 1.38;
    }

    .itc-chat__offline-form {
        gap: 10px;
    }

    .itc-chat__offline-input {
        min-height: 43px;
    }

    .itc-chat__offline-textarea {
        min-height: 82px;
    }
}

@media (max-width: 768px) and (max-height: 640px) {
    .itc-chat--attendance-closed .itc-chat__messages {
        justify-content: flex-start !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .itc-chat__offline-textarea {
        min-height: 72px;
    }
}

@media (max-width: 768px) {
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--attendance-closed,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--attendance-closed.itc-chat--open {
        position: fixed !important;
        inset: 0 !important;
        overflow: hidden !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--attendance-closed .itc-chat__panel,
    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--attendance-closed.itc-chat--open .itc-chat__panel {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: var(--itc-focus-modal-top, 8px) !important;
        bottom: auto !important;
        height: var(--itc-focus-modal-height, 560px) !important;
        max-height: var(--itc-focus-modal-height, 560px) !important;
        transform: translate3d(-50%, 0, 0) !important;
        overflow: hidden !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--attendance-closed .itc-chat__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .itc-chat.itc-chat--mobile-focus-modal.itc-chat--attendance-closed .itc-chat__messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        justify-content: flex-start !important;
        padding-top: 20px !important;
        padding-bottom: 18px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scroll-behavior: auto !important;
        scroll-padding-top: 30px;
        scroll-padding-bottom: 30px;
    }
}

/* Fase 2.4 v2.4.0: base de encerramento de conversa */
.itc-chat__message--system {
    justify-content: center;
    text-align: center;
}

.itc-chat__message--system .itc-chat__bubble {
    max-width: 82%;
    background: color-mix(in srgb, var(--itc-muted) 14%, var(--itc-panel));
    color: var(--itc-muted);
    font-size: 12px;
    border: 1px solid color-mix(in srgb, var(--itc-border) 72%, transparent);
}

.itc-chat--conversation-closed .itc-chat__form {
    opacity: .62;
    pointer-events: none;
}

/* Fase 2.4 v2.4.8: alinhamento premium dos botões do cabeçalho */
.itc-chat__header {
    align-items: center !important;
}

.itc-chat__title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.itc-chat__header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    align-self: center;
}

.itc-chat__end-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 36px;
}

.itc-chat__end-actions[hidden] {
    display: none !important;
}

.itc-chat__end-icon,
.itc-chat__end-confirm-accept,
.itc-chat__end-confirm-cancel,
.itc-chat__close {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.itc-chat__close {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    padding: 0 !important;
    font-size: 22px !important;
}

.itc-chat__end-icon,
.itc-chat__end-confirm-accept,
.itc-chat__end-confirm-cancel {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(15,23,42,.14);
    color: #fff;
    cursor: pointer;
    transition: opacity .16s ease, transform .16s ease, background .16s ease, border-color .16s ease;
    font-weight: 700;
    padding: 0 10px !important;
    white-space: nowrap;
    text-align: center;
    font-family: inherit;
}

.itc-chat__end-icon {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    font-size: 12px !important;
    letter-spacing: -.01em;
}

.itc-chat__end-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    animation: itcEndInlineFade .14s ease;
}

.itc-chat__end-confirm[hidden],
.itc-chat__end-icon[hidden] {
    display: none !important;
}

.itc-chat__end-confirm-accept,
.itc-chat__end-confirm-cancel {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    font-size: 12px !important;
    padding: 0 !important;
}

.itc-chat__end-confirm-accept {
    background: rgba(37,99,235,.42);
    border-color: rgba(255,255,255,.16);
}

.itc-chat__end-icon:hover,
.itc-chat__end-confirm-accept:hover,
.itc-chat__end-confirm-cancel:hover {
    background: rgba(15,23,42,.25);
}

.itc-chat__end-icon:active,
.itc-chat__end-confirm-accept:active,
.itc-chat__end-confirm-cancel:active {
    transform: scale(.97);
}

@keyframes itcEndInlineFade {
    from { opacity: 0; transform: translateY(-1px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.itc-chat--conversation-closed .itc-chat__end-actions,
.itc-chat--attendance-closed .itc-chat__end-actions {
    display: none !important;
}

@media (max-width: 768px) {
    .itc-chat__header {
        gap: 8px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .itc-chat__title-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .itc-chat__title {
        font-size: 15px !important;
        line-height: 1.15 !important;
    }

    .itc-chat__subtitle {
        font-size: 12px !important;
        line-height: 1.2 !important;
        max-width: 100%;
    }

    .itc-chat__header-actions {
        gap: 6px;
    }

    .itc-chat__end-actions,
    .itc-chat__end-confirm {
        height: 34px;
    }

    .itc-chat__end-icon,
    .itc-chat__end-confirm-accept,
    .itc-chat__end-confirm-cancel,
    .itc-chat__close {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        border-radius: 8px !important;
    }

    .itc-chat__close {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        flex-basis: 48px !important;
    }

    .itc-chat__end-icon {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        padding: 0 7px !important;
        font-size: 11px !important;
    }

    .itc-chat__end-confirm {
        gap: 5px;
    }

    .itc-chat__end-confirm-accept,
    .itc-chat__end-confirm-cancel {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    .itc-chat__header {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .itc-chat__end-icon {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        font-size: 10.5px !important;
    }

    .itc-chat__end-confirm-accept,
    .itc-chat__end-confirm-cancel {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
    }
}



/* Fase 2.4.20: correção visual do botão fechar */
.itc-chat__close {
    font-size: 0 !important;
    gap: 0 !important;
    text-indent: 0 !important;
    overflow: hidden !important;
}

.itc-chat__close::before,
.itc-chat__close::after {
    content: none !important;
    display: none !important;
}

.itc-chat__close-glyph {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1em !important;
    height: 1em !important;
    color: currentColor !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .itc-chat__close-glyph {
        font-size: 21px !important;
    }
}


/* Fase 2.5 v2.4.21: ação para iniciar nova conversa após encerramento */
.itc-chat__new-conversation {
    display: block;
    width: calc(100% - 24px);
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--itc-accent, #5865f2);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin: 12px;
    box-shadow: 0 10px 22px rgba(88, 101, 242, 0.22);
}

.itc-chat__new-conversation:hover,
.itc-chat__new-conversation:focus {
    filter: brightness(1.05);
    outline: none;
}


/* Fase 2.6 v2.4.25: estado de sucesso dedicado do formulário offline */
.itc-chat__offline-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 230px;
    padding: 26px 18px;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--itc-border) 82%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--itc-panel) 92%, transparent);
}

.itc-chat__offline-success-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--itc-primary) 18%, transparent);
    color: var(--itc-primary);
    font-size: 28px;
    line-height: 1;
}

.itc-chat__offline-success-title {
    color: var(--itc-text);
    font-size: 16px;
    line-height: 1.3;
}

.itc-chat__offline-success-text {
    margin: 0;
    color: var(--itc-muted);
    font-size: 14px;
    line-height: 1.45;
    max-width: 280px;
}


/* Fase 2.6 v2.4.41: confirmação offline com ícone SVG estável */
.itc-chat.itc-chat--offline-success-state {
    --itc-offline-success-body-height: 315px;
}

.itc-chat.itc-chat--offline-success-state .itc-chat__panel {
    transition: none !important;
}

.itc-chat.itc-chat--offline-success-state .itc-chat__body {
    display: block !important;
    height: var(--itc-offline-success-body-height) !important;
    min-height: var(--itc-offline-success-body-height) !important;
    max-height: var(--itc-offline-success-body-height) !important;
    overflow: hidden !important;
    transition: none !important;
}

.itc-chat.itc-chat--offline-success-state .itc-chat__offline-success-viewport {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 16px !important;
    transition: none !important;
}

.itc-chat.itc-chat--offline-success-state .itc-chat__offline-success {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding: 30px 18px !important;
    transition: none !important;
}

.itc-chat.itc-chat--offline-success-state .itc-chat__offline-success-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 4px auto !important;
    flex: 0 0 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.itc-chat.itc-chat--offline-success-state .itc-chat__offline-success-svg {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    color: currentColor !important;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .itc-chat.itc-chat--offline-success-state {
        --itc-offline-success-body-height: 350px;
    }

    .itc-chat.itc-chat--offline-success-state .itc-chat__offline-success-viewport {
        padding: 20px 18px !important;
    }
}

@media (max-width: 640px) {
    .itc-chat.itc-chat--offline-success-state {
        --itc-offline-success-body-height: 430px;
    }

    .itc-chat.itc-chat--offline-success-state .itc-chat__offline-success-viewport {
        padding: 18px 16px !important;
    }

    .itc-chat.itc-chat--offline-success-state .itc-chat__offline-success {
        padding: 32px 18px !important;
    }


}

@media (max-width: 420px) {
    .itc-chat.itc-chat--offline-success-state {
        --itc-offline-success-body-height: 405px;
    }

    .itc-chat.itc-chat--offline-success-state .itc-chat__offline-success-viewport {
        padding: 16px 14px !important;
    }

    .itc-chat.itc-chat--offline-success-state .itc-chat__offline-success {
        padding: 30px 16px !important;
    }
}

@media (max-width: 380px) {
    .itc-chat.itc-chat--offline-success-state {
        --itc-offline-success-body-height: 385px;
    }
}




/* Fase 2.9 v2.4.76: picker de horário preservado + intl-tel-input reconstruído */
.itc-chat.itc-chat--offline-success-state .itc-chat__offline-time-shell,
.itc-chat.itc-chat--offline-success-state .itc-chat__offline-time-picker {
    display: none !important;
}

.itc-chat .itc-chat__offline-field--time {
    position: relative;
}

.itc-chat .itc-chat__offline-time-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.itc-chat .itc-chat__offline-time-display {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--itc-border) 84%, var(--itc-brand));
    border-radius: 13px;
    background: var(--itc-input-bg);
    color: var(--itc-input-text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    padding: 10px 44px 10px 46px;
    text-align: left;
    outline: none;
    box-shadow: none;
}

.itc-chat .itc-chat__offline-time-display:hover,
.itc-chat .itc-chat__offline-time-display:focus {
    border-color: color-mix(in srgb, var(--itc-brand) 72%, var(--itc-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--itc-brand) 18%, transparent);
}

.itc-chat .itc-chat__offline-time-icon,
.itc-chat .itc-chat__offline-time-chevron {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--itc-input-text) 72%, var(--itc-muted));
    pointer-events: none;
}

.itc-chat .itc-chat__offline-time-icon {
    left: 15px;
    width: 20px;
    height: 20px;
}

.itc-chat .itc-chat__offline-time-chevron {
    right: 15px;
    width: 18px;
    height: 18px;
}

.itc-chat .itc-chat__offline-time-icon svg,
.itc-chat .itc-chat__offline-time-chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.itc-chat .itc-chat__offline-time-picker {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 90;
    width: min(260px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: 16px;
    background: #ffffff;
    color: #475569;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .24);
}

.itc-chat .itc-chat__offline-time-picker[hidden] {
    display: none !important;
}

.itc-chat .itc-chat__offline-time-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: min(236px, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 4px 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .82) transparent;
}

.itc-chat .itc-chat__offline-time-option {
    display: block;
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    padding: 11px 13px;
    text-align: left;
    box-shadow: none;
    user-select: none;
}

.itc-chat .itc-chat__offline-time-option:hover,
.itc-chat .itc-chat__offline-time-option:focus,
.itc-chat .itc-chat__offline-time-option--selected {
    background: #eef2ff;
    color: #315efb;
    outline: none;
}

:root {
    --iti-path-flags-1x: url('/wp-content/plugins/infinity-telegram-chat/assets/vendor/intl-tel-input/img/flags.webp');
    --iti-path-flags-2x: url('/wp-content/plugins/infinity-telegram-chat/assets/vendor/intl-tel-input/img/flags@2x.webp');
}

/* Fase 2.9 v2.4.76: intl-tel-input base preservada; camada final isolada em itc-frontend-isolation.css */
.itc-chat .itc-chat__offline-field--whatsapp {
    position: relative;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti,
.itc-chat .itc-chat__offline-field--whatsapp .itc-chat__intl-container {
    --iti-path-flags-1x: url('/wp-content/plugins/infinity-telegram-chat/assets/vendor/intl-tel-input/img/flags.webp');
    --iti-path-flags-2x: url('/wp-content/plugins/infinity-telegram-chat/assets/vendor/intl-tel-input/img/flags@2x.webp');
    --iti-hover-color: #eef2ff;
    --iti-border-color: rgba(148, 163, 184, .36);
    --iti-dropdown-bg: #ffffff;
    --iti-icon-color: #64748b;
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 13px;
    overflow: visible;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__country-container {
    position: static;
    flex: 0 0 116px;
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__selected-country {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--itc-border) 84%, var(--itc-brand));
    border-right: 0;
    border-radius: 13px 0 0 13px;
    background: linear-gradient(135deg, var(--itc-brand), color-mix(in srgb, var(--itc-brand) 82%, #ffffff));
    color: #ffffff;
    padding: 0 10px;
    gap: 8px;
    box-shadow: none;
    overflow: visible;
    appearance: none;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__selected-country-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 42px;
    height: 100%;
    padding: 0;
    gap: 7px;
    overflow: visible;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__selected-dial-code {
    flex: 0 0 auto;
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__arrow {
    flex: 0 0 auto;
    display: block;
    margin: 0;
    border-top-color: rgba(255, 255, 255, .88);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__arrow--up {
    border-bottom-color: rgba(255, 255, 255, .88);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__flag {
    flex: 0 0 auto;
    background-image: image-set(var(--iti-path-flags-1x) 1x, var(--iti-path-flags-2x) 2x);
    background-color: transparent;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .14);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__tel-input,
.itc-chat .itc-chat__offline-field--whatsapp input.iti__tel-input[type="tel"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--itc-border) 84%, var(--itc-brand));
    border-left: 0;
    border-radius: 0 13px 13px 0;
    background: var(--itc-input-bg);
    color: var(--itc-input-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    padding: 10px 13px;
    outline: none;
    box-shadow: inset 8px 0 10px -12px rgba(15, 23, 42, .45);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--itc-brand) 18%, transparent);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti:focus-within .iti__selected-country,
.itc-chat .itc-chat__offline-field--whatsapp .iti:focus-within .iti__tel-input {
    border-color: color-mix(in srgb, var(--itc-brand) 72%, var(--itc-border));
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__dropdown-content {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 16px;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .24);
    overflow: hidden;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, .92);
    overflow: hidden;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-icon-svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-input,
.itc-chat .itc-chat__offline-field--whatsapp input.iti__search-input[type="search"] {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    outline: none;
    padding: 10px 44px 10px 40px;
    appearance: none;
    box-shadow: none;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-input::placeholder {
    color: #64748b;
    opacity: .84;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear {
    position: absolute;
    right: 9px;
    top: 50%;
    z-index: 3;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    box-shadow: none;
    appearance: none;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-svg {
    display: block;
    width: 18px;
    height: 18px;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-bg {
    fill: rgba(99, 102, 241, .16);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear:hover .iti__search-clear-bg,
.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear:focus .iti__search-clear-bg {
    fill: rgba(99, 102, 241, .24);
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__country-list {
    max-height: min(260px, 46vh);
    background: #ffffff;
    color: #334155;
    overflow-x: hidden;
    scrollbar-color: #94a3b8 #f8fafc;
    scrollbar-width: thin;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__country {
    min-height: 38px;
    padding: 8px 10px;
    margin: 2px 6px;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__country.iti__highlight,
.itc-chat .itc-chat__offline-field--whatsapp .iti__country:hover,
.itc-chat .itc-chat__offline-field--whatsapp .iti__country:focus {
    background: #eef2ff;
    color: #315efb;
    outline: none;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__country-name {
    color: inherit;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__dial-code {
    color: #64748b;
    font-weight: 700;
}

.itc-chat .itc-chat__offline-field--whatsapp .iti__no-results {
    color: #64748b;
    padding: 14px;
}

html.force-dark .itc-chat.itc-chat--attendance-closed .itc-chat__offline,
html.infinity-dark .itc-chat.itc-chat--attendance-closed .itc-chat__offline,
body.infinity-dark .itc-chat.itc-chat--attendance-closed .itc-chat__offline,
body.dark .itc-chat.itc-chat--attendance-closed .itc-chat__offline {
    background: linear-gradient(180deg, rgba(78, 99, 246, .14), rgba(15, 23, 42, .72));
    border-color: rgba(130, 150, 255, .24);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

html.force-dark .itc-chat .itc-chat__offline-time-picker,
html.infinity-dark .itc-chat .itc-chat__offline-time-picker,
body.infinity-dark .itc-chat .itc-chat__offline-time-picker,
body.dark .itc-chat .itc-chat__offline-time-picker,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dropdown-content,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dropdown-content,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dropdown-content,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dropdown-content,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input-wrapper,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input-wrapper,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input-wrapper,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input-wrapper,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country-list,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country-list,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country-list,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country-list {
    background: #101827;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .22);
}

html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-icon,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-icon,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-icon,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-icon,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input::placeholder,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input::placeholder,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input::placeholder,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-input::placeholder {
    color: #94a3b8;
}

html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-bg,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-bg,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-bg,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-bg {
    fill: rgba(148, 163, 184, .20);
}

html.force-dark .itc-chat .itc-chat__offline-time-option,
html.infinity-dark .itc-chat .itc-chat__offline-time-option,
body.infinity-dark .itc-chat .itc-chat__offline-time-option,
body.dark .itc-chat .itc-chat__offline-time-option,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country {
    color: #cbd5e1;
}

html.force-dark .itc-chat .itc-chat__offline-time-option:hover,
html.force-dark .itc-chat .itc-chat__offline-time-option:focus,
html.force-dark .itc-chat .itc-chat__offline-time-option--selected,
html.infinity-dark .itc-chat .itc-chat__offline-time-option:hover,
html.infinity-dark .itc-chat .itc-chat__offline-time-option:focus,
html.infinity-dark .itc-chat .itc-chat__offline-time-option--selected,
body.infinity-dark .itc-chat .itc-chat__offline-time-option:hover,
body.infinity-dark .itc-chat .itc-chat__offline-time-option:focus,
body.infinity-dark .itc-chat .itc-chat__offline-time-option--selected,
body.dark .itc-chat .itc-chat__offline-time-option:hover,
body.dark .itc-chat .itc-chat__offline-time-option:focus,
body.dark .itc-chat .itc-chat__offline-time-option--selected,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country.iti__highlight,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:hover,
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:focus,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country.iti__highlight,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:hover,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:focus,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country.iti__highlight,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:hover,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:focus,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country.iti__highlight,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:hover,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__country:focus {
    background: rgba(99, 102, 241, .18);
    color: #dbeafe;
}

html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dial-code,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dial-code,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dial-code,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__dial-code {
    color: #94a3b8;
}

@media (max-width: 380px) {
    .itc-chat .itc-chat__offline-field--whatsapp .iti__country-container {
        flex-basis: 108px;
        width: 108px;
        min-width: 108px;
    }
}

/* v2.4.79 — fallback do botão limpar do intl-tel-input. Fonte principal: itc-frontend-isolation.css. */
.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-bg,
.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear svg circle {
    fill: transparent !important;
    stroke: transparent !important;
    opacity: 0 !important;
}
.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear,
.itc-chat .itc-chat__offline-field--whatsapp button.iti__search-clear {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-x,
.itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear svg path {
    stroke: #64748b !important;
    fill: none !important;
    opacity: .9 !important;
}
html.force-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-x,
html.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-x,
body.infinity-dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-x,
body.dark .itc-chat .itc-chat__offline-field--whatsapp .iti__search-clear-x {
    stroke: #94a3b8 !important;
}

/* v2.4.81 — static-only clear button fallback. Main source: itc-frontend-isolation.css. */
.itc-chat .iti__search-input-wrapper .iti__search-clear,
.itc-chat button.iti__search-clear,
.iti__dropdown-content .iti__search-input-wrapper .iti__search-clear,
.iti__dropdown-content button.iti__search-clear {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.itc-chat .iti__search-clear svg circle,
.iti__dropdown-content .iti__search-clear svg circle {
    fill: transparent !important;
    stroke: transparent !important;
    opacity: 0 !important;
}
.itc-chat .iti__search-clear svg path,
.iti__dropdown-content .iti__search-clear svg path {
    fill: none !important;
    stroke: #64748b !important;
    stroke-width: 2.2 !important;
    opacity: .9 !important;
}
html.force-dark .itc-chat .iti__search-clear svg path,
html.force-dark .iti__dropdown-content .iti__search-clear svg path,
body.dark .itc-chat .iti__search-clear svg path,
body.dark .iti__dropdown-content .iti__search-clear svg path,
body.infinity-dark .itc-chat .iti__search-clear svg path,
body.infinity-dark .iti__dropdown-content .iti__search-clear svg path {
    stroke: #94a3b8 !important;
}

/* ITC v2.4.99 — chamada proativa premium do chat
   Escopo visual isolado: somente convite proativo no launcher. */
.itc-chat {
    --itc-attention-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    --itc-attention-card-color: #111827;
    --itc-attention-card-border: rgba(15, 23, 42, 0.10);
    --itc-attention-card-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 6px 18px rgba(15, 23, 42, 0.10);
    --itc-attention-card-arrow-bg: rgba(248, 250, 252, 0.96);
    --itc-attention-card-arrow-border: rgba(15, 23, 42, 0.10);
    --itc-attention-card-glow: rgba(79, 109, 245, 0.16);
}

.itc-chat .itc-chat__launcher {
    position: relative;
}

.itc-chat .itc-chat__attention-bubble {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 0;
    right: auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: min(324px, calc(100vw - 32px));
    min-height: 42px;
    padding: 11px 14px 11px 13px;
    border: 1px solid var(--itc-attention-card-border);
    border-radius: 18px 18px 18px 8px;
    background: var(--itc-attention-card-bg);
    color: var(--itc-attention-card-color);
    box-shadow: var(--itc-attention-card-shadow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.34;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 9px, 0) scale(0.955);
    transform-origin: left bottom;
    transition:
        opacity 240ms ease,
        transform 280ms cubic-bezier(.18,.88,.24,1),
        filter 280ms ease;
    z-index: 20;
    backdrop-filter: blur(14px) saturate(1.18);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
    filter: drop-shadow(0 0 18px var(--itc-attention-card-glow));
}

.itc-chat .itc-chat__attention-bubble::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14), 0 0 18px rgba(34, 197, 94, 0.34);
}

.itc-chat .itc-chat__attention-bubble::after {
    content: "";
    position: absolute;
    left: 28px;
    right: auto;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--itc-attention-card-arrow-border);
    border-bottom: 1px solid var(--itc-attention-card-arrow-border);
    background: var(--itc-attention-card-arrow-bg);
    transform: rotate(45deg);
    border-radius: 0 0 3px 0;
}

.itc-chat.itc-chat--attention-align-right .itc-chat__attention-bubble {
    left: auto;
    right: 0;
    border-radius: 18px 18px 8px 18px;
    transform-origin: right bottom;
}

.itc-chat.itc-chat--attention-align-right .itc-chat__attention-bubble::after {
    left: auto;
    right: 28px;
}

.itc-chat.itc-chat--attention-align-center .itc-chat__attention-bubble {
    left: 50%;
    right: auto;
    transform: translate3d(-50%, 9px, 0) scale(0.955);
    transform-origin: center bottom;
    border-radius: 18px 18px 10px 10px;
}

.itc-chat.itc-chat--attention-align-center .itc-chat__attention-bubble::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
}

.itc-chat.itc-chat--attention-active:not(.itc-chat--open):not(.itc-chat--attendance-closed) .itc-chat__attention-bubble:not([hidden]) {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.itc-chat.itc-chat--attention-active.itc-chat--attention-align-center:not(.itc-chat--open):not(.itc-chat--attendance-closed) .itc-chat__attention-bubble:not([hidden]) {
    transform: translate3d(-50%, 0, 0) scale(1);
}

.itc-chat.itc-chat--attention-active:not(.itc-chat--open):not(.itc-chat--attendance-closed) .itc-chat__launcher {
    animation: itc-attention-launcher-premium-pulse 1550ms cubic-bezier(.18,.88,.24,1) 1;
}

.itc-chat.itc-chat--attention-active .itc-chat__unread-badge {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 8px 18px rgba(239, 68, 68, 0.28);
}

@keyframes itc-attention-launcher-premium-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
    }
    34% {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 20px 48px rgba(79, 109, 245, 0.34), 0 0 0 7px rgba(79, 109, 245, 0.10);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

html.force-dark .itc-chat,
html.infinity-dark .itc-chat,
body.dark .itc-chat,
body.infinity-dark .itc-chat {
    --itc-attention-card-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92));
    --itc-attention-card-color: #f8fafc;
    --itc-attention-card-border: rgba(148, 163, 184, 0.22);
    --itc-attention-card-shadow: 0 26px 64px rgba(0, 0, 0, 0.40), 0 6px 18px rgba(15, 23, 42, 0.38);
    --itc-attention-card-arrow-bg: rgba(30, 41, 59, 0.96);
    --itc-attention-card-arrow-border: rgba(148, 163, 184, 0.22);
    --itc-attention-card-glow: rgba(99, 102, 241, 0.22);
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-attention-card-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92));
        --itc-attention-card-color: #f8fafc;
        --itc-attention-card-border: rgba(148, 163, 184, 0.22);
        --itc-attention-card-shadow: 0 26px 64px rgba(0, 0, 0, 0.40), 0 6px 18px rgba(15, 23, 42, 0.38);
        --itc-attention-card-arrow-bg: rgba(30, 41, 59, 0.96);
        --itc-attention-card-arrow-border: rgba(148, 163, 184, 0.22);
        --itc-attention-card-glow: rgba(99, 102, 241, 0.22);
    }
}

@media (max-width: 767px) {
    .itc-chat .itc-chat__attention-bubble {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__attention-bubble,
    .itc-chat.itc-chat--attention-active:not(.itc-chat--open):not(.itc-chat--attendance-closed) .itc-chat__launcher {
        animation: none !important;
        transition: opacity 120ms ease !important;
    }
}


/* ITC v2.4.99 — mobile launcher tap-highlight polish
   Escopo: somente botão flutuante do chat. Remove o highlight quadrado nativo
   do navegador em toque/mobile sem alterar layout, estados offline ou formulário. */
.itc-chat .itc-chat__launcher {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    user-select: none !important;
}

.itc-chat .itc-chat__launcher:focus:not(:focus-visible) {
    outline: none !important;
}

.itc-chat .itc-chat__launcher:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .72) !important;
    outline-offset: 3px !important;
}

@media (max-width: 768px) {
    .itc-chat .itc-chat__launcher,
    .itc-chat .itc-chat__launcher:active,
    .itc-chat .itc-chat__launcher:focus,
    .itc-chat .itc-chat__launcher:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
    }
}


/* ITC v2.4.99 — header attendance status badge */
.itc-chat .itc-chat__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin-top: 1px;
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .01em;
    white-space: nowrap;
}

.itc-chat .itc-chat__status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.itc-chat .itc-chat__status--online::before {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .18), 0 0 12px rgba(52, 211, 153, .42);
    animation: itc-status-online-pulse 2.8s ease-in-out infinite;
}

.itc-chat .itc-chat__status--offline::before {
    background: #fb7185;
    box-shadow: 0 0 0 3px rgba(251, 113, 133, .18), 0 0 10px rgba(251, 113, 133, .28);
}

@keyframes itc-status-online-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: .92;
    }
    50% {
        transform: scale(1.16);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itc-chat .itc-chat__status--online::before {
        animation: none;
    }
}

@media (max-width: 768px) {
    .itc-chat .itc-chat__status {
        gap: 5px;
        font-size: 10.5px;
        line-height: 1.1;
    }

    .itc-chat .itc-chat__status::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }
}

@media (max-width: 480px) {
    .itc-chat__starter-hint {
        margin: -4px 8px 10px;
        font-size: 11.5px;
    }
}

@media (min-width: 769px) {
    .itc-chat__starter-hint {
        margin-top: -6px;
        margin-bottom: 8px;
    }
}


/* ITC 2.4.168: validation messages must keep error color in every dark-mode context. */
html.force-dark .itc-chat .itc-chat__offline-error,
html.infinity-dark .itc-chat .itc-chat__offline-error,
body.infinity-dark .itc-chat .itc-chat__offline-error,
body.dark .itc-chat .itc-chat__offline-error,
.itc-chat.itc-chat--theme-dark .itc-chat__offline-error,
.itc-chat[data-itc-theme="dark"] .itc-chat__offline-error,
html.force-dark .itc-chat .itc-chat__offline-feedback[data-itc-feedback-type="error"],
html.infinity-dark .itc-chat .itc-chat__offline-feedback[data-itc-feedback-type="error"],
body.infinity-dark .itc-chat .itc-chat__offline-feedback[data-itc-feedback-type="error"],
body.dark .itc-chat .itc-chat__offline-feedback[data-itc-feedback-type="error"],
.itc-chat.itc-chat--theme-dark .itc-chat__offline-feedback[data-itc-feedback-type="error"],
.itc-chat[data-itc-theme="dark"] .itc-chat__offline-feedback[data-itc-feedback-type="error"] {
    color: #ff8a8a !important;
}

/* ITC 2.4.171: perfil visual básico do operador vinculado. */
.itc-chat .itc-chat__message--with-operator-profile {
    align-items: flex-start;
}

.itc-chat .itc-chat__operator-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
}

.itc-chat .itc-chat__operator-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.itc-chat .itc-chat__message--with-operator-profile .itc-chat__bubble {
    max-width: 100%;
}

.itc-chat .itc-chat__message--operator-compact {
    margin-top: -4px;
}

.itc-chat .itc-chat__operator-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 16px;
    color: color-mix(in srgb, var(--itc-muted) 92%, var(--itc-text));
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding-left: 2px;
}

.itc-chat .itc-chat__operator-time {
    opacity: .72;
    font-weight: 700;
}

.itc-chat .itc-chat__operator-name + .itc-chat__operator-time::before {
    content: "·";
    margin-right: 6px;
    opacity: .72;
}

.itc-chat .itc-chat__message-text {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}

.itc-chat .itc-chat__message-time {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1;
    text-align: right;
    opacity: .72;
    font-weight: 700;
}

.itc-chat .itc-chat__message--visitor .itc-chat__message-time {
    color: color-mix(in srgb, var(--itc-primary-contrast) 78%, transparent);
}

/* ITC 2.4.178 - operator avatar fit refinement. */
.itc-chat .itc-chat__operator-avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    color: transparent;
    flex: 0 0 auto;
    overflow: visible;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .14);
}

.itc-chat .itc-chat__operator-avatar-spacer {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.itc-chat .itc-chat__operator-avatar::before,
.itc-chat .itc-chat__operator-avatar::after {
    content: none !important;
    display: none !important;
}

.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_neutral_skin_light"] { background-image: url("../images/operators/attendance-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_neutral_skin_black"] { background-image: url("../images/operators/attendance-neutral-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_male_skin_light"] { background-image: url("../images/operators/attendance-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_male_skin_black"] { background-image: url("../images/operators/attendance-male-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_female_skin_light"] { background-image: url("../images/operators/attendance-female-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_female_skin_black"] { background-image: url("../images/operators/attendance-female-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_neutral_skin_light"] { background-image: url("../images/operators/support-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_neutral_skin_black"] { background-image: url("../images/operators/support-neutral-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_male_skin_light"] { background-image: url("../images/operators/support-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_male_skin_black"] { background-image: url("../images/operators/support-male-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_female_skin_light"] { background-image: url("../images/operators/support-female-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_female_skin_black"] { background-image: url("../images/operators/support-female-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_neutral_skin_light"] { background-image: url("../images/operators/sales-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_neutral_skin_black"] { background-image: url("../images/operators/sales-neutral-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_male_skin_light"] { background-image: url("../images/operators/sales-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_male_skin_black"] { background-image: url("../images/operators/sales-male-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_female_skin_light"] { background-image: url("../images/operators/sales-female-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_female_skin_black"] { background-image: url("../images/operators/sales-female-skin-black.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="neutral"] { background-image: url("../images/operators/attendance-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="male"] { background-image: url("../images/operators/attendance-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="female"] { background-image: url("../images/operators/attendance-female-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support"] { background-image: url("../images/operators/support-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales"] { background-image: url("../images/operators/sales-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_neutral"] { background-image: url("../images/operators/attendance-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_male"] { background-image: url("../images/operators/attendance-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="attendance_female"] { background-image: url("../images/operators/attendance-female-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_neutral"] { background-image: url("../images/operators/support-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_male"] { background-image: url("../images/operators/support-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="support_female"] { background-image: url("../images/operators/support-female-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_neutral"] { background-image: url("../images/operators/sales-neutral-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_male"] { background-image: url("../images/operators/sales-male-skin-light.png?ver=2.4.192") !important; }
.itc-chat .itc-chat__operator-avatar[data-itc-operator-avatar="sales_female"] { background-image: url("../images/operators/sales-female-skin-light.png?ver=2.4.192") !important; }

.itc-chat .itc-chat__operator-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.force-dark .itc-chat .itc-chat__operator-header,
html.infinity-dark .itc-chat .itc-chat__operator-header,
.itc-chat[data-itc-theme="dark"] .itc-chat__operator-header,
.itc-chat.itc-chat--theme-dark .itc-chat__operator-header {
    color: color-mix(in srgb, #ffffff 72%, var(--itc-muted));
}



/* ITC 2.4.186 - operator chat UX and neutral system notices. */
.itc-chat .itc-chat__bubble {
    white-space: normal !important;
}

.itc-chat .itc-chat__message-text {
    display: block;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.itc-chat .itc-chat__message--system {
    justify-content: center !important;
    margin: 10px 0 !important;
}

.itc-chat .itc-chat__message--system .itc-chat__bubble {
    max-width: 88% !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--itc-muted) 18%, transparent) !important;
    color: color-mix(in srgb, var(--itc-muted) 86%, var(--itc-text)) !important;
    border: 1px solid color-mix(in srgb, var(--itc-border) 72%, transparent) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.itc-chat .itc-chat__operator-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
}

.itc-chat .itc-chat__operator-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.itc-chat .itc-chat__operator-avatar-spacer {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}



/* ITC 2.4.187 - premium operator/system hierarchy. */
.itc-chat {
    --itc-operator-bubble-premium: #ecfdf5;
    --itc-operator-border-premium: rgba(16, 185, 129, .34);
    --itc-operator-text-premium: #102a24;
    --itc-system-bg-premium: rgba(100, 116, 139, .12);
    --itc-system-border-premium: rgba(100, 116, 139, .24);
    --itc-system-text-premium: color-mix(in srgb, var(--itc-muted) 88%, var(--itc-text));
}

.itc-chat .itc-chat__message--operator .itc-chat__bubble {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--itc-operator-bubble-premium) 92%, #ffffff 8%),
            var(--itc-operator-bubble-premium)
        ) !important;
    color: var(--itc-operator-text-premium) !important;
    border: 1px solid var(--itc-operator-border-premium) !important;
    box-shadow: 0 6px 18px rgba(15, 118, 110, .10) !important;
}

.itc-chat .itc-chat__message--system .itc-chat__bubble {
    background: var(--itc-system-bg-premium) !important;
    color: var(--itc-system-text-premium) !important;
    border: 1px solid var(--itc-system-border-premium) !important;
    box-shadow: none !important;
    opacity: .92;
}

html.force-dark .itc-chat,
html.infinity-dark .itc-chat,
body.infinity-dark .itc-chat,
body.dark .itc-chat,
.itc-chat.itc-chat--theme-dark,
.itc-chat[data-itc-theme="dark"] {
    --itc-operator-bubble-premium: rgba(20, 83, 68, .46);
    --itc-operator-border-premium: rgba(94, 234, 212, .30);
    --itc-operator-text-premium: #eafbF6;
    --itc-system-bg-premium: rgba(148, 163, 184, .105);
    --itc-system-border-premium: rgba(148, 163, 184, .20);
    --itc-system-text-premium: color-mix(in srgb, #ffffff 62%, var(--itc-muted));
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat {
        --itc-operator-bubble-premium: rgba(20, 83, 68, .46);
        --itc-operator-border-premium: rgba(94, 234, 212, .30);
        --itc-operator-text-premium: #eafbF6;
        --itc-system-bg-premium: rgba(148, 163, 184, .105);
        --itc-system-border-premium: rgba(148, 163, 184, .20);
        --itc-system-text-premium: color-mix(in srgb, #ffffff 62%, var(--itc-muted));
    }
}




/* ITC 2.4.190 - refined light operator teal. */
.itc-chat .itc-chat__message--operator .itc-chat__bubble {
    background:
        linear-gradient(
            180deg,
            #e2f8ef,
            #d9f4eb
        ) !important;
    border: 1px solid rgba(20, 184, 166, .42) !important;
    color: #0f2f28 !important;
    box-shadow: 0 8px 20px rgba(20, 184, 166, .13) !important;
}

/* ITC 2.4.188 - final dark operator contrast override. */
html.force-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
html.infinity-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
body.infinity-dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
body.dark .itc-chat .itc-chat__message--operator .itc-chat__bubble,
.itc-chat.itc-chat--theme-dark .itc-chat__message--operator .itc-chat__bubble,
.itc-chat[data-itc-theme="dark"] .itc-chat__message--operator .itc-chat__bubble {
    background:
        linear-gradient(
            180deg,
            rgba(20, 105, 86, .58),
            rgba(18, 83, 72, .52)
        ) !important;
    border: 1px solid rgba(94, 234, 212, .38) !important;
    color: #ecfdf5 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 8px 20px rgba(13, 148, 136, .13) !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.force-light):not(.force-dark) .itc-chat .itc-chat__message--operator .itc-chat__bubble {
        background:
            linear-gradient(
                180deg,
                rgba(20, 105, 86, .58),
                rgba(18, 83, 72, .52)
            ) !important;
        border: 1px solid rgba(94, 234, 212, .38) !important;
        color: #ecfdf5 !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .055),
            0 8px 20px rgba(13, 148, 136, .13) !important;
    }
}
