/*
 * Le Toy Factory — Cesta + Checkout (P24)
 * Tablero: Cesta.dc.html 1440×1802.
 */

/* ── Rejilla de 12 columnas (.ltf-g12) ──────────────────────────────────────
   home.css la define para portada; cesta y checkout la usan también. */

.ltf-g12 {
	display: grid;
	grid-template-columns: repeat(var(--ltf-cols, 12), minmax(0, 1fr));
	column-gap: var(--ltf-medianil, 16px);
	padding-inline: var(--ltf-margen, 24px);
}

/* ── Texto apagado ───────────────────────────────────────────────────────── */

.ltf-muted {
	color: #65605E;
}

/* ── Barra de pasos ──────────────────────────────────────────────────────── */

.ltf-cesta-steps-bar {
	display: flex;
	justify-content: center;
	padding: 16px 24px;
}

.ltf-cesta-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: center;
}

.ltf-cesta-steps__item {
	display: flex;
	flex-direction: row;
	gap: 12px;
	align-items: center;
}

/* ── Área principal: 12 col grid ─────────────────────────────────────────── */

.ltf-cesta-main {
	align-items: start;
}

/* ── Columna izquierda: items ─────────────────────────────────────────────── */

.ltf-cesta-items {
	grid-column: 1 / span 8;
}

.ltf-cesta-items__sub {
	font-size: 14px;
	margin: 10px 0 0;
}

/* ── Fila de artículo ────────────────────────────────────────────────────── */

.ltf-cesta-item {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	column-gap: 16px;
	padding: 20px 0;
	border-top: 1px solid #DFDEDE;
	align-items: start;
}

.ltf-cesta-items__sep {
	height: 1px;
	background: #DFDEDE;
}

/* Foto */
.ltf-cesta-item__ph {
	width: 96px;
	height: 120px; /* 4:5 */
}

/* Info */
.ltf-cesta-item__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ltf-cesta-item__nombre {
	margin: 0;
}

.ltf-cesta-item__nombre a {
	color: inherit;
	text-decoration: none;
}

.ltf-cesta-item__meta {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.ltf-cesta-item__actions {
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: center;
	margin-top: 8px;
}

/* Stepper cantidad */
.ltf-cesta-qty {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 96px;
	height: 32px;
}

.ltf-cesta-qty__btn {
	all: unset;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	color: #141212;
	text-align: center;
	flex-shrink: 0;
}

.ltf-cesta-qty__btn:hover {
	opacity: .6;
}

.ltf-cesta-qty__input {
	-webkit-appearance: none;
	-moz-appearance: textfield;
	appearance: textfield;
	border: 0;
	border-radius: 0;
	background: transparent;
	width: 32px;
	height: 32px;
	font-family: inherit;
	font-size: 14px;
	color: #141212;
	text-align: center;
	outline: none;
	padding: 0;
}

.ltf-cesta-qty__input::-webkit-inner-spin-button,
.ltf-cesta-qty__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

/* Botón quitar */
.ltf-cesta-item__quitar {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
}

/* Precio por item */
.ltf-cesta-item__precio {
	margin: 0;
	font-size: 14px;
	text-align: right;
	white-space: nowrap;
}

/* Botón oculto de actualización (funcional, no visible en el diseño) */
.ltf-cesta-form__update {
	display: none;
}

/* Seguir comprando */
.ltf-cesta-items__seguir,
.ltf-cesta-items__vacia {
	display: inline-block;
	margin-top: 24px;
	font-size: 13px;
}

/* ── Columna derecha: resumen ─────────────────────────────────────────────── */

.ltf-cesta-aside {
	grid-column: 9 / span 4;
}

.ltf-cesta-aside__label {
	margin: 0 0 20px;
}

/* ── Cupón ───────────────────────────────────────────────────────────────── */

.ltf-cesta-cupon {
	border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6);
	margin-bottom: 0;
}

.ltf-cesta-cupon__details {
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}

.ltf-cesta-cupon__toggle {
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	font-size: 14px;
	cursor: pointer;
}

.ltf-cesta-cupon__toggle::-webkit-details-marker {
	display: none;
}

.ltf-cesta-cupon__icon {
	font-size: 14px;
	transition: transform .3s;
}

.ltf-cesta-cupon__details[open] .ltf-cesta-cupon__icon {
	transform: rotate(45deg);
}

.ltf-cesta-cupon__form {
	padding-bottom: 16px;
}

.ltf-cesta-cupon__field {
	display: flex;
	border-bottom: 1px solid #141212;
}

.ltf-cesta-cupon__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	color: #141212;
	outline: none;
	padding: 0;
}

.ltf-cesta-cupon__input::placeholder {
	color: #65605E;
}

.ltf-cesta-cupon__btn {
	all: unset;
	box-sizing: border-box;
	height: 40px;
	padding-inline: 16px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	color: #141212;
	flex-shrink: 0;
}

/* ── Totales ─────────────────────────────────────────────────────────────── */

.ltf-cesta-totales {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 16px;
	padding: 16px 0 0;
	margin: 0;
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}

.ltf-cesta-totales__dt,
.ltf-cesta-totales__dd {
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
}

.ltf-cesta-totales__dd {
	text-align: right;
	color: #141212;
}

.ltf-cesta-totales__dd--pending {
	font-size: 12px;
	color: #65605E;
	text-align: right;
}

.ltf-cesta-totales__dd--coupon {
	color: #141212;
}

.ltf-cesta-totales__dt--total,
.ltf-cesta-totales__dd--total {
	font-size: 15px;
	color: #141212;
}

/* ── IVA + CTA ───────────────────────────────────────────────────────────── */

.ltf-cesta-aside__iva {
	margin: 8px 0 0;
	font-size: 12px;
}

.ltf-cesta-aside__btn {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	justify-content: center;
	align-items: center;
	margin-top: 24px;
	background: #141212;
	color: #FBFBFA;
	text-decoration: none;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	transition: opacity .2s;
}

.ltf-cesta-aside__btn:hover {
	opacity: .85;
}

/* ── Info list ───────────────────────────────────────────────────────────── */

.ltf-cesta-aside__info {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ltf-cesta-aside__info-item {
	font-size: 13px;
	line-height: 1.5;
	padding: 12px 0;
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}

.ltf-cesta-aside__info-item:last-child {
	border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6);
}

/* ── Cross-sell: "Completa el look" ──────────────────────────────────────── */

.ltf-cesta-reco {
	padding-top: 160px;
}

.ltf-cesta-reco__head {
	grid-column: 1 / -1;
}

.ltf-cesta-reco__item {
	text-decoration: none;
	color: inherit;
	display: block;
}

.ltf-cesta-reco__ph {
	aspect-ratio: 4 / 5;
	height: unset; /* hereda aspect-ratio */
}

.ltf-cesta-reco__cap {
	margin-top: 10px;
}

/* ── Responsive: tablet ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.ltf-cesta-items {
		grid-column: 1 / -1;
		order: 1;
	}

	.ltf-cesta-aside {
		grid-column: 1 / -1;
		order: 0; /* resumen primero en móvil */
	}

	.ltf-cesta-reco__item {
		grid-column: span 2 !important;
	}
}

/* ── Responsive: móvil 390 px ────────────────────────────────────────────── */

@media (max-width: 390px) {
	/* Steps bar: padding 16 px lateral */
	.ltf-cesta-steps-bar {
		padding: 12px 16px;
	}

	.ltf-cesta-steps {
		gap: 12px;
	}

	/* Grid principal: 16 px de padding (tablero M-Cesta usa g4 = 0 16px) */
	.ltf-cesta-main {
		padding-inline: 16px;
	}

	/* Orden: items primero (1), resumen debajo (2) —
	   el breakpoint 900px pone aside en order:0; aquí lo revertimos. */
	.ltf-cesta-items {
		grid-column: 1 / -1;
		order: 1;
	}

	.ltf-cesta-aside {
		grid-column: 1 / -1;
		order: 2;
		margin-top: 24px;
	}

	/* Item: imagen 80 px × 100 px (4:5), igual que el tablero */
	.ltf-cesta-item {
		grid-template-columns: 80px 1fr auto;
	}

	.ltf-cesta-item__ph {
		width: 80px;
		height: 100px;
	}

	/* Cross-sell: 2 tarjetas por fila. En móvil la rejilla es de 4 columnas,
	   no de 12: con `span 6` cada tarjeta ocupaba la fila entera. */
	.ltf-cesta-reco__item {
		grid-column: span 2 !important;
	}
}

/* ── Artículos de un pedido (la confirmación, woocommerce/checkout/thankyou.php) */

.ltf-co-item {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	column-gap: 16px;
	align-items: start;
}

.ltf-co-item__ph {
	width: 96px;
	height: 120px;
	background: #FBFBFA;
}

.ltf-co-item__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ltf-co-item__info p {
	margin: 0;
	font-size: 14px;
}

.ltf-co-item__precio {
	font-size: 14px;
	white-space: nowrap;
}

/* ── Responsive: móvil 390 px ────────────────────────────────────────────── */

@media (max-width: 390px) {
	.ltf-co-item {
		grid-template-columns: 72px 1fr auto;
	}

	.ltf-co-item__ph {
		width: 72px;
		height: 90px;
	}
}


/* ═══════════════════════════════════════════════════════════════════════════
   P28 — CONFIRMACIÓN PEDIDO (/finalizar-compra/order-received/)
   Tablero: Confirmacion.dc.html 1440×1887
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Steps bar: conector entre pasos ────────────────────────────────────── */

.ltf-th-steps .ltf-th-steps__conector {
	display: block;
	width: 64px;
	height: 1px;
	background: #141212;
	flex-shrink: 0;
}

/* ── Hero section ───────────────────────────────────────────────────────── */

.ltf-th-hero {
	align-items: end;
	padding-top: 72px;
}

.ltf-th-hero__info {
	grid-column: 1 / span 6;
	align-self: end;
}

.ltf-th-h1 {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 8px 0 0;
}

.ltf-th-intro {
	font-size: 14px;
	line-height: 1.55;
	max-width: 46ch;
	margin-top: 14px;
}

.ltf-th-caja {
	grid-column: 9 / span 4;
	margin: 0;
}

.ltf-th-caja__ph {
	aspect-ratio: 4 / 5;
	width: 100%;
	height: auto;
}

.ltf-th-caja__ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Estado timeline ────────────────────────────────────────────────────── */

.ltf-th-timeline {
	list-style: none;
	margin: 72px 0 0;
	padding: 0;
	align-items: start;
}

.ltf-th-timeline__item {
	grid-column: span 3;
	padding-top: 14px;
	border-top: 1px solid #DFDEDE;
}

.ltf-th-timeline__item p {
	margin: 0;
}

.ltf-th-timeline__item--on {
	border-top-color: #141212;
}

.ltf-th-timeline__item--on p {
	color: #141212;
}

.ltf-th-timeline__sub {
	font-size: 13px;
	margin-top: 6px !important;
}

/* ── Pedido section ─────────────────────────────────────────────────────── */

.ltf-th-pedido {
	padding-top: 96px;
	align-items: start;
}

.ltf-th-pedido__lista {
	grid-column: 1 / span 6;
	display: flex;
	flex-direction: column;
}

.ltf-th-pedido__label {
	margin: 0 0 20px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ltf-th-pedido .ltf-co-item {
	padding: 20px 0;
	border-top: 1px solid #DFDEDE;
}

.ltf-th-pedido .ltf-co-item__ph {
	aspect-ratio: 4 / 5;
	height: auto;
	width: 96px;
}

.ltf-th-meta {
	font-size: 12px;
	margin-top: 4px;
}

.ltf-th-pedido__sep {
	border-top: 1px solid #DFDEDE;
}

/* ── DL totales confirmación ────────────────────────────────────────────── */

.ltf-th-dl {
	grid-column: 8 / span 5;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px 16px;
	font-size: 14px;
	margin: 0;
	align-self: start;
}

.ltf-th-dl dt {
	font-weight: 400;
}

.ltf-th-dl dd {
	margin: 0;
	text-align: right;
}

.ltf-th-dl__total {
	color: #141212;
	font-weight: 400;
}

/* ── Crear cuenta section ───────────────────────────────────────────────── */

.ltf-th-cuenta {
	padding-top: 96px;
	align-items: center;
	padding-bottom: 120px;
}

.ltf-th-cuenta__texto {
	grid-column: 1 / span 6;
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
}

.ltf-th-btn-sec {
	grid-column: 9 / span 4;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	font-size: 11px;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: #141212;
	background: transparent;
	box-shadow: inset 0 0 0 1px #141212;
	transition: background 0.2s, color 0.2s;
}

.ltf-th-btn-sec:hover {
	background: #141212;
	color: #FBFBFA;
}

/* ── Responsive: tablet 900 px ──────────────────────────────────────────── */

@media (max-width: 900px) {
	.ltf-th-hero__info {
		grid-column: 1 / -1;
	}

	.ltf-th-caja {
		grid-column: 1 / -1;
	}

	.ltf-th-timeline__item {
		grid-column: span 6;
	}

	.ltf-th-pedido__lista {
		grid-column: 1 / -1;
	}

	.ltf-th-dl {
		grid-column: 1 / -1;
		margin-top: 40px;
	}

	.ltf-th-cuenta__texto {
		grid-column: 1 / -1;
	}

	.ltf-th-btn-sec {
		grid-column: 1 / -1;
	}
}

/* ── Responsive: móvil 390 px ───────────────────────────────────────────── */

@media (max-width: 390px) {
	.ltf-th-timeline__item {
		grid-column: span 12;
	}

	.ltf-th-h1 {
		font-size: 18px;
	}

	.ltf-th-pedido {
		padding-top: 60px;
	}

	.ltf-th-cuenta {
		padding-top: 60px;
		align-items: start;
	}
}

/* Móvil 390: los artículos de la confirmación, compactos. (Este bloque era
   el del checkout clásico a 390, M-Checkout; el checkout es ahora el de
   bloques, css/checkout.css. Quedan las reglas que también pinta la
   confirmación.) */
@media (max-width: 390px) {
	.ltf-co-item {
		grid-template-columns: 64px 1fr auto;
		column-gap: 12px;
	}

	.ltf-co-item__ph {
		width: 64px;
		height: 80px;
	}
}

/* ══ Cesta y checkout: el marco de la página ═════════════════════════════════
   Las dos son páginas de WordPress y el padre las mete en su caja de lectura
   (1120 centrada, con el aire de un artículo). Los tableros van a toda la
   retícula: aquí se quita la caja y cada bloque pone su margen. */
.woocommerce-cart .sgf-site-main.sgf-page,
.woocommerce-checkout .sgf-site-main.sgf-page { padding: 0; margin: 0; max-width: none; }
.woocommerce-cart .sgf-page > .sgf-container,
.woocommerce-checkout .sgf-page > .sgf-container { max-width: none; width: auto; margin: 0; padding: 0; }
.woocommerce-cart .sgf-page .sgf-entry,
.woocommerce-checkout .sgf-page .sgf-entry,
.woocommerce-cart .sgf-page .sgf-entry__content,
.woocommerce-checkout .sgf-page .sgf-entry__content { max-width: none; margin: 0; padding: 0; }
.woocommerce-cart .sgf-entry__content > .woocommerce,
.woocommerce-checkout .sgf-entry__content > .woocommerce { max-width: none; }
/* La lectura a 64–68ch es para texto corrido, no para estas rejillas. */
.woocommerce-cart .sgf-entry__content :is(p, ul, ol, dl, li, dd),
.woocommerce-checkout .sgf-entry__content :is(p, ul, ol, dl, li, dd) { max-width: none; }
/* Las fotos llenan su marco; base.css les pone `height: auto` a todas las del
   contenido y aquí se estiraban a lo alto del original. */
.woocommerce-cart .ltf-ph, .woocommerce-checkout .ltf-ph { overflow: hidden; background: var(--sgf-color-bg-alt); }
.woocommerce-cart .sgf-entry__content .ltf-ph img,
.woocommerce-checkout .sgf-entry__content .ltf-ph img { display: block; width: 100%; height: 100% !important; object-fit: cover; }

/* ── Pasos de la compra: los del padre, con la piel del tablero ─────────────
   «01 Tus toys —— 02 Envío y pago —— 03 Confirmación», a 12 en mayúsculas,
   centrados a 39 de la cabecera. El número es un contador: el padre pinta
   un círculo con 1, 2, 3 (o una marca), que aquí no se enseña. */
.woocommerce-cart .sgf-checkout-steps,
.woocommerce-checkout .sgf-checkout-steps { margin: 0; padding: 39px var(--ltf-margen) 0; }
.sgf-checkout-steps .sgf-checkout-steps__list { justify-content: center; gap: 20px; counter-reset: ltf-paso; font-size: 12px; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; }
.sgf-checkout-steps .sgf-checkout-steps__item { gap: 12px; counter-increment: ltf-paso; color: var(--sgf-color-muted); }
.sgf-checkout-steps .sgf-checkout-steps__item.is-current { color: var(--sgf-color-text); }
.sgf-checkout-steps .sgf-checkout-steps__mark { display: none; }
.sgf-checkout-steps .sgf-checkout-steps__item::before { content: counter(ltf-paso, decimal-leading-zero); font-variant-numeric: tabular-nums; }
.sgf-checkout-steps .sgf-checkout-steps__label { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-decoration: none; }
.sgf-checkout-steps .sgf-checkout-steps__item:not(:last-child)::after { flex: none; width: 64px; margin-left: 0; background: var(--sgf-color-border); }

/* ── Cesta: medidas del tablero (medidas/Cesta.json) ────────────────────── */
.woocommerce-cart .ltf-cesta-main { padding-top: 72px; }
.woocommerce-cart .ltf-cesta-items { grid-column: 1 / span 7; }
.woocommerce-cart .ltf-cesta-aside { grid-column: 9 / span 4; }
.woocommerce-cart .ltf-cesta-main h1 { margin: 0; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.woocommerce-cart .ltf-cesta-items__sub { margin: 5px 0 24px; font-size: 14px; line-height: 17px; }

.woocommerce-cart .ltf-cesta-item__nombre,
.woocommerce-cart .ltf-cesta-item__nombre a { font-size: 12px; line-height: 16px; }
.woocommerce-cart .ltf-cesta-item__meta { font-size: 13px; line-height: 17px; }
.woocommerce-cart .ltf-cesta-item__actions { margin-top: 10px; }
.woocommerce-cart .ltf-cesta-item__quitar { line-height: 14px; }
.woocommerce-cart .ltf-cesta-item__precio { font-size: 14px; line-height: 17px; }
.woocommerce-cart .ltf-cesta-reco__head { height: 16px; align-items: center; }
.woocommerce-cart .ltf-cesta-reco__head :is(h2, a) { margin: 0; font-size: 12px; line-height: 14px; font-weight: 400; }
.woocommerce-cart .ltf-cesta-reco__cap { line-height: 16px; }

/* Resumen */
.woocommerce-cart .ltf-cesta-aside__label { margin: 0 0 15px; line-height: 16px; }
.woocommerce-cart .ltf-cesta-cupon__toggle { height: 50px; padding: 0; font-size: 14px; line-height: 17px; }
.woocommerce-cart .ltf-cesta-totales { border-top: 0; padding-top: 17px; row-gap: 10px; }
.woocommerce-cart .ltf-cesta-totales :is(dt, dd) { font-family: inherit; font-size: 14px; line-height: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.woocommerce-cart .ltf-cesta-totales :is(.ltf-cesta-totales__dt--total, .ltf-cesta-totales__dd--total) { font-size: 15px; line-height: 18px; color: var(--sgf-color-text); }
.woocommerce-cart .ltf-cesta-aside__iva { margin: 6px 0 0; line-height: 14px; letter-spacing: 0; text-transform: none; }
.woocommerce-cart .ltf-cesta-aside__info { margin-top: 24px; }
/* El enlace a las condiciones va en la frase, no como rótulo. */
.woocommerce-cart .ltf-cesta-aside__info .ltf-lnk { font-size: inherit; letter-spacing: 0; text-transform: none; }

/* Cantidad: una caja de 96 × 32 con su línea y tres celdas de 32. El campo
   es el de WooCommerce y traía el borde, el fondo y el alto de un campo de
   formulario del padre. */
.woocommerce-cart .ltf-cesta-qty { box-sizing: border-box; border: 1px solid var(--sgf-color-border); }
.woocommerce-cart .ltf-cesta-qty .ltf-cesta-qty__btn { width: 31px; height: 30px; }
.woocommerce-cart .ltf-cesta-qty .ltf-cesta-qty__input {
	width: 32px; height: 30px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	background: none; font-size: 14px; line-height: 30px; text-align: center; color: var(--sgf-color-text);
}

/* El botón de «Finalizar compra» es el de WooCommerce. */
.woocommerce-cart .ltf-cesta-aside__ir { margin: 20px 0 0; }
.woocommerce-cart .ltf-cesta-aside__ir a.checkout-button.button {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 48px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: var(--sgf-color-text); color: var(--sgf-color-bg);
	font-size: 12px; font-weight: 400; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
	transition: opacity .3s cubic-bezier(.16, 1, .3, 1);
}
.woocommerce-cart .ltf-cesta-aside__ir a.checkout-button.button:hover { opacity: .8; background: var(--sgf-color-text); color: var(--sgf-color-bg); }
.woocommerce-cart .ltf-cesta-aside__ir a.checkout-button.button:focus-visible { outline: 2px solid var(--sgf-color-text); outline-offset: 3px; }

/* «Completa el look»: 160 por arriba, 200 hasta el pie. */
.woocommerce-cart .ltf-cesta-reco { padding-top: 160px; padding-bottom: 200px; row-gap: 0; }
@media (max-width: 900px) {
	.woocommerce-cart .ltf-cesta-main { padding-top: 40px; }
	.woocommerce-cart .ltf-cesta-items,
	.woocommerce-cart .ltf-cesta-aside { grid-column: 1 / -1; }
	.woocommerce-cart .ltf-cesta-reco { padding-top: 88px; padding-bottom: 112px; }
	.sgf-checkout-steps .sgf-checkout-steps__item:not(:last-child)::after { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.woocommerce-cart .ltf-cesta-aside__ir a.checkout-button.button { transition: none; }
}


/* Cesta vacía (la página): el aviso y el botón de WooCommerce, con el margen
   de la página y aire por arriba. Debajo va el carril «Por dónde empezar»
   del padre. No hay tablero de esta pantalla: el de cesta vacía es el cajón. */
.woocommerce-cart .sgf-entry__content > .woocommerce > :is(.wc-empty-cart-message, .cart-empty, .return-to-shop) { margin: 0; padding: 0 var(--ltf-margen); }
.woocommerce-cart .sgf-entry__content > .woocommerce > .wc-empty-cart-message { padding-top: 72px; }
.woocommerce-cart .sgf-entry__content > .woocommerce > .return-to-shop { padding-top: 24px; padding-bottom: 88px; }
/* «Tu carrito está vacío.» WooCommerce lo escribe con clase de aviso, pero no
   avisa de nada que acabe de pasar: es lo que dice la página. Sin filetes y
   al cuerpo de una frase de página (como la del 404). Desde el delta 09 es el
   <h1> de la página (inc/ltf-cesta.php): sin el peso ni el tracking de los
   titulares, se sigue leyendo como la frase que era. */
.woocommerce-cart .wc-empty-cart-message .cart-empty { display: block; margin: 0; padding: 0; border: 0; font-size: 20px; font-weight: 400; line-height: 1.35; letter-spacing: normal; }

/* ══ Checkout: en css/checkout.css ══════════════════════════════════════════
   Desde el 15 nov 2026 es el checkout de bloques de WooCommerce; su piel y la
   cabecera propia del checkout están allí. */

/* ══ Pedido confirmado: ajuste al tablero (medidas/Confirmacion.json) ════════ */
/* Los pasos, en versalita a 12 y 40 por debajo de la cabecera. */
.ltf-th-steps { padding-top: 40px; font-size: 12px; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; }
.ltf-th-steps :is(span, a) { font-size: inherit; line-height: inherit; }
/* La línea de estados es una lista: el padre le quita el margen lateral. */
ol.ltf-th-timeline.ltf-g12 { padding-inline: var(--ltf-margen); list-style: none; margin-inline: 0; }
/* La ficha del pedido: términos a 14 en gris, sin versalita. */
.ltf-th-dl dt { font-family: inherit; font-size: 14px; line-height: 17px; letter-spacing: 0; text-transform: none; }
.ltf-th-dl dd { font-size: 14px; line-height: 17px; }
.ltf-th-meta { margin: 6px 0 0; max-width: none; font-size: 13px; line-height: 17px; }
.ltf-th-btn-sec { font-size: 12px; }
/* En móvil los tres pasos caben en una línea: rótulos sin partir y el
   conector cede el ancho que sobra. */
@media (max-width: 600px) {
	.ltf-th-steps { gap: 8px; padding-top: 28px; padding-inline: var(--ltf-margen); justify-content: space-between; }
	.ltf-th-steps .ltf-cesta-steps__item { gap: 6px; white-space: nowrap; min-width: 0; }
	.ltf-th-steps .ltf-cesta-steps__item:not(:last-child) { flex: 1 1 auto; }
	.ltf-th-steps .ltf-th-steps__conector { flex: 1 1 8px; width: auto; min-width: 8px; }
	/* La foto de la línea mide 96 también aquí: la columna la acompaña. */
	.ltf-th-pedido .ltf-co-item { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; }
}

