/* Popin Newsletter */
.newsletter-popin-bkg { display:none; position:fixed; top:0; left:0; z-index:99999998; background-color:#000;  }
.newsletter-popin { -moz-box-shadow: 0 0 20px 0 #a3a5a8; -webkit-box-shadow: 0 0 20px 0 #a3a5a8; box-shadow: 0 0 20px 0 #a3a5a8; display:none; background-color:#fff; position:fixed; z-index:99999999; }
.newsletter-popin.an-center { top:50% !important; left:50% !important; }
.newsletter-popin.an-bottom-left { bottom:0px !important; left:20px !important; }
.newsletter-popin.an-bottom-right { bottom:0px !important; right:20px !important; }
.newsletter-popin .close { cursor:pointer; position:absolute; right:10px; top:10px; width:21px; height:21px; z-index:3; background: url(../images/cross-close.png) center center no-repeat; }
.newsletter-popin img.loader { display:none; margin: 0 auto; }

.newsletter-popin-container {  }
#newsletterpopinForm { position:relative; width: 100%; text-align: left; margin: 0 auto; max-width: 300px;}
.newsletter-popin-block .validation-advice { font-size: 10px; margin-top: 0px; }
.newsletter-popin-block .newsletter-popin-result { display:none; text-align: center;}
.newsletter-popin-block .newsletter-popin-result.ok { color: #78bc16; }
.newsletter-popin-block .newsletter-popin-result.nok { color:#df280a; }

.newsletter-cms-block { border:0 none;    width: 60%;
    float: right;
    text-align: center;
    margin-top: 140px;}
.newsletter-description{font-size: 16px;color:#333d47;}
.newsletter-description .newsletter-subtitle{font-style: italic;display: block;margin-bottom:25px; }
.newsletter-popin-block {     border: 0 none;
    width: 60%;
    float: right;
    text-align: center;}
.newsletter-popin-block label { height: 39px;
    line-height: 40px;
    color: #58585a;
    font-size: 13px;
    font-weight: normal;
    transition: visibility 0.15s, opacity 0.15s linear;
    background: none;
    position: absolute;
    top: 0;
    left: 1px;
    width: 100%;
    padding-left: 10px;}
.newsletter-popin-block input#newsletterpopin_email { height: 40px;
    border:1px solid;
    line-height: 40px;
    color: #58585a;
    font-size: 13px;
    font-weight: normal;
    border-top: none;
    border-right: none;
    width: 100% !important;
    border-color: #303e48;
    padding: 0 6px;
    background: none;
border-radius: 0;
outline:none;}
.newsletter-popin-block button { display:block;margin:25px auto 0 auto; }
/* ================ */


.fadeout {
    visibility: hidden;
    opacity: 0;
}

@media all and (max-width: 768px){
    body .wrapper .newsletter-popin{
        transform: inherit !important;
        top: inherit !important;
        bottom: 3% !important;
        width: 90% !important;
        height: 50vw !important;
        left: 5% !important;
        margin: 0 !important;
        transform: translate(0, -50%);
        background-size: 90% !important;
        background-position: -50px 65% !important;
        border-radius: 8px;
        overflow: hidden;
    }
    .newsletter-popin .close{
        right: 7px;
        top: 7px;
        background-size: 15px;
    }
    .newsletter-popin-container{
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 72%;
        background: #fff;
    }
    .newsletter-cms-block{
        margin: 5% 0 3% !important;
    }
    .newsletter-cms-block .newsletter-description{
        font-size: 12px;
    }
    .newsletter-cms-block .newsletter-description .newsletter-subtitle{
        font-weight: bold;
        font-style: normal;
        margin-bottom: 5px;
    }
    .newsletter-popin #newsletterpopinForm{
        max-width: 75%;
    }
    .newsletter-popin #newsletterpopinForm label{
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    .newsletter-popin #newsletterpopinForm input{
        height: 30px;
        border: solid 1px #ccc;
    }
    .newsletter-popin #newsletterpopinForm button.button.button-first{
        padding: 6px 12%;
        margin: 8% auto 0 auto;
        font-size: 12px;
    }
}
@media all and (max-width: 500px){
    .page .newsletter-popin{
        background-position: 88% !important;
    }
    .newsletter-popin-block,
    .block.newsletter-cms-block{
        width: 100%;
    }
}