/* ---------- mobile ---------- */

.modal-module {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;

    &.hidden {
        display: none;
    }
}

.modal-module .modal-wrapper {
    background: rgba(255, 255, 255, 0.33333);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100dvw;
    height: 100dvh;
    padding: 24px;
}

.modal-module .modal-wrapper .modal-container {
    height: 100%;
    overflow: scroll;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 48px;
    position: relative;
    border-radius: 32px;
}

.modal-module .modal-wrapper .modal-container h2 {
    margin-bottom: 72px;
    margin-top: 48px;
}

.modal-module .modal-wrapper .modal-container p {
    margin-bottom: 24px;

    &:last-of-type {
        margin-bottom: 0;
    }
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    top: 1.666rem;
    right: 4px;
    position: absolute;
    width: 2rem;
    height: 2rem;
    top: 2rem;
    right: 2rem;
}

.modal-close img {
    width: 2rem;
}

/* ---------- tablet ---------- */

@media screen and (min-width: 48rem) {}

/* ---------- laptop ---------- */

@media screen and (min-width: 90rem) {
    .modal-module .modal-wrapper {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .modal-module .modal-wrapper .modal-container {
        margin: 0 auto;
        max-width:  calc(80rem - 196px + 32px);
        padding: 48px;
    }
}

/* ---------- tablette only ---------- */

@media screen and (min-width: 48rem) and (max-width: 1439px) {
    .modal-module .modal-wrapper {
        padding: 48px;
    }
}