::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #333;
    opacity: 0.3; /* Firefox */
}


.popup_form_bg {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    text-align: center;
    background: rgba(0, 0, 0, .3);
    z-index: 2002;
    overflow: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.popup_form_bg:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
}

.popup_form {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 30px;
    margin: 25px 0;
    left: -2px;
    border: 1px solid #ccc;
    text-align: left;
    width: auto;
    background-color: #fff;
    max-width: 94%;
    top: 0;
}


.popup_close {
    position: absolute;
    right: 24px;
    top: 13px;
    color: #ccc;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.25s ease;
    padding: 0 5px;
}

.popup_close {
    position: absolute;
    right: 34px;
    top: 35px;
    cursor: pointer;
    font-size: 18px;
    color: #BABABA;
    background: url(/i/cancel.svg) no-repeat center;
    width: 25px;
    height: 25px;
    background-size: 100%;
    padding: 0px 7px;
    transition: all 0.25s ease;
}

.popup_close:hover {
    transform: scale(1.1);
}

.popup_title {
    font-size: 22px;
    color: #555;
    padding-bottom: 17px;
    border-bottom: 1px solid;
    padding-right: 55px;
}


#basket_popup_items, #basket_popup_action, #item_popup_total, .popup_form_inner {
    padding: 0 30px;
}

/*ГЛАВНАЯ ФОРМА*/

#all_form form {
    text-align: left;
    margin-top: 25px;
}

#all_form2 form {
    text-align: left;
    margin-top: 25px;
}

#all_form_title {
    font-size: 25px;
    color: #555;
    font-weight: bold;
    padding-bottom: 17px;
    border-bottom: 1px solid;
}

#all_form_title2 {
    font-size: 25px;
    color: #555;
    font-weight: bold;
    padding-bottom: 17px;
    border-bottom: 1px solid;
}

#all_form2 label {
    display: block;
    margin-bottom: 6px;
    color: #bababa;
    font-size: 17px;
    font-weight: normal;
    text-transform: uppercase;
}

#all_form label {
    display: block;
    margin-bottom: 6px;
    color: #bababa;
    font-size: 17px;
    font-weight: normal;
    text-transform: uppercase;
}

#all_form2 label sup {
    color: #e40514;
    font-size: 20px;
    top: 0;
}

#all_form label sup {
    color: #e40514;
    font-size: 20px;
    top: 0;
}

#all_form2 input {
    height: 43px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #BABABA;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    font-size: 22px;
    color: #7D7D7D;
    background-color: #F5F5F5;
}

#all_form input {
    height: 43px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #BABABA;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    font-size: 22px;
    color: #7D7D7D;
    background-color: #F5F5F5;
}

#all_form2 input:focus {
    background-color: #fff;
}

#all_form input:focus {
    background-color: #fff;
}

#all_form2 input#norobot2 {
    width: 93px;
    float: left;
    height: 43px;
    background-color: #fff;
    margin-bottom: 0;
}

#all_form input#norobot {
    width: 93px;
    float: left;
    height: 43px;
    background-color: #fff;
    margin-bottom: 0;
}

.captcha_img {
    border-radius: 0;
    cursor: pointer;
    float: right;
}

.invalid_captcha {
    color: #e40514;
    display: none;
    position: absolute;
    left: 0;
    margin-top: -18px;
    font-weight: bold;
    bottom: -20px;
    font-size: 12px;
}

#all_form textarea {
    display: block;
    height: 100px;
    line-height: 150%;
    padding: 10px 10px;
    border-radius: 0;
    border: 1px solid #BABABA;
    width: 100%;
    margin-bottom: 20px;
}

#captcha_and_button2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
}

#captcha_and_button {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 48px;
}

#captcha_wrap2 {
    width: 194px;
    margin-top: -22px;
    position: relative;
}

#captcha_wrap {
    width: 194px;
    margin-top: -22px;
    position: relative;
}

#all_form2 button {
    font-size: 20px;
    height: 43px;
    border-radius: 0;
    border: none;
    width: 100%;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #e12325;
    color: #fff;
    border-radius: 5px;
    transition: .3s all;
}

#all_form button {
    font-size: 20px;
    height: 43px;
    border-radius: 0;
    border: none;
    width: 179px;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #ff6600;
    color: #fff;
    border-radius: 5px;
}

#all_form2 button:hover {
    background-color: #c11c1e;
}

#all_form button:hover {
    background-color: #eca250;
}

#captcha_wrap2 label {
    font-size: 14px;
}

#captcha_wrap label {
    font-size: 14px;
}

.agreement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 20px;
    width: 100%;
    padding: 40px 20px 0;
}

.checkbox_agreement {
    width: 26px;
    height: 26px;
    border: 1px solid #bababa;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox_agreement i {
    position: relative;
    left: 0px;
    top: -9px;
    font-size: 31px;
    opacity: 0
}

.checkbox_agreement.active i {
    opacity: 1
}

.agreement_accept {
    margin-left: 15px;
    width: 317px;
    text-align: left;
    font-size: 13px;
    line-height: 1.3;
    text-transform: uppercase;
}

.agreement_accept a {
    color: #777;
    text-decoration: underline;
}

.agreement_accept a:hover {
    text-decoration: none;
}


/*ФОРМА СПАСИБО*/

#form_thanks_bg {
    background-color: rgba(0, 0, 0, .6);
}

#form_thanks .popup_title {
    color: #BC0F1D;
    background-color: inherit;
    border-bottom: 2px solid;
    font-weight: bold;
}

.thanks_note {
    color: #BC0F1D;
    font-weight: bold;
}

#form_thanks .popup_form_inner {
    font-size: 16px;
    color: #333;
}

#form_thanks_descr {
    border-top: 1px solid #ccc;
    padding: 20px 0 5px;
    margin-bottom: 25px;
    text-align: center;
}

#form_thanks {
    width: 380px;
    padding-bottom: 15px;
}

#form_thanks .to_continue {
    float: none;
    width: 87%;
    margin: 0 auto;
    text-align: center;
}

.circle_check {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background-color: #30C10A;
    color: #fff;
    text-align: center;
    font-size: 58px;
    margin: 25px auto 25px;
}

.thanks_text {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}


@media screen and (max-width: 1000px) {
    .popup_form_inner {
        padding: 0 10px;
    }
}

@media screen and (max-width: 700px) {
    .popup_form_inner {
        padding: 0;
    }
}

@media screen and (max-width: 560px) {
    #captcha_and_button {
        display: block;
    }

    #captcha_wrap, #all_form button {
        width: 100%;
    }

    #captcha_wrap {
        margin-bottom: 20px;
    }

    #all_form input#norobot {
        width: calc(100% - 115px);
    }

    @media screen and (max-width: 415px) {
        .popup_form {
            display: block;
            left: 2%;
            max-width: 96%;
            width: 100%;
            top: -10px;
        }

        .popup_form_bg:before {
            display: none;
        }

    }
}