.woocommerce-cart .woocommerce {
	max-width: 100%;
}

.custom-cart-table-wrapper {
	position: relative;
	overflow-x: auto;
}

.custom-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0;
}

.custom-cart-table th,
.custom-cart-table td {
	padding: 10px 12px !important;
	border: 1px solid #eee;
	text-align: center;
	vertical-align: middle;
}

.custom-cart-table th {
	background-color: #f9f9f9;
	font-weight: bold;
	white-space: nowrap;
}

.custom-cart-table .product-name {
	text-align: left;
	font-weight: bold;
	color: var(--primary-color);
	min-width: 250px !important;
}

.custom-cart-table .product-name a {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
	display: block;
	margin-bottom: 5px;
}

.custom-cart-table .product-name a:hover {
	color: inherit;
}

.custom-cart-table .product-meta {
	font-size: 0.9em;
	font-weight: normal;
	color: #666;
	line-height: 1.5;
}

.custom-cart-table .product-meta .meta-label {
	color: #666;
}

.custom-cart-table .product-thumbnail img {
	max-width: 60px;
	height: auto;
}

.custom-cart-table .product-price,
.custom-cart-table .product-subtotal {
	font-weight: bold;
	color: #e74c3c;
}

/* Quantity Input Styling */
.custom-cart-table .quantity {
	display: inline-flex;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
}

.custom-cart-table .quantity input.qty {
	width: 60px;
	text-align: center;
	border: none;
	padding: 5px;
	-moz-appearance: textfield;
}

.custom-cart-table .quantity input::-webkit-outer-spin-button,
.custom-cart-table .quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.custom-cart-table .quantity .qty-btn {
	background: #f9f9f9;
	border: 0;
	padding: 5px 10px;
	cursor: pointer;
	color: #666;
}

.custom-cart-table .quantity .qty-btn:hover {
	background: #eee;
}

.custom-cart-table .product-remove {
	vertical-align: center;
}

.custom-cart-table .product-remove a {
	color: #e74c3c;
	font-size: 20px;
	text-decoration: none;
	border: none;
}

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

/* Summary Row */
.custom-cart-summary {
	background-color: #f9f9f9;
	font-weight: bold;
}

.custom-cart-summary td {
	border-top: 1px solid #eee;
	font-size: 16px;
}

.custom-cart-summary .total-label {
	text-align: right;
}

.custom-cart-summary .total-price {
	color: #e74c3c;
}

/* Cart Actions */
.custom-cart-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 15px;
	margin-bottom: 30px;
}

.custom-cart-actions .button.empty-cart {
	background-color: #f8f9fa;
	color: #e74c3c;
	border: 1px solid #f5c6cb;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 15px;
	border-radius: 4px;
	text-transform: none;
	font-weight: normal;
}

.custom-cart-actions .button.empty-cart:hover {
	background-color: #fdf3f4;
}

.cart-bottom-actions {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 20px;
}

.cart-bottom-actions .button {
	background-color: transparent;
	outline: 1px solid var(--primary-color);
	color: var(--primary-color);
	border-radius: 4px;
	padding: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-transform: none;
	font-weight: bold;
}

.cart-bottom-actions .button:hover {
	background-color: #e5e5e5;
}

.cart-bottom-actions .button.checkout {
	background-color: var(--primary-color);
	color: white;
	border-radius: 4px;
	padding: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-transform: none;
	font-weight: bold;
}

@media (max-width: 768px) {
	.custom-cart-table-wrapper {
		overflow-x: auto;
	}

	.cart-bottom-actions {
		flex-direction: column;
	}

	.cart-bottom-actions .button {
		width: 100%;
		justify-content: center;
	}

	.custom-cart-table .product-price,
	.custom-cart-table .product-subtotal {
		display: table-cell !important;
	}

	.custom-cart-table th,
	.custom-cart-table td {
		padding: 8px 12px;
		min-width: 50px;
	}

	.custom-cart-table .product-remove a {
		position: static !important;
	}
}