/* ============================================
   CART FLOW PASO 1 - Esqueleto: header mínimo,
   progreso e indicador temporal
   ============================================ */
.checkout-header {
	height: 64px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8eaf0);
	box-sizing: border-box;
}

.continue-shopping {
	position: absolute;
	left: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--navy, #172044);
	text-decoration: none;
}

.continue-shopping:hover {
	text-decoration: underline;
}

.checkout-brand {
	display: inline-flex;
	align-items: center;
}

.checkout-brand img {
	width: 180px;
	height: auto;
	display: block;
}

.checkout-main {
	display: block;
}

.checkout-progress {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 15px 0 30px;
	width: min(1870px, 95vw);
	margin: 0 auto;
	box-sizing: border-box;
}

.checkout-progress div {
	text-align: center;
	color: #777777;
}

.checkout-progress strong {
	display: block;
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 10px;
}

.checkout-progress span {
	display: block;
	height: 11px;
	border-radius: 8px;
	background: #f0f0f2;
}

.checkout-progress .active {
	color: var(--wp--preset--color--navy, #172044);
}

.checkout-progress .active strong {
	font-weight: 700;
}

.checkout-progress .active span,
.checkout-progress .completed span {
	background: var(--wp--preset--color--promo-amber, #FFB100);
}

.checkout-progress .completed {
	color: var(--wp--preset--color--navy, #172044);
}

.cart-shell-notice {
	text-align: center;
	color: #687080;
	font-size: 15px;
	padding: 40px 20px 80px;
	margin: 0;
}

@media (max-width: 700px) {
	.checkout-header {
		height: 58px;
	}

	.continue-shopping {
		left: 14px;
		font-size: 0;
	}

	.continue-shopping svg {
		width: 20px;
		height: 20px;
	}

	.checkout-brand img {
		width: 140px;
	}

	.checkout-progress {
		padding: 10px 16px 22px;
		gap: 6px;
	}

	.checkout-progress strong {
		font-size: 12px;
	}

	.checkout-progress span {
		height: 7px;
	}
}

/* -------------------------------------------
   Layout + resumen
   ------------------------------------------- */
.checkout-layout {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr;
	gap: 6vw;
	width: min(1870px, 95vw);
	margin: 0 auto;
	padding: 20px 0 80px;
	box-sizing: border-box;
}

.cart-summary {
	border-left: 1px solid #eeeeee;
	padding-left: 30px;
	min-width: 0;
}

.cart-summary h2 {
	font-size: 24px;
	font-weight: 500;
	color: var(--wp--preset--color--navy, #172044);
	margin: 0 0 20px;
	letter-spacing: -0.01em;
}

.promo-link,
.city-link {
	border: 0;
	background: none;
	color: var(--wp--preset--color--blue, #258cff);
	font-weight: 600;
	font-size: 13px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	margin-bottom: 12px;
}

.promo-link:hover,
.city-link:hover {
	text-decoration: underline;
}

.cart-coupon-form {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.cart-coupon-form[hidden] {
	display: none;
}

.cart-coupon-input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--wp--preset--color--border, #e8eaf0);
	border-radius: 0;
	padding: 10px 12px;
	font-size: 14px;
	outline: 0;
}

.cart-coupons-list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cart-coupons-list li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--gray-light, #f4f5f6);
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 600;
}

.cart-coupons-list a {
	text-decoration: none;
	color: inherit;
	font-size: 16px;
}

.summary-line,
.summary-total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #dddddd;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 500;
	color: #30333b;
}

.summary-total {
	font-size: 16px;
	margin: 14px 0;
}

.summary-total span {
	font-weight: 600;
}

.summary-total b {
	font-size: 24px;
	font-weight: 800;
	color: var(--wp--preset--color--navy, #172044);
}

.cart-shipping-note,
.cart-pickup-note {
	font-size: 12px;
	color: #8992a4;
	margin: 2px 0 6px;
}

.cart-pickup-note {
	color: #00ad27;
	font-weight: 600;
}

.free-shipping {
	background: #fafafa;
	padding: 14px;
	margin: 12px 0;
}

.free-shipping b {
	display: block;
	font-size: 14px;
	color: var(--wp--preset--color--navy, #172044);
}

.free-shipping span {
	display: block;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border, #e8eaf0);
	height: 13px;
	border-radius: 8px;
	margin: 12px 0;
	overflow: hidden;
}

.free-shipping i {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--promo-amber, #FFB100);
	transition: width 0.4s ease;
}

.free-shipping small {
	font-size: 12px;
	color: #687080;
}

.cart-free-done {
	margin: 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #00ad27;
}

.primary,
.whatsapp {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border: 0;
	border-radius: 28px;
	padding: 15px 24px;
	font-size: 0.76em;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none !important;
}

.primary {
	background: var(--wp--preset--color--promo-blue, #172044);
	color: #fff !important;
}

.primary:hover {
	filter: brightness(1.15);
	color: #fff !important;
}

.wide {
	width: 100%;
	box-sizing: border-box;
	margin-top: 18px;
}

.whatsapp {
	border: 1px solid var(--wp--preset--color--navy, #172044);
	background: #fff;
	gap: 8px;
	color: var(--wp--preset--color--navy, #172044) !important;
	margin-top: 14px;
}

.whatsapp:hover {
	background: var(--wp--preset--color--navy, #172044);
	color: #fff !important;
}

.cart-summary h3 {
	margin: 28px 0 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #172044);
}

.payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.payments img {
	height: 60px;
	width: auto;
	object-fit: contain;
}

.summary-benefits {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
	line-height: 3;
}

.summary-benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #535761;
}

.summary-benefits svg {
	color: #00ad27;
	flex-shrink: 0;
}

@media (max-width: 1024px) {
	.checkout-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
.cart-items {
	min-width: 0;
}

.cart-items h1 {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	color: var(--wp--preset--color--navy, #172044);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}

.cart-items > h3 {
	font-size: 16px;
	font-weight: 400;
	color: #687080;
	margin: 0 0 6px;
}

.cart-item {
	display: grid;
	grid-template-columns: 220px 1fr auto;
	gap: 24px;
	align-items: start;
	margin: 28px 0;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8eaf0);
}

.cart-item > a {
	display: block;
	background: var(--wp--preset--color--gray-light, #f4f5f6);
	border-radius: 0;
	overflow: hidden;
}

.cart-item img {
	width: 220px;
	height: 220px;
	object-fit: contain;
	mix-blend-mode: multiply;
	display: block;
}

.cart-item h2 {
	font-size: 18px;
	font-weight: 600;
	max-width: 360px;
	margin: 8px 0 10px;
	color: #30333b;
	line-height: 1.35;
}

.cart-item h2 a {
	color: inherit;
	text-decoration: none;
}

.cart-item h2 a:hover {
	text-decoration: underline;
}

.cart-item-unit {
	font-size: 13px;
	color: #8992a4;
	margin-bottom: 14px;
}

.cart-item-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.quantity {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1.5px solid #d1d5db;
	border-radius: 24px;
	padding: 3px;
	background: #ffffff;
}

.cart-qty-btn {
	border: 0;
	background: #f4f5f6;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #172044);
	cursor: pointer;
}

.cart-qty-btn:hover {
	background: #e5e7eb;
}

.cart-qty-input {
	width: 44px;
	text-align: center;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #172044);
	font-family: inherit;
}

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

.cart-qty-input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.cart-remove a {
	font-size: 13px;
	color: #687080;
	text-decoration: underline;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cart-remove a:hover {
	color: var(--wp--preset--color--crimson-red, #DC2626);
}

.cart-item > b {
	background: var(--wp--preset--color--promo-amber, #FFB100);
	color: var(--wp--preset--color--navy, #172044);
	padding: 8px 10px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.cart-items-foot {
	margin-top: 6px;
	display: flex;
	justify-content: flex-end;
}

.cart-empty {
	text-align: center;
	padding: 60px 20px 80px;
	max-width: 640px;
	margin: 0 auto;
}

.cart-empty-title {
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: 500;
	color: var(--wp--preset--color--navy, #172044);
	margin: 0 0 12px;
}

.cart-empty-desc {
	color: #687080;
	font-size: 15px;
	margin: 0 0 26px;
}

@media (max-width: 700px) {
	.checkout-layout {
		padding: 18px 16px 50px;
	}

	.cart-items h1 {
		font-size: 30px;
	}

	.cart-item {
		grid-template-columns: 100px 1fr;
		gap: 14px;
	}

	.cart-item img {
		width: 100px;
		height: 100px;
	}

	.cart-item h2 {
		font-size: 14px;
		margin: 0 0 8px;
	}

	.cart-item > b {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		font-size: 12px;
	}

	.payments {
		gap: 12px 14px;
	}

	.payments img {
		height: 40px;
	}

	.cart-summary h2 {
		font-size: 25px;
	}

	.summary-benefits {
		line-height: 2.3;
	}
}

/* Avisos de WooCommerce (cupones, stock) */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	max-width: 1200px;
	margin: 0 auto 18px;
	padding: 14px 18px;
	background: var(--wp--preset--color--gray-light, #f4f5f6);
	border-left: 4px solid var(--wp--preset--color--navy, #172044);
	color: var(--wp--preset--color--navy, #172044);
	font-size: 14px;
	list-style: none;
	box-sizing: border-box;
}

.woocommerce-error {
	border-left-color: var(--wp--preset--color--crimson-red, #DC2626);
}

.woocommerce-message {
	border-left-color: #00ad27;
}

.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
	color: inherit;
	font-weight: 600;
}

/* -------------------------------------------
   Stage envío
   ------------------------------------------- */
.shipping-stage {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px 2.5vw 80px;
	box-sizing: border-box;
	min-width: 0;
}

.checkout-layout .shipping-stage {
	max-width: none;
	margin: 0;
	padding: 0;
}

.shipping-stage h1 {
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 500;
	color: var(--wp--preset--color--navy, #172044);
	margin: 0 0 22px;
	letter-spacing: -0.01em;
}

.shipping-stage h2 {
	font-size: 19px;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #172044);
	margin: 0 0 8px;
}

.shipping-stage h2 a {
	float: right;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--blue, #258cff);
	text-decoration: none;
}

.shipping-stage h2 a:hover {
	text-decoration: underline;
}

.shipping-stage > p {
	color: #535761;
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 8px;
	white-space: pre-line;
}

.shipping-stage h3 {
	font-size: 16px;
	font-weight: 500;
	color: #687080;
	margin: 18px 0 0;
}

.delivery-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 24px 0;
}

.delivery-option {
	min-height: 110px;
	background: #fff;
	border: 1px solid #aaaaaa;
	border-radius: 0;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 8px;
	padding: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #172044);
	cursor: pointer;
}

.delivery-option small {
	font-weight: 400;
	color: #687080;
}

.delivery-option.selected {
	border: 2px solid var(--wp--preset--color--promo-blue, #172044);
	color: var(--wp--preset--color--promo-blue, #172044);
}

.store-choice {
	border-top: 1px solid #dddddd;
	border-bottom: 1px solid #dddddd;
	padding: 24px 0;
	margin: 20px 0;
}

.store-choice b {
	display: block;
	font-size: 16px;
	color: var(--wp--preset--color--navy, #172044);
}

.store-choice p {
	margin: 6px 0;
	color: #535761;
	font-size: 14px;
}

.store-choice small {
	color: #00ad27;
	font-size: 13px;
	font-weight: 600;
}

.shipping-error {
	color: var(--wp--preset--color--crimson-red, #DC2626);
	font-size: 13px;
	margin: 0 0 12px;
}

.shipping-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 16px 0 8px;
}

.shipping-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #172044);
	margin-bottom: 6px;
}

.shipping-optional {
	font-weight: 400;
	color: #8992a4;
}

.shipping-field input,
.shipping-field select {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border, #e8eaf0);
	border-radius: 0;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--wp--preset--color--navy, #172044);
	outline: 0;
	box-sizing: border-box;
	background: #fff;
	font-family: inherit;
}

.shipping-field input:focus,
.shipping-field select:focus {
	border-color: var(--wp--preset--color--promo-blue, #172044);
}

.shipping-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.shipping-back {
	text-align: center;
	padding: 0 16px 60px;
	margin: 0;
}

.shipping-back a {
	color: var(--wp--preset--color--blue, #258cff);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.shipping-back a:hover {
	text-decoration: underline;
}

@media (max-width: 700px) {
	.shipping-stage {
		padding: 18px 16px 50px;
	}

	.shipping-stage h1 {
		font-size: 30px;
	}

	.delivery-options {
		gap: 8px;
	}

	.delivery-option {
		font-size: 12px;
		min-height: 96px;
		padding: 10px;
	}
}
