.lms3-rte {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    overflow: hidden;
}

.lms3-rte__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.lms3-rte__btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #212529;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.lms3-rte__btn:hover {
    background: #e9ecef;
}

.lms3-rte__btn.is-active {
    background: #d0e2ff;
    border-color: #a7c4f5;
}

.lms3-rte__select {
    height: 30px;
    padding: 0 4px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

.lms3-rte__sep {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: #dee2e6;
}

.lms3-rte__editor .ProseMirror {
    min-height: 180px;
    padding: 10px 12px;
    outline: none;
}

.lms3-rte__editor .ProseMirror > * + * {
    margin-top: 0.5em;
}

.lms3-rte__editor .ProseMirror:focus {
    outline: none;
}

.lms3-rte__editor .ProseMirror p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #adb5bd;
    pointer-events: none;
    height: 0;
}

.lms3-rte__editor blockquote {
    border-left: 3px solid #ced4da;
    padding-left: 1em;
    color: #495057;
    margin-left: 0;
}

.lms3-rte__editor hr {
    border: none;
    border-top: 1px solid #ced4da;
}

.lms3-rte__editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5em 0;
}

.lms3-rte__editor table td,
.lms3-rte__editor table th {
    border: 1px solid #ced4da;
    padding: 4px 8px;
    vertical-align: top;
}

.lms3-rte__editor table th {
    background: #f1f3f5;
    font-weight: 600;
}

.lms3-rte__editor img {
    max-width: 100%;
    height: auto;
}
