/* Checkout-first cart layout — Santa Masala */
body.woocommerce-cart.sm-cart-checkout-first .ct-woocommerce-cart-form {
	display: grid;
	gap: 28px 40px;
}
@media (max-width: 999.98px) {
	body.woocommerce-cart.sm-cart-checkout-first .ct-woocommerce-cart-form {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"items"
			"totals"
			"recs";
	}
}
@media (min-width: 1000px) {
	body.woocommerce-cart.sm-cart-checkout-first .ct-woocommerce-cart-form {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		grid-template-areas:
			"items totals"
			"recs recs";
	}
}
body.woocommerce-cart.sm-cart-checkout-first .ct-woocommerce-cart-form > form.woocommerce-cart-form {
	grid-area: items;
}
body.woocommerce-cart.sm-cart-checkout-first .ct-woocommerce-cart-form > .cart_totals {
	grid-area: totals;
	align-self: start;
}
body.woocommerce-cart.sm-cart-checkout-first .ct-woocommerce-cart-form > #santa-cart-recommendations {
	grid-area: recs;
}

/* Hide "Actualizar carrito" visually — kept in the DOM so auto-update can click it */
body.woocommerce-cart.sm-cart-checkout-first form.woocommerce-cart-form button[name="update_cart"] {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Coupon collapsed until the customer asks for it */
body.woocommerce-cart.sm-cart-checkout-first form.woocommerce-cart-form .coupon {
	display: none !important;
	margin-top: 10px;
	width: 100%;
}
body.woocommerce-cart.sm-cart-checkout-first.sm-coupon-open form.woocommerce-cart-form .coupon {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
body.woocommerce-cart.sm-cart-checkout-first form.woocommerce-cart-form td.actions,
body.woocommerce-cart.sm-cart-checkout-first form.woocommerce-cart-form .actions {
	text-align: left;
}
body.woocommerce-cart.sm-cart-checkout-first .sm-coupon-toggle {
	display: inline-block;
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #650d16;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
body.woocommerce-cart.sm-cart-checkout-first.sm-coupon-open .sm-coupon-toggle {
	margin-bottom: 4px;
}
body.woocommerce-cart.sm-cart-checkout-first .sm-coupon-toggle:hover,
body.woocommerce-cart.sm-cart-checkout-first .sm-coupon-toggle:focus {
	color: #a9000b;
}

/* Totals + shipping: make free delivery / pickup obvious */
body.woocommerce-cart.sm-cart-checkout-first .cart_totals {
	background: #fff;
	padding: 16px 18px 18px;
	border: 1px solid #eadccb;
	border-radius: 16px;
}
body.woocommerce-cart.sm-cart-checkout-first .cart_totals h2 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.2;
	color: #3b1a16;
}
body.woocommerce-cart.sm-cart-checkout-first .sm-shipping-note {
	margin: 0 0 12px;
	padding: 8px 10px;
	background: #f3f8f1;
	border-left: 3px solid #0a7a2f;
	border-radius: 0 8px 8px 0;
	color: #0a7a2f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}
body.woocommerce-cart.sm-cart-checkout-first .woocommerce-shipping-methods li {
	margin: 0 0 8px;
}
body.woocommerce-cart.sm-cart-checkout-first .woocommerce-shipping-methods label {
	font-weight: 600;
}

/* Prominent checkout button */
body.woocommerce-cart.sm-cart-checkout-first .wc-proceed-to-checkout {
	margin-top: 14px;
}
body.woocommerce-cart.sm-cart-checkout-first .wc-proceed-to-checkout .checkout-button {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	text-align: center;
	min-height: 52px;
	padding: 14px 20px !important;
	border-radius: 10px !important;
	background: #650d16 !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.3;
	text-decoration: none !important;
}
body.woocommerce-cart.sm-cart-checkout-first .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart.sm-cart-checkout-first .wc-proceed-to-checkout .checkout-button:focus {
	background: #4e0a11 !important;
	color: #fff !important;
}

/* Default WooCommerce cross-sells — hidden; custom recs section is enough */
body.woocommerce-cart.sm-cart-checkout-first .cross-sells {
	display: none !important;
}

/* Recs sit below checkout, full width, slightly calmer than the pay button */
body.woocommerce-cart.sm-cart-checkout-first #santa-cart-recommendations {
	margin-top: 12px !important;
	margin-bottom: 40px !important;
	padding-top: 8px !important;
}

/* Fixed checkout bar on phones, so Finalizar compra is always visible */
body.woocommerce-cart.sm-cart-checkout-first .sm-sticky-checkout {
	display: none;
}
@media (max-width: 767px) {
	body.woocommerce-cart.sm-cart-checkout-first .sm-sticky-checkout {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -8px 24px rgba(59, 26, 22, 0.14);
	}
	body.woocommerce-cart.sm-cart-checkout-first .sm-sticky-checkout .sm-sticky-total {
		font-size: 15px;
		font-weight: 700;
		color: #3b1a16;
		white-space: nowrap;
	}
	body.woocommerce-cart.sm-cart-checkout-first .sm-sticky-checkout .checkout-button {
		flex: 1 1 auto;
		display: block;
		text-align: center;
		min-height: 48px;
		padding: 12px 16px;
		border-radius: 10px;
		background: #650d16;
		color: #fff !important;
		font-size: 16px;
		font-weight: 700;
		text-decoration: none !important;
		line-height: 1.3;
	}
	body.woocommerce-cart.sm-cart-checkout-first {
		padding-bottom: 86px;
	}
	body.woocommerce-cart.sm-cart-checkout-first #chaty-widget-0,
	body.woocommerce-cart.sm-cart-checkout-first .sm-awards {
		bottom: 86px !important;
	}
}

/* Hide the sticky pay bar when the cart is empty */
body.woocommerce-cart.sm-cart-checkout-first.sm-cart-empty .sm-sticky-checkout,
body.woocommerce-cart.sm-cart-checkout-first .sm-sticky-checkout.is-empty {
	display: none !important;
}
