.textarea {
    display: block;
    position: relative;
    :global(#tab-panel .ap) {
        margin: 4px;
    }
}

.toolbar {
    width: auto;
    position: fixed;
    left: calc(50% - 250px);
    bottom: 0;
    z-index: 40;
}


.emoji {
    opacity: 0;
    font-size: 20px;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1em;
    cursor: pointer;
    transition: opacity .3s;
    use {
        fill: #444444;
    }

    .quill:hover & {
        opacity: 0.9;
    }

    &:hover {
        opacity: 1;
    }
}

.quill {
    :global(.ql-emojiblot) {
        vertical-align: baseline;
    }

    :global(.ql-editor) {
        line-height: inherit;
        padding: 0;
        tab-size: 4;
        outline: none !important;
        text-align: left;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    &:focus,
    &:focus-within,
    &:active {
        :global(.ql-editor) {
            outline-style: auto;
            outline-width: 5px;
            outline-color: #0060ff;
        }
    }

    :global(.ql-clipboard) {
        outline: none !important;
        display: none;
    }

    :global(.textarea-emoji-control) {
        /* top: 3px;
        right: -25px; */
        bottom: 0px;
        right: -1px;
        top: auto;
    }

    :global(.ql-container) {
        font-size: inherit;
        font-family: inherit;
        a {
            color: inherit;
        }
    }

    outline: none !important;

    &.mini {
        position: relative;
        padding: 1px;
    }

    &.mini .toolbar {
        bottom: initial;
        width: 100%;
        margin: 0;
        position: absolute;
        left: 0;
        top: calc(100% + 5px);
    }

    &.mini :global(.ql-editor) {
        height: 160px;
        padding: 8px 15px 20px;
        border-radius: 4px;
        border: solid 1px #dcdfe6;
    }

    &.mini :global(.textarea-emoji-control) {
        top: 8px;
        right: 8px;
    }
}

:global(.dir--rtl) {
  .quill {
    :global(.ql-editor) {
        text-align: right;
    }
  }
}


