.sun-editor {
    border-color: var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    overflow: hidden;
}

.sun-editor button.se-toolbar-btn.se-btn.active,
.sun-editor button.se-toolbar-btn.se-btn.active:hover,
.sun-editor button.se-toolbar-btn.se-btn.active:focus,
.sun-editor button.se-toolbar-btn.se-btn.active:active {
    background: #4F46E5 !important;
    background-color: #4F46E5 !important;
    color: #ffffff !important;
    border-color: #4F46E5 !important;
    box-shadow: none !important;
    outline: none !important;
}

.sun-editor button.se-toolbar-btn.se-btn.active svg,
.sun-editor button.se-toolbar-btn.se-btn.active svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}




/* Editor content lists */
.sun-editor .sun-editor-editable ol,
.sun-editor-editable ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 2rem !important;
    margin: .5rem 0 1rem !important;
}

.sun-editor .sun-editor-editable ul,
.sun-editor-editable ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 2rem !important;
    margin: .5rem 0 1rem !important;
}

.sun-editor .sun-editor-editable li,
.sun-editor-editable li {
    display: list-item !important;
}

/* SunEditor dropdown list previews */
.sun-editor .se-list-carrier {
    list-style: none !important;
    padding: .35rem !important;
    margin: 0 !important;
}

.sun-editor .se-list-carrier > li {
    display: inline-flex !important;
    list-style: none !important;
    margin: 0 !important;
}

.sun-editor .se-list-carrier button ol,
.sun-editor .se-list-carrier button ul {
    display: block !important;
    width: 3rem !important;
    min-height: 2.5rem !important;
    margin: 0 !important;
    padding-left: 1.4rem !important;
    list-style-position: outside !important;
}

.sun-editor .se-list-carrier button ol {
    list-style-type: decimal !important;
}

.sun-editor .se-list-carrier button ul {
    list-style-type: disc !important;
}

.sun-editor .se-list-carrier button li {
    display: list-item !important;
    height: .55rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sun-editor .se-list-carrier button li::marker {
    color: currentColor !important;
}

.sun-editor-editable ol,
.sun-editor .sun-editor-editable ol {
    display: block !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 2.25rem !important;
    margin-left: 0 !important;
    margin-top: .5rem !important;
    margin-bottom: 1rem !important;
}

.sun-editor-editable ul,
.sun-editor .sun-editor-editable ul {
    display: block !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 2.25rem !important;
    margin-left: 0 !important;
    margin-top: .5rem !important;
    margin-bottom: 1rem !important;
}

.sun-editor-editable li,
.sun-editor .sun-editor-editable li {
    display: list-item !important;
    list-style-position: outside !important;
    margin: .25rem 0 !important;
    padding-left: .25rem !important;
}

.sun-editor-editable ol li::marker,
.sun-editor .sun-editor-editable ol li::marker {
    content: counter(list-item) ". " !important;
    color: currentColor !important;
}

.sun-editor-editable ul li::marker,
.sun-editor .sun-editor-editable ul li::marker {
    content: "• " !important;
    color: currentColor !important;
}

/* Compact, application-themed editor messages */
.sun-editor .se-alert-content {
    width: min(30rem, calc(100vw - 2rem));
    max-width: none;
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .2);
    font-size: 1rem;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: anywhere;
}

.sun-editor .se-alert-content.se-alert-error {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

.sun-editor .se-alert-content > div:first-child {
    height: 0;
}

.sun-editor .se-alert-content > div:last-child {
    padding-right: 2rem;
}

.sun-editor .se-alert-content button.close {
    position: relative;
    z-index: 1;
    color: currentColor;
}
