/* Generic CSS for popup*/
.mc-modal-bg{
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2000;
    height: 100%;
    width: 100%;
    display: none;
    background: #000;
    background-color: #000;
    opacity: .5;

    /* settings for velocity */
    opacity: 0;
}
.mc-layout__modalContent{
    display: block;
    height: 100%;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch; /* Fix iOS scrolling bug */
}

.mc-closeModal {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 100%;
    box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.2);
    cursor: pointer;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 2;
}

.mc-closeModal:after {
    content: '\d7';
    font-size: 22px;
    color: #414141;
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 30px;
}

/* Box sizing for all elements inside mc-modal */
.mc-modal *{
    box-sizing: border-box;
}

/* Modal basic styles */
.mc-modal{
    display: none;
    /* Set higher than avg top nav index */
    z-index: 2002;
    position: fixed;
    top: 15%;
    bottom: 60px;
    /* center modal */
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;

    width: 980px;
    background: transparent;

    /* settings for velocity */
    opacity: 0;
}

/* Banner styles for mobile users */
.mc-banner {
    visibility: hidden;
    /* Set lower than mc-modal */
    z-index: 2001;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    background-color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.mc-layout__bannerContent {
    padding: 12px 30px;
}

/* Media Queries */
@media only screen and (max-width:980px) {
    .mc-modal { top:45px; width: 80%; }
}

/* Hide modal and show optimized banner if mobile */
@media only screen and (max-width : 768px) {
    .mc-modal, .mc-modal-bg {
        visibility: hidden;
    }

    .mc-modal {
        /* Move the modal to the back */
        z-index: 2001;
    }

    .mc-banner {
        visibility: visible;
        /* Move the banner to the front */
        z-index: 2002;
    }
}
