.cart {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e5e5;
}

.cart form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cart .cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cart #cart-content {
    width: 90%;
    margin: 2em 0;
    border-collapse: separate;
    border-spacing: 0px 15px;
}

.cart #cart-content thead tr th {
    font-family: 'Bai Jamjuree';
    font-weight: 700;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
    border: none;
}

.cart #cart-content tbody tr td {
    border-radius: 0;
    background: #FFFFFF;
    border-top: 1px solid #CFD0D7;
    border-bottom: 1px solid #CFD0D7;
}

.cart #cart-content tbody tr td:first-child {
    border-top-left-radius: 8px;
    border: 1px solid #CFD0D7;
    border-right: 0;
    background: #FFFFFF;
    border-bottom-left-radius: 8px;
}

.cart #cart-content tbody tr td:last-child {
    border-top-right-radius: 8px;
    border: 1px solid #CFD0D7;
    border-left: 0;
    background: #FFFFFF;
    border-bottom-right-radius: 8px;
    vertical-align: middle;
}

.cart #cart-content tbody tr td h4 {
    font-family: 'Bai Jamjuree';
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    color: #4F4F4F;
}

.cart #cart-content tbody tr td span {
    display: block;
    color: #4F4F4F;
    font-weight: 500;
}

.cart #cart-content tbody tr td[data-th=Price],
.cart #cart-content tbody tr td[data-th=Subtotal] {
    font-family: 'Bai Jamjuree';
    font-weight: 700;
    font-size: 18px;
    line-height: 130%;
    color: #000000;
    vertical-align: middle;
}

.cart #cart-content tbody tr td[data-th=Quantity] {
    vertical-align: middle;
}

.cart #cart-content tbody tr td[data-th=Quantity] input {
    text-align: center;
    -moz-appearance: textfield;
}

.cart #cart-content tbody tr td[data-th=Quantity] input::-webkit-outer-spin-button,
.cart #cart-content tbody tr td[data-th=Quantity] input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart #cart-content tbody tr td[data-th=Quantity] .input-quantity {
    position: relative;
}

.cart #cart-content tbody tr td[data-th=Quantity] .input-quantity .less {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    cursor: pointer;
}

.cart #cart-content tbody tr td[data-th=Quantity] .input-quantity .more {
    position: absolute;
    top: 50%;
    right: 5px;
    cursor: pointer;
    transform: translateY(-50%);
}

.cart #cart-content tbody tr .actions .remove-from-cart {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cart #cart-content tfoot tr:first-child td {
    padding: 1em 1em 1em 0;
}

.cart #cart-content tfoot tr td h3 {
    font-family: 'Bai Jamjuree';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #1E1E1E;
}

.cart #cart-content tfoot tr td h3 strong {
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    margin-left: 5px;
}

.cart #cart-content tfoot tr td .update-cart {
    height: 45px;
    background: #1E1E1E;
    border-radius: 8px;
    font-family: 'Bai Jamjuree';
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.cart #cart-content tfoot tr td .buy-cart {
    height: 45px;
    background: #00FF00;
    border-radius: 8px;
    font-family: 'Bai Jamjuree';
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #1E1E1E;
}

.cart #cart-content tbody tr td .identify-item {
    display: none;
    font-family: 'Bai Jamjuree';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #1E1E1E;
}

@media (max-width: 992px) {
    .cart #cart-content thead {
        display: none;
    }

    .cart #cart-content tbody tr {
        display: block;
        margin: 1em 0;
    }

    .cart #cart-content tbody tr td {
        width: 100%;
        display: block;
    }

    .cart #cart-content tbody tr td {
        border: none;
    }
    
    .cart #cart-content tbody tr td:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-bottom-left-radius: 0;
        border: none;
    }
    
    .cart #cart-content tbody tr td:last-child {
        border-top-right-radius: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        border: none;
        text-align: right;
    }

    .cart #cart-content tbody tr td .row .col-sm-9 {
        text-align: right;
    }

    .cart #cart-content tbody tr td .identify-item {
        display: block;
    }

    .cart #cart-content tbody tr td[data-th=Price],
    .cart #cart-content tbody tr td[data-th=Subtotal] {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .cart #cart-content tbody tr td:first-child .row {
        flex-wrap: initial;
    }
}

@media (max-width: 480px) {
    .cart #cart-content tfoot tr:last-child td {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cart #cart-content tfoot tr:last-child td button {
        margin: 1em 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
}

@media (max-width: 350px) {
    .cart #cart-content tbody tr td:first-child .row {
        flex-wrap: wrap;
    }

    .cart #cart-content tbody tr td .row .col-sm-9, 
    .cart #cart-content tbody tr td .row .col-sm-3 {
        text-align: center;
    }
}