.eep-expandable-paragraph {
    --eep-lines: 4;
    --eep-fade-color: #fff;
    --eep-fade-height: 60px;
    position: relative;
}

.eep-text-wrap {
    position: relative;
    overflow: hidden;
}

.eep-expandable-paragraph:not(.is-expanded) .eep-text-wrap {
    max-height: calc(var(--eep-lines) * 1lh);
}

@supports not (height: 1lh) {
    .eep-expandable-paragraph:not(.is-expanded) .eep-text-wrap {
        max-height: calc(var(--eep-lines) * 1.5em);
    }
}

.eep-expandable-paragraph.has-overflow:not(.is-expanded) .eep-text-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--eep-fade-height);
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, var(--eep-fade-color) 100%);
}

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

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

.eep-toggle {
    display: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.eep-expandable-paragraph.has-overflow .eep-toggle {
    display: inline-block;
}

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