.modal-popup * {
    outline: none;
}

.modal-popup__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.modal-popup__container {
    background-color: transparent;
    padding: 30px;
    max-width: 400px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-popup__header {
    text-align: right;
}

.modal-popup__close {
    *background: transparent;
    padding: 2px 7px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    border: 0;
}

.modal-popup .modal-popup__close:before {
    content: "\2715";
}

.modal-popup__content {
    margin: 0;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
}

/**************************\
   Animation Style
\**************************/
@keyframes mmfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

.modal-popup__slide {
    display: none;
}

.modal-popup__slide.is-open {
    display: block;
}

.modal-popup__slide[aria-hidden="false"] .modal-popup__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal-popup__slide[aria-hidden="false"] .modal-popup__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.modal-popup__slide[aria-hidden="true"] .modal-popup__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal-popup__slide[aria-hidden="true"] .modal-popup__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.modal-popup__slide .modal-popup__container,
.modal-popup__slide .modal-popup__overlay {
    will-change: transform;
}