$editor-font: 'sans-serif';
.quizpress-block-editor {
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 4px;
    .edit-post-visual-editor {
        min-height: 300px;
        &__content-area {
            background: #fff;
            padding: 20px 20px 30px 20px !important;
        }
        .editor-styles-wrapper > .is-root-container {
            padding-top: 0 !important;
            p {
                font-size: 14px;
                margin-top: 0;
            }
        }
    }
	.interface-interface-skeleton {
		position: static;
	}
    button.components-button {
        border: unset;
        &:hover {
            background: unset;
            color: unset;
        }
    }
}

.quizpress-custom-editor-controls {
    width: 100%;
    textarea {
        width: 100%;
        height: 200px;
        border: 1px solid var(--quizpress-border-color);
        border-radius: 4px;
        padding: 12px 24px;
        margin-bottom: 20px;
    }
    .quizpress-btn {
        margin-left: auto;
    }
}

    // editor modal
.ql-html-popupContainer {
    border-radius: 4px !important;
    margin-top: 40px;
    .ql-html-textContainer{
        padding: 20px 30px;
        .ql-html-popupTitle{
            display: none;
        }
        .ql-html-textArea{ 
            max-height: unset;
            min-height: unset;
            height: calc(100% - 85px) !important;
            border-radius: 4px;
            .ql-editor::-webkit-scrollbar {
                display: none; /* for Chrome, Safari, and Opera */
            }
            .ql-code-block-container {
                height: 100%;
                overflow-y: scroll;
            }
            .ql-code-block-container::-webkit-scrollbar {
                display: none; /* for Chrome, Safari, and Opera */
            }
        }
        .ql-html-buttonGroup {
            left: calc(94% - 96px);
            button {
                padding: 4px 12px;
                cursor: pointer;
            }
        }
    }
}
.ql-toolbar {
    margin: 0 !important;
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 9;
    background: #fff;
    .ql-pdf {
        margin-right: 10px;
        &::before {
            content: "PDF"
        }
    }
    .ql-audio {
        margin-right: 10px;
        background: #FFECCA;
        width: 42px !important;
        &::before {
            content: "AUDIO"
        }
    }
    .ql-htmlEditButton {
        margin-right: 10px;
        background: #FFECCA;
        &::before {
            content: "Table"
        }
    }
    .ql-customHTML {
        margin-right: 10px;
        background: #FFECCA;
        &::before {
            content: "HTML";
            margin-left: -5px;
        }
    }
    .ql-formats{
        margin: 2px !important;
        background: #F5F5F5;
        border-radius: 4px;
        padding: 4px 8px;
        height: 30px;
        margin-top: 4px;
        white-space: nowrap;
    }
    .ql-formats:nth-last-child(5),
    .ql-formats:nth-last-child(4),
    .ql-formats:nth-last-child(3),
    .ql-formats:nth-last-child(2),
    .ql-formats:nth-last-child(1) {
        background: #FFECCA;
    }

    .ql-formats:nth-last-child(1) {
        position: relative;
        padding-top: 6px;
        &::before {
            content: "HTML <>";
        }
        button {
            font-size: 0;
            position: absolute;
            left: 0;
            top: 0;
            width: 50px;
            height: 100%;
            z-index: 1;
        }
    }

    button {
        padding: 4px 6px;
    }
}
.ql-container {
    min-height: 400px;
    max-height: 400px;
    border-radius: 0 0 4px 4px;
    overflow-y: scroll;
    margin-top: -10px;
    .ql-editor {
        strong {
            font-weight: 700;
        }
        li[data-list=bullet] .ql-ui {
            width: 0;
            height: 0;
        }
        
        .quizpress-custom-video, .quizpress-custom-audio {
            width: 100%;
        }
    }
    .ql-editor::-webkit-scrollbar {
        display: none; /* for Chrome, Safari, and Opera */
    }
}
.ql-container::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.ql-snow {
    border: 1px solid var(--quizpress-border-color);
}

.ql-snow .ql-tooltip.ql-flip {
    transform: translate(100%, 100%) !important;
}
@media all and (max-width: 1440px) {
    .ql-html-popupContainer {
        .ql-html-textContainer{
            .ql-html-buttonGroup {
                left: calc(90% - 96px);
            }
        }
    }
}