.mgPopupBG {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    z-index: 1;
}

.mgPopup {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    text-align: center;
}

.mgPopup.body {
    position: fixed;
    top: 0;
    bottom: 0;
    background-color: #FFF;
}
/*
.mgClose {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.mgClose hr {
    border: none;
    width: 24px;
    height: 2px;
    background-color: #8e8e8e;
    position: absolute;
    top: 11px;
    left: 8px;
}

.mgClose hr:first-child {
    transform: rotate(45deg);
}

.mgClose hr:last-child {
    transform: rotate(-45deg);
}

.mgClose:hover hr {
    background-color: #000;
}
*/


.mgClose {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.mgClose.form {
    top: 1px;
    right: 5px;
}

.mgClose hr {
    border: none;
    width: 20px;
    height: 2px;
    background-color: #FFF;
    position: absolute;
    top: 13px;
    left: 10px;
    border-radius: 1px;
}

.mgClose hr:first-child {
    transform: rotate(45deg);
}

.mgClose hr:last-child {
    transform: rotate(-45deg);
}

.mgClose.corner {
    width: 41px;
    height: 41px;
    background-color: #008adb;
    border: 5px solid #FFF;
    box-sizing: border-box;

    -webkit-transition: background-color 0.5s ease;
    -moz-transition: background-color 0.5s ease;
    -ms-transition: background-color 0.5s ease;
    -o-transition: background-color 0.5s ease;
    transition: background-color 0.5s ease;
}

.mgClose.corner:hover { background-color: #0b4887; }

.mgClose.corner hr {
    width: 15px;
    top: 8px;
    left: 8px;
}

.mgPopup > form { max-width: 960px; }

.mgPopup > form,
.mgPopup > div {
    display: inline-block;
    background-color: #FFF;
    position: relative;
    text-align: left;
}

.popupbanner {
    background-color: #FFF;
    border: 5px solid #FFF;
    white-space: nowrap;
    text-align: center;
}

.popupbanner a.banner {
    display: inline-block;
    padding: 0;
}

@media all and (min-width: 840px) {
    .mgClose.corner {
        top: -14px;
        right: -14px;
        border-radius: 20px;
    }
}

@media all and (max-width: 839px) {
    .mgClose.corner {
        top: -36px;
        right: 0;
    }
}


@media all and (min-width: 960px) {
    .mgPopup > form { min-width: 960px; }
}
