.popupsubscribe-wrapper {
    position: relative;
    display: none;
}
.popupsubscribe-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-52%,-50%);
    z-index: 999;
    min-height: 450px;
    min-width: 497px;
    height: 450px;
    width: 497px;
    padding: 50px 40px 0;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

.substrate {
    background-color: rgba(0, 0, 0, .5);
    z-index: 998;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}
.popupsubscribe-close {
    position: absolute;
    top: -15px;
    right: -15px;
    cursor: pointer;
    height: 40px;
    width: 40px;
    background-color: #fff;
    border-radius: 25px;
    z-index: 9999;
}
.popupsubscribe-close div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #868686;
    font-size: 16px;
}

.popupsubscribe-close div.fa.fa-times {
    color:#ba985b;
}

.popupsubscribe-subscribe {
    position: absolute;
    bottom: 40px;
}

.popupsubscribe-subscribe {
    left: 0px;
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
}

.popupsubscribe-subscribe button {
    background-color: #cda23b;
    padding: 5px;
    color: #80622d;
    font-size: 14px;
    border: 1px solid #cda23b;
    margin: 5px 0 0 0;
}

.popupsubscribe-message .std {
    text-align: center;
}

.popupsubscribe-message h1,
.popupsubscribe-message h2,
.popupsubscribe-message h3,
.popupsubscribe-message h4,
.popupsubscribe-message h5,
.popupsubscribe-message h6 {
    text-transform: uppercase;
    color: #ba985b;
    font-size: 26px !important;
}

.popupsubscribe-message p {
    margin: 0 0 25px;
    font-size: 15px !important;
}

.popupsubscribe-subscribe .popup-subscribe-form input,
.popupsubscribe-subscribe .popup-subscribe-form button {
    width: 418px;
    display: block;
    margin: 12px auto;
    text-align: center;
}

@media (max-width: 579px) {
    .popupsubscribe-window {
        /*width: 450px;*/
        min-width: 450px;
    }

    .popupsubscribe-subscribe .popup-subscribe-form input, .popupsubscribe-subscribe .popup-subscribe-form button {
        width: 356px;
    }
}

@media (max-width: 509px) {
    .popupsubscribe-window {
        /*width: 350px;*/
        min-width: 350px;
    }

    .popupsubscribe-subscribe .popup-subscribe-form input, .popupsubscribe-subscribe .popup-subscribe-form button {
        width: 250px;
    }

    .popupsubscribe-message {
        font-size: 26px;
    }
}

@media (max-width: 399px) {
    .popupsubscribe-window {
        /*width: 300px;*/
        min-width: 300px;
    }

    .popupsubscribe-subscribe .popup-subscribe-form input, .popupsubscribe-subscribe .popup-subscribe-form button {
        width: 200px;
    }

    .popupsubscribe-message {
        font-size: 26px;
    }
}


@media (max-width: 354px) {
    .popupsubscribe-window {
        /*width: 200px;*/
        min-width: 200px;
        min-height: 265px;
    }

    .popupsubscribe-subscribe .popup-subscribe-form input, .popupsubscribe-subscribe .popup-subscribe-form button {
        width: 100px;
    }

    .popupsubscribe-message {
        font-size: 18px;
    }

    .popupsubscribe-message p {
        margin: 0 0 0 8px;
    }

    .popupsubscribe-subscribe {
        margin: 0;
    }

    .popupsubscribe-message {
        height: 100px;
    }
}

.errorContainer{
    color: #ff0000;
    display: none;
}
.popupsubscribe-window .loader-pic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 9999;
    margin: 0 auto;
}

.popupsubscribe-window .loader-pic img {
    display: block;
    margin: 0 auto;
}

.popupsubscribe-wrapper .loader-pic div {
    color: #fff;
}

.pic-substrate {
    background-color: rgba(0, 0, 0, .5);
    z-index: 998;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.popupsubscribe-answer p {
    font-size: 34px;
    clear: both;
}

.popup-mobile-device {
    overflow: auto;
    height: 100%;
}
