/*
 * A Tu Ritmo · WooCommerce: ficha, catálogo, carrito, checkout, avisos y Mi cuenta.
 * Solo tokens de theme.json. Contraste según la tabla de docs/diseno/propuesta-4.html:
 * bordes de campos en Gris lila (7,64:1 sobre Blanco), foco en Violeta, 44 px táctiles.
 */

/* ---------------------------------------------------------------------
 * Campos de formulario
 * ------------------------------------------------------------------ */
/* Clásicos: variaciones, cantidad, orden del catálogo, Mi cuenta, reseñas. */
.woocommerce :where(input.input-text, input.qty, textarea),
.woocommerce select:not(.wc-blocks-components-select__select),
.woocommerce-ordering select {
	min-height: var(--wp--custom--tactil);
	padding: 0.55rem 0.85rem;
	border: 2px solid var(--wp--preset--color--gris-lila);
	border-radius: 12px;
	background-color: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--ciruela);
	font-family: var(--wp--preset--font-family--texto);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.3;
}
.woocommerce textarea {
	min-height: 8rem;
}
.woocommerce :where(input.input-text, input.qty, select, textarea):focus-visible,
.woocommerce-ordering select:focus-visible {
	border-color: var(--wp--preset--color--violeta);
}

/* Formularios clásicos de WooCommerce (Mi cuenta, direcciones): misma
   especificidad que su regla .woocommerce form .form-row .input-text. */
body.woocommerce-page main .woocommerce form .form-row :is(input.input-text, select, textarea),
.woocommerce form .form-row :is(.input-text, select, textarea) {
	min-height: var(--wp--custom--tactil);
	padding: 0.55rem 0.85rem;
	border: 2px solid var(--wp--preset--color--gris-lila);
	border-radius: 12px;
	background-color: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--ciruela);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.3;
}

/* Un solo país permitido (Colombia): se muestra como texto, no como campo. */
body.woocommerce-page main .woocommerce form .form-row select.country_to_state--single {
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-weight: 400;
	pointer-events: none;
	appearance: none;
}
/* Departamento (SelectWoo): mismo borde y alto que los demás campos. */
.woocommerce .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	min-height: var(--wp--custom--tactil);
	border: 2px solid var(--wp--preset--color--gris-lila);
	border-radius: 12px;
	background-color: var(--wp--preset--color--blanco);
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding-left: 0.85rem;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--ciruela);
	line-height: 1.3;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single {
	outline: var(--wp--custom--foco--ancho) solid var(--wp--preset--color--violeta);
	outline-offset: var(--wp--custom--foco--separacion);
}

/* Bloques de carrito y checkout: solo borde, fondo y color; el tamaño y la
   etiqueta flotante los maneja WooCommerce. */
.atr-compra .wc-block-components-text-input input[type],
.atr-compra .wc-block-components-text-input textarea,
.atr-compra .wc-blocks-components-select .wc-blocks-components-select__select,
.atr-compra .wc-block-components-combobox .wc-block-components-combobox-control input[type],
.atr-compra .wc-block-components-textarea {
	border: 2px solid var(--wp--preset--color--gris-lila);
	border-radius: 12px;
	background-color: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--ciruela);
}
.atr-compra .wc-block-components-text-input input[type]:focus,
.atr-compra .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.atr-compra .wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--violeta);
	box-shadow: none;
	outline: var(--wp--custom--foco--ancho) solid var(--wp--preset--color--violeta);
	outline-offset: 2px;
}
.atr-compra .wc-block-components-text-input.has-error input[type],
.atr-compra .wc-blocks-components-select.has-error .wc-blocks-components-select__select {
	border-color: var(--wp--preset--color--error);
}
.atr-compra .wc-block-components-validation-error,
.atr-compra .wc-block-components-validation-error > p {
	color: var(--wp--preset--color--error);
}

/* Casillas y opciones: borde visible (3:1) y marca en Ciruela / Violeta. */
.atr-compra .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.atr-compra .wc-block-components-radio-control .wc-block-components-radio-control__input {
	border: 2px solid var(--wp--preset--color--gris-lila);
	background-color: var(--wp--preset--color--blanco);
}
.atr-compra .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--ciruela);
}
.atr-compra .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border-color: var(--wp--preset--color--violeta);
}
.atr-compra .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--violeta);
}
.atr-compra .wc-block-components-radio-control--highlight-checked::after,
.atr-compra .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.atr-compra .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--violeta);
	border-radius: 12px;
}
.atr-compra :where(.wc-block-components-checkbox, .wc-block-components-radio-control__option) {
	min-height: var(--wp--custom--tactil);
}

/* ---------------------------------------------------------------------
 * Botones
 * ------------------------------------------------------------------ */
.wc-block-components-button:not(.is-link),
.woocommerce :where(button.button, a.button, input.button) {
	min-height: var(--wp--custom--tactil);
	border-radius: var(--wp--custom--radio--pildora);
}
.wc-block-components-button:not(.is-link):focus-visible {
	box-shadow: none;
	outline: var(--wp--custom--foco--ancho) solid var(--wp--preset--color--violeta);
	outline-offset: var(--wp--custom--foco--separacion);
}
/* Deshabilitado (variación sin elegir): se ve inactivo pero legible. */
.woocommerce :where(.single_add_to_cart_button.disabled, button[disabled]) {
	opacity: 0.55;
	cursor: not-allowed;
}

/* «Ver carrito» después de añadir un producto: botón secundario de contorno
   (mismo estilo que «Recorrer la tienda»), 44 px y separado del principal. */
.wc-block-components-product-button {
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}
a.added_to_cart.wc_forward,
.wc-block-components-product-button .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--tactil);
	padding: 0.55rem 1.25rem;
	border: 2px solid var(--wp--preset--color--ciruela);
	border-radius: var(--wp--custom--radio--pildora);
	background: transparent;
	color: var(--wp--preset--color--ciruela);
	font-family: var(--wp--preset--font-family--texto);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
a.added_to_cart.wc_forward:hover {
	background: var(--wp--preset--color--blanco);
}

/* ---------------------------------------------------------------------
 * Avisos (bloques y clásicos): éxito en Menta clara, información en Lila,
 * error en Error claro; texto siempre en Ciruela.
 * ------------------------------------------------------------------ */
.wc-block-components-notice-banner,
.woocommerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border: 0;
	border-left: 6px solid var(--wp--preset--color--violeta);
	border-radius: 0 var(--wp--custom--radio--caja) var(--wp--custom--radio--caja) 0;
	background: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--ciruela);
	font-size: var(--wp--preset--font-size--base);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.wc-block-components-notice-banner > svg {
	background-color: var(--wp--preset--color--violeta);
	fill: var(--wp--preset--color--blanco);
}
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
	border-left-color: var(--wp--preset--color--violeta);
	background: var(--wp--preset--color--lila);
}
.wc-block-components-notice-banner:is(.is-info, .is-warning) > svg {
	background-color: var(--wp--preset--color--violeta);
}
/* Enlaces de acción del aviso («Resend», «Ver carrito»): Ciruela, sin opacidad. */
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	color: var(--wp--preset--color--ciruela);
	opacity: 1;
	font-weight: 700;
}
.wc-block-components-notice-banner :where(.wc-block-components-notice-banner__content) {
	flex: 1 1 auto;
	min-width: 0;
}
.wc-block-components-notice-banner.is-success,
.woocommerce .woocommerce-message {
	border-left-color: var(--wp--preset--color--menta-oscura);
	background: var(--wp--preset--color--menta-clara);
}
.wc-block-components-notice-banner.is-success > svg {
	background-color: var(--wp--preset--color--ciruela);
}
.wc-block-components-notice-banner.is-error,
.woocommerce .woocommerce-error {
	border-left-color: var(--wp--preset--color--error);
	background: var(--wp--preset--color--error-claro);
}
.wc-block-components-notice-banner.is-error > svg {
	background-color: var(--wp--preset--color--error);
}
.wc-block-components-notice-banner a,
.woocommerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) a {
	color: var(--wp--preset--color--ciruela);
	font-weight: 700;
}
/* El enlace «Ver carrito» del aviso, como botón de contorno. */
.wc-block-components-notice-banner .wc-forward,
.woocommerce .woocommerce-message .wc-forward {
	float: none;
	margin-left: var(--wp--preset--spacing--20);
}

/* ---------------------------------------------------------------------
 * Ficha de producto
 * ------------------------------------------------------------------ */
.atr-ficha .wp-block-post-title {
	margin-top: 0;
}
/* Galería en Blanco (la ilustración destaca sobre el Lila claro del fondo). */
.atr-ficha .woocommerce-product-gallery {
	background: var(--wp--preset--color--blanco);
	border-radius: var(--wp--custom--radio--caja);
	overflow: hidden;
}
.atr-ficha .woocommerce-product-gallery__image--placeholder,
.atr-ficha .woocommerce-product-gallery__image img {
	background: var(--wp--preset--color--blanco);
}
.atr-ficha .wp-block-woocommerce-product-price {
	margin-block: var(--wp--preset--spacing--20);
}
.atr-ficha table.variations {
	border: 0;
	margin-bottom: var(--wp--preset--spacing--20);
}
.atr-ficha table.variations :where(th, td) {
	border: 0;
	padding: 0 var(--wp--preset--spacing--20) var(--wp--preset--spacing--20) 0;
	vertical-align: middle;
	text-align: left;
}
.atr-ficha table.variations label {
	font-weight: 700;
}
/* El select y «Limpiar» (oculto hasta elegir) en una sola línea, para que
   el enlace de 44 px no desalinee la etiqueta de la fila. */
.atr-ficha table.variations td.value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
}
.atr-ficha table.variations td.value .reset_variations {
	margin-left: 0;
}
/* WooCommerce lo oculta con visibility (sigue ocupando lugar): fuera del flujo. */
.atr-ficha .reset_variations[style*="hidden"] {
	display: none;
}
.atr-ficha .reset_variations {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
	margin-left: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--ciruela);
}
.atr-ficha form.cart :where(.quantity, .single_add_to_cart_button) {
	vertical-align: middle;
}
.atr-ficha form.cart .quantity .qty {
	width: 4.5rem;
	text-align: center;
}
.atr-ficha .wp-block-woocommerce-product-meta {
	color: var(--wp--preset--color--gris-lila);
	margin-top: var(--wp--preset--spacing--30);
}
/* Pestañas de descripción e información adicional. */
.atr-ficha .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
	color: var(--wp--preset--color--ciruela);
}
.atr-ficha .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--wp--preset--color--violeta);
}
.atr-ficha .woocommerce-product-attributes :where(th, td) {
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	border-color: var(--wp--preset--color--lila);
}

/* ---------------------------------------------------------------------
 * Catálogo
 * ------------------------------------------------------------------ */
.atr-catalogo-barra {
	align-items: center;
	color: var(--wp--preset--color--gris-lila);
}
.atr-catalogo-barra :where(p, form) {
	margin: 0;
}

/* ---------------------------------------------------------------------
 * Carrito y checkout
 * ------------------------------------------------------------------ */
/* Resumen del pedido en una caja Blanca sobre el Lila claro. En móvil
   WooCommerce lo convierte en un panel plegable con su propio borde. */
.atr-compra .wp-block-woocommerce-cart-order-summary-block {
	background: var(--wp--preset--color--blanco);
	border: 0;
	border-radius: var(--wp--custom--radio--caja);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
@media (min-width: 782px) {
	.atr-compra .wp-block-woocommerce-checkout-order-summary-block {
		background: var(--wp--preset--color--blanco);
		border: 0;
		border-radius: var(--wp--custom--radio--caja);
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	}
}
.atr-compra .wc-block-cart__totals-title,
.atr-compra .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--wp--preset--font-family--titulares);
	font-weight: 700;
}
.atr-compra .wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--lila);
}
/* «Incluye $X de IVA» bajo el total. */
.atr-compra .wc-block-components-totals-footer-item-tax {
	color: var(--wp--preset--color--gris-lila);
	font-size: var(--wp--preset--font-size--pequeno);
}
.atr-compra .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--titulares);
	font-weight: 800;
}
/* Cupón y otros paneles plegables. */
.atr-compra .wc-block-components-panel__button {
	min-height: var(--wp--custom--tactil);
	color: var(--wp--preset--color--ciruela);
	font-weight: 700;
}
.atr-compra .wc-block-components-panel__button:focus-visible {
	outline: var(--wp--custom--foco--ancho) solid var(--wp--preset--color--violeta);
	outline-offset: 2px;
}
.atr-compra .wc-block-components-totals-coupon__form {
	gap: var(--wp--preset--spacing--10);
}
/* Líneas del carrito. */
.atr-compra .wc-block-cart-items__header,
.atr-compra .wc-block-cart-items td {
	border-color: var(--wp--preset--color--lila);
}
.atr-compra .wc-block-components-product-name {
	color: var(--wp--preset--color--ciruela);
	font-weight: 700;
}
.atr-compra .wc-block-cart-item__remove-link {
	min-height: var(--wp--custom--tactil);
	color: var(--wp--preset--color--gris-lila) !important;
}
.atr-compra .wc-block-components-quantity-selector {
	border: 2px solid var(--wp--preset--color--gris-lila);
	border-radius: 12px;
	background: var(--wp--preset--color--blanco);
}
.atr-compra .wc-block-components-quantity-selector::after {
	display: none;
}
.atr-compra .wc-block-components-quantity-selector__button {
	min-width: var(--wp--custom--tactil);
	min-height: var(--wp--custom--tactil);
	color: var(--wp--preset--color--ciruela);
	opacity: 1;
}
/* Pasos del checkout. */
.atr-compra .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--titulares);
	font-weight: 700;
}
.atr-compra .wc-block-components-checkout-step__description,
.atr-compra .wc-block-checkout__guest-checkout-notice {
	color: var(--wp--preset--color--gris-lila);
}
.atr-compra .wc-block-checkout__login-prompt {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
	color: var(--wp--preset--color--ciruela);
	font-weight: 700;
}
.atr-compra .wc-block-components-address-form__address_2-toggle {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
	color: var(--wp--preset--color--ciruela);
}

/* Cabecera del checkout: «Volver al carrito». */
.atr-volver {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: var(--wp--custom--tactil);
	padding-inline: 0.5rem;
	color: var(--wp--preset--color--ciruela);
	font-weight: 700;
}
.atr-volver svg {
	width: 20px;
	height: 20px;
	flex: none;
}

/* Confirmación del pedido: título de página contenido y cajas Blancas. */
.atr-confirmacion h1 {
	font-size: var(--wp--preset--font-size--enorme);
}
main.atr-confirmacion .wc-block-order-confirmation-summary.wc-block-order-confirmation-summary {
	margin-inline: 0;
	box-sizing: border-box;
}
/* Una sola caja por dirección: el bloque es la tarjeta (sin el borde gris de
   WooCommerce) y el <address> interior va sin fondo ni relleno. */
.atr-confirmacion :is(.wc-block-order-confirmation-shipping-address, .wc-block-order-confirmation-billing-address) {
	background: var(--wp--preset--color--blanco);
	border: 0;
	border-radius: var(--wp--custom--radio--caja);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.atr-confirmacion :is(.wc-block-order-confirmation-shipping-address, .wc-block-order-confirmation-billing-address) :is(address, p) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
}
.atr-confirmacion :where(.wc-block-order-confirmation-summary, .wc-block-order-confirmation-totals, .wc-block-order-confirmation-downloads) {
	background: var(--wp--preset--color--blanco);
	border-radius: var(--wp--custom--radio--caja);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.atr-confirmacion .wc-block-order-confirmation-totals table {
	border: 0;
}

/* ---------------------------------------------------------------------
 * Mi cuenta
 * ------------------------------------------------------------------ */
.atr-cuenta form:is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) {
	max-width: 30rem;
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--blanco);
	border: 0;
	border-radius: var(--wp--custom--radio--caja);
}
.atr-cuenta .woocommerce-form-row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	margin-bottom: var(--wp--preset--spacing--30);
}
.atr-cuenta .woocommerce-form-row label {
	font-weight: 700;
}
.atr-cuenta .woocommerce-form-row .required {
	color: var(--wp--preset--color--error);
	text-decoration: none;
}
.atr-cuenta .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	min-height: var(--wp--custom--tactil);
	margin-right: var(--wp--preset--spacing--30);
}
.atr-cuenta .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}
.atr-cuenta .woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--wp--preset--color--violeta);
}
.atr-cuenta .woocommerce-LostPassword a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
}
.atr-cuenta .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
main.atr-cuenta .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}
main.atr-cuenta .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
	padding-inline: 1rem;
	border-radius: var(--wp--custom--radio--pildora);
	background: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--ciruela);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
main.atr-cuenta .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--lila);
}
main.atr-cuenta .woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--ciruela);
	color: var(--wp--preset--color--blanco);
}
/* WooCommerce pone float y anchos del 30 % / 68 %: aquí manda la rejilla. */
main.atr-cuenta :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
	float: none;
	width: auto;
	min-width: 0;
}
main.atr-cuenta .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

/* Móvil: pastillas en una fila con scroll horizontal; contenido debajo. */
main.atr-cuenta .woocommerce-MyAccount-navigation {
	margin-bottom: var(--wp--preset--spacing--40);
}
main.atr-cuenta .woocommerce-MyAccount-navigation ul {
	display: flex;
	gap: var(--wp--preset--spacing--10);
	overflow-x: auto;
	padding-bottom: var(--wp--preset--spacing--10);
	scrollbar-width: thin;
}
main.atr-cuenta .woocommerce-MyAccount-navigation li {
	flex: none;
}

/* Escritorio: navegación de 240 px a la izquierda, contenido con el resto. */
@media (min-width: 782px) {
	main.atr-cuenta .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: var(--wp--preset--spacing--50);
		align-items: start;
	}
	main.atr-cuenta .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 0;
	}
	main.atr-cuenta .woocommerce-MyAccount-content {
		grid-column: 2;
		grid-row: 1;
	}
	main.atr-cuenta .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		gap: 0.375rem;
		overflow: visible;
		padding-bottom: 0;
	}
}

/* Ancho completo de la columna (WooCommerce limita .woocommerce a 1000 px). */
main.atr-cuenta .wp-block-post-content > .woocommerce {
	max-width: none;
	margin-inline: 0;
}

/* Contenido de la cuenta: títulos contenidos, tablas y direcciones en cajas Blancas. */
main.atr-cuenta .woocommerce-MyAccount-content :is(h2, h3) {
	font-size: var(--wp--preset--font-size--grande);
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
}
main.atr-cuenta .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	border-radius: var(--wp--custom--radio--caja);
	overflow: hidden;
	background: var(--wp--preset--color--blanco);
}
main.atr-cuenta .woocommerce-MyAccount-content table.shop_table :is(th, td) {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--lila);
	text-align: left;
	vertical-align: middle;
}
main.atr-cuenta .woocommerce-MyAccount-content table.shop_table thead th {
	background: var(--wp--preset--color--lila);
}
main.atr-cuenta .woocommerce-MyAccount-content table.shop_table .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--tactil);
	padding: 0.5rem 1.25rem;
	line-height: 1.2;
}
main.atr-cuenta .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
}
main.atr-cuenta .woocommerce-Addresses::before,
main.atr-cuenta .woocommerce-Addresses::after {
	display: none;
}
main.atr-cuenta .woocommerce-Addresses > .woocommerce-Address {
	float: none;
	width: auto;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--blanco);
	border-radius: var(--wp--custom--radio--caja);
}
main.atr-cuenta .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}
main.atr-cuenta .woocommerce-Address-title :is(h2, h3) {
	float: none;
	margin: 0;
	text-align: left;
	font-size: var(--wp--preset--font-size--mediano);
}
main.atr-cuenta .woocommerce-Address-title .edit {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tactil);
	float: none;
	font-weight: 700;
}
main.atr-cuenta .woocommerce-Address address {
	font-style: normal;
}
main.atr-cuenta .woocommerce-MyAccount-content fieldset {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 2px solid var(--wp--preset--color--lila);
	border-radius: var(--wp--custom--radio--caja);
}
main.atr-cuenta .woocommerce-MyAccount-content legend {
	padding-inline: var(--wp--preset--spacing--10);
	font-family: var(--wp--preset--font-family--titulares);
	font-weight: 700;
}
main.atr-cuenta .woocommerce-MyAccount-content .woocommerce-form-row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	margin-bottom: var(--wp--preset--spacing--30);
}
main.atr-cuenta .woocommerce-MyAccount-content :is(.form-row-first, .form-row-last) {
	float: none;
	width: auto;
}
main.atr-cuenta .woocommerce-MyAccount-content em {
	color: var(--wp--preset--color--gris-lila);
}
@media (max-width: 768px) {
	/* Tabla de pedidos apilada: WooCommerce oculta los th del cuerpo, y el
	   número de pedido es un th; se muestra con su etiqueta como los td. */
	main.atr-cuenta .woocommerce-MyAccount-content table.shop_table_responsive tr {
		display: block;
		border-bottom: 2px solid var(--wp--preset--color--lila);
	}
	main.atr-cuenta table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number {
		display: block;
		text-align: right;
	}
	main.atr-cuenta table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number::before {
		content: attr(data-title) ": ";
		float: left;
		font-weight: 700;
	}
}

/* Formularios de la cuenta (nueva contraseña, detalles): un campo debajo de
   otro a todo el ancho, también en escritorio; etiquetas con interlineado normal. */
main.atr-cuenta form .form-row:is(.form-row-first, .form-row-last) {
	float: none;
	width: 100%;
}
main.atr-cuenta form .form-row label {
	line-height: 1.4;
}

/* Ver pedido: direcciones en una tarjeta Blanca (como en la confirmación) y
   títulos con el estilo de «Detalles del pedido». */
main.atr-cuenta .woocommerce-customer-details :is(h2, .woocommerce-column__title),
main.atr-cuenta .woocommerce-order-details__title {
	font-family: var(--wp--preset--font-family--titulares);
	font-size: var(--wp--preset--font-size--grande);
	font-weight: 700;
	line-height: 1.15;
}
main.atr-cuenta .woocommerce-customer-details address {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 0;
	border-radius: var(--wp--custom--radio--caja);
	background: var(--wp--preset--color--blanco);
	font-style: normal;
}
main.atr-cuenta .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}
main.atr-cuenta .woocommerce-customer-details .woocommerce-columns--addresses::before,
main.atr-cuenta .woocommerce-customer-details .woocommerce-columns--addresses::after {
	display: none;
}
main.atr-cuenta .woocommerce-customer-details .woocommerce-column {
	float: none;
	width: auto;
}

/* Interacción compartida: botones de bloques, WooCommerce clásico y Store API.
   Los selectores excluyen acciones deshabilitadas, en carga u ocupadas. */
.wp-site-blocks :is(.wp-element-button, .wp-block-button__link, .wc-block-components-button, .woocommerce .button, .woocommerce input[type="submit"]) {
	transition: background-color 180ms ease, color 180ms ease,
		border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.wp-site-blocks :is(.wp-element-button, .wp-block-button__link, .wc-block-components-button, .woocommerce .button, .woocommerce input[type="submit"]):not(:disabled, [aria-disabled="true"], [aria-busy="true"], .disabled, .loading, .is-loading):focus-visible {
	background-color: var(--wp--preset--color--violeta-oscuro);
	color: var(--wp--preset--color--blanco);
	border-color: var(--wp--preset--color--violeta-oscuro);
	outline: 3px solid var(--wp--preset--color--violeta);
	outline-offset: 4px;
	box-shadow: 0 6px 16px rgba(46, 31, 71, 0.18);
}
@media (hover: hover) {
	.wp-site-blocks :is(.wp-element-button, .wp-block-button__link, .wc-block-components-button, .woocommerce .button, .woocommerce input[type="submit"]):not(:disabled, [aria-disabled="true"], [aria-busy="true"], .disabled, .loading, .is-loading):hover {
		background-color: var(--wp--preset--color--violeta-oscuro);
		color: var(--wp--preset--color--blanco);
		border-color: var(--wp--preset--color--violeta-oscuro);
		box-shadow: 0 6px 16px rgba(46, 31, 71, 0.18);
		transform: translateY(-2px);
	}
}
.wp-site-blocks :is(.wp-element-button, .wp-block-button__link, .wc-block-components-button, .woocommerce .button, .woocommerce input[type="submit"]):not(:disabled, [aria-disabled="true"], [aria-busy="true"], .disabled, .loading, .is-loading):active {
	transform: translateY(0);
}
/* Controles compactos: misma respuesta de color, sin desplazar menús o cantidades. */
.wp-site-blocks :is(.wc-block-components-quantity-selector__button, .wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close):not(:disabled, [aria-disabled="true"]):is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--ciruela);
}
@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks :is(.wp-element-button, .wp-block-button__link, .wc-block-components-button, .woocommerce .button, .woocommerce input[type="submit"]) {
		transition: none;
		transform: none;
	}
	.wp-site-blocks :is(.wp-element-button, .wp-block-button__link, .wc-block-components-button, .woocommerce .button, .woocommerce input[type="submit"]):not(:disabled, [aria-disabled="true"], [aria-busy="true"], .disabled, .loading, .is-loading):hover {
		transform: none;
	}
}
