.mfp-bg{
    background: #3a3f44;
    opacity: 0.7 !important;
    /*height: 100%;*/
    /*width: 100%;*/
    /*position: fixed;*/
    /*left: 0;*/
    /*top: 0;*/
    /*z-index: 2999;*/
}

.mfp-container{
    /*background: #252729;*/
    width: 964px;
    /*border-radius: 20px;*/
    left: 50%;
    margin-left: -490px;
}
.mfp-content{
    background: #252729;
    width: 964px;

    /*background: #252729;*/
    width: 964px;
    border-radius: 20px;
    /*left: 50%;*/
    /*margin-left: -490px;*/
}

.mfp-close{
    cursor: pointer;
    position: absolute;
    /*top: -43px;*/
    right: 10px;
}

#commerce-form{
    width: 948px;
    z-index: 10000;
    padding: 29px 60px 8px;
    overflow-y: auto;
    max-height: 80vh;
}

#commerce-form::-webkit-scrollbar {
    width: 4px; /* Ширина вертикального скроллбара */
    /*height: 12px; !* Высота горизонтального скроллбара *!*/
    /*background: #fff;*/
}

#commerce-form::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 5px;
}

.commerce-form .form_body{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-direction: column;
}

.form h2 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 48px !important;
    font-weight: 600;
    line-height: 57.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.commerce-form .form_footer{
    width: 100%;
    /* text-align: center; */
    display: flex !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.commerce-form .licence_block{
    margin: 10px 0 20px !important;
}

.commerce-form .client-data{
    /*flex-basis: 29%;*/

    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.commerce-form .basket-data{
    flex-basis: 69%;
}

.commerce-form .product-item{
    display: flex;
    gap: 15px;
    /*padding: 22px 30px 32px;*/
    padding: 20px;
    transition: background-color 0.3s ease-out;
    justify-content: space-between;

    flex-direction: column;
}

.product-item__row{
    display: flex;
}

.product-item__row.price-type{
    justify-content: end;
}

.commerce-form .product-item__image{
    flex-basis: 12%;
    justify-content: start;
    display: flex;
    width: 100px;
}

.commerce-form .product-item__name{
    flex-basis: 45%;
    justify-content: start;
    display: flex;
    flex-wrap: wrap;
    width: 350px;
}

.commerce-form .product-item__name a,
.commerce-form .product-item__name i{
    flex-basis: 100%;
}

.commerce-form .product-item__name i{
    font-style: normal;
    font-size: 12px;
}

.commerce-form .product-item__quantity{
    width: 110px;
    flex-basis: 15%;
    /*letter-spacing: -0.33px;*/
    /*font-size: 16px;*/
    /*font-weight: bold;*/
    justify-content: center;
    display: flex;
    padding-top: 3px;
    height: 32px;
}

.basket-item-amount{
    display: flex;
    /*border: 1px solid #eaeaea;*/
    /*border-radius: 3px;*/
    max-width: 102px;
    min-width: 100px;
    height: 33px;
}

.commerce-form .basket-item-btn-minus,
.commerce-form .basket-item-btn-plus{
    width: 30px;
    height: 32px;
    background: #444;
    display: inline-block;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    position: relative;
}

.commerce-form .basket-item-amount-filed-block{
    height: 32px;
    width: 40px;

}

.commerce-form .basket-item-amount-filed-block input{
    width: 100%;
    height: 32px !important;
    text-align: center;
    border: none !important;
    border-radius: unset;
    font-family: "Montserrat", Arial;
    font-weight: 300;
}

.commerce-form .basket-item-btn-plus:before, .commerce-form .basket-item-btn-plus:after, .commerce-form .basket-item-btn-minus:after {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -5px;
    width: 11px;
    height: 1px;
    background-color: #979797;
    content: "";
    transition: 300ms all ease;
}

.commerce-form .basket-item-btn-plus:before {
    margin-top: -6px;
    margin-left: 0px;
    width: 1px;
    height: 11px;
}

.commerce-form .product-item__quantity span{
    height: 32px;
}

.commerce-form .product-item__price{
    letter-spacing: -0.33px;
    font-size: 16px;
    font-weight: bold;
    flex-basis: 15%;
    justify-content: end;
    display: flex;
}

.commerce-form .product-item__price span{
    height: 30px;
    color: #fff;
    margin-left: 5px;
    font-size: 16px;
    font-weight: 300;
    line-height: 30px;
    margin-top: 4px;
}

.commerce-form .product-item:hover{
    border-color: var(--stroke_black_hover);
    background-color: var(--card_bg_hover_black);
}

.product-item__price input{
    height: 32px !important;
    /*background: #444 !important;*/
    border: 1px dashed #444 !important;
    border-radius: 3px !important;
    padding: 5px 10px;
    width: 100px;
    text-align: center;
    margin-top: 3px;
}

.product-list__title{
    display: flex;
    gap: 15px;
    padding: 22px 30px 32px;
    transition: background-color 0.3s ease-out;
    justify-content: space-between;
}

.product-list__title .product-item__price{
    font-weight: 300;
    align-items: center;
}

.product-item__price-total{
    display: flex;
    text-align: right;
    height: 32px;
    line-height: 32px;
    flex-basis: 15%;
}

.product-item__price-total i{
    display: inline-block;
    width: 100px;
    font-style: normal;
    margin-right: 5px;
}

.product-item__reset{
    margin-top: 3px;
    flex-basis: 5%;
    cursor: pointer;
    text-align: center;
}

.product-item__reset svg{
    opacity: 0.7;
    transition: .3s;
}

.product-item__reset:hover svg{
    opacity: 1;
}

.product-item__price-select{
    font-size: 12px;
    color: #999;
    border-bottom: 1px dashed #999;
    line-height: 1;
    transition: .3s;
    cursor: pointer;
    padding-bottom: 3px;
}

.product-item__price-select:hover{
    color: #fff;
    border-bottom: 1px dashed #fff;
}

.product-item__row.price-type{
    position: relative;
}

.product-item__price-select.active + .product-item__price-popup{
    display: block;
}

.product-item__price-popup{
    position: absolute;
    display: none;

    background: #3b3e42;
    /*padding: 10px;*/
    z-index: 1000;
    top: 20px;

    /*border: 1px solid #ffffff;*/

    border-radius: 5px;

    /*border-color: var(--stroke_black_hover);*/
    /*background-color: var(--card_bg_hover_black);*/
}

.product-item__price-popup ul{
    margin: 0;
    list-style-type: none;
    padding: 15px 0;
    width: 350px;
}

.product-item__price-popup ul li{
    transition: .3s;
    line-height: 1;
    font-size: 12px;
    padding-right: 10px;
    cursor: pointer;
}

.product-item__price-popup ul li:hover{
    background-color: var(--card_bg_hover_black);
}

.product-item__price-popup ul li:before{
    display: none;
}

.total-block{
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-weight: 700;
    padding: 0 20px 0;
    font-size: 22px;
    border-top: 1px dashed;
    padding-top: 25px;
}

.flex-49{
    flex-basis: 49%
}

.flex-32{
    flex-basis: 32%
}

.product-item__price-input{
    font-weight: 300;
    font-family: "Montserrat", Arial;
}

.commerce-form .basket-item-amount{
    padding: 0 !important;
}

.form.loader .form_body{
    display: none !important;
}

@media(max-width: 786px) {
    .mfp-container{
        /*background: #252729;*/
        width: 100%;
        border-radius: 20px;
        /*left: 50%;*/
        /*margin-left: -360px;*/
        position: relative;
        margin: 0 auto;
        left: unset;
    }

    .mfp-content{
        background: #252729;
        width: 100%;
        border-radius: 20px;
        min-height: 100vh;
    }

    .mfp-close{
        cursor: pointer;
        position: absolute;
        /*top: -43px;*/
        right: 10px;
    }

    #commerce-form {
        width: 100%;
        padding: 0 30px;
    }

    .flex-32{
        flex-basis: 100%
    }

    .form h2{
        font-size: 35px !important;
        line-height: 1.2;
    }

    .form_head{
        padding: 55px 0 10px;
    }

    .product-item{
        flex-wrap: wrap;
    }

    .product-list__title{
        display: none;
    }

    .commerce-form .product-item__image{
        /*flex: 1 0 10% !important;*/
        display: inline-block;
    }

    .commerce-form .product-item__name{
        /*flex: 1 0 90% !important;*/
        width: auto;
        font-size: 14px;
        line-height: 1.2;
    }

    .product-item__quantity{
        flex: 1 0 100% !important;
    }

    .product-item__price{
        flex: 1 0 40% !important;
        margin-bottom: 10px;
    }

    .product-item__price-total{
        flex: 1 0 40% !important;
    }

    .product-item__reset{
        flex: 1 0 10% !important;
    }

    .product-item__row{
        width: 100%;
    }

    .commerce-form .product-item{
        padding: 0;
        margin-bottom: 25px;
        border-bottom: 1px solid #3a3a3a;
        padding-bottom: 25px;
    }

    .product-item__row {
        flex-wrap: wrap;
    }

    .commerce-form .product-item__quantity{
        margin: 0 0 15px;
    }

    .commerce-form .product-item:hover{
        border-color: unset;
        background-color: unset;
    }

    .basket-commerce-offer{
        width: 100%;
    }
}

/*.basket-items-list-item-wrapper .basket-items-list-item-amount-outer {*/
/*    width: 164px;*/
/*    padding-left: 0px;*/
/*    padding-right: 0px;*/
/*}*/

/*.basket-items-list-item-wrapper > td {*/
/*    border-top: 1px solid var(--stroke_black);*/
/*    padding: 29px 0px 27px;*/
/*    vertical-align: top;*/
/*    position: relative;*/
/*}*/

/*.basket-item-amount {*/
/*    position: relative;*/
/*    display: -ms-flexbox;*/
/*    display: -webkit-box;*/
/*    display: flex;*/
/*    -ms-flex-pack: end;*/
/*    -ms-flex-align: start;*/
/*    padding: 0 30px;*/
/*    -ms-flex-line-pack: start;*/
/*    align-content: flex-start;*/
/*    -webkit-box-pack: end;*/
/*    justify-content: flex-end;*/
/*    border: 1px solid #eaeaea;*/
/*    border-radius: 3px;*/
/*    max-width: 102px;*/
/*    min-width: 100px;*/
/*    margin-bottom: 5px;*/
/*    border-color: var(--stroke_black);*/
/*    background: #fafafa;*/
/*    background-color: var(--light_bg_black);*/
/*}*/

/*.basket-item-btn-plus, .basket-item-btn-minus {*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    width: 30px;*/
/*    height: 32px;*/
/*    cursor: pointer;*/
/*    cursor: pointer;*/
/*    background: 0 0;*/
/*    border: none;*/
/*    transition: 300ms all ease;*/
/*    -webkit-user-select: none;*/
/*}*/

/*.basket-item-btn-plus:before, .basket-item-btn-plus:after, .basket-item-btn-minus:after {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    margin-top: -1px;*/
/*    margin-left: -5px;*/
/*    width: 11px;*/
/*    height: 1px;*/
/*    background-color: #979797;*/
/*    content: "";*/
/*    transition: 300ms all ease;*/
/*}*/

/*.basket-items-list-item-amount-outer .basket-item-amount-filed {*/
/*    border: none;*/
/*    background: #f8f8f8;*/
/*    font-weight: 400;*/
/*    width: 100%;*/
/*    padding: 7px 0 7px;*/
/*    font-size: 13px;*/
/*    line-height: 13px;*/
/*    height: 32px;*/
/*    color: #333;*/
/*    color: var(--white_text_black);*/
/*    text-align: center;*/
/*    background: 0 0;*/
/*}*/