/* 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{
    position: absolute;
    top: -30px;
    right: 0;
    width: auto;
    height: 50px;
    /*background: url('/images/X.png') no-repeat center center;*/
    background-size: 26px;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: bold;
}
/* 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;
    }
}