/* Base Styles for the Cart Table */
.woocommerce-cart-form {
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.shop_table th,
.shop_table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

/* Table Headers */
.shop_table thead th {
    background-color: #f7f7f7;
    font-weight: 600;
}

/* Table Rows */
.shop_table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

/* Remove Button */
.product-remove a.remove {
    color: #e74c3c;
    font-size: 20px;
    text-decoration: none;
}

.product-remove a.remove:hover {
    color: #c0392b;
}

/* Product Thumbnail */
.product-thumbnail img {
    max-width: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Product Name */
.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.product-name a:hover {
    color: #0071a1;
}

/* Price, Quantity, and Subtotal */
.product-price,
.product-quantity,
.product-subtotal {
    text-align: center;
    font-weight: 500;
}

/* Quantity Input */
.product-quantity input[type="number"] {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Checkout Button in Header */
.tbo-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f7f7f7;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tbo-cart-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.tbo-cart-header .button {
    background-color: #0071a1;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.tbo-cart-header .button:hover {
    background-color: #005f86;
}

/* Update Cart Button */
.actions .button {
    background-color: #0071a1;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.actions .button:hover {
    background-color: #005f86;
}

/* Table Responsive Styles */
@media screen and (max-width: 768px) {
    .shop_table th,
    .shop_table td {
        padding: 8px;
    }

    .tbo-cart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tbo-cart-header .button {
        margin-top: 10px;
    }

    .product-thumbnail img {
        max-width: 50px;
    }

    .product-quantity input[type="number"] {
        width: 50px;
    }
}
