.ubp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.ubp-modal-container {
    background-color: #fff;
    padding: 30px;
    max-width: 740px;
    height: 100%;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

@supports (display: flex) {
    .ubp-modal-container {
        height: initial;
        max-height: 80vh;
    }
}

.ubp-modal-header {
    position: relative;
    display: block;
    height: 30px;
    margin-bottom: 20px;
}

@supports (display: flex) {
    .ubp-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: initial;
        margin-bottom: 0px;
    }
}

.ubp-modal-title {
    position: absolute;
    top: 20px;
    left: 20px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.ubp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 0;
    cursor: pointer;
    margin: 0px;
    padding: 0px;
}

@supports (display: flex) {
    .ubp-modal-title {
        position: static;
    }

    .ubp-modal-close {
        position: static;
    }
}

.ubp-modal-header .ubp-modal-close:before {
    content: "\2715";
}

.ubp-modal-content {
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgba(0, 0, 0, .8);
}

@supports (display: flex) {
    .ubp-modal-content {
        margin-top: 2rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
}

.ubp-modal-btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0, 0, 0, .8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out, -webkit-transform .25s ease-out;
}

.ubp-modal-btn-primary {
    background-color: #00449e;
    color: #fff;
}

/**************************
    Demo Animation Style
  **************************/

@keyframes ubp-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ubp-fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes ubp-slideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes ubp-slideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

.ubp-micromodal-slide {
    display: none;
}

.ubp-micromodal-slide.is-open {
    display: block;
}

.ubp-micromodal-slide[aria-hidden="false"] .ubp-modal-overlay {
    animation: ubp-fadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.ubp-micromodal-slide[aria-hidden="false"] .ubp-modal-container {
    animation: ubp-slideIn .3s cubic-bezier(0, 0, .2, 1);
}

.ubp-micromodal-slide[aria-hidden="true"] .ubp-modal-overlay {
    animation: ubp-fadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.ubp-micromodal-slide[aria-hidden="true"] .ubp-modal-container {
    animation: ubp-slideOut .3s cubic-bezier(0, 0, .2, 1);
}

.ubp-micromodal-slide .ubp-modal-container,
.ubp-micromodal-slide .ubp-modal-overlay {
    will-change: transform;
}

/**************************
    Custom styles for individual modals
  **************************/

.ubp-modal-container button {
    outline: none;
    cursor: pointer !important;
}

.ubp-modal-container h2.ubp-modal-title {
    color: #595959;
}

.ubp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ubp-modal-title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.ubp-modal-close {
    font-size: 24px;
}

.ubp-modal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
}

.ubp-modal-btn {
    padding: 10px 15px;
    background-color: #e6e6e6;
    border-radius: 4px;
    -webkit-appearance: none;
}

/**************************
    Mobile custom styles for individual modals
  **************************/

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    .ubp-modal-container {
        width: 90% !important;
        min-width: 90% !important;
    }

    @supports (display: flex) {
        .ubp-modal-container {
            width: 90% !important;
            min-width: 90% !important;
        }
    }
}