.triadic-wpchat-chat {
    --triadic-chat-primary: #1a365d;
    --triadic-chat-header-bg: var(--triadic-chat-primary);
    --triadic-chat-header-text: #ffffff;
    --triadic-chat-bubble-bg: var(--triadic-chat-primary);
    --triadic-chat-bubble-text: #ffffff;
    --triadic-chat-visitor-bg: #ffffff;
    --triadic-chat-agent-bg: var(--triadic-chat-primary);
    --triadic-chat-agent-text: #ffffff;
    --triadic-chat-panel-bg: #ffffff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
    z-index: 99990;
}

.triadic-wpchat-chat:not(.triadic-wpchat-chat--inline) {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.triadic-wpchat-chat[data-position="bottom_left"]:not(.triadic-wpchat-chat--inline) {
    right: auto;
    left: 20px;
}

.triadic-wpchat-chat__bubble {
    background: var(--triadic-chat-bubble-bg);
    color: var(--triadic-chat-bubble-text);
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.triadic-wpchat-chat__panel--closed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.triadic-wpchat-chat__panel--open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.triadic-wpchat-chat__panel[hidden] {
    display: none !important;
}

.triadic-wpchat-chat__panel {
    width: min(360px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 100px));
    background: var(--triadic-chat-panel-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
}

.triadic-wpchat-chat__panel--offline {
    padding: 0;
}

.triadic-wpchat-chat__offline {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 280px;
}

.triadic-wpchat-chat__offline-agent {
    padding: 20px 16px 12px;
    text-align: center;
    border-bottom: 1px solid #e8edf2;
}

.triadic-wpchat-chat__offline-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--triadic-chat-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    overflow: hidden;
    position: relative;
}

.triadic-wpchat-chat__offline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.triadic-wpchat-chat__offline-avatar.has-img .triadic-wpchat-chat__offline-initials {
    display: none;
}

.triadic-wpchat-chat__offline-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.triadic-wpchat-chat__offline-body {
    padding: 20px 18px 24px;
    flex: 1;
}

.triadic-wpchat-chat__offline-heading-top {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.3;
}

.triadic-wpchat-chat__offline-heading-bottom {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 18px;
    line-height: 1.45;
}

.triadic-wpchat-chat__offline-phone-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.triadic-wpchat-chat__offline-phone {
    color: var(--triadic-chat-primary);
    text-decoration: none;
}

.triadic-wpchat-chat__offline-phone:hover {
    text-decoration: underline;
}

.triadic-wpchat-chat__offline-consent {
    font-size: 11px;
    line-height: 1.45;
    color: #718096;
    margin-bottom: 14px;
}

.triadic-wpchat-chat__offline-leave-msg,
.triadic-wpchat-chat__offline-ai {
    width: 100%;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
}

.triadic-wpchat-chat__offline-ai {
    background: var(--triadic-chat-primary);
    border: 1px solid var(--triadic-chat-primary);
    color: #fff;
    margin-bottom: 8px;
}

.triadic-wpchat-chat__offline-leave-msg {
    background: transparent;
    border: 1px solid var(--triadic-chat-primary);
    color: var(--triadic-chat-primary);
}

.triadic-wpchat-chat__close {
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.triadic-wpchat-chat__live {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* display:flex on child panels must not override the hidden attribute */
.triadic-wpchat-chat__live > [hidden] {
    display: none !important;
}

.triadic-wpchat-chat__live[hidden],
.triadic-wpchat-chat__offline[hidden] {
    display: none !important;
}

.triadic-wpchat-chat__history {
    border-bottom: 1px solid #e8edf2;
    background: #f8fafc;
}

.triadic-wpchat-chat__history-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #2d3748;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.triadic-wpchat-chat__history-toggle::after {
    content: '▾';
    font-size: 11px;
    color: #718096;
    transition: transform 0.15s ease;
}

.triadic-wpchat-chat__history-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.triadic-wpchat-chat__history-list {
    max-height: 120px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.triadic-wpchat-chat__history-item {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.triadic-wpchat-chat__history-item:last-child {
    margin-bottom: 0;
}

.triadic-wpchat-chat__history-item.is-active {
    border-color: var(--triadic-chat-primary);
    box-shadow: inset 0 0 0 1px var(--triadic-chat-primary);
}

.triadic-wpchat-chat__history-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #718096;
}

.triadic-wpchat-chat__history-status {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.triadic-wpchat-chat__history-status.is-active {
    color: #2f855a;
}

.triadic-wpchat-chat__history-preview {
    font-size: 12px;
    color: #2d3748;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.triadic-wpchat-chat__history-actions {
    padding: 6px 12px;
    border-bottom: 1px solid #e8edf2;
    background: #fff;
}

.triadic-wpchat-chat__new-chat {
    border: 0;
    background: transparent;
    color: var(--triadic-chat-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.triadic-wpchat-chat__past-notice {
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    color: #4a5568;
    background: #edf2f7;
    border-bottom: 1px solid #e2e8f0;
}

.triadic-wpchat-chat:not(.triadic-wpchat-chat--inline) .triadic-wpchat-chat__panel {
    position: absolute;
    bottom: 56px;
    right: 0;
}

.triadic-wpchat-chat[data-position="bottom_left"]:not(.triadic-wpchat-chat--inline) .triadic-wpchat-chat__panel {
    right: auto;
    left: 0;
}

.triadic-wpchat-chat__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--triadic-chat-header-bg);
    color: var(--triadic-chat-header-text);
}

.triadic-wpchat-chat__close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.triadic-wpchat-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 160px;
    background: #f7fafc;
}

.triadic-wpchat-chat__messages[hidden] {
    display: none !important;
}

.triadic-wpchat-chat__live:not(.triadic-wpchat-chat__live--thread-active) .triadic-wpchat-chat__composer {
    flex: 1;
    border-top: 0;
}

.triadic-wpchat-chat__greeting,
.triadic-wpchat-chat__intro {
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.45;
}

.triadic-wpchat-chat__msg {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 90%;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    flex-direction: column;
}

.triadic-wpchat-chat__msg-body {
    white-space: pre-wrap;
}

.triadic-wpchat-chat__msg-meta {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    text-align: right;
    align-self: flex-end;
    opacity: 0.88;
}

.triadic-wpchat-chat__msg--outbound .triadic-wpchat-chat__msg-meta {
    color: rgba(255, 255, 255, 0.92);
}

.triadic-wpchat-chat__msg--system .triadic-wpchat-chat__msg-meta {
    color: #4a5568;
}

.triadic-wpchat-chat__msg--internal-note {
    border-left: 3px solid #dba617;
}

.triadic-wpchat-chat__msg--inbound {
    background: var(--triadic-chat-visitor-bg);
    border: 1px solid #e2e8f0;
}

.triadic-wpchat-chat__msg--outbound {
    background: var(--triadic-chat-agent-bg);
    color: var(--triadic-chat-agent-text);
    margin-left: auto;
}

.triadic-wpchat-chat__msg--system {
    background: #edf2f7;
    border: 1px dashed #cbd5e0;
    color: #2d3748;
    max-width: 100%;
    font-size: 13px;
}

.triadic-wpchat-chat__msg--thinking {
    min-width: 48px;
    padding: 12px 16px;
}

.triadic-wpchat-chat__dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.triadic-wpchat-chat__dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    animation: triadic-chat-dot 1.2s infinite ease-in-out;
}

.triadic-wpchat-chat__dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.triadic-wpchat-chat__dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes triadic-chat-dot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.triadic-wpchat-chat__ended {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
    min-height: 200px;
    background: #f7fafc;
}

.triadic-wpchat-chat__ended[hidden] {
    display: none !important;
}

.triadic-wpchat-chat__ended-msg {
    margin: 0 0 16px;
    color: #2d3748;
    line-height: 1.5;
    font-size: 14px;
}

.triadic-wpchat-chat__ended-dismiss {
    background: var(--triadic-chat-primary);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

.triadic-wpchat-chat__composer,
.triadic-wpchat-chat__form-wrap {
    padding: 10px 12px 12px;
    border-top: 1px solid #e2e8f0;
}

.triadic-wpchat-chat__identity label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}

.triadic-wpchat-chat__identity label span {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.triadic-wpchat-chat__identity input {
    width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}

.triadic-wpchat-chat__identity input.triadic-wpchat-chat__field-error {
    border-color: #c53030;
}

.triadic-wpchat-chat__composer textarea,
.triadic-wpchat-chat__form textarea {
    width: 100%;
    resize: vertical;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}

.triadic-wpchat-chat__send {
    width: 100%;
    background: var(--triadic-chat-primary);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
}

.triadic-wpchat-chat__send:disabled {
    opacity: 0.6;
    cursor: wait;
}

.triadic-wpchat-chat__session-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 8px;
}

.triadic-wpchat-chat__end {
    background: transparent;
    border: 0;
    color: #4a5568;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

.triadic-wpchat-chat__end:hover {
    color: #1a202c;
}

.triadic-wpchat-chat__status {
    padding: 0 12px 10px;
    font-size: 12px;
    color: #4a5568;
}

.triadic-wpchat-chat__status.is-error {
    color: #c53030;
}

.triadic-wpchat-chat--inline .triadic-wpchat-chat__panel {
    position: static;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

@media (max-width: 480px) {
    .triadic-wpchat-chat:not(.triadic-wpchat-chat--inline) {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .triadic-wpchat-chat:not(.triadic-wpchat-chat--inline) .triadic-wpchat-chat__panel {
        width: 100%;
        right: 0;
        left: 0;
    }
}

.triadic-wpchat-chat-inbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.triadic-wpchat-chat-inbox-toolbar__label {
    margin: 0;
    font-weight: 600;
}

.triadic-wpchat-chat-inbox-toolbar__select {
    min-width: 140px;
}

.triadic-wpchat-chat-inbox-toolbar__pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.triadic-wpchat-chat-inbox-toolbar__pill--online {
    background: #edfaef;
    color: #1e4620;
}

.triadic-wpchat-chat-inbox-toolbar__pill--away {
    background: #fff8e5;
    color: #6b4e00;
}

.triadic-wpchat-chat-inbox-toolbar__pill--offline {
    background: #f0f0f1;
    color: #50575e;
}

.triadic-wpchat-chat-inbox-toolbar__hint {
    flex: 1 1 100%;
    margin: 0;
}

.triadic-wpchat-chat-presence-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.triadic-wpchat-chat-presence-bar__label {
    font-weight: 600;
}

#wpadminbar #wp-admin-bar-triadic-chat-presence > .ab-item {
    display: inline-flex;
    align-items: center;
}

.triadic-wpchat-chat-inactivity-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.72);
}

.triadic-wpchat-chat-inactivity-overlay.is-visible {
    display: flex;
}

.triadic-wpchat-chat-inactivity-modal {
    width: min(480px, 100%);
    padding: 24px 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.triadic-wpchat-chat-inactivity-modal h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.triadic-wpchat-chat-inactivity-modal p {
    margin: 0 0 20px;
    color: #50575e;
}

.triadic-wpchat-chat-inactivity-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.triadic-wpchat-chat-inbox-detail__empty {
    color: #50575e;
}

.triadic-wpchat-chat-inbox-table tr.is-view-only {
    opacity: 0.92;
}

.triadic-wpchat-chat-inbox-view-only-label,
.triadic-wpchat-chat-inbox-view-only-banner {
    color: #646970;
}

.triadic-wpchat-chat-inbox-view-only-banner {
    margin: 0 0 12px;
}

.triadic-wpchat-chat-inbox-offline-notice {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #50575e;
}

.triadic-wpchat-chat-inbox-offline-notice p {
    margin: 0;
}

.triadic-wpchat-chat-inbox-open.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: #2271b1;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.triadic-wpchat-chat-inbox-open.link-button:hover,
.triadic-wpchat-chat-inbox-open.link-button:focus {
    color: #135e96;
    text-decoration: underline;
}

.triadic-wpchat-chat-inbox-table tr.is-active {
    background: #f0f6fc;
}

.triadic-wpchat-chat-inbox-list {
    flex: 1;
    max-width: 52%;
    min-width: 320px;
}

.triadic-wpchat-chat-inbox-detail {
    flex: 2;
    min-width: 280px;
}

.triadic-wpchat-chat-inbox-table th,
.triadic-wpchat-chat-inbox-table td {
    vertical-align: top;
}

.triadic-wpchat-chat-inbox-table tr.is-active td {
    background: #f0f6fc;
}

.triadic-wpchat-chat-inbox-assign {
    max-width: 100%;
    width: 100%;
}

.triadic-wpchat-chat-inbox-meta {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.triadic-wpchat-chat-inbox-meta p {
    margin: 0 0 8px;
}

.triadic-wpchat-chat-inbox-meta p:last-child {
    margin-bottom: 0;
}

.triadic-wpchat-chat__queue-banner {
    margin: 0 12px 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e5;
    border: 1px solid #f0c36d;
    color: #6b4e00;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.triadic-wpchat-chat__queue-banner.is-active {
    animation: triadic-wpchat-queue-pulse 1.6s ease-in-out infinite;
}

@keyframes triadic-wpchat-queue-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(240, 195, 109, 0.35);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(240, 195, 109, 0.15);
    }
}

.triadic-wpchat-chat-waiting-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

#wpadminbar #wp-admin-bar-triadic-chat-presence.triadic-wpchat-chat-presence-bar-node--waiting > .ab-item {
    animation: triadic-wpchat-adminbar-waiting-flash 1.2s ease-in-out infinite;
}

@keyframes triadic-wpchat-adminbar-waiting-flash {
    0%,
    100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(214, 54, 56, 0.18);
    }
}

.triadic-wpchat-chat-inbox-waiting-banner {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fff8e5;
    border: 1px solid #f0c36d;
    color: #6b4e00;
    font-weight: 600;
}

.triadic-wpchat-chat-inbox-waiting-banner.is-active {
    animation: triadic-wpchat-queue-pulse 1.6s ease-in-out infinite;
}

.triadic-wpchat-chat-inbox-detail-waiting-banner {
    margin-bottom: 16px;
}

.triadic-wpchat-chat-inbox-table tr.needs-operator-attention td {
    background: #fff8e5;
}

.triadic-wpchat-chat-inbox-table tr.needs-operator-attention.is-active td {
    background: #ffefb8;
}

.triadic-wpchat-chat-inbox-status--waiting {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fcebea;
    color: #8a1f1f;
    font-weight: 600;
    font-size: 12px;
}

.triadic-wpchat-chat-inbox-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.triadic-wpchat-chat-inbox-detail__header h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.triadic-wpchat-chat-inbox-hangup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d63638;
    border-radius: 50%;
    background: #fcebea;
    color: #b32d2e;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.triadic-wpchat-chat-inbox-hangup:hover,
.triadic-wpchat-chat-inbox-hangup:focus {
    background: #d63638;
    border-color: #b32d2e;
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #d63638;
}

.triadic-wpchat-chat-inbox-hangup:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.triadic-wpchat-chat-inbox-hangup__svg {
    display: block;
}

.triadic-wpchat-chat-inbox-actions-col {
    width: 52px;
}

.triadic-wpchat-chat-inbox-actions {
    width: 52px;
    text-align: center;
    vertical-align: middle;
}

.triadic-wpchat-chat-inbox-actions__empty {
    color: #a7aaad;
}

.triadic-wpchat-chat-inbox-hangup--row {
    width: 32px;
    height: 32px;
}

.triadic-wpchat-chat-conversations-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.triadic-wpchat-chat-conversations-list {
    flex: 1 1 55%;
    min-width: 0;
}

.triadic-wpchat-chat-conversations-detail {
    flex: 1 1 45%;
    min-width: 280px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px;
    max-height: 70vh;
    overflow: auto;
}

.triadic-wpchat-chat-conversations-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 16px;
}

.triadic-wpchat-chat-conversations-table tr.is-active,
.triadic-wpchat-chat-conversations-table tr[data-session-id]:hover {
    background: #f0f6fc;
    cursor: pointer;
}

.triadic-wpchat-chat-sync {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.triadic-wpchat-chat-sync--synced {
    background: #d5f5e3;
    color: #1e4620;
}

.triadic-wpchat-chat-sync--pending {
    background: #fcf0cf;
    color: #6b4f00;
}

.triadic-wpchat-chat-sync--no_contact,
.triadic-wpchat-chat-sync--disabled {
    background: #f0f0f1;
    color: #50575e;
}

.triadic-wpchat-chat-conversations-detail__messages {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.triadic-wpchat-chat-conversations-detail__msg {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f7f7;
}

.triadic-wpchat-chat-conversations-detail__msg--outbound {
    background: #eef5fb;
}

.triadic-wpchat-chat-conversations-detail__msg-meta {
    font-size: 12px;
    color: #646970;
    margin-bottom: 4px;
}

.triadic-wpchat-chat-conversations-detail__msg-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.triadic-wpchat-chat-conversations-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.triadic-wpchat-chat-conversations-detail__sync-error {
    color: #b32d2e;
}
