body.lock{
    overflow: hidden;
}
.lockTop{
    display: none;
}
.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.8s ease 0s;
}
.modal.open{
    opacity: 1;
    visibility: visible;
}
.modal.open .modal_content{
    transform: translate(0px, 0px);
    opacity: 1;
}
.mod_area{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.modal_body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}
.cart_moby{
    display: none;
}
.modal_content{
    background-color: #fff;
    color: #000000;
    max-width: 90vw;
    padding: 20px;
    position: relative;
    transition: all 0.8s ease 0s;
    opacity: 0;
    transform: translate(0px, -100%);
}
.modal_close{
    position: absolute;
    right: 10px;
    top: 5px;
    width: 20px;
    height: 20px;
    text-decoration: none;
    font-size: 20px;
    color: black;
}
.modal_close img{
    width: 100%;
}
.del-item{
    width: 20px;
    height: auto;
}
.del-item:hover{
    cursor: pointer;
}
.table_cart{
    width: auto;
    padding-top: 20px;
}
.table_cart td{
    padding: 0 20px;
}
.table_cart td a{
    text-decoration: none;
    color: #000000;
    opacity: .8;
}
.table_cart td a:hover{
    opacity: 1;
}
.cart_img{
    height: 50px;
    width: auto;
}
.cart-txt{
    text-align: right;
    padding-right: 10px;
}

/* --- quantity_prod_modal --- */
.quantity_prod_modal{
    width: auto;
    margin-top:5px;
}
.quantity_down_modal, .quantity_up_modal{
    width: 25px;
    height: 25px;
    border: 1px #808080 solid;
    float: left;
    text-align: center;
    font-size: 30px;
    line-height: 20px;
}
.quantity_down_modal{
    margin-left: 40px;
    margin-right: 5px;
}
.quantity_down_modal:hover, .quantity_up_modal:hover{
    cursor: pointer;
}
.quan_inp_modal{
    float: left;
    margin-right: 5px;
}
.quantity_input_modal{
    width: 2em;
    height: 23px;
    text-align: center;
    border: 1px #808080 solid;
    background-color: #ffffff;
    outline: none;
    appearance: none;
    font-size: 18px;
    font-family: "Comic Sans MS", sans-serif;
}
/* Chrome, Safari, Edge, Opera */
.quantity_input_modal::-webkit-outer-spin-button,
.quantity_input_modal::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
/* Firefox */
.quantity_input_modal[type=number] {
    -moz-appearance: textfield;
}

/* modal-footer */
.modal-footer{
    width: 100%;
    height: auto;
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
.btn-clear, .btn-continue, .btn-apply{
    width: auto;
    height: auto;
    text-align: center;
    color: #ffffff;
    font-family: "Comic Sans MS", sans-serif;
    margin: 5px auto;
    padding: 9px 5px 8px 30px;
    border: 1px #ffffff solid;
    background: #000000 url("../img/icons/basket.svg") no-repeat left 5px center;
    background-size: 18px;
    display: inline-block;
}
.btn-clear, .btn-continue{
    font-size: 16px;
    font-weight: 400;
}
.btn-clear:hover, .btn-continue:hover, .btn-apply:hover{
    border: 1px #000000 solid;
    background-color: #ffffff;
    color: #808080;
    cursor: pointer;
}
.btn-clear{
    background: #000000 url("../img/icons/basket_clear.svg") no-repeat left 5px center;
    background-size: 18px;
}
.btn-apply{
    text-decoration: none;
}
.data_user{
    min-width: 10vw;
}
.data_user a{
    text-decoration: none;
    color: #808080;
    font-size: 24px;
    font-weight: 600;
    opacity: .9;
}
.data_user a:hover{
    opacity: 1;
}

.login_form{
    margin-top: 20px;
    margin-bottom: 5px;
}
.btn-login{
    width: 100%;
    height: auto;
    text-align: center;
    color: #ffffff;
    font-family: "Comic Sans MS", sans-serif;
    margin: 5px auto;
    padding: 9px 0 8px 0;
    border: 1px #ffffff solid;
    background: #000000 url("../img/icons/cabinet.svg") no-repeat left 15px center;
    background-size: 18px;
    display: inline-block;
}
.btn-login{
    font-size: 16px;
    font-weight: 400;
}
.btn-login:hover{
    border: 1px #000000 solid;
    background-color: #ffffff;
    color: #808080;
    cursor: pointer;
}

/* Стили для горизонтали шириной менее 850px */
@media only screen and (max-width: 850px){
    .table_cart td{
        padding: 0 5px;
    }
}

/* Стили для экранов шириной менее 768px */
@media screen and (max-width: 767px) {
    .modal_content{
        padding: 5px;
    }
    .table-responsive{
        display: none;
    }
    .cart_moby{
        display: block;
        width: 100%;
        height:auto;
        margin-top: 30px;
        position: relative;
    }
    .cart_moby_item{
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        border-bottom: #808080 1px dotted;
        margin-bottom: 3px;
        padding-bottom: 3px;
    }
    .cart_moby_img{
        display: inline-block;
    }
    .cart_moby_str{
        flex-grow: 1;
        padding-left: 3px;
    }
    .top_str, .bottom_str {
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}