.cart-block {
    position: fixed;
    right: 1.1%;
    top: 17%;
    z-index: 999;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: #020305;
    box-shadow: 0 0 6px 0 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}
.cart-block:hover{
    background: rgba(2, 3, 5, .8);
    box-shadow: 0 0 7px 4px #009688;
}
.cart-block .cart-count{
    color: #151515;
    z-index: 99;
    font-size: 14px;
    background: #fff7f7;
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 20px;
    min-height: 20px;
    /*padding: 4px 6px;*/
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}
.cart-block span:not(.cart-count) {
    padding-top: 7px;
    color: #fff;
    font-size: 26px;
}
/*.cart-block span .fa-shopping-bag {*/
/*    color: #fff;*/
/*    font-size: 26px;*/
/*}*/

.cart{
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 625px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background-color: white;
    box-shadow: 0 1px 4px rgba(40, 37, 37, 0.1);
    z-index: 9999;
}
.cart .p{
    margin: 0;
}
.overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: rgba(0, 0, 0, .7);
    display: none;
}

.cart-active{
    right:0;
    transition: 0.5s;
}

.cart-title{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom:20px ;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-box{
    display: grid;
    grid-template-columns: 32% 50% 18%;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.cart-img{
    width: 75px;
    height: 75px;
    object-fit: cover;
    border:2px solid  rgba(0,0,0,0.1);
    padding: 5px;
}
.detail-box{
    display: grid;
    row-gap: 0.5rem;
}

.price-box{
    display: flex;
    justify-content: space-between;
}

.cart-food-title{
    font-size: 1rem;
    text-transform: uppercase;
    color:#ff6348;
    font-weight: 500;
}

.cart-price{
    font-weight: 500;
}

.cart-quantity{
    border:1px solid rgba(0,0,0,0.1);
    outline:none ;
    width: 2.4rem;
    text-align: center;
    font-size: 1rem;
}

.cart-remove{
    font-size: 24px;
    color:red;
    cursor: pointer;
}

/*.total{*/
/*    display: flex;*/
/*    justify-content: flex-end;*/
/*    margin-top: 1.5rem;*/
/*}*/

.total-block{
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.total-price{
    margin-left: 0.5rem;
}

.btn-next,
.btn-checkout{
    cursor: pointer;
    width: 100%;
    max-width: 150px;
    z-index: 1;
    background: #000;
    border: 1px solid #36b347;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    /*line-height: 25px;*/
    border-radius: 5px;
    padding: 6px 30px;
    transition: all .3s;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
}

.btn-checkout{
    max-width: 185px;
    margin: 2rem 0;
}
.btn-next svg,
.btn-checkout svg{
    margin-left: 3px;
    transition: all .3s;
}
.btn-next:hover svg,
.btn-checkout:hover svg{
    width: 30px;
}
#cart-close{
    position: absolute;
    top: 1.5rem;
    right: 0.8rem;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart .contact-form {
    max-width: 100%!important;
}
.call-msg,
.time-msg,
.time-msg-default{
    display: flex;
    /*align-items: center;*/
    margin: 1rem 0;
}
.time-msg{
    flex-flow: column;
    align-items: flex-start;
}
.hide{
    display: none;
}
#call-message,
#time-message-default{
    width: 24px;
    height: 24px;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}
.time-msg label{
    margin: 0;
}
.flatpickr-input[readonly]{
    padding: 3px 3px 3px 10px;
    max-width: 160px;
    font-size: 16px;
}
#takeaway{
    display: block;
    width: 130px;
    text-align: center;
    padding: 8px 4px;
    margin: 1rem 0;
    background: salmon;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}
.cart-success-message{
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    font-size: 1.5rem;
}
.cart-order-status-block {
    /*display: none;*/
    position: fixed;
    bottom: 0;
    background: #fff;
    width: 100%;
    padding: 17px 10px;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 999;
}
.cart-order-status-block h4 {
    width: 90%;
    font-family: 'Josefin Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    /*line-height: 20px;*/
    margin: 3px 0;
}
.cart-order-status-block span {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 20px;
}
@media (max-width: 900px) and (max-height: 400px){
    .cart-block {
        top: 34%;
    }
}
/*@media (min-width: 640px) and (max-width: 991px) and (max-height: 450px){*/
/*    .cart-block {*/
/*        top: 32%;*/
/*    }*/
/*}*/

@media (max-width: 540px) {
    .cart{
        height: 100%;
    }
    .cart-block {
        padding: 18px;
        top: 100px;
    }
    .cart-block span:not(.cart-count) {
        /*padding-top: 9px;*/
        font-size: 22px;
    }
    .cart-block .cart-count {
        font-size: 12px;
        width: 17px;
        height: 17px;
    }
    .cart-block span .fa-shopping-bag {
        font-size: 22px;
    }
    .cart-order-status-block h4 {
        font-size: 16px;
    }
}