/* ==========================================================================
   Carrito y Finalizar compra (maquetas 10 y 11). Móvil primero; escritorio desde 900 px.
   Se carga solo en esas dos pantallas.
   ========================================================================== */

body.marea-compra .ast-container { max-width: 1240px; padding-inline: 20px; display: block; }
body.marea-compra #primary { width: 100%; margin: 0; padding: 0; }
body.marea-compra .site-main,
body.marea-compra .ast-article-single,
body.marea-compra .entry-content { padding: 0; margin: 0; }
body.marea-compra .entry-header { margin: 0; padding: 16px 0 0; }
body.marea-compra .entry-title {
	margin: 0;
	font-size: 42px;
	line-height: 1.06;
	letter-spacing: -0.015em;
}
body.marea-compra .entry-title .marea-ac {
	font-family: var(--fuente-adorno);
	font-weight: 400;
	font-variation-settings: normal;
	letter-spacing: 0;
	color: var(--rosa-accion);
	font-size: 1.3em;
	line-height: 0.8;
}

/* Cuadro de totales / resumen (crema, 28 px de radio en móvil y 32 en escritorio) */
body.marea-compra .cart_totals,
body.marea-compra #order_review {
	background: var(--crema);
	border: 0 !important;
	box-shadow: none;
	border-radius: 28px;
	padding: clamp(26px, 3.4vw, 36px);
}

/* Mensajes de WooCommerce (producto añadido, errores): caja sencilla */
body.marea-compra .woocommerce-message,
body.marea-compra .woocommerce-info,
body.marea-compra .woocommerce-error {
	margin: 20px 0 0;
	padding: 14px 18px;
	border: 0;
	border-radius: 16px;
	background: var(--crema);
	color: var(--tinta);
	list-style: none;
}
body.marea-compra .woocommerce-message::before,
body.marea-compra .woocommerce-info::before,
body.marea-compra .woocommerce-error::before { display: none; }
body.marea-compra .woocommerce-error { border: 2px solid var(--rosa-accion); background: var(--fondo); font-weight: 600; }
body.marea-compra .woocommerce-message .button { float: right; margin-left: 12px; }

/* ==========================================================================
   Carrito
   ========================================================================== */
body.woocommerce-cart .woocommerce-cart-form { margin-top: 24px; }
body.woocommerce-cart table.shop_table.cart { border: 0; margin: 0; background: none; border-collapse: collapse; }
body.woocommerce-cart table.shop_table.cart thead { display: none; }
body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.shop_table.cart tbody { display: block; }
body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	column-gap: 14px;
	row-gap: 2px;
	padding: 20px 0;
	border-top: 1px solid rgba(34, 34, 34, 0.22);
	align-items: start;
}
body.woocommerce-cart table.shop_table.cart tbody tr:nth-last-child(2) { border-bottom: 1px solid rgba(34, 34, 34, 0.22); }
body.woocommerce-cart table.shop_table.cart td { display: block; padding: 0; border: 0; background: none; text-align: left; }
body.woocommerce-cart table.shop_table.cart td::before { display: none !important; content: none !important; }
body.woocommerce-cart td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; }
body.woocommerce-cart td.product-thumbnail img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 16px; background: var(--crema); margin: 0; max-width: none; }
body.woocommerce-cart td.product-name { grid-column: 2; grid-row: 1; min-width: 0; }
body.woocommerce-cart td.product-name > a { color: var(--tinta); font-weight: 600; font-size: 17px; line-height: 1.3; text-decoration: none; }
body.woocommerce-cart td.product-name dl.variation { margin: 4px 0 0; font-size: 15px; }
body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-cart td.product-name dl.variation dd { display: inline; margin: 0; }
body.woocommerce-cart td.product-name dl.variation dd p { display: inline; margin: 0; }
body.woocommerce-cart td.product-name dl.variation dt { margin-right: 0.3em; } /* espacio tras «Nombres:», «Color:»… */
body.woocommerce-cart td.product-name dl.variation dd::after { content: ""; display: block; }
body.woocommerce-cart table.shop_table.cart td.product-price { display: none; }
body.woocommerce-cart td.product-subtotal { grid-column: 3; grid-row: 1; font-weight: 700; white-space: nowrap; }
body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount { color: var(--rosa-accion); font-weight: 700; }
body.woocommerce-cart td.product-quantity { grid-column: 2 / 4; grid-row: 2; margin-top: 10px; }
body.woocommerce-cart td.product-remove { grid-column: 2 / 4; grid-row: 3; }
/* Líneas con cantidad bloqueada («2 unidades»): «Eliminar» justo debajo, más recogido. */
body.woocommerce-cart tr:has(.marea-cantidad-fija) td.product-quantity { margin-top: 6px; }
body.woocommerce-cart tr:has(.marea-cantidad-fija) td.product-remove { margin-top: -24px; }
/* «Eliminar» en texto, sin la × de Astra ni la × redonda */
body.woocommerce-cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	min-height: 44px;
	padding: 0 4px 0 0;
	border: 0;
	border-radius: 0;
	background: none !important;
	color: var(--rosa-accion) !important;
	font-size: 0;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}
body.woocommerce-cart td.product-remove a.remove::before { display: none !important; content: none !important; }
body.woocommerce-cart td.product-remove a.remove .ahfb-svg-iconset { display: none; } /* el icono × que Astra mete dentro del enlace */
body.woocommerce-cart td.product-remove a.remove::after { content: "Eliminar"; font-size: 16px; border: 0; background: none; width: auto; height: auto; position: static; transform: none; }

/* Cantidad con − y + */
body.woocommerce-cart .quantity { display: inline-flex; align-items: center; gap: 8px; }
body.woocommerce-cart .quantity .qty {
	width: 44px !important;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	font-weight: 600;
	font-size: 16px;
	-moz-appearance: textfield;
	appearance: textfield;
}
body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.marea-stp {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--tinta);
	border-radius: 50%;
	background: var(--fondo);
	color: var(--tinta);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
/* Las líneas personalizadas llevan la cantidad fija: solo se ve el número */
body.woocommerce-cart td.product-quantity .quantity:not(.marea-stp-listo) { font-weight: 600; }

/* Actualizar carrito: solo se ve si el navegador no ejecuta JavaScript */
body.woocommerce-cart table.shop_table.cart td.actions { display: block; padding: 36px 0 0; border: 0; } /* con la fuerza suficiente para ganar a «td { padding: 0 }» de arriba */
body.woocommerce-cart .woocommerce-cart-form { margin-bottom: 44px; }
/* Cupón: campo y botón en una fila, con el estilo de los demás campos */
body.woocommerce-cart td.actions .coupon { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 0 4px; padding: 0; float: none; }
body.woocommerce-cart td.actions .coupon label { position: absolute; left: -9999px; }
body.woocommerce-cart td.actions .coupon input#coupon_code {
	flex: 1 1 180px;
	width: auto !important;
	min-height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--tinta);
	border-radius: 16px;
	background: var(--fondo);
	color: var(--tinta);
	font-family: var(--fuente-texto);
	font-size: 16px;
	box-shadow: none;
}
body.woocommerce-cart td.actions .coupon button[name="apply_coupon"] {
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 24px;
	border: 1.5px solid var(--tinta);
	border-radius: 999px;
	background: transparent;
	color: var(--tinta);
	font-family: var(--fuente-texto);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
body.woocommerce-cart td.actions .coupon button[name="apply_coupon"]:hover { background: var(--crema); }
body.woocommerce-cart.woocommerce-js td.actions button[name="update_cart"] { position: absolute; left: -9999px; }
body.woocommerce-cart td.actions button[name="update_cart"] { border-radius: 999px; }
body.woocommerce-cart tr:has(> td.actions) { display: block; }

/* Aviso de Candy con una sola pieza (plugin) */
body.woocommerce-cart .marea-aviso { margin: 20px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--crema); font-weight: 600; }

/* Totales */
body.woocommerce-cart .cart-collaterals { margin-top: 28px; width: 100%; }
body.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; padding: clamp(26px, 3.4vw, 36px); } /* gana al padding 0 20px de Astra */
body.woocommerce-cart .cart_totals > h2 { display: none; }
body.woocommerce-cart .cart_totals table.shop_table { border: 0; margin: 0; background: none; width: 100%; display: table; }
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td { padding: 5px 0; border: 0; background: none; vertical-align: baseline; }
body.woocommerce-cart .cart_totals table.shop_table td { text-align: right; font-weight: 600; }
body.woocommerce-cart .cart_totals table.shop_table th { text-align: left; font-weight: 400; }
body.woocommerce-cart .cart_totals td::before { display: none !important; }
body.woocommerce-cart .cart_totals ul#shipping_method { list-style: none; margin: 0; padding: 0; }
body.woocommerce-cart .cart_totals ul#shipping_method li { margin: 0; padding: 0; }
body.woocommerce-cart .cart_totals ul#shipping_method input { display: none; }
body.woocommerce-cart .cart_totals ul#shipping_method label { margin: 0; font-weight: 600; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination { display: none; }
body.woocommerce-cart .cart_totals tr.order-total th,
body.woocommerce-cart .cart_totals tr.order-total td { padding-top: 12px; font-family: var(--fuente-titulo); font-weight: 700; }
body.woocommerce-cart .cart_totals tr.order-total th { font-size: 22px; }
body.woocommerce-cart .cart_totals tr.order-total td { font-size: 26px; }
body.woocommerce-cart .cart_totals tr.order-total td .includes_tax { display: block; font-family: var(--fuente-texto); font-variation-settings: normal; font-size: 13px; font-weight: 400; }
body.woocommerce-cart .cart_totals .woocommerce-Price-amount { color: inherit; }
.marea-nota-iva { margin: 12px 0 0; }
body.marea-compra .wc-proceed-to-checkout { padding: 0; margin: 0; }
body.marea-compra .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 20px 0 0;
	min-height: 58px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--rosa-accion);
	color: var(--fondo);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
}
.marea-seguir {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 8px;
	color: var(--tinta);
	font-weight: 600;
	text-decoration: none;
}

/* Carrito vacío */
body.woocommerce-cart .cart-empty {
	margin: 32px 0 0;
	padding: 40px 24px;
	border: 0;
	border-radius: 28px;
	background: var(--crema);
	text-align: center;
	font-family: var(--fuente-titulo);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.25;
	color: var(--tinta);
}
body.woocommerce-cart .cart-empty::before { display: none; }
body.woocommerce-cart .return-to-shop { margin: 24px 0 0; text-align: center; }
body.woocommerce-cart .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 32px;
	border-radius: 999px;
	background: var(--rosa-accion);
	color: var(--fondo);
	font-weight: 600;
	text-decoration: none;
}

/* ==========================================================================
   Finalizar compra
   ========================================================================== */
body.woocommerce-checkout form.checkout { margin-top: 8px; }
body.woocommerce-checkout #order_review_heading { display: none; }
body.woocommerce-checkout .marea-compra__seccion,
body.woocommerce-checkout .marea-compra__envio { margin-top: 28px; }
body.woocommerce-checkout .marea-compra__seccion h2,
body.woocommerce-checkout .marea-compra__envio h2 {
	margin: 0 0 16px;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: -0.015em;
}
body.woocommerce-checkout .marea-compra__envio p { margin: 0; }
body.woocommerce-checkout .marea-compra__envio p + h2 { margin-top: 28px; } /* «Pago» bajo «Envío», en la misma sección */
body.woocommerce-checkout #customer_details { display: block; width: auto !important; max-width: none !important; float: none !important; }
body.woocommerce-checkout #order_review { width: auto !important; max-width: none !important; float: none !important; }
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float: none !important; width: 100% !important; max-width: none; padding: 0; }
body.woocommerce-checkout #customer_details .col-2:empty { display: none; }

/* Campos: etiqueta encima, borde Tinta de 1,5 px, 16 px de radio y 52 px de alto */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr; gap: 20px; }
body.woocommerce-checkout .form-row { margin: 0 !important; padding: 0 !important; float: none !important; width: 100% !important; }
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #shipping_country_field { display: none !important; } /* solo se vende a España */
/* Casilla «¿Enviar a una dirección diferente?» y dirección de envío (nativas de WooCommerce) */
body.woocommerce-checkout #ship-to-different-address { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(34, 34, 34, 0.22); font-family: var(--fuente-texto); font-size: 17px; font-weight: 600; line-height: 1.4; }
body.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; cursor: pointer; }
body.woocommerce-checkout #ship-to-different-address input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--rosa-accion); }
body.woocommerce-checkout .shipping_address { margin-top: 20px; }
/* Casilla «¿Crear una cuenta?» */
body.woocommerce-checkout .woocommerce-account-fields { margin-top: 28px; padding-bottom: 18px; }
body.woocommerce-checkout .woocommerce-account-fields p.create-account { margin: 0 !important; }
body.woocommerce-checkout .woocommerce-account-fields label.checkbox { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
body.woocommerce-checkout .woocommerce-account-fields label.checkbox span,
body.woocommerce-checkout #ship-to-different-address label span { font-family: var(--fuente-texto); font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
body.woocommerce-checkout .woocommerce-account-fields input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--rosa-accion); }
body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after { display: none !important; content: none !important; }
body.woocommerce-checkout .form-row label { display: block; margin: 0 0 6px; font-weight: 600; line-height: 1.4; }
body.woocommerce-checkout .form-row .required { color: var(--tinta); text-decoration: none; border: 0; }
body.woocommerce-checkout .form-row .optional { display: none; }
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 0 14px;
	border: 1.5px solid var(--tinta);
	border-radius: 16px;
	background: var(--fondo);
	color: var(--tinta);
	font-family: var(--fuente-texto);
	font-size: 16px;
	box-shadow: none;
}
body.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .form-row.woocommerce-invalid select { border-color: var(--rosa-accion); border-width: 2px; }
body.woocommerce-checkout .select2-container { width: 100% !important; }
body.woocommerce-checkout .select2-container .select2-selection--single {
	box-sizing: border-box;
	height: 52px;
	border: 1.5px solid var(--tinta);
	border-radius: 16px;
	background: var(--fondo);
	display: flex;
	align-items: center;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 14px; line-height: 1.2; color: var(--tinta); }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 8px; }

/* Resumen del pedido */
body.woocommerce-checkout #order_review { margin-top: 32px; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table { width: 100%; border: 0; margin: 0 0 16px; background: none; border-collapse: collapse; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: block; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead tr { display: flex; justify-content: space-between; gap: 16px; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th { padding: 0 0 14px; border: 0; background: none; font-size: 15px; font-weight: 700; text-align: left; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th.product-total { text-align: right; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td { padding: 5px 0; border: 0; background: none; vertical-align: baseline; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td { border: 0; padding: 0; vertical-align: top; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item { border-top: 1px solid rgba(34, 34, 34, 0.22); padding: 16px 0; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item:last-child { border-bottom: 1px solid rgba(34, 34, 34, 0.22); }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item:first-child { border-top: 0; padding-top: 0; } /* sin línea bajo «Tu pedido» */
body.woocommerce-checkout td.product-name { display: block; font-weight: 600; line-height: 0; } /* line-height 0: el &nbsp; que WooCommerce pone tras el nombre no deja una línea vacía */
body.woocommerce-checkout .marea-rv__foto { grid-column: 1; grid-row: 1 / span 3; display: block; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--fondo); }
body.woocommerce-checkout .marea-rv__foto img { display: block; width: 64px; height: 64px; object-fit: cover; }
body.woocommerce-checkout .marea-rv__nombre { display: block; line-height: 1.3; }
body.woocommerce-checkout td.product-name .product-quantity { display: block; margin-top: 2px; font-weight: 400; font-size: 15px; line-height: 1.5; }
body.woocommerce-checkout td.product-name dl.variation { margin: 0; font-weight: 400; font-size: 15px; line-height: 1.5; }
body.woocommerce-checkout td.product-name dl.variation dt,
body.woocommerce-checkout td.product-name dl.variation dd,
body.woocommerce-checkout td.product-name dl.variation dd p { display: inline; margin: 0; }
body.woocommerce-checkout td.product-name dl.variation dt { margin-right: 0.3em; }
body.woocommerce-checkout td.product-name dl.variation dd::after { content: ""; display: block; }
body.woocommerce-checkout td.product-total { text-align: right; font-weight: 400; white-space: nowrap; vertical-align: top; color: var(--tinta); line-height: 1.3; }
body.woocommerce-checkout td.product-total .woocommerce-Price-amount { color: var(--tinta); }
/* Resumen limpio: sin la línea «Precio por unidad» (sigue en el carrito) */
body.woocommerce-checkout td.product-name dl.variation dt.variation-Precioporunidad,
body.woocommerce-checkout td.product-name dl.variation dt.variation-Precioporunidad + dd { display: none; }
body.woocommerce-checkout tfoot th { text-align: left; font-weight: 700; }
body.woocommerce-checkout tfoot td { text-align: right; font-weight: 400; }
body.woocommerce-checkout tfoot td strong { font-weight: 700; }
body.woocommerce-checkout tfoot ul#shipping_method { list-style: none; margin: 0; padding: 0; }
body.woocommerce-checkout tfoot ul#shipping_method li { margin: 0; padding: 0; }
body.woocommerce-checkout tfoot ul#shipping_method input { display: none; }
body.woocommerce-checkout tfoot ul#shipping_method label { margin: 0; font-weight: 600; }
body.woocommerce-checkout tfoot tr.order-total th,
body.woocommerce-checkout tfoot tr.order-total td { padding-top: 14px; font-family: var(--fuente-texto); font-weight: 700; }
body.woocommerce-checkout tfoot tr.order-total th { font-size: 17px; }
body.woocommerce-checkout tfoot tr.order-total td { font-size: 19px; }
body.woocommerce-checkout tfoot tr.order-total td .includes_tax { display: block; font-family: var(--fuente-texto); font-variation-settings: normal; font-size: 13px; font-weight: 400; }
body.woocommerce-checkout .woocommerce-Price-amount { color: inherit; }

/* Pago */
body.woocommerce-checkout #payment { background: none; border-radius: 0; }
body.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
body.woocommerce-checkout #payment ul.payment_methods li { margin: 0; padding: 0; }
body.woocommerce-checkout #payment ul.payment_methods > li > label { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 0; border-radius: 0; background: none; font-weight: 600; cursor: pointer; }
body.woocommerce-checkout #payment ul.payment_methods input[type="radio"] { width: 22px; height: 22px; accent-color: var(--rosa-accion); margin: 0; }
body.woocommerce-checkout #payment div.payment_box { margin: 4px 0 8px 34px; padding: 0; border-radius: 0; background: none; color: var(--tinta); font-size: 15px; line-height: 1.5; }
body.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.woocommerce-checkout #payment div.payment_box p { margin: 0; }
body.woocommerce-checkout #payment .place-order { padding: 0; margin: 20px 0 0; }
body.woocommerce-checkout #payment #place_order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--rosa-accion);
	color: var(--fondo);
	font-size: 18px;
	font-weight: 600;
	float: none;
}
.marea-compra .marea-nota-iva { margin: 12px 0 0; }

/* ==========================================================================
   Escritorio
   ========================================================================== */
@media (min-width: 900px) {
	body.marea-compra .ast-container { padding-inline: 40px; }
	body.marea-compra .entry-header { padding-top: 40px; }
	body.marea-compra .entry-title { font-size: clamp(48px, 4.4vw, 64px); }
	body.marea-compra .cart_totals,
	body.marea-compra #order_review { border-radius: 32px; padding: 32px; }

	/* Carrito: líneas a la izquierda, resumen a la derecha */
	body.woocommerce-cart .entry-content > .woocommerce { display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 64px; align-items: start; }
	body.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	body.woocommerce-cart .woocommerce-cart-form { grid-column: 1; margin-top: 24px; }
	body.woocommerce-cart .cart-collaterals { grid-column: 2; margin-top: 24px; }
	body.woocommerce-cart tr.woocommerce-cart-form__cart-item { grid-template-columns: 96px 1fr auto; column-gap: 16px; }
	body.woocommerce-cart td.product-thumbnail img { width: 96px; height: 96px; }
	body.woocommerce-cart .cart-empty { grid-column: 1; }

	/* Finalizar compra: datos a la izquierda, resumen y pago a la derecha */
	body.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 64px; align-items: start; }
	body.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1; }
	body.woocommerce-checkout #order_review { grid-column: 2; grid-row: 1 / span 3; margin-top: 28px; }
	body.woocommerce-checkout .marea-compra__envio { grid-column: 1; grid-row: 2; }
	body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
	body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
	body.woocommerce-checkout .form-row-wide { grid-column: 1 / -1; }
	body.woocommerce-checkout #billing_email_field,
	body.woocommerce-checkout #billing_phone_field { grid-column: auto; }
	body.woocommerce-checkout .marea-compra__seccion h2,
	body.woocommerce-checkout .marea-compra__envio h2 { font-size: 28px; }
}

/* ==========================================================================
   Ajustes para móvil: Astra convierte las tablas en filas con la etiqueta dentro de la celda (data-title) y
   alinea el texto a la derecha; aquí se vuelve al diseño de la maqueta.
   ========================================================================== */
body.woocommerce-cart table.shop_table_responsive.cart td,
body.woocommerce-cart table.shop_table_responsive.cart td.product-name { text-align: left !important; }
body.woocommerce-cart table.shop_table_responsive.cart td.product-subtotal { text-align: right !important; }
body.woocommerce-cart td.product-remove a.remove {
	font-size: 0 !important;
	opacity: 1 !important;
	color: var(--rosa-accion) !important;
	background: none !important;
	border: 0 !important;
	width: auto !important;
	height: auto !important;
	text-indent: 0;
}
body.woocommerce-cart td.product-remove a.remove::after { font-size: 16px !important; }

body.woocommerce-cart .cart_totals table.shop_table,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot { width: 100%; }
body.woocommerce-cart .cart_totals table.shop_table tr,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr {
	display: flex !important;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}
body.woocommerce-cart .cart_totals table.shop_table tr th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr th {
	display: block !important;
	text-align: left !important;
	flex: none;
}
body.woocommerce-cart .cart_totals table.shop_table tr td,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr td {
	display: block !important;
	text-align: right !important;
	flex: 1;
}
body.woocommerce-cart .cart_totals table.shop_table tr td::before,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr td::before { display: none !important; content: none !important; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr td,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr th { padding-left: 0 !important; padding-right: 0 !important; } /* borde derecho igual que el de las líneas */

/* Finalizar compra en móvil */
/* Tabla en bloques: líneas (rejilla nombre | importe) y totales (filas flex) ocupan el mismo ancho y sus importes alinean a la derecha. */
body.woocommerce-checkout table.woocommerce-checkout-review-order-table,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name { display: block !important; text-align: left !important; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total { display: block !important; text-align: right !important; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total::before,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name::before { display: none !important; content: none !important; }
body.woocommerce-checkout #payment { border: 0 !important; }

/* Dos tarjetas: «Tu pedido» arriba y el pago debajo (como la referencia de la clienta), cada una con su padding */
body.woocommerce-checkout #order_review { background: none !important; border-radius: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 20px; }
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table,
body.woocommerce-checkout #order_review #payment {
	background: var(--crema) !important;
	border-radius: clamp(28px, 2.4vw, 32px) !important;
	margin: 0 !important;
	padding: clamp(28px, 3.4vw, 36px) clamp(24px, 3vw, 32px) !important;
	box-sizing: border-box;
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table::before {
	content: "Tu pedido";
	display: block;
	margin: 0 0 22px;
	font-family: var(--fuente-texto);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.woocommerce-checkout #payment div.payment_box { background: none !important; }

/* Enlaces dentro del cuadro crema del resumen (política de privacidad, términos, aviso del carrito): en Tinta,
   porque Rosa botón sobre crema da 4,39 de contraste y la guía pide 4,5 */
body.woocommerce-checkout #order_review a,
body.woocommerce-checkout #order_review .woocommerce-privacy-policy-link,
body.woocommerce-checkout #order_review .woocommerce-terms-and-conditions-link { color: var(--tinta); text-decoration: underline; }

/* Resumen del pedido igual que la referencia de la clienta (toallas): dos columnas iguales (producto | importe) con los
   valores alineados a la izquierda de la segunda, etiquetas en negrita, nombres en normal, líneas finas entre líneas. */
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead tr,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 24px;
	justify-content: normal;
	align-items: baseline;
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item { align-items: start; border-top: 1px solid rgba(34, 34, 34, 0.12); }
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item:first-child { border-top: 0; }
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item:last-child { border-bottom: 1px solid rgba(34, 34, 34, 0.12); }
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead th,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead th.product-total,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr th,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr td,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-total { text-align: left !important; }
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr th,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr td { font-size: 16px; padding-top: 8px; padding-bottom: 8px; }
/* Nombre en normal, con las unidades en la misma línea; el detalle (Nombres, Color) debajo */
body.woocommerce-checkout #order_review td.product-name { font-weight: 400; line-height: 1.45; }
body.woocommerce-checkout #order_review td.product-name .marea-rv__nombre { display: inline; line-height: inherit; }
body.woocommerce-checkout #order_review td.product-name .product-quantity { display: inline; margin: 0 0 0 0.5em; font-size: inherit; line-height: inherit; font-weight: 400; }
body.woocommerce-checkout #order_review td.product-name dl.variation { margin: 2px 0 0; }
body.woocommerce-checkout #order_review td.product-total { white-space: normal; line-height: 1.45; }
/* Subtotal y Total: etiqueta e importe en negrita; Envío: solo la etiqueta */
body.woocommerce-checkout #order_review tfoot tr.cart-subtotal td,
body.woocommerce-checkout #order_review tfoot tr.cart-subtotal td * { font-weight: 700; }
body.woocommerce-checkout #order_review tfoot tr.woocommerce-shipping-totals td,
body.woocommerce-checkout #order_review tfoot tr.woocommerce-shipping-totals td *,
body.woocommerce-checkout #order_review tfoot ul#shipping_method label { font-weight: 400; }
body.woocommerce-checkout #order_review tfoot tr.order-total { border-top: 1px solid rgba(34, 34, 34, 0.12); margin-top: 8px; padding-top: 8px; }
body.woocommerce-checkout #order_review tfoot tr.order-total th,
body.woocommerce-checkout #order_review tfoot tr.order-total td { font-size: 16px; font-weight: 700; padding-top: 8px; }
body.woocommerce-checkout #order_review tfoot tr.order-total td .includes_tax { display: inline; margin-left: 0.4em; font-size: 12px; font-weight: 400; }
@media (max-width: 600px) {
	body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead tr,
	body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item,
	body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 16px; }
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr th { font-weight: 700 !important; }
body.woocommerce-checkout #order_review tfoot tr.order-total td .includes_tax { display: inline-block; white-space: nowrap; }
body.woocommerce-checkout #order_review tfoot tr.cart-subtotal td .woocommerce-Price-amount,
body.woocommerce-checkout #order_review tfoot tr.order-total td strong,
body.woocommerce-checkout #order_review tfoot tr.order-total td .woocommerce-Price-amount { font-weight: 700 !important; }
body.woocommerce-checkout #order_review tfoot tr.order-total td .includes_tax,
body.woocommerce-checkout #order_review tfoot tr.order-total td .includes_tax .woocommerce-Price-amount { font-weight: 400 !important; }
body.woocommerce-checkout #order_review td.product-name .product-quantity { white-space: nowrap; }
body.woocommerce-checkout #order_review #payment div.payment_box { box-sizing: border-box; max-width: calc(100% - 34px); overflow-wrap: anywhere; }
@media (max-width: 600px) {
	body.woocommerce-checkout #order_review #payment div.payment_box { margin-left: 0 !important; max-width: 100%; }
}

/* Formulario «¿Ya eres cliente?» del pago: tarjeta con borde fino, campos apilados, «Recuérdame» y botón con aire.
   (Sin tocar su display: WooCommerce lo muestra y oculta con jQuery.) */
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 0; }
body.woocommerce-checkout form.woocommerce-form-login {
	box-sizing: border-box;
	max-width: 560px;
	margin: 12px 0 36px;
	padding: 28px clamp(20px, 3vw, 32px);
	border: 1px solid rgba(34, 34, 34, 0.14);
	border-radius: clamp(24px, 2.4vw, 28px);
	background: none;
}
body.woocommerce-checkout form.woocommerce-form-login > p:first-child { margin: 0 0 22px; font-size: 16px; line-height: 1.5; }
body.woocommerce-checkout form.woocommerce-form-login .form-row { margin: 0 0 18px !important; }
body.woocommerce-checkout form.woocommerce-form-login .form-row-first,
body.woocommerce-checkout form.woocommerce-form-login .form-row-last { width: 100% !important; }
body.woocommerce-checkout form.woocommerce-form-login .password-input { display: block; position: relative; }
body.woocommerce-checkout form.woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 10px; margin: 2px 0 20px; font-weight: 400; cursor: pointer; }
body.woocommerce-checkout form.woocommerce-form-login .woocommerce-form-login__rememberme input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--rosa-accion); }
body.woocommerce-checkout form.woocommerce-form-login .woocommerce-form-login__submit { margin: 0; }
body.woocommerce-checkout form.woocommerce-form-login .lost_password { margin: 4px 0 0; font-size: 15px; }
