.lms-rich-editor-shell {
    border: 1px solid #d7dee8;
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
}

.lms-rich-field.is-collapsed .lms-rich-editor-shell,
.lms-rich-field.is-collapsed .form-text {
    display: none;
}

.lms-rich-editor-shell .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.lms-rich-editor-shell .ql-container.ql-snow {
    border: 0;
    font-family: inherit;
    font-size: .96rem;
}

.lms-rich-editor-shell .ql-editor {
    min-height: var(--lms-rich-editor-min-height, 180px);
    line-height: 1.6;
}

.lms-rich-editor-shell[data-editor-size="large"] .ql-editor {
    min-height: 240px;
}

.lms-rich-editor-shell .ql-editor.ql-blank::before {
    color: #64748b;
    font-style: normal;
}

.lms-rich-content {
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lms-rich-content * {
    max-width: 100%;
}

.lms-rich-content > :first-child {
    margin-top: 0;
}

.lms-rich-content > :last-child {
    margin-bottom: 0;
}

.lms-rich-content h2 {
    font-size: 1.25rem;
    margin: 1rem 0 .5rem;
}

.lms-rich-content h3 {
    font-size: 1.05rem;
    margin: .9rem 0 .45rem;
}

.lms-rich-content p,
.lms-rich-content ul,
.lms-rich-content ol,
.lms-rich-content blockquote {
    margin-bottom: .75rem;
}

.lms-rich-content blockquote {
    border-left: 3px solid #cbd5e1;
    color: #475569;
    padding-left: .9rem;
}

.lms-rich-content a {
    color: var(--brand-primary, #0b5ed7);
}

.lms-rich-content--compact {
    font-size: .875rem;
    max-height: 5.5rem;
    overflow: hidden;
}

.lms-rich-content--compact h2,
.lms-rich-content--compact h3 {
    font-size: .95rem;
    margin: 0 0 .25rem;
}

.lms-rich-content--compact p,
.lms-rich-content--compact ul,
.lms-rich-content--compact ol,
.lms-rich-content--compact blockquote {
    margin-bottom: .45rem;
}
