#basket {
    min-height: 50vh;
}

#basket .t-main table {
    border-collapse: collapse;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--cl-transparent-white) !important;
}



#basket .planBoxDesc + p{
    text-align: center;
}

#basket .thead-items > th {
    direction: rtl;
    text-align: right;
}
#basket .thead-items > th {

    padding-block: .5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(110, 110, 110, 0.24);
}
#basket .t-key,#basket td {
    vertical-align: middle !important;
}


#basket table {
    width: 100%
}
#basket .t-main td {
    padding: .5rem;
}
#basket .t-main td:has(img) {
    padding-block: 2rem;
}
@media (max-width: 868px) {
    #basket .t-main td img {
        margin-inline: auto;
    }
}
#basket .t-main td img {
    max-height: 150px;
    width: auto !important;

}

#basket .td-count {
    padding-left: 3rem
}


#basket td img {
    max-width: 145px;
    width: 100%;
    height: auto;
}

#basket .t-key {
    padding-left: min(2rem, 4vw);
    text-align: right
}

#basket td {
    text-align: right;
}

#basket tr {
    padding-block: 1rem;
}


#basket td .remove-item {
    max-width: 35px;
    margin-bottom: .5rem;
}
#basket td .remove-item svg {
    width: 12px;
    height: 12px;
}

.qty {
    width: 30px;
    height: 20px;
    text-align: center;
}
input.qtyplus { width:10px; height:15px; padding-left: .4rem}
input.qtyminus { width:10px; height:15px; padding-right: .4rem}

.quantity-selector {
    border: 1px solid rgba(99, 99, 99, 0.432);
    padding: .2rem;
    padding-inline: .7rem;
    border-radius: 1rem;
}

.quantity-selector input,
.quantity-selector button {
    border: none;
    background-color: transparent;
    outline: none
}




#basket .card-title {
    margin-inline: auto;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

#basket .card-body {
    border-radius: 10px 10px 0px 0px;
    overflow: hidden;

}
#basket .card-body td {
    padding-block: 1.5rem !important;
    font-weight: 700;

}
#basket .total-card {
    max-width: 360px;
    margin-inline: auto;
    width: 100%;
}

#basket table {

    /*margin-bottom: -3rem*/
}


#basket .main-container {
    display: flex;
    flex-direction: row-reverse;
    gap: min(4rem, 7vw)
}

#basket *:has(> .empty-cart) {
    display: flex;
    flex-direction: column;
}
#basket .empty-cart {
    margin-top: 1rem;
    width: fit-content;
    background-color: rgba(105, 105, 105, 0.661);
    color: white;
    margin-right: .5rem;
    padding: .5rem 2rem;
    font-size: var(--fs-sm);

    border-radius: 5px;
}

@media (max-width: 1050px) {
    #basket .main-container {
        flex-direction: column-reverse;

    }
}

@media (max-width: 568px) {
    #basket .t-main tr {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
        border: 1px solid rgba(103, 103, 103, 0.185);
        border-radius: 5px;

        margin-block: 1rem;
        padding-top: 3rem;
    }


    #basket .t-main table {
        width: 90%;
        margin-inline: auto;

    }

    #basket .t-main td .m-key  {
        width: min(100px, 20vw);
        display: block;
        border-left: .5px solid rgba(0, 0, 0, 0.438);
    }

    #basket .t-main .img-td .m-key  {
        margin-left: auto;
        border-left: none;
    }
    
    
    @media (max-width: 868px) {
        #basket .td-title {
            text-align: center;   
            width: 100%;
            display: block !important;
            margin-bottom: .5rem;
            font-weight: bold !important;
            
        }    
    }
    
    #basket .t-main td   {
        font-weight: 500;
        font-size: x-small;
    }
    #basket .t-main td:not(.m-key)  *  {
        font-weight: normal;
        font-size: xx-small;
    }
    #basket .t-main td  {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #basket .trash-icon  {
        position: absolute;
        right: -.4rem;
        top: .5rem;

        height: fit-content;
        width: fit-content;
        display: flex;
    }

    #basket .total-card {
        max-width: 460px;

    }

    #basket .empty-cart {
        margin-inline: auto;
        margin-bottom: 2rem
    }

    #basket td img {
        max-width: 405px;
        width: 100%;
        height: auto;
    }

}

@media (max-width: 868px) {
    .t-main td {
        padding-inline: 1.5rem !important;
        padding-blcok: .8rem !important;
    }

    #basket td.counter {
        width: 100%;
        max-width: none;
    }


    #basket .t-main table {
        border-bottom: none !important;
    }
}

