.app-description {
    position: relative;
}

.app-description::after {
    content: "";
    display: block;
    clear: both;
}

.app-description__content {
    position: relative;
    overflow: visible;
}

/* The collapsed state clips, which stops this margin merging with the title's: without this, the text moves when toggled. */
.app-description__body > :first-child {
    margin-top: 0;
}

.app-description__content--collapsed .app-description__body {
    display: block;
    max-height: 300px;
    overflow: hidden;
}

.app-description__content--collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 64px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 24%,
        rgba(255, 255, 255, 0.82) 78%,
        var(--color-white) 100%
    );
    pointer-events: none;
}

.app-description__content--expanded .app-description__body {
    display: block;
    max-height: none;
    overflow: visible;
}

button.app-description__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: left;
    width: auto;
    min-height: 38px;
    margin: 0 15px 15px;
    padding: 7px 18px;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    box-shadow: none;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: inherit;
    font-size: 13px !important;
    font-weight: normal;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

button.app-description__toggle[hidden] {
    display: none;
}

button.app-description__toggle:hover,
button.app-description__toggle:focus {
    background: var(--color-light2);
    color: var(--color-primary);
    outline: none;
}

@media screen and (max-width: 768px) {
    .app-description__content--collapsed .app-description__body {
        max-height: 240px;
    }

    .app-description__content--collapsed::after {
        height: 56px;
    }
}
