/*
 * New (not from the old app): spacing for Markdown answers inside the old assistant bubble.
 * The old `.chat-answers-text` uses `white-space: pre-line` for plain-text answers; rendered Markdown already
 * carries its own block structure, so whitespace between blocks must not turn into blank lines.
 */
.chat-answers-text.chat-markdown {
    white-space: normal;
    overflow-wrap: anywhere;
}

.chat-markdown p,
.chat-markdown ul,
.chat-markdown ol {
    margin: 0 0 10px 0;
}

.chat-markdown ul,
.chat-markdown ol {
    padding-left: 22px;
}

.chat-markdown li {
    margin-bottom: 4px;
}

.chat-markdown li > p {
    margin-bottom: 4px;
}

.chat-markdown > :last-child {
    margin-bottom: 0;
}

.chat-markdown strong {
    font-weight: 700;
}

/*
 * New (task 08): the source line under an answer, clearly secondary: about 80 % of the answer's size (16 px /
 * 14 px in Chat.scss) and the muted grey of the old `.chat-answers-time`.
 */
.chat-answer-source {
    margin-top: 6px;
    color: #757575;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media only screen and (max-width: 1039px) {
    .chat-answer-source {
        font-size: 12px;
    }
}

/* Outcome of the copy button ("Copied" / "Could not copy"), next to it; empty and zero-width when idle. */
.button-container {
    align-items: center;
}

.chat-copy-status {
    color: #757575;
    font-size: 12px;
    white-space: nowrap;
}

.chat-copy-status:not(:empty) {
    margin-right: 8px;
}

.chat-copy-status[data-state="failed"] {
    color: #B42318;
}
