/* ================================================================
   Cart page — scoped stylesheet
   Loaded only on is_cart()
   ================================================================ */

/* ================================================================
   Cart page
   ================================================================ */

/* ---- Empty cart icon animations ---- */
@keyframes sc-cart-bg-pop {
	0%   { transform: scale(0);    opacity: 0; }
	60%  { transform: scale(1.12); opacity: 1; }
	80%  { transform: scale(0.96); }
	100% { transform: scale(1); }
}

@keyframes sc-cart-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes sc-cart-wheel-in {
	0%   { transform: scale(0); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.sc-empty-cart-svg {
	overflow: visible !important;
}

.sc-empty-cart-bg {
	transform-origin: 28px 28px;
	animation: sc-cart-bg-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.sc-empty-cart-body {
	animation: sc-cart-draw 0.4s ease-out 0.35s forwards !important;
}

.sc-empty-cart-wheel {
	transform-origin: center;
	transform: scale(0);
	opacity: 0;
	animation: sc-cart-wheel-in 0.25s ease-out 0.7s forwards !important;
}

/* ---- Empty cart state ---- */
.sc-cart-empty {
	grid-column: 1 / -1 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	padding: 4rem 1.5rem !important;
}

.sc-cart-empty__icon {
	margin-bottom: 1.5rem !important;
}

.sc-cart-empty__heading {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
	margin: 0 0 0.5rem !important;
	border: none !important;
}

.sc-cart-empty__sub {
	font-size: 0.9rem !important;
	color: #6b7280 !important;
	margin: 0 0 2rem !important;
}

.sc-cart-empty__btn {
	display: inline-flex !important;
	align-items: center !important;
	padding: 0.6875rem 1.75rem !important;
	background: #dc4a26 !important;
	color: #fff !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	border-radius: 0.625rem !important;
	text-decoration: none !important;
	transition: background 0.15s !important;
	border: none !important;
}

.sc-cart-empty__btn:hover {
	background: #c03d1c !important;
	color: #fff !important;
}

body.sc-theme .woocommerce-cart table.cart,
body.sc-theme .woocommerce-checkout table.shop_table {
	border-collapse: collapse !important;
	border: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	width: 100% !important;
	font-size: 0.9rem !important;
}

body.sc-theme table.cart thead th,
body.sc-theme table.shop_table thead th {
	background: transparent !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	color: #9ca3af !important;
	padding: 0 0 0.75rem !important;
	border-bottom: 1px solid #e5e7eb !important;
}

body.sc-theme table.cart td,
body.sc-theme table.shop_table td {
	padding: 1.375rem 0 !important;
	border-bottom: 1px solid #f3f4f6 !important;
	vertical-align: middle !important;
	color: #111827 !important;
	background: transparent !important;
}

body.sc-theme table.cart tr:last-child td,
body.sc-theme table.shop_table tr:last-child td {
	border-bottom: none !important;
}

/* Thumbnail */
body.sc-theme table.cart td.product-thumbnail {
	padding-right: 0 !important;
	width: auto !important;
}

body.sc-theme table.cart .product-thumbnail img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover !important;
	border-radius: 0.625rem !important;
	border: 1px solid #f0f0f0 !important;
	display: block !important;
	background: #f9fafb !important;
}

/* Product name cell */
body.sc-theme table.cart td.product-name {
	padding-right: 0 !important;
}

body.sc-theme table.cart .product-name a {
	font-weight: 600 !important;
	color: #111827 !important;
	text-decoration: underline !important;
	text-decoration-color: #e5e7eb !important;
	text-underline-offset: 2px !important;
	font-size: 0.9375rem !important;
	display: block !important;
	margin-bottom: 0 !important;
	line-height: 1.4 !important;
}

body.sc-theme table.cart .product-name a:hover {
	color: #dc4a26 !important;
	text-decoration-color: #dc4a26 !important;
}

/* Subscription price / "₹55.00 every month" shown in product-name */
body.woocommerce-cart table.cart .product-name .subscription-price,
body.woocommerce-cart table.cart .product-name .woocommerce-Price-amount {
	font-size: 0.82rem !important;
	color: #6b7280 !important;
	font-weight: 500 !important;
}

/* Short description (PAO injects under product name) */
body.woocommerce-cart table.cart .product-name p,
body.woocommerce-cart table.cart .product-name > span.description {
	font-size: 0.78rem !important;
	color: #9ca3af !important;
	margin: 0.25rem 0 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	line-height: 1.45 !important;
}

/* Addon / variation meta — dt label + dd value, each pair on its own line */
body.sc-theme table.cart .product-name dl,
body.sc-theme table.shop_table .product-name dl,
body.sc-theme .wc-item-meta {
	margin: 0.4rem 0 0 !important;
	padding: 0 !important;
	display: block !important;
	list-style: none !important;
}

/* Show dt label inline */
body.sc-theme table.cart .product-name dl dt,
body.sc-theme table.shop_table .product-name dl dt {
	display: inline !important;
	font-size: 0.8rem !important;
	font-weight: 500 !important;
	color: #374151 !important;
}


body.sc-theme table.cart .product-name dl dd,
body.sc-theme table.shop_table .product-name dl dd,
body.sc-theme .wc-item-meta li {
	display: inline !important;
	font-size: 0.8rem !important;
	font-weight: 400 !important;
	color: #6b7280 !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	white-space: normal !important;
	line-height: 1.5 !important;
}

/* Force new line after each dd so next dt starts on its own line */
body.sc-theme table.cart .product-name dl dd::after,
body.sc-theme table.shop_table .product-name dl dd::after {
	content: "" !important;
	display: block !important;
}

body.sc-theme table.cart .product-name dl dd p,
body.sc-theme table.shop_table .product-name dl dd p {
	display: inline !important;
	margin: 0 !important;
	font-size: inherit !important;
	color: inherit !important;
}

/* Unit price — shown below name, muted */
body.sc-theme table.cart .product-price {
	font-weight: 500 !important;
	font-size: 0.9rem !important;
	color: #374151 !important;
	white-space: nowrap !important;
}

/* Subtotal — top-right, bold */
body.sc-theme table.cart .product-subtotal {
	font-weight: 600 !important;
	font-size: 1rem !important;
	color: #111827 !important;
	white-space: nowrap !important;
}

/* Quantity stepper */
body.sc-theme table.cart td.product-quantity {
	padding-right: 0 !important;
}

body.sc-theme table.cart .quantity {
	display: inline-flex !important;
	align-items: center !important;
	background: #fff !important;
	border: 1.5px solid #e5e7eb !important;
	border-radius: 0.625rem !important;
	overflow: hidden !important;
	height: 2.5rem !important;
}

body.sc-theme table.cart .quantity input.qty {
	width: 2.75rem !important;
	height: 2.5rem !important;
	text-align: center !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	border: none !important;
	background: transparent !important;
	color: #111827 !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

body.sc-theme table.cart .quantity input.qty::-webkit-inner-spin-button,
body.sc-theme table.cart .quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
}

body.sc-theme table.cart .quantity .minus,
body.sc-theme table.cart .quantity .plus {
	width: 2.25rem !important;
	height: 2.5rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: transparent !important;
	border: none !important;
	color: #9ca3af !important;
	font-size: 1.25rem !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
	transition: color 0.12s, background 0.12s !important;
	font-weight: 300 !important;
}

body.sc-theme table.cart .quantity .minus:hover,
body.sc-theme table.cart .quantity .plus:hover {
	color: #111827 !important;
	background: #f9fafb !important;
}

/* Remove button — trash icon */
body.sc-theme table.cart td.product-remove {
	width: auto !important;
	text-align: center !important;
	padding-left: 0 !important;
}

body.sc-theme table.cart .product-remove a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	border-radius: 0.625rem !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0 !important;
	text-decoration: none !important;
	transition: background 0.15s !important;
	border: 1.5px solid #e5e7eb !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 1rem !important;
}

body.sc-theme table.cart .product-remove a:hover {
	border-color: #fca5a5 !important;
	background-color: #fef2f2 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E") !important;
}

/* ---- Cart totals shared ---- */
body.sc-theme .cart-collaterals .cart_totals {
	border: 1px solid #e5e7eb !important;
	border-radius: 1rem !important;
	overflow: hidden !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06) !important;
}

body.sc-theme .cart_totals h2 {
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: #6b7280 !important;
	padding: 0.875rem 1.25rem !important;
	margin: 0 !important;
	border-bottom: 1px solid #f3f4f6 !important;
	background: transparent !important;
}

body.sc-theme .cart_totals table th,
body.sc-theme .cart_totals table td {
	padding: 0.875rem 1.25rem !important;
	font-size: 0.875rem !important;
	border-bottom: 1px solid #f3f4f6 !important;
	vertical-align: middle !important;
	background: transparent !important;
}

body.sc-theme .cart_totals table th {
	font-weight: 600 !important;
	color: #374151 !important;
}

body.sc-theme .cart_totals table td {
	text-align: right !important;
	color: #111827 !important;
	font-weight: 500 !important;
}

body.sc-theme .cart_totals table .order-total th,
body.sc-theme .cart_totals table .order-total td {
	font-weight: 700 !important;
	font-size: 1.0625rem !important;
	border-bottom: none !important;
	color: #111827 !important;
}

/* Checkout button — early broad-match block; detailed styling in cart section below */
body.sc-theme.woocommerce-cart .wc-proceed-to-checkout a,
body.sc-theme.woocommerce-cart .wc-proceed-to-checkout button,
body.sc-theme .wc-proceed-to-checkout a.checkout-button,
body.sc-theme .wc-proceed-to-checkout a,
body.sc-theme .cart-collaterals a.checkout-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #dc4a26 !important;
	color: #fff !important;
	text-align: center !important;
	padding: 0.9375rem !important;
	border-radius: 0.75rem !important;
	font-weight: 600 !important;
	font-size: 0.9375rem !important;
	font-family: inherit !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	transition: background 0.15s, box-shadow 0.15s !important;
	margin-top: 0 !important;
	width: 100% !important;
}

body.sc-theme.woocommerce-cart .wc-proceed-to-checkout a:hover,
body.sc-theme.woocommerce-cart .wc-proceed-to-checkout button:hover,
body.sc-theme .wc-proceed-to-checkout a.checkout-button:hover,
body.sc-theme .cart-collaterals a.checkout-button:hover {
	background: #c03d1c !important;
	color: #fff !important;
}

/* Cart/checkout — product image thumbnail (canonical size, overrides earlier block) */
body.sc-theme table.cart .product-thumbnail img,
body.woocommerce-cart table.cart .product-thumbnail img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover !important;
	border-radius: 0.75rem !important;
	border: 1px solid #f3f4f6 !important;
	display: block !important;
}

/* ================================================================
   Cart page — Stripe-style two-column layout
   ================================================================ */

/* Full-width content area (prevent Storefront reserving sidebar space) */
body.woocommerce-cart .content-area,
body.woocommerce-cart .site-main {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Two-column grid — article is the sc-container, no horizontal padding needed here */
body.woocommerce-cart .woocommerce {
	display: grid !important;
	grid-template-columns: 1fr !important;
	grid-template-areas:
		"notices"
		"form"
		"totals" !important;
	gap: 0 !important;
	align-items: start !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 0 2.5rem !important;
}

@media (min-width: 1024px) {
	body.woocommerce-cart .woocommerce {
		grid-template-columns: 1fr 360px !important;
		grid-template-areas:
			"notices notices"
			"form    totals" !important;
		gap: 0 2rem !important;
	}
}

body.woocommerce-cart .woocommerce-notices-wrapper { grid-area: notices !important; }
body.woocommerce-cart .cart-collaterals            { grid-area: totals  !important; display: block !important; }

/* Cart form — card matching account page content cards */
body.woocommerce-cart .woocommerce-cart-form {
	grid-area: form !important;
	margin-bottom: 0 !important;
	background: #fff !important;
	border: 1px solid #f3f4f6 !important;
	border-radius: 1rem !important;
	overflow: hidden !important;
}

/* ================================================================
   Cart list — div-based layout (child-theme template override)
   ================================================================ */

.sc-cart-list {
	display: block;
}

/* Each cart item row */
.sc-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	border-bottom: 1px solid #f3f4f6;
	position: relative;
}

.sc-cart-item:last-of-type {
	border-bottom: none;
}

/* Thumbnail */
.sc-item-thumb {
	flex-shrink: 0;
	width: 88px;
}

.sc-item-thumb img {
	width: 88px;
	display: block;
}

.sc-item-thumb .sc-card-thumb-fallback {
	width: 88px;
	height: 88px;
	border-radius: 0.75rem;
}

/* Info block */
.sc-item-info {
	flex: 1;
	min-width: 0;
	padding-right: 1rem;
}

/* Product name */
.sc-item-name {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.3rem;
}

.sc-item-name a {
	color: #111827;
	text-decoration: none;
}

.sc-item-name a:hover {
	color: #dc4a26;
	text-decoration-color: #dc4a26;
}

/* Variation / addon meta dl */
.sc-item-info .wc-item-meta,
.sc-item-info dl.variation {
	margin: 0 0 0.125rem !important;
	padding: 0 !important;
	list-style: none !important;
	display: block !important;
}


.sc-item-info dl dt,
.sc-item-info .wc-item-meta dt {
	display: inline !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	color: #374151 !important;
}


.sc-item-info dl dd,
.sc-item-info .wc-item-meta dd {
	display: inline !important;
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	color: #6b7280 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sc-item-info dl dd p,
.sc-item-info .wc-item-meta dd p {
	display: inline !important;
	margin: 0 !important;
}

/* Line break after each dd so next dt starts on new line */
.sc-item-info dl dd::after,
.sc-item-info .wc-item-meta dd::after {
	content: "";
	display: block;
}

/* Unit price */
/* Mobile-only price inside product info — hidden on desktop where .sc-item-subtotal shows */
.sc-item-price {
	display: none;
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
	margin-top: 0.5rem;
}

/* Controls: qty + remove */
.sc-item-controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.875rem;
}

/* Quantity stepper */
.sc-qty {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	overflow: hidden;
	height: 2.5rem;
}

.sc-qty-minus,
.sc-qty-plus {
	width: 2.25rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 0;
	transition: color 0.12s, background 0.12s;
	flex-shrink: 0;
}

.sc-qty-minus:hover,
.sc-qty-plus:hover {
	color: #111827;
	background: #f9fafb;
}

.input-qty {
	width: 2.75rem;
	height: 2.5rem;
	text-align: center;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	border: none;
	background: transparent;
	color: #111827;
	padding: 0;
	box-shadow: none;
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.input-qty::-webkit-inner-spin-button,
.input-qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

/* Remove / trash button */
.sc-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.625rem;
	border: 1.5px solid #e5e7eb;
	background: transparent;
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.sc-remove:hover {
	color: #ef4444;
	border-color: #fca5a5;
	background: #fef2f2;
}

/* Subtotal */
.sc-item-subtotal {
	flex-shrink: 0;
	width: 140px;
	text-align: right;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
}

a.text-decoration-none{
	text-decoration: none !important;
}

/* ---- Cart item — mobile layout ---- */
@media (max-width: 639px) {
	.sc-cart-item {
		padding: 1rem;
		gap: 0.875rem;
	}
	.sc-item-thumb {
		width: 72px;
	}
	.sc-item-thumb img {
		width: 72px;
	}
	.sc-item-thumb .sc-card-thumb-fallback {
		width: 72px;
		height: 72px;
	}

	.sc-item-info {
		padding-right: 0;
	}
	/* On mobile: show inline price, hide the right-column subtotal */
	.sc-item-price {
		display: block;
	}
	.sc-item-subtotal {
		display: none;
	}
	.sc-cart-actions {
		padding: 0.875rem 1rem;
	}
}

/* Coupon / actions bar */
.sc-cart-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1.125rem 1.75rem;
	/* border-top: 1px solid #f3f4f6; */
}

.sc-coupon-wrap {
	width: 100%;
	max-width: 420px;
}

.sc-coupon {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.3rem 0.3rem 0.3rem 2.5rem;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sc-coupon:focus-within {
	border-color: #dc4a26;
	box-shadow: 0 0 0 3px rgba(220, 74, 38, 0.12);
}

.sc-coupon:focus-within .sc-coupon__icon {
	color: #dc4a26;
}

.sc-coupon__icon {
	position: absolute;
	left: 0.875rem;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
	transition: color 0.15s;
}

.sc-coupon__input {
	flex: 1;
	min-width: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	padding: 0.5rem 0.5rem 0.5rem 0 !important;
	font-size: 0.9375rem !important;
	color: #111827 !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
}

.sc-coupon__input::placeholder {
	color: #9ca3af;
}

.sc-coupon-btn {
	flex-shrink: 0;
	background: #dc4a26 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0.5rem !important;
	padding: 0.55rem 1.25rem !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}

.sc-coupon-btn:hover {
	background: #c03d1c !important;
	color: #fff !important;
}

/* ---- Coupon validation state ---- */
.sc-coupon.is-invalid {
	border-color: #dc4a26;
	box-shadow: 0 0 0 3px rgba(220, 74, 38, 0.14);
	animation: sc-coupon-shake 0.28s cubic-bezier(.36,.07,.19,.97) both;
}

.sc-coupon.is-invalid .sc-coupon__icon {
	color: #dc4a26;
}

.sc-coupon__error {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #dc4a26;
	line-height: 1.4;
}

.sc-coupon__error[hidden] {
	display: none;
}

.sc-coupon__error::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background-color: #dc4a26;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

@keyframes sc-coupon-shake {
	0%, 100% { transform: translateX(0); }
	20%      { transform: translateX(-4px); }
	40%      { transform: translateX(4px); }
	60%      { transform: translateX(-3px); }
	80%      { transform: translateX(3px); }
}

/* ---- Cart table: CSS Grid layout (matches screenshot) ---- */
body.woocommerce-cart table.cart {
	border: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	display: block !important;
	width: 100% !important;
}

body.woocommerce-cart table.cart thead {
	display: none !important;
}

body.woocommerce-cart table.cart tbody {
	display: block !important;
}

/*
 * Grid: [thumbnail 88px] | [info 1fr] | [remove auto] | [subtotal 150px]
 * Rows:  row1=name  row2=price  row3=qty+remove
 * Thumbnail spans rows 1–3; subtotal anchored to row 1 top-right.
 */
body.woocommerce-cart table.cart tbody tr {
	display: grid !important;
	grid-template-columns: 88px 1fr auto 150px !important;
	grid-template-rows: auto auto auto !important;
	column-gap: 1.25rem !important;
	row-gap: 0 !important;
	padding: 1.625rem 1.75rem !important;
	border-bottom: 1px solid #f3f4f6 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	align-items: start !important;
}

body.woocommerce-cart table.cart tbody tr:last-child {
	border-bottom: none !important;
}

body.woocommerce-cart table.cart td {
	padding: 0 !important;
	border: none !important;
}

/* col 1 | rows 1-3: thumbnail spans full item height */
body.woocommerce-cart table.cart td.product-thumbnail {
	grid-column: 1 !important;
	grid-row: 1 / 4 !important;
	align-self: start !important;
}

/* col 2 | row 1: product name */
body.woocommerce-cart table.cart td.product-name {
	grid-column: 2 / 4 !important;
	grid-row: 1 !important;
}

/* col 2 | row 2: unit price */
body.woocommerce-cart table.cart td.product-price {
	display: block !important;
	grid-column: 2 / 4 !important;
	grid-row: 2 !important;
	padding-top: 0.375rem !important;
}

/* col 2 | row 3: quantity stepper */
body.woocommerce-cart table.cart td.product-quantity {
	grid-column: 2 !important;
	grid-row: 3 !important;
	padding-top: 0.875rem !important;
}

/* col 3 | row 3: trash icon, same row as qty */
body.woocommerce-cart table.cart td.product-remove {
	grid-column: 3 !important;
	grid-row: 3 !important;
	padding-top: 0.875rem !important;
	display: flex !important;
	align-items: center !important;
}

/* col 4 | row 1: subtotal top-right */
body.woocommerce-cart table.cart td.product-subtotal {
	grid-column: 4 !important;
	grid-row: 1 !important;
	text-align: right !important;
	align-self: start !important;
}

/* Coupon / actions row: spans all columns */
body.woocommerce-cart table.cart td.actions {
	display: flex !important;
	grid-column: 1 / -1 !important;
	padding: 1.25rem 1.75rem !important;
	border-top: 1px solid #f3f4f6 !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

body.woocommerce-cart button[name="update_cart"] {
	display: none !important;
}

/* Coupon row */
body.woocommerce-cart .coupon {
	display: flex !important;
	gap: 0.5rem !important;
	align-items: center !important;
}

body.woocommerce-cart .coupon input#coupon_code {
	width: auto !important;
	flex: 1 !important;
	height: 2.5rem !important;
	padding: 0 0.75rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.625rem !important;
	font-size: 0.875rem !important;
	font-family: inherit !important;
	color: #111827 !important;
	background: #fff !important;
	box-shadow: none !important;
}

body.woocommerce-cart .coupon input#coupon_code:focus {
	border-color: #dc4a26 !important;
	box-shadow: 0 0 0 3px rgba(220,74,38,0.1) !important;
	outline: none !important;
}

body.woocommerce-cart .coupon .button {
	background: #f3f4f6 !important;
	color: #374151 !important;
	border: none !important;
	border-radius: 0.625rem !important;
	padding: 0 1.125rem !important;
	height: 2.5rem !important;
	line-height: 2.5rem !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	cursor: pointer !important;
	transition: background 0.15s, color 0.15s !important;
	white-space: nowrap !important;
}

body.woocommerce-cart .coupon .button:hover {
	background: #dc4a26 !important;
	color: #fff !important;
}

/* ---- Order summary card ---- */
body.woocommerce-cart .cart_totals {
	width: 100% !important;
	max-width: none !important;
	background: #fff !important;
	border: 1px solid #f0f0f0 !important;
	border-radius: 1rem !important;
	overflow: hidden !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04) !important;
}

@media (max-width: 1023px) {
	body.woocommerce-cart .cart_totals {
		margin-top: 1.5rem !important;
	}
}

@media (min-width: 1024px) {
	body.woocommerce-cart .cart_totals {
		position: sticky !important;
		top: 6rem !important;
	}
}

body.woocommerce-cart .cart_totals h2 {
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.09em !important;
	text-transform: uppercase !important;
	color: #9ca3af !important;
	padding: 1.1rem 1.375rem 0 !important;
	margin: 0 0 0.5rem !important;
	border-bottom: none !important;
	background: transparent !important;
}

body.woocommerce-cart .cart_totals table {
	width: 100% !important;
	border-collapse: collapse !important;
	border: none !important;
	border-radius: 0 !important;
	margin-bottom: 0;
}

/* All rows: no horizontal rule, generous rhythm */
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
	padding: 0.45rem 1.375rem !important;
	font-size: 0.875rem !important;
	border: none !important;
	vertical-align: middle !important;
	background: transparent !important;
}

body.woocommerce-cart .cart_totals table tbody tr:first-child th,
body.woocommerce-cart .cart_totals table tbody tr:first-child td {
	padding-top: 0.9rem !important;
}

body.woocommerce-cart .cart_totals table th {
	font-weight: 500 !important;
	color: #6b7280 !important;
}

body.woocommerce-cart .cart_totals table td {
	text-align: right !important;
	color: #374151 !important;
	font-weight: 500 !important;
}

/* Single divider before the "Total due today" row */
body.woocommerce-cart .cart_totals table .order-total th,
body.woocommerce-cart .cart_totals table .order-total td {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
	/* border-top: 1px solid #f3f4f6 !important; */
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

/* Only the non-recurring order-total row gets the divider */
body.woocommerce-cart .cart_totals table .recurring-total.order-total th,
body.woocommerce-cart .cart_totals table .recurring-total.order-total td {
	border-top: none !important;
	padding-top: 0.45rem !important;
	padding-bottom: 0.45rem !important;
}

/* Subscription small helper text */
body.woocommerce-cart .cart_totals table th small,
body.woocommerce-cart .cart_totals table td small {
	font-size: 0.72rem !important;
	color: #9ca3af !important;
	font-weight: 400 !important;
	display: block !important;
	margin-top: 0.1rem !important;
}

/* "Subscription Details" section divider row */
body.woocommerce-cart .cart_totals table .recurring-totals th,
body.woocommerce-cart .cart_totals table .recurring-totals td {
	padding-top: 1rem !important;
	padding-bottom: 0.35rem !important;
	border-top: 1px solid #f3f4f6 !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	color: #9ca3af !important;
}

/* Recurring subtotal + recurring total — shown as dim secondary rows */
body.woocommerce-cart .cart_totals table .recurring-subtotal th,
body.woocommerce-cart .cart_totals table .recurring-subtotal td,
body.woocommerce-cart .cart_totals table .recurring-total th,
body.woocommerce-cart .cart_totals table .recurring-total td {
	font-size: 0.8125rem !important;
	color: #9ca3af !important;
	font-weight: 400 !important;
	white-space: nowrap !important;
	padding-top: 0.3rem !important;
	padding-bottom: 0.3rem !important;
}

/* "Then" prefix before recurring subtotal label to contextualise renewal */
body.woocommerce-cart .cart_totals table .recurring-subtotal th::before {
	content: "Then: " !important;
	font-weight: 500 !important;
}

/* Proceed to Checkout button */
body.woocommerce-cart .wc-proceed-to-checkout {
	padding: 1.125rem 1.375rem 0.875rem !important;
	background: transparent !important;
	/* border-top: 1px solid #f3f4f6 !important; */
	/* margin-top: 0.25rem !important; */
}

body.woocommerce-cart .wc-proceed-to-checkout a,
body.woocommerce-cart .wc-proceed-to-checkout button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout button.checkout-button,
body.woocommerce-cart .cart-collaterals a.checkout-button,
body.woocommerce-cart .cart-collaterals .button.checkout-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	background: #dc4a26 !important;
	color: #fff !important;
	padding: 0.9375rem !important;
	border-radius: 0.75rem !important;
	font-weight: 600 !important;
	font-size: 0.9375rem !important;
	font-family: inherit !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	transition: background 0.15s, box-shadow 0.15s !important;
	margin-top: 0 !important;
	box-shadow: 0 1px 2px rgba(220,74,38,0.25), 0 4px 12px rgba(220,74,38,0.15) !important;
	letter-spacing: 0.01em !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a:hover,
body.woocommerce-cart .wc-proceed-to-checkout button:hover,
body.woocommerce-cart .cart-collaterals a.checkout-button:hover,
body.woocommerce-cart .cart-collaterals .button.checkout-button:hover {
	background: #c03d1c !important;
	color: #fff !important;
	box-shadow: 0 1px 3px rgba(220,74,38,0.35), 0 6px 18px rgba(220,74,38,0.2) !important;
}

/* Secure checkout trust note below checkout button */
body.woocommerce-cart .wc-proceed-to-checkout::after {
	content: "🔒 Secure & encrypted checkout";
	display: block !important;
	text-align: center !important;
	font-size: 0.72rem !important;
	color: #9ca3af !important;
	margin-top: 0.625rem !important;
	font-family: inherit !important;
}

/* Page title — tighter, more inline feel */
body.woocommerce-cart h1.entry-title {
	font-size: 1.25rem !important;
}
body.woocommerce-cart .entry-header {
	padding-top: 1.5rem !important;
	padding-bottom: 1.25rem !important;
}

/* Hide "Edit page" link at bottom */
body.woocommerce-cart .entry-footer,
body.woocommerce-cart .edit-link {
	display: none !important;
}

body.woocommerce-cart .woocommerce input[type="number"]{
	border-radius: 0 !important;
	width: 50px !important;
}

body.woocommerce-cart .sc-item-name a{
	text-decoration: none;
}

/* ================================================================
   Cross-sells — full-width below cart grid
   ================================================================ */
body.woocommerce-cart .sc-cross-sells {
	grid-column: 1 / -1;
	margin-top: 3rem;
}

body.woocommerce-cart .sc-cross-sells-header {
	margin-bottom: 0;
}

/* Strip cart-page link underlines from product cards inside cross-sells */
body.woocommerce-cart .sc-cross-sells a,
body.woocommerce-cart .sc-cross-sells a:hover,
body.woocommerce-cart .sc-cross-sells a:focus {
	text-decoration: none !important;
}

/* Add-to-cart pill button */
body.woocommerce-cart .sc-cross-sell-cta .button,
body.woocommerce-cart .sc-cross-sell-cta a.button,
body.woocommerce-cart .sc-cross-sell-cta a.added_to_cart {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.3rem !important;
	background: #dc4a26 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0.5rem !important;
	padding: 0.5rem 0.75rem !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	box-shadow: none !important;
	min-height: 0 !important;
	transition: background 0.15s ease !important;
}

body.woocommerce-cart .sc-cross-sell-cta .button:hover,
body.woocommerce-cart .sc-cross-sell-cta a.button:hover,
body.woocommerce-cart .sc-cross-sell-cta a.added_to_cart:hover {
	background: #c03d1c !important;
	color: #fff !important;
}

/* Hide WC's "View cart" suffix link injected after AJAX add (we reload instead) */
body.woocommerce-cart .sc-cross-sell-cta a.added_to_cart {
	display: none !important;
}

/* Loading state — keep button width stable */
body.woocommerce-cart .sc-cross-sell-cta .button.loading {
	opacity: 0.7;
	pointer-events: none;
}

@media (min-width: 1024px) {
	body.woocommerce-cart .sc-cross-sells {
		margin-top: 4rem;
	}
}

