/* Buchverbunden WYSIWYG */

.bv-editor {
    width: 100%;
    margin: 12px 0 20px;
    border: 1px solid #cad5cd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.bv-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: #f0f3ed;
    border-bottom: 1px solid #d8e0d8;
}

.bv-editor-toolbar button {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #173d3c;
    font: inherit;
    cursor: pointer;
}

.bv-editor-toolbar button:hover {
    background: #e0e8de;
    border-color: #c5d5c8;
}

.bv-editor-separator {
    width: 1px;
    height: 24px;
    margin: 0 5px;
    background: #c8d3c9;
}

.bv-editor-content,
.bv-editor-html {
    display: block;
    width: 100%;
    min-height: 240px;
    padding: 20px;
    box-sizing: border-box;
    border: 0;
    outline: none;
    background: #fff;
    color: #173d3c;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.bv-editor-content {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bv-editor-html {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.bv-editor-html {
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bv-editor [hidden] {
    display: none !important;
}

.bv-editor-content p {
    margin: 0 0 1em;
}

.bv-editor-content p:last-child {
    margin-bottom: 0;
}

.bv-editor-notice {
    margin: 12px;
    padding: 12px 15px;
    border-radius: 9px;
    background: #eaf0e8;
    color: #244d49;
    font-size: 0.88rem;
}

.bv-editor-notice[data-type="warning"] {
    background: #fff0d8;
    color: #805221;
}

.bv-editor-notice[data-type="error"] {
    background: #fbe8e8;
    color: #973535;
}

.bv-editor-confirm {
    margin: 12px;
    padding: 18px;
    border: 1px solid #e6c995;
    border-radius: 10px;
    background: #fff9ed;
}

.bv-editor-confirm p {
    margin: 0 0 15px;
}

.bv-editor-confirm button {
    margin: 0 10px 8px 0;
    padding: 10px 14px;
    border: 1px solid #173d3c;
    border-radius: 8px;
    background: #173d3c;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.bv-editor-confirm [data-editor-revise] {
    background: transparent;
    color: #173d3c;
}

.bv-editor:focus-within {
    border-color: #477a6f;
}
