.xrmte {
    width: 100%;
}

/* Both versions inherit the same Elementor typography, color and editor styles. */
.xrmte__preview,
.xrmte__full {
    width: 100%;
}

.xrmte__preview {
    display: none;
}

.xrmte__full {
    display: block;
}

/* Collapsed state: show the word-limited rich-text version. */
.xrmte--enabled.has-overflow:not(.is-expanded) .xrmte__preview {
    display: block;
}

.xrmte--enabled.has-overflow:not(.is-expanded) .xrmte__full {
    display: none;
}

/* Expanded state: show the full WYSIWYG content. */
.xrmte.is-expanded .xrmte__preview {
    display: none;
}

.xrmte.is-expanded .xrmte__full {
    display: block;
}

.xrmte__content > :first-child {
    margin-top: 0;
}

.xrmte__content > :last-child {
    margin-bottom: 0;
}

.xrmte__content ul,
.xrmte__content ol {
    margin-top: 0;
}

.xrmte__toggle-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.xrmte__toggle {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.xrmte__toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Only content exceeding the word limit gets a toggle. */
.xrmte:not(.has-overflow) .xrmte__toggle-wrap {
    display: none;
}

/* If Read Less is disabled, the control disappears after expansion. */
.xrmte.is-expanded[data-show-read-less="no"] .xrmte__toggle-wrap {
    display: none;
}

.xrmte.has-drop-cap .xrmte__content > p:first-child:first-letter {
    float: left;
    font-size: 3.2em;
    line-height: .8;
    margin: .08em .12em 0 0;
    font-weight: 700;
}

/* Keep rich editor media predictable inside testimonial cards. */
.xrmte__content img,
.xrmte__content video,
.xrmte__content iframe {
    max-width: 100%;
}
