/**
 * Cart page: Woo Cart Products module overrides.
 *
 * - Shrink delete column to content
 * - Quantity stepper (pill layout matching product pages)
 * - Hide native number-input spinners
 * - Visually hide "Update cart" (kept in DOM for AJAX)
 */

/* ---- Delete column ---- */

.woocommerce-cart-form .shop_table td.product-remove,
.woocommerce-cart-form .shop_table th.product-remove {
	width: 30px !important;
	min-width: 30px !important;
	padding-left: 8px !important;
	padding-right: 4px !important;
	position: relative;
	z-index: 2;
}

.woocommerce-cart-form .shop_table td.product-thumbnail {
	overflow: hidden;
}

/* ---- Quantity column ---- */

.woocommerce-cart-form .shop_table td.product-quantity {
	width: 1% !important;
	white-space: nowrap;
}

/* ---- Quantity stepper ---- */

.woocommerce-cart-form .quantity {
	display: inline-flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	width: auto !important;
	max-width: none !important;
	border: 2px solid #e0e0e0;
	border-radius: 999px;
}

.woocommerce-cart-form .quantity .qty {
	width: 1.2em !important;
	max-width: 1.2em !important;
	min-width: 0 !important;
	text-align: center;
	border: none !important;
	font-weight: 600;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	line-height: 38px;
	height: 38px;
}

.woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button,
.woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce-cart-form .quantity .minus,
.woocommerce-cart-form .quantity .plus {
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	flex: 0 0 36px !important;
	cursor: pointer;
	color: #6b3a2a;
	transition: opacity 0.2s ease;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1;
}

.woocommerce-cart-form .quantity .minus svg,
.woocommerce-cart-form .quantity .plus svg {
	stroke: #6b3a2a;
	width: 23px;
	height: 23px;
	min-width: 23px;
	min-height: 23px;
	display: block;
}

.woocommerce-cart-form .quantity .minus:hover,
.woocommerce-cart-form .quantity .plus:hover {
	opacity: 0.7;
}

/* ---- Coupon code input ---- */

.woocommerce-cart-form .coupon #coupon_code {
	background: #fff !important;
	color: #333 !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	padding: 0.6em 0.8em !important;
	font-size: 0.95em !important;
	box-shadow: none !important;
	outline: none !important;
	line-height: normal !important;
	height: auto !important;
	width: auto !important;
	max-width: 200px !important;
}

.woocommerce-cart-form .coupon #coupon_code:focus {
	border-color: #6b3a2a !important;
}

.woocommerce-cart-form .coupon #coupon_code::placeholder {
	color: #999 !important;
}

/* ---- Hide "Update cart" button ---- */

.woocommerce-cart-form .actions button[name="update_cart"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	padding: 0 !important;
	margin: -1px !important;
}
