
.mb_modal {

    content: ""; 

    visibility: hidden;

    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 

    z-index: 99999999;

    background: rgba(0,0,0,.6);

    .transition(all .2s ease);
    .box-sizing();

    .mb_modal_dialog {

        position: fixed; 
        top: -50%;
        left: 50%; 

        z-index: 11; 

        width: 70%;
        max-height: 90%;
        margin: 0 0 0 -35%;

        border: @gray solid 1px;
        background: #fefefe;

        .border-radius(5px);
        .transition-transform(~"0.3s ease-out");
        .transition(all .3s ease);
        .translate(0, 0); 

        .box-sizing();

        .mb_modal_body {

            padding: @space/2;
            text-align: center;

            p {

                margin: 0;
                padding: 0;
            }

            .mb_modal_errors {

                overflow: hidden;
                width: 100%;
                margin: 0 auto;
                color: red;

                .box-sizing();
            }

            .mb_modal_subscribe {

                overflow: hidden;
                width: 100%;
                margin: 0 auto;

                input {

                    display: block;
                    width: 100%;
                    margin-bottom: 1em;

                    .box-sizing();
                }

                .mb_modal_subscribe_field {

                    width: 50%;
                }
            }

            .mb_modal_captcha {

                overflow: hidden;
                width: 100%;
                margin: 0 auto;

                .mb_modal_captcha_field {

                    overflow: hidden;
                    width: 100%;
                    margin: 0 auto;

                    .mb_modal_captcha_enter_field {

                        float: left;
                        width: 40%;
                    }
                }

                .mb_modal_captcha_code {

                    float: left;
                    width: 100%;
                    height: 38px;
                    padding: .39em .5em;

                    .box-sizing();
                }

                .mb_modal_captcode {

                    float: left;
                    width: 25%;
                    height: 38px;
                    cursor: pointer;
                    padding: .19em .5em;

                    .gradient-3-color();

                    .box-sizing();

                    span {

                        i {

                            font-size: 2rem;
                            .transition(all .3s ease);
                        }
                    }
                }

                #captcha {

                    float: left;
                    width: 35%;
                    height: 38px;
                }
            }

            .st_download_copy {

                float: left;
                width:100%;
            }
        }

        .mb_modal_header,
        .mb_modal_footer {

            padding: @space/4 @space/2;
        }

        .mb_modal_header {

            border-bottom: @gray-lighter solid 1px;

            h3 {

                margin: 0;
                padding: 0;
                font-size: 2rem;
            }
        }

        .mb_modal_footer {

            overflow:hidden;
            border-top: @gray-lighter solid 1px;
            text-align: right;

            .mb_modal_abort, .mb_modal_download, .mb_modal_subscribe_btn {

                float: right;
                margin: .1em;
                padding: .3em 1em;
                color: #000000;
                text-decoration: none;

                .opacity(.8);

                &:hover {

                    .opacity(1);
                }
            }
        }
    }
}

#modal_closer:target {
    
    .mb_modal_without_js {
        
        visibility: hidden;
        .transition(all .2s ease);

        .mb_modal_dialog {

            top: -50%;
            .transition(all .2s ease);
        }
    }
}

.mb_modal_without_js {

    content: ""; 

    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 

    z-index: 99999999;

    background: rgba(0,0,0,.6);

    .transition(all .2s ease);
    .box-sizing();

    .mb_modal_dialog {

        position: fixed; 
        top: 25%;
        left: 50%; 

        z-index: 11; 

        width: 70%;
        max-height: 90%;
        margin: 0 0 0 -35%;

        border: @gray solid 1px;
        background: #fefefe;

        .border-radius(5px);
        .transition-transform(~"0.3s ease-out");
        .transition(all .3s ease);
        .translate(0, 0); 

        .box-sizing();

        .mb_modal_body {

            padding: @space/2;
            text-align: center;

            p {

                margin: 0;
                padding: 0;
            }

            .mb_modal_errors {

                overflow: hidden;
                width: 100%;
                margin: 0 auto;
                color: red;

                .box-sizing();
            }

            .mb_modal_subscribe {

                overflow: hidden;
                width: 100%;
                margin: 0 auto;

                input {

                    display: block;
                    width: 100%;
                    margin-bottom: 1em;

                    .box-sizing();
                }

                .mb_modal_subscribe_field {

                    width: 50%;
                }
            }

            .mb_modal_captcha {

                overflow: hidden;
                width: 100%;
                margin: 0 auto;

                .mb_modal_captcha_field {

                    overflow: hidden;
                    width: 100%;
                    margin: 0 auto;

                    .mb_modal_captcha_enter_field {

                        float: left;
                        width: 40%;
                    }
                }

                .mb_modal_captcha_code {

                    float: left;
                    width: 100%;
                    height: 38px;
                    padding: .39em .5em;

                    .box-sizing();
                }

                .mb_modal_captcode {

                    float: left;
                    width: 25%;
                    height: 38px;
                    cursor: pointer;
                    padding: .19em .5em;

                    .gradient-3-color();

                    .box-sizing();

                    span {

                        i {

                            font-size: 2rem;
                            .transition(all .3s ease);
                        }
                    }
                }

                #captcha {

                    float: left;
                    width: 35%;
                    height: 38px;
                }
            }

            .st_download_copy {

                float: left;
                width:100%;
            }
        }

        .mb_modal_header,
        .mb_modal_footer {

            padding: @space/4 @space/2;
        }

        .mb_modal_header {

            border-bottom: @gray-lighter solid 1px;

            h3 {

                margin: 0;
                padding: 0;
                font-size: 2rem;
            }
        }

        .mb_modal_footer {

            overflow:hidden;
            border-top: @gray-lighter solid 1px;
            text-align: right;

            .mb_modal_abort, .mb_modal_download, .mb_modal_subscribe_btn {

                float: right;
                margin: .1em;
                padding: .3em 1em;
                color: #000000;
                text-decoration: none;

                .opacity(.8);

                &:hover {

                    .opacity(1);
                }
            }
        }
    }
}

@media only screen and(min-width:768px) {


    .mb_modal, .mb_modal_without_js {

        .mb_modal_dialog {

            .mb_modal_body {

                .mb_modal_subscribe_error {

                    width: 50%;
                }

                .mb_modal_subscribe {

                    width: 50%;
                }

                .mb_modal_captcha {

                    width: 50%;

                    .mb_modal_captcha_field {

                        .mb_modal_captcha_enter_field {

                            width: 62%;
                        }
                    }

                    .mb_modal_captcode {

                        width: 15%;
                    }

                    #captcha {

                        width: 23%;
                    }
                }
            }

        }
    }
}