.support-rich-editor {
    border: 1px solid var(--border, #dee2e6);
    border-radius: 0.375rem;
    background: var(--bg-card, #fff);
    overflow: hidden;
}

.support-rich-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border, #dee2e6);
    background: var(--bg-sidebar, #f8f9fa);
}

.support-rich-editor__toolbar .btn {
    padding: 0.15rem 0.45rem;
    line-height: 1.2;
}

.support-rich-editor__toolbar .form-select,
.support-rich-editor__toolbar .form-control-color {
    width: auto;
    min-width: 0;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    font-size: 0.8125rem;
}

.support-rich-editor__toolbar .form-control-color {
    width: 2rem;
    height: 1.85rem;
    padding: 0.1rem;
}

.support-rich-editor__body {
    min-height: 7.5rem;
    padding: 0.65rem 0.75rem;
    outline: none;
    color: var(--text-primary, #212529);
    background: var(--bg-card, #fff);
    line-height: 1.5;
    overflow-y: auto;
    word-break: break-word;
}

.support-rich-editor__body--sm {
    min-height: 5rem;
}

.support-rich-editor__body:empty::before {
    content: attr(data-placeholder);
    color: var(--text-secondary, #6c757d);
    pointer-events: none;
}

.support-rich-editor__body:focus {
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 13, 148, 136), 0.35);
}

.support-message-body {
    line-height: 1.55;
    word-break: break-word;
}

.support-message-body--plain {
    white-space: pre-wrap;
}

.support-message-body b,
.support-message-body strong {
    font-weight: 700;
}

.support-message-body i,
.support-message-body em {
    font-style: italic;
}

.support-message-body u {
    text-decoration: underline;
}

.support-message-body s,
.support-message-body strike {
    text-decoration: line-through;
}

.support-rich-editor__toolbar .support-rich-editor__sep {
    width: 1px;
    align-self: stretch;
    margin: 0.1rem 0.15rem;
    background: var(--border, #dee2e6);
}

.support-rich-editor__body ul,
.support-rich-editor__body ol,
.support-message-body ul,
.support-message-body ol {
    margin: 0.35rem 0 0.5rem;
    padding-left: 1.35rem;
}

.support-rich-editor__body ul:not(.support-list-dash),
.support-message-body ul:not(.support-list-dash) {
    list-style-type: disc;
    padding-left: 1.35rem;
}

.support-rich-editor__body ul.support-list-bullet,
.support-message-body ul.support-list-bullet {
    list-style-type: disc;
}

.support-rich-editor__body ul.support-list-dash,
.support-message-body ul.support-list-dash {
    list-style: none;
    padding-left: 0.25rem;
}

.support-rich-editor__body ul.support-list-dash > li,
.support-message-body ul.support-list-dash > li {
    position: relative;
    padding-left: 1rem;
}

.support-rich-editor__body ul.support-list-dash > li::before,
.support-message-body ul.support-list-dash > li::before {
    content: "-";
    position: absolute;
    left: 0;
    font-weight: 600;
}

.support-rich-editor__body ol,
.support-message-body ol {
    list-style-type: decimal;
}

.support-rich-editor__body li,
.support-message-body li {
    margin: 0.15rem 0;
}

.support-message-body p,
.support-message-body div {
    margin: 0 0 0.35rem;
}

.support-message-body p:last-child,
.support-message-body div:last-child {
    margin-bottom: 0;
}
