//
// Form editors.scss
//

// Tinymce 

.tox-tinymce {
    border: 2px solid var(--#{$prefix}light) !important;
}

.tox {
    .tox-statusbar {
        border-top: 1px solid var(--#{$prefix}light) !important;
    }

    .tox-menubar,
    .tox-edit-area__iframe,
    .tox-statusbar {
        background-color: $card-bg !important;
        background: none !important;
    }

    .tox-mbtn {
        color: var(--#{$prefix}secondary-color) !important;

        &:hover:not(:disabled):not(.tox-mbtn--active) {
            background-color: var(--#{$prefix}light) !important;
        }
    }

    .tox-tbtn {
        &:hover {
            background-color: var(--#{$prefix}light) !important;
        }
    }

    .tox-toolbar__primary {
        border-color: var(--#{$prefix}light) !important;
    }

    .tox-toolbar,
    .tox-toolbar__overflow,
    .tox-toolbar__primary {
        background: var(--#{$prefix}light) !important;
    }

    .tox-tbtn {
        color: var(--#{$prefix}secondary-color) !important;

        svg {
            fill: var(--#{$prefix}secondary-color) !important;
        }
    }

    .tox-edit-area__iframe {
        background-color: $card-bg !important;
    }

    .tox-statusbar a,
    .tox-statusbar__path-item,
    .tox-statusbar__wordcount {
        color: var(--#{$prefix}secondary-color) !important;
    }

    &:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type) {
        border-right: 1px solid var(--#{$prefix}light) !important;
    }
}
.tox-tinymce-aux {
    z-index: 1050 !important;
}
