/*
    Full-screen popups as seen in checkout
*/

body.popupPresent {
    overflow: hidden;
}

.popupContainer {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: calc(100% - 15px);
    padding-bottom: 15px;

    z-index: 101;
    display: none;
    background: #FFFFFF;

    flex-direction: column;
}

.popupContainer.shown {
    display: flex;
}

.popupContainer .popupNav {
    height: 50px;
    margin: 0 auto;
    width: 100%;
    max-width: 950px;
    flex: 0;
}

.popupContainer .popupNav .logo {
    margin-left: 50px;
    vertical-align: middle;
    line-height: 50px;
}

.popup {
    flex-grow: 1;
    flex-shrink: 1;
    margin: auto;
    width: 100%;
    max-width: 950px;
    border-radius: 25px;
    background: #def1ef;
    min-height: 0;
    max-height: 750px;
    margin-top: 0;
}

.popup > div {
    /*max-width: 500px;*/
    width: calc(100% - 50px);
    height: calc(100% - 75px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.popup .progressBar {
    height: 75px;
    width: 100%;
    
}

.popup .progressBar .progressBarContent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 15%;
    min-width: 50px;
    max-width: 100px;
    margin: auto;
}

.popup .progressBar .progressBarContent > * {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #FFFFFF;
}

.popup .progressBar .progressBarContent > *.complete {
    background: #92c6cd;
}

.popup > div > .title {
    width: 100%;
    text-align: right;
    flex-grow: 0;
    margin-bottom: 15px;
    font-weight: 500;
}

.popup > div > .title > span {
    color: #935C94;
}

.popup .content {
    position: relative;
    height: 100%;
    overflow-y: auto;
    flex-grow: 1;
    text-align: center;
}

.popup .content > div {
    text-align: left;
    border: 2px solid #007F95;
    padding: 7px 15px;
    border-radius: 23.5px;
    background: white;
    margin-bottom: 15px;
    position: relative;
    width: calc(100% - 34px);
    max-width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.popup .content > div.disabled {
    pointer-events: none;
}

.popup .content > div:last-of-type {
    margin-bottom: 0;
}

.popup .content > div > p {
    margin: 0;
}

.popup .content > div .header {
    color: #007F95;
    font-weight: 500;
}

.popup .content > div .subheader,
.popup .content > div .body {
    font-size: 12px;
    margin: 5px 0;
}

/*
    Nav
*/

.popup .nav {
    flex-grow: 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 7.5px;
    margin-top: 7.5px;
}

.popup .nav .continue {
    margin-right: 0;
}

.popup .nav .back {
    background: none;
    color: #81b4c1;
    white-space: nowrap;
    padding-left: 0;
    padding-right: 0
}

.popup .nav .back > img {
    display: inline;
    height: 18px;
}

.popup .nav .back > span {
    position: relative;
    bottom: 4px;
    margin-left: 2px;
}

@media only screen and (max-width: 950px) {
    .popupContainer {
        height: 100%;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 500px) {
    .popup {
        max-height: none;
    }
}

@media (max-width: 950px) and (max-height: 830px) {
    .popupContainer .popupNav {
        display: none;
    }
    
    .popup {
        border-radius: 0;
    }
}
