.lp-modal, .lp-modal * {
    box-sizing: border-box;
}

.lp-modal {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 9999999;
}

.lp-modal__backdrop {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lp-modal__card {
    background-color: #fff;
    color: #000;
    width: 100%;
    max-height: 100%;
    overflow: hidden auto;
    padding: 10px;
    position: relative;
}

.lp-modal__card__header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.lp-modal__card__header__title {
    flex-grow: 1;
}

.lp-modal__card__header__title > *:last-child {
    margin-bottom: 0;
}

.lp-modal__card__header__close-button {
    flex-shrink: 0;
    font-size: 24px;
    margin-left: 16px;
}

.lp-modal__card__header__close-button button {
    display: flex;
    font-size: inherit;
    width: 1.5em;
    height: 1.5em;
    justify-content: center;
    align-items: center;
    background: #f1f1f1;
    color: #000;
    border: none;
    border-radius: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all .3s ease;
}

.lp-modal__card__header__close-button button:hover, .lp-modal__card__header__close-button button:focus {
    background-color: #000;
    color: #fff;
}

.lp-modal__card__header__close-button button::before {
    content: '×';
}

.lp-modal__card__content p {
    margin: 0;
}

.lp-modal__card__content p:not(:last-child) {
    margin-bottom: 1rem;
}

.lp-modal__card__content > *:last-child {
    margin-bottom: 0;
}

.lp-modal__card__content__highlight-section {
    padding: 10px;
    background-color: #f8dcdb;
    margin-bottom: 1rem;
}

.lp-modal__card__content__highlight-section p a {
    text-decoration: underline;
    color: inherit;
}

.lp-modal__card__content__highlight-section p a:hover {
    color: #434343;
}

.lp-modal__card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.lp-modal__card__action-button {
    display: inline-block;
    border: none;
    line-height: 1;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 14px;
    padding: 1em 1.4em;
    transition: all .3s ease;
}

.lp-modal__card__action-button:hover, .lp-modal__card__action-button:focus {
    background: #2d2d2d;
    color: #fff;
}

@media(min-width: 1025px) {
    .lp-modal__card {
        width: 780px;
        max-height: 80%;
        padding: 3rem;
    }

    .lp-modal__card__header {
        margin-bottom: 1.5rem;
    }

    .lp-modal__card__header__close-button {
        margin-left: 64px;
        font-size: 40px;
    }

    .lp-modal__card__content p {
        font-size: 1.2rem;
        line-height: 1.3em;
    }

    .lp-modal__card__content p:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    .lp-modal__card__content__highlight-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .lp-modal__card__footer {
        margin-top: 3rem;
    }

    .lp-modal__card__action-button {
        font-size: 1.3rem;
    }
}

.lp-modal--open {
    display: flex;
}
