.overlay_contact_reg, .overlay_popup_add_to_cart {
    bottom: 0;
    cursor: default;
    opacity: 0;
    visibility: hidden
}

.overlay_contact_reg {
    background-color: rgba(0,0,0,.5);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000000;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s
}

    .overlay_contact_reg:target, .overlay_popup_add_to_cart:target {
        visibility: visible;
        opacity: 1
    }

.contact_toggle_popup_container_reg {
    display: inline-block;
    left: 50%;
    opacity: 0;
    position: fixed;
    text-align: justify;
    visibility: hidden;
    z-index: 1000000000;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    -webkit-transition: opacity .5s,top .5s;
    -moz-transition: opacity .5s,top .5s;
    -ms-transition: opacity .5s,top .5s;
    -o-transition: opacity .5s,top .5s;
    transition: opacity .5s,top .5s
}

.close_contact_reg, .close_reg_contact {
    position: absolute;
    text-decoration: none
}

.close_contact_reg {
    height: 45px;
    line-height: 50px;
    text-align: center;
    top: 0;
    width: 45px;
    right: 0
}

    .close_contact_reg:before {
        color: rgba(255,255,255,.9);
        content: "X";
        font-size: 23px;
        line-height: 2.1em
    }

.contact_form_popap_btn, .contact_form_popap_btn:focus, .contact_form_popap_btn:hover {
    font-size: 22px;
    font-weight: 400;
    color: #fff !important;
    line-height: .9em;
    padding: 10px 0;
    font-family: almoni-neue-tzar;
    text-align: center
}

.close_popup_add_to_cart:before, .close_reg_contact:before {
    color: #fff;
    font-size: 18px
}

.contact_form_popap_button {
    float: left;
    width: 70px
}

.contact_form_popap_btn {
    background-color: #000 !important;
    -webkit-border-top-left-radius: 2px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius-topleft: 2px;
    -moz-border-radius-bottomleft: 2px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    border: 0
}

    .contact_form_popap_btn:hover {
        background-color: #c4a39f !important
    }

    .contact_form_popap_btn:focus {
        background-color: #000 !important
    }

.close_reg_contact {
    width: 40px;
    height: 40px;
    line-height: 41px;
    text-align: center;
    right: calc(50% - 15px);
    top: -20px;
    border-radius: 50%;
    background-color: #bd0000;
    z-index:2!important;
}

    .close_reg_contact:before {
        font-family: arial;
        font-weight: 400
    }

.overlay_popup_add_to_cart {
    background-color: rgba(0,0,0,.5);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000000 !important;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s
}

.popup_add_to_cart {
    background-color: #fff;
    display: inline-block;
    left: 50%;
    opacity: 0;
    position: fixed;
    text-align: justify;
    visibility: hidden;
    z-index: 100000 !important;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    -webkit-transition: opacity .5s,top .5s;
    -moz-transition: opacity .5s,top .5s;
    -ms-transition: opacity .5s,top .5s;
    -o-transition: opacity .5s,top .5s;
    transition: opacity .5s,top .5s;
    border: 3px solid #2ea6bb
}

.close_popup_add_to_cart {
    height: 25px;
    line-height: 25px;
    position: absolute;
    text-align: center;
    text-decoration: none;
    top: 3px;
    width: 25px;
    right: 3px;
    background-color: #000
}

.contact_toggle_popup_caption {
    width:100%;
    height:100%;
    display:flex;
    position:absolute;
    z-index:1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.contact_toggle_popup_caption_title {
    width:100%;
    float:right;
    margin:0;
}
.contact_toggle_popup_caption_text {
    width:100%;
    float:right;
}


.popap_clean_btn {
    width:auto;
    height: 40px;
    font-size: 20px;
    font-weight: 400;
    padding: 0 20px 4px 20px;
    text-align: center;
    color: #fff !important;
    background-color:#d00e38;
    border-radius:30px;
    display:flex;
    align-items: center;
    justify-content: center;
    margin-top:10px
}
.popap_clean_btn:hover {
    color: #fff !important;
    background-color:#000;
}
@media all and (min-width:1438px) {
    .contact_toggle_popup_container_reg {
        top: 50%
    }

    .contact_toggle_popup_background_reg {
        width: 500px !important;
        float: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        height: 500px;
        background-color: #fff;
        box-shadow: 0 0 24px 0 rgba(32,47,57,.2);
    }

    .popup_add_to_cart_image, .popup_right_image {
        width: 500px;
        float: right
    }

    .overlay_popup_add_to_cart:target + .popup_add_to_cart {
        top: 50%;
        opacity: 1;
        visibility: visible;
        z-index: 10000000 !important;
        width: 500px;
        min-height: 350px
    }
}




@media (max-width:1439px) and (min-width:769px) {
    .contact_toggle_popup_container_reg {
        top: 50%
    }

    .contact_toggle_popup_background_reg {
        width: 400px;
        float: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        height: 400px;
        background-color: #fff;
        box-shadow: 0 0 24px 0 rgba(32,47,57,.2)
    }

    .popup_right_image {
        width: 400px;
        float: right
    }

    .overlay_popup_add_to_cart:target + .popup_add_to_cart {
        top: 50%;
        opacity: 1;
        visibility: visible;
        z-index: 10000000 !important;
        width: 500px
    }

    .popup_add_to_cart_image {
        width: 500px;
        float: right
    }
}

@media all and (max-width:768px) and (min-width:481px) {
    .contact_toggle_popup_container_reg {
        top: 50%
    }

    .contact_toggle_popup_background_reg {
        width: 350px;
        float: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        height: 350px;
        background-color: #fff;
        box-shadow: 0 0 24px 0 rgba(32,47,57,.2)
    }

    .popup_right_image {
        width: 350px;
        float: right
    }
}

@media all and (max-width:480px) and (min-width:319px) {
    .contact_toggle_popup_container_reg {
        top: 50%
    }

    .contact_toggle_popup_background_reg {
        width: 300px;
        height: 300px;
        float: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        background-color: #fff;
        box-shadow: 0 0 24px 0 rgba(32,47,57,.2)
    }

    .popup_right_image {
        width: 100%;
        float: right
    }
}

@media all and (max-width:320px) {
    .contact_toggle_popup_container_reg {
        top: 50%
    }

    .contact_toggle_popup_background_reg {
        width: 300px;
        height: 300px;
        float: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        background-color: #fff;
        box-shadow: 0 0 24px 0 rgba(32,47,57,.2)
    }

    .popup_right_image {
        width: 100%;
        float: right
    }
}
