/**
 * Cart page — black pill buttons, product-page qty stepper, mini-cart trash icon.
 */

/* Dark header band — same as checkout so the transparent nav stays readable. */
body.peptara-has-cart-hero .site-header-wrap,
body.peptara-has-cart-hero #masthead,
body.peptara-has-cart-hero .site-main-header-wrap {
	background-color: #181a20 !important;
	background-image:
		radial-gradient(ellipse 80% 140% at 50% -30%, rgba(88, 118, 152, 0.4) 0%, transparent 55%),
		linear-gradient(180deg, #1c2433 0%, #181a20 100%) !important;
}

body.peptara-has-cart-hero .site-header-wrap,
body.peptara-has-cart-hero #masthead {
	min-height: 161px;
}

/* Kadence leftover titles — cart already has "Cart Summary". Keep the Dark Hero spacer band. */
body.peptara-cart .entry-hero,
body.peptara-cart .entry-hero.page-hero-section,
body.peptara-cart .page-hero-section,
body.peptara-cart .entry-header,
body.peptara-cart .woocommerce-products-header,
body.peptara-cart .page-title,
body.peptara-cart h1.page-title,
body.peptara-cart .entry-title,
body.woocommerce-cart .entry-hero,
body.woocommerce-cart .page-hero-section {
	display: none !important;
}

body.peptara-cart .woocommerce-cart-form .button,
body.peptara-cart .woocommerce-cart-form button.button,
body.peptara-cart .woocommerce-cart-form .button.wp-element-button,
body.peptara-cart .cart-collaterals .button,
body.peptara-cart .cart-collaterals a.button,
body.peptara-cart .cart-collaterals .checkout-button,
body.peptara-cart .wc-proceed-to-checkout .checkout-button,
body.peptara-cart .shipping-calculator-form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 45px;
	min-height: 45px;
	margin: 0;
	padding: 12px 24px;
	border: 1px solid #151515;
	border-radius: 50px;
	background: #151515 !important;
	box-shadow: none;
	color: #fff !important;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		opacity 0.2s ease;
}

body.peptara-cart .woocommerce-cart-form .button:hover,
body.peptara-cart .woocommerce-cart-form button.button:hover,
body.peptara-cart .cart-collaterals .button:hover,
body.peptara-cart .cart-collaterals a.button:hover,
body.peptara-cart .cart-collaterals .checkout-button:hover,
body.peptara-cart .wc-proceed-to-checkout .checkout-button:hover,
body.peptara-cart .shipping-calculator-form .button:hover {
	background: #fff !important;
	color: #151515 !important;
}

body.peptara-cart .woocommerce-cart-form button[name="update_cart"]:disabled,
body.peptara-cart .woocommerce-cart-form button[name="update_cart"][disabled],
body.peptara-cart .woocommerce-cart-form button[name="update_cart"].disabled {
	opacity: 0.45;
	color: #fff !important;
	background: #151515 !important;
	cursor: not-allowed;
}

body.peptara-cart .woocommerce-cart-form .coupon .input-text {
	height: 45px;
	padding: 12px 16px;
	border: 1px solid rgba(21, 21, 21, 0.25);
	border-radius: 50px;
	background: #fff;
	color: #151515;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	box-sizing: border-box;
}

/* Quantity stepper — same chrome as single product */
body.peptara-cart .woocommerce-cart-form .quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	float: none;
	width: auto;
	margin: 0;
	padding: 10px 16px;
	height: 45px;
	border: 1px solid rgba(21, 21, 21, 0.25);
	border-radius: 100px;
	background: #fff;
	box-sizing: border-box;
}

body.peptara-cart .woocommerce-cart-form .quantity .peptara-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	line-height: 0;
	appearance: none;
}

body.peptara-cart .woocommerce-cart-form .quantity .peptara-qty-btn img {
	display: block;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

body.peptara-cart .woocommerce-cart-form .quantity .peptara-qty-btn:hover,
body.peptara-cart .woocommerce-cart-form .quantity .peptara-qty-btn:focus-visible {
	opacity: 0.7;
	outline: none;
}

body.peptara-cart .woocommerce-cart-form .quantity .qty {
	width: 2em;
	min-width: 1.5em;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #151515;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	text-align: center;
	appearance: textfield;
}

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

/* Trash icon — same as mini-cart */
body.peptara-cart .woocommerce-cart-form a.remove,
body.peptara-cart .woocommerce-cart-form a.peptara-cart__remove,
body.peptara-cart .woocommerce-cart-form a.remove.peptara-cart__remove {
	position: static !important;
	float: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	text-decoration: none !important;
}

body.peptara-cart .woocommerce-cart-form a.remove::before,
body.peptara-cart .woocommerce-cart-form a.remove::after {
	content: none !important;
	display: none !important;
}

body.peptara-cart .woocommerce-cart-form a.peptara-cart__remove img {
	display: block;
	width: 16px;
	height: 16px;
}

@media (max-width: 767px) {
	body.peptara-cart .woocommerce-cart-form .coupon {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.peptara-cart .woocommerce-cart-form .coupon .input-text,
	body.peptara-cart .woocommerce-cart-form .coupon .button {
		width: 100%;
	}

	body.peptara-cart .woocommerce-cart-form .quantity {
		gap: 12px;
		height: 40px;
		padding: 8px 12px;
	}
}
