.adt-text-toggle__content {
    --adt-lines: 7;
    --adt-line-height: 24px;
    --adt-expanded-height: 9999px;
    --adt-fade-rgb: 255, 255, 255;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--adt-lines);
    line-clamp: var(--adt-lines);
    max-height: calc(var(--adt-line-height) * var(--adt-lines));
    transition: max-height 0.3s ease;
}

.adt-block-toggle__content {
    --adt-lines: 7;
    --adt-line-height: 21px;
    --adt-expanded-height: 9999px;
    --adt-fade-rgb: 246, 245, 243;
    position: relative;
    display: flow-root;
    overflow: hidden;
    max-height: calc(var(--adt-line-height) * var(--adt-lines));
    transition: max-height 0.3s ease;
}

.adt-block-toggle__content::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: calc(var(--adt-line-height) * 3);
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0) 0%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0.7) 32%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0.8) 58%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0.9) 82%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 1) 94%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 1) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease;
}

.adt-block-toggle__content.is-expanded {
    max-height: var(--adt-expanded-height);
}

.adt-block-toggle__content.is-expanded::after,
.adt-block-toggle__content.adt-block-toggle__measure::after {
    opacity: 0;
}

.adt-block-toggle__content.adt-block-toggle__measure {
    max-height: none !important;
}

.adt-text-toggle__content::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: calc(var(--adt-line-height) * 3);
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--adt-fade-rgb, 255, 255, 255), 0) 0%,
        rgba(var(--adt-fade-rgb, 255, 255, 255), 0.25) 32%,
        rgba(var(--adt-fade-rgb, 255, 255, 255), 0.58) 58%,
        rgba(var(--adt-fade-rgb, 255, 255, 255), 0.86) 82%,
        rgba(var(--adt-fade-rgb, 255, 255, 255), 0.96) 94%,
        rgba(var(--adt-fade-rgb, 255, 255, 255), 1) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease;
}

.adt-text-toggle__content.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: var(--adt-expanded-height);
}

.adt-text-toggle__content.is-expanded::after,
.adt-text-toggle__content.adt-text-toggle__measure::after {
    opacity: 0;
}

.adt-text-toggle__content.adt-text-toggle__measure {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
}

.adt-toggle-button {
    margin-top: 10px;
    border: 0;
    background: none;
    color: currentcolor;
    cursor: pointer;
    padding: 0 !important;
    min-height: 0;
    height: auto;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    text-align: left;
    font-size: 0.84em;
    line-height: 1.2;
}

.adt-toggle-button--on-dark {
    color: #ffffff;
}

.adt-toggle-button__icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
}

.adt-toggle-button[aria-expanded="true"] .adt-toggle-button__icon {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.adt-grid-toggle {
    position: relative;
}

.adt-grid-toggle__list {
    --adt-grid-collapsed-height: 0px;
    --adt-grid-expanded-height: 9999px;
    --adt-fade-rgb: 246, 245, 243;
    position: relative;
    overflow: hidden;
    max-height: var(--adt-grid-collapsed-height);
    transition: max-height 0.35s ease;
}

.adt-grid-toggle__list::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 200px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0) 0%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0.7) 32%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 0.8) 58%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 1) 82%,
        rgba(var(--adt-fade-rgb, 246, 245, 243), 1) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 100%;
}

.adt-grid-toggle.is-expanded .adt-grid-toggle__list {
    max-height: var(--adt-grid-expanded-height);
}

.adt-grid-toggle.is-expanded .adt-grid-toggle__list::after {
    opacity: 0;
}

.adt-grid-toggle .adt-grid-toggle__button {
    position: relative;
    z-index: 3;
    margin-top: 16px;
}

.adt-grid-toggle:not(.is-expanded) .adt-grid-toggle__button {
    margin-top: -52px;
    padding-bottom: 8px;
}

.adt-grid-toggle.is-expanded .adt-grid-toggle__button {
    margin-top: 16px;
    padding-bottom: 0;
}

@media only screen and (max-width: 849px) {
    .adt-text-toggle__content {
        --adt-lines: 12;
    }

    .adt-block-toggle__content {
        --adt-lines: 12;
    }

    .adt-text-toggle__button,
    .adt-grid-toggle .adt-grid-toggle__button {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}
