.chat-transcript {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    min-height: 90px;
    overflow-y: auto;
    padding: 12px;
    scroll-behavior: smooth;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: min(85%, 560px);
    padding: 9px 12px;
    border-radius: 10px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-message-mine {
    align-self: flex-end;
    background: #fff0e6;
    border-bottom-right-radius: 3px;
}

.chat-message-other {
    align-self: flex-start;
    background: #fff;
    border-bottom-left-radius: 3px;
}

.chat-message-author {
    color: #002390;
    font-size: 11px;
    margin-bottom: 3px;
}

.chat-message-content {
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.chat-message-time {
    align-self: flex-end;
    color: #777;
    font-size: 10px;
    margin-top: 4px;
}

.chat-message-receipt {
    align-self: flex-end;
    color: #667085;
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

.chat-message-receipt.is-read {
    color: #0878d1;
}

.chat-unread-count {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 12px;
    background: #ff4f00;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    vertical-align: middle;
}

.chat-unread-count[hidden] {
    display: none;
}

.chat-empty {
    color: #777;
    font-size: 12px;
    font-style: italic;
    margin: auto;
    text-align: center;
}

.chat-feedback {
    color: #276738;
    font-size: 12px;
    min-height: 16px;
    padding: 2px 10px;
}

.chat-feedback-error {
    color: #a4262c;
}

.chat-closed-note {
    background: #f1f3f5;
    border-top: 1px solid #ddd;
    color: #626b73;
    font-size: 12px;
    padding: 9px 12px;
    text-align: center;
}

[data-chat-form] button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.ticket-reopen-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.ticket-reopen-form small {
    color: #4c5665;
}

.ticket-reopen-button {
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: #002390;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ticket-reopen-button:hover {
    background: #ff4f00;
}

.ticket-reopen-button:focus-visible {
    outline: 3px solid #ff9a66;
    outline-offset: 2px;
}

.problem-details summary {
    color: #002390;
    cursor: pointer;
    font-weight: 600;
}

.problem-details dl {
    margin: 10px 0 0;
}

.problem-details dt {
    color: #555;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
}

.problem-details dd {
    margin: 2px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
