/* Block Elements */

.email-layout {
    background-color: #ffffff;
}

.email-layout .content,
#editor_dragging_dummy .content {
    font-family: Arial, sans-serif !important;
}

.email-layout .content.text,
#editor_dragging_dummy .content.text { /* Text */
    overflow-wrap: anywhere;
    word-wrap: anywhere;
    line-height: 24px;
}

.email-layout .content.image>img,
#editor_dragging_dummy .content.image>img { /* Image */
    height: auto;
    width: 100%;
}

.email-layout .content.separator,
#editor_dragging_dummy .content.separator { /* Separator */
    padding: 24px;
}

/* TinyMCE Styles */

.content.text h1, .content.text h2, .content.text h3, .content.text h4 {
    color: var(--c-client-primary);
}

.content.text h1, .content.text h2 {
    font-weight: 600;
}

.content.text h3, .content.text h4 {
    font-weight: 500;
}

.content.text h1 {
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    line-height: 56px;
    font-size: 48px;
}

.content.text h2 {
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    line-height: 48px;
    font-size: 36px;
}

.content.text h3 {
    margin-block-start: 1em;
    margin-block-end: 1em;
    line-height: 32px;
    font-size: 24px;
}

.content.text h4 {
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    line-height: 24px;
    font-size: 18px;
}

.content.text h5 {
    margin-block-start: 1.67em;
    margin-block-end: 1.67em;
    line-height: 24px;
    font-size: 0.83em;
}

.content.text h6 {
    margin-block-start: 2.33em;
    margin-block-end: 2.33em;
    line-height: 24px;
    font-size: 14px;
}

.content.text ol {
    list-style-type: decimal;
}

.content.text ul {
    list-style-type: circle;
}

.content.text ul, .content.text ol {
    margin-block-start: 16px;
    margin-block-end: 16px;
    padding-left: 40px;
    color: rgb(80, 80, 80);
}

.content.text {
    padding: 14px 24px !important;
}

.content.text a {
    text-decoration: underline;
    font-size: inherit;
}

.content.text p {
    margin-block-start: 1em;
    margin-block-end: 1em;
    color: rgb(80, 80, 80);
}

/* Layouts */

.one-column>tbody>tr>td { width: 100% }
.two-column>tbody>tr>td { width: 50% }
.three-column>tbody>tr>td { width: 33.33% }

.three-column-middle-leaning>tbody>tr>td:nth-of-type(1) { width: 25% }
.three-column-middle-leaning>tbody>tr>td:nth-of-type(2) { width: 50% }
.three-column-middle-leaning>tbody>tr>td:nth-of-type(3) { width: 25% }

.two-column-right-leaning>tbody>tr>td:nth-of-type(1) { width: 33.33% }
.two-column-right-leaning>tbody>tr>td:nth-of-type(2) { width: 66.66% }

.two-column-left-leaning>tbody>tr>td:nth-of-type(1) { width: 66.66% }
.two-column-left-leaning>tbody>tr>td:nth-of-type(2) { width: 33.33% }

/* Responsive */

.editor-canvas-mobile .two-column>tbody>tr>td,
.editor-canvas-mobile .three-column>tbody>tr>td,
.editor-canvas-mobile .two-column-left-leaning>tbody>tr>td,
.editor-canvas-mobile .two-column-right-leaning>tbody>tr>td,
.editor-canvas-mobile .three-column-middle-leaning>tbody>tr>td { width: 100% !important; display: block !important }

.editor-canvas-mobile .content.text { padding: 14px 14px !important }

.editor-canvas-mobile .email-layout .content.separator,
.editor-canvas-mobile #editor_dragging_dummy .content.separator { padding: 24px 14px !important }

@media screen and (max-width: 768px) {
    .two-column>tbody>tr>td,
    .three-column>tbody>tr>td,
    .two-column-left-leaning>tbody>tr>td,
    .two-column-right-leaning>tbody>tr>td,
    .three-column-middle-leaning>tbody>tr>td {
        width: 100% !important;
        display: block !important;
        max-width: 100% !important;
    }
    .email-layout .content.text {
        padding: 14px 14px !important;
    }
    .email-layout .content.separator,
    #editor_dragging_dummy .content.separator {
        padding: 24px 14px !important;
    }
}
