// Backdrop
.blocker {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 2rem;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1005;

    background: rgba(#333, 0.5);
}

.blocker.behind {
    background-color: transparent;
}


// Modal
.modal {
    display: none;
    max-width: 75rem;
    width: 100%;
    padding: 4rem;

    position: relative;
    z-index: 2;

    background-color: $white;
    border-radius: $radius;

    @include media-breakpoint-down(sm) {
        padding: 2.4rem;
    }
}

.modal__header {
    margin-bottom: 4rem;
}

.modal__title {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 600;

    &--sm {
        font-size: 2.4rem;
    }

    @include media-breakpoint-down(sm) {
        font-size: 2.2rem;
    }
}

.modal__text {
    margin-top: 2rem;

    font-size: 1.8rem;
    line-height: 1.4;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;

    @include media-breakpoint-down(sm) {
        flex-direction: column;
        margin-top: 2.4rem;

        .btn + .btn {
            margin-left: 0;
        }
    }
}

.modal__close {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;

    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;

    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 1;

    transition: opacity .2s linear;

    &:hover {
        opacity: 0.8;
    }

    @include media-breakpoint-down(sm) {
        top: 0.8rem;
        right: 0.8rem;
    }
}

.modal__list {
    margin: 2rem 0;
    list-style: none;

    font-size: 1.8rem;
    color: #606060;

    li {
        display: flex;
        justify-content: space-between;
        margin: 8px 0;

        &:first-child {
            padding-bottom: 8px;
            margin-bottom: 1.6rem;

            font-size: 2rem;
            color: $dark;
            font-weight: 600;

            border-bottom: 1px solid #606060;
        }
    }
}