// /**
//  * Copyright © Magento, Inc. All rights reserved.
//  * See COPYING.txt for license details.
//  */

//
//  Default appearance styles
//  _____________________________________________

.pagebuilder-content-type.pagebuilder-text {
    border-width: 0;

    .mce-tinymce-inline {
        left: -1px !important;
        right: -1px;
        z-index: 20;
    }
    > .inline-wysiwyg {
        line-height: 1.3;
        min-height: 3rem;
        overflow: auto;

        + .placeholder-text {
            left: 0;
            pointer-events: none;
            position: absolute;
            top: 0;
        }

        img {
            height: auto;
        }
    }
    > .mce-edit-focus {
        ~ .pagebuilder-options,
        ~ .placeholder-text {
            display: none;
        }
    }

    .inline-wysiwyg-textarea {
        border: 0;
        margin: 2px 0;
        padding: 5px;
        resize: none;
        width: 100%;

        &:focus {
            resize: vertical;
        }
    }
}

.pagebuilder-stage.interacting .pagebuilder-content-type.pagebuilder-text:not(.pagebuilder-toolbar-active) {
    pointer-events: none;
}

//
//  Styles rendered through Blocks
//  ______________________________

[data-content-type='text'] {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
