.ftred-field { display: grid; gap: 6px; min-width: 0; margin: 6px 0 13px; scroll-margin-top: 5rem; }
.ftred-field > label { font-weight: 650; }
.ftred-editor { min-width: 0; max-width: 100%; }
.ftred-editor textarea { display: block; width: 100%; box-sizing: border-box; }
.ftred-editor .mce-tinymce { border: 1px solid #829ba8; border-radius: 6px; overflow: hidden; box-shadow: none; max-width: 100%; }
.ftred-editor:focus-within .mce-tinymce { outline: 2px solid #217083; outline-offset: 1px; }
.ftred-editor .mce-toolbar-grp { padding: 4px; background: #eef4f5; border: 0; }
.ftred-editor .mce-toolbar .mce-container-body { white-space: normal; }
.ftred-editor .mce-toolbar .mce-btn-group { display: inline-block; margin: 0 2px 1px 0; padding: 0; vertical-align: middle; }
.ftred-editor .mce-toolbar .mce-btn { background: transparent; border: 1px solid transparent; box-shadow: none; }
.ftred-editor .mce-toolbar .mce-btn:hover, .ftred-editor .mce-toolbar .mce-btn:focus-within { background: #dce9eb; border-color: #99b5bb; }
.ftred-editor .mce-toolbar .mce-btn.mce-active { background: #c4dedf; border-color: #80a9ae; }
.ftred-editor .mce-btn button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 32px; min-height: 32px; margin: 0; padding: 4px 6px; border: 0; border-radius: 0; background: transparent; color: #17374a; font: 500 14px/1.25 Arial,sans-serif; }
.ftred-editor .mce-btn button i { color: #213f4c; text-shadow: none; }
.ftred-editor iframe { display: block; width: 100%; }
.ftred-count { text-align: end; color: #44616d; font-size: .85em; }
.ftred-count[hidden], .ftred-error:empty { display: none; }
.ftred-error { color: #96371d; }
@media (max-width: 540px) {
    .ftred-editor .mce-btn button { min-height: 36px; min-width: 34px; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) {
        left: 2vw !important; width: 96vw !important; max-width: 96vw; box-sizing: border-box;
    }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) :is(.mce-window-body,.mce-form,.mce-form > .mce-container-body,.mce-foot,.mce-foot > .mce-container-body) { width: 100% !important; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) .mce-formitem { width: calc(100% - 30px) !important; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) .mce-formitem > .mce-container-body { width: 100% !important; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) .mce-formitem :is(.mce-filepicker,input.mce-abs-layout-item) { left: 98px !important; width: calc(100% - 98px) !important; box-sizing: border-box; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) .mce-filepicker input { width: 100% !important; box-sizing: border-box; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) .mce-foot > .mce-container-body { display: flex; align-items: center; justify-content: end; gap: 7px; padding: 0 12px; box-sizing: border-box; }
    body:has(.ftred-field) .mce-window:is([aria-label="Insert link"],[aria-label="Link einfügen"]) .mce-foot .mce-btn { position: static; }
}
