/*
 * Mi cuenta. Hoja aparte del bundle, sólo en las páginas de cuenta (ver
 * src/Front/WooCommerce/ShopPageStyles.php). Mismo lenguaje que la ficha de
 * producto del configurador: tarjetas blancas con borde #e8e4da y radio
 * 16 px, fondos crema, acento amarillo de la marca y botones píldora.
 * El detalle de un pedido («Ver pedido») está en order-details.css.
 */

.woocommerce-account {
	--eco-ink: #343434;
	--eco-muted: #6b6b6b;
	--eco-line: #e8e4da;
	--eco-line-strong: #d8d1c2;
	--eco-soft: #f7f5f0;
	--eco-cream: #ede9e1;
	--eco-accent: #e8d088;
	--eco-accent-soft: #fbf5e3;
	--eco-accent-dark: #948457;
	--eco-radius: 1rem;
	--eco-radius-sm: .75rem;
	--eco-shadow: 0 1px 2px rgba(52, 52, 52, .04), 0 8px 24px rgba(52, 52, 52, .05);
}

/* ------------------------------------------------------------------ */
/* Estructura: menú lateral + contenido                                 */
/* ------------------------------------------------------------------ */

body.woocommerce-account.logged-in .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

body.woocommerce-account .entry-content > .woocommerce::before,
body.woocommerce-account .entry-content > .woocommerce::after {
	content: none;
}

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	min-width: 0;
	grid-column: auto;
}

@media (min-width: 960px) {
	body.woocommerce-account.logged-in .entry-content > .woocommerce {
		grid-template-columns: 17.5rem minmax(0, 1fr);
		gap: 2.5rem;
	}

	body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation {
		position: sticky;
		top: 7.5rem;
	}
}

/* ------------------------------------------------------------------ */
/* Menú                                                                 */
/* ------------------------------------------------------------------ */

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: .5rem;
	list-style: none;
	border: 1px solid var(--eco-line);
	border-radius: var(--eco-radius);
	background: #fff;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link a {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem .875rem;
	border: 0;
	border-radius: var(--eco-radius-sm);
	background: transparent;
	color: var(--eco-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
	content: "";
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	opacity: .7;
	-webkit-mask: var(--acc-ico) center / contain no-repeat;
	mask: var(--acc-ico) center / contain no-repeat;
}

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link a:hover {
	background: var(--eco-soft);
}

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link.is-active a {
	background: var(--eco-accent-soft);
	box-shadow: inset 0 0 0 1px var(--eco-accent);
	color: var(--eco-ink);
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::before { opacity: 1; }

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: .25rem;
	padding-top: .25rem;
	border-top: 1px solid var(--eco-line);
}

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--eco-muted); }

/* Iconos (trazo de 2 px, como los de la ficha) */
/* Cualquier apartado que añada un plugin, con un icono genérico */
.woocommerce-MyAccount-navigation-link { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dashboard { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--payment-methods { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --acc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }

/*
 * Menú desplegable en móvil y tableta (lo monta assets/js/account.js): un
 * botón con la sección actual que abre la lista entera. Sin JavaScript se
 * queda la lista en una tarjeta.
 */
.woocommerce-account .ltw-acc-nav__toggle { display: none; }

@media (max-width: 959px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation.has-toggle { position: relative; z-index: 30; }

	body.woocommerce-account .has-toggle .ltw-acc-nav__toggle {
		display: flex;
		align-items: center;
		gap: .75rem;
		width: 100%;
		padding: .625rem 1rem .625rem .625rem;
		border: 1px solid var(--eco-line);
		border-radius: var(--eco-radius);
		background: #fff;
		color: var(--eco-ink);
		font: inherit;
		text-align: left;
		cursor: pointer;
		transition: border-color .15s, box-shadow .15s;
	}

	body.woocommerce-account .has-toggle.is-open .ltw-acc-nav__toggle {
		border-color: var(--eco-accent);
		box-shadow: 0 0 0 3px var(--eco-accent-soft);
	}

	.woocommerce-account .ltw-acc-nav__toggle-icon {
		position: relative;
		flex: 0 0 auto;
		width: 2.5rem;
		height: 2.5rem;
		border-radius: var(--eco-radius-sm);
		background: var(--eco-accent-soft);
	}

	.woocommerce-account .ltw-acc-nav__toggle-icon::before {
		content: "";
		position: absolute;
		inset: .625rem;
		background: var(--eco-ink);
		-webkit-mask: var(--acc-ico) center / contain no-repeat;
		mask: var(--acc-ico) center / contain no-repeat;
	}

	.woocommerce-account .ltw-acc-nav__toggle-text {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
		line-height: 1.25;
	}

	.woocommerce-account .ltw-acc-nav__toggle-text small {
		color: var(--eco-muted);
		font-size: .8125rem;
		font-weight: 400;
	}

	.woocommerce-account .ltw-acc-nav__toggle-text strong {
		overflow: hidden;
		font-size: 1rem;
		font-weight: 700;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.woocommerce-account .ltw-acc-nav__toggle-chevron {
		flex: 0 0 auto;
		width: 1.25rem;
		height: 1.25rem;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
		transition: transform .2s;
	}

	.woocommerce-account .has-toggle.is-open .ltw-acc-nav__toggle-chevron { transform: rotate(180deg); }

	body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation.has-toggle ul { display: none; }

	body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation.has-toggle.is-open ul {
		position: absolute;
		top: calc(100% + .5rem);
		right: 0;
		left: 0;
		display: flex;
		box-shadow: 0 16px 40px rgba(52, 52, 52, .16);
	}
}

/* ------------------------------------------------------------------ */
/* Contenido                                                            */
/* ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-content {
	color: var(--eco-ink);
	font-size: 1rem;
	line-height: 1.55;
}

.woocommerce-account .woocommerce-MyAccount-content p { margin-bottom: 1rem; }

/* Enlaces de texto: oscuros y subrayados (el amarillo no se lee sobre blanco) */
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not([class*="button-"]):not(.ltw-acc-tile a) {
	color: var(--eco-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--eco-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not([class*="button-"]):hover {
	text-decoration-color: currentColor;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin: 0 0 .75rem;
	color: var(--eco-ink);
	font-weight: 700;
	line-height: 1.15;
}

.woocommerce-account .woocommerce-MyAccount-content h2 { font-size: 1.5rem; }
.woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 1.25rem; }

/* Botones de WooCommerce (Ver, Pagar, Guardar…) como los del tema: píldora */
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce a.woocommerce-button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce button.woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	min-height: 2.75rem;
	padding: .6rem 1.375rem .5rem;
	border: 1px solid var(--eco-accent);
	border-radius: 999px;
	background: var(--eco-accent);
	color: var(--eco-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}

body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce a.woocommerce-button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce button.woocommerce-Button:hover {
	border-color: var(--eco-ink);
	background: var(--eco-ink);
	color: var(--eco-accent);
}

/* Secundarios (Ver, Cancelar): crema, como .button-secondary */
body.woocommerce-account .woocommerce a.button.view,
body.woocommerce-account .woocommerce a.button.cancel,
body.woocommerce-account .woocommerce a.button.edit {
	border-color: var(--eco-cream);
	background: var(--eco-cream);
}

/* Avisos */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	margin: 0 0 1.25rem;
	padding: .875rem 1.125rem;
	border: 1px solid var(--eco-accent);
	border-radius: var(--eco-radius-sm);
	background: var(--eco-accent-soft);
	color: var(--eco-ink);
	font-size: 1rem;
	list-style: none;
}

.woocommerce-account .woocommerce-error {
	border-color: #f1c4c0 !important;
	background: #fdf1f0 !important;
}

.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-error::before { content: none; }

.woocommerce-account .woocommerce-message .button,
.woocommerce-account .woocommerce-info .button {
	order: 2;
	min-height: 2.25rem !important;
	padding: .4rem 1rem .3rem !important;
	background: #fff !important;
	border-color: #fff !important;
	font-size: .875rem !important;
}

.woocommerce-account .woocommerce-message .button:hover,
.woocommerce-account .woocommerce-info .button:hover {
	background: var(--eco-ink) !important;
	border-color: var(--eco-ink) !important;
}

/* ------------------------------------------------------------------ */
/* Escritorio (woocommerce/myaccount/dashboard.php)                     */
/* ------------------------------------------------------------------ */

.woocommerce-account .ltw-acc-welcome {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin: 0 0 1rem;
	padding: 1.75rem;
	border-radius: var(--eco-radius);
	background: var(--eco-soft);
	position: relative;
	overflow: hidden;
}

.woocommerce-account .ltw-acc-welcome::after {
	content: "";
	position: absolute;
	top: -3.5rem;
	right: -3.5rem;
	width: 11rem;
	height: 11rem;
	border-radius: 50%;
	background: var(--eco-accent-soft);
	pointer-events: none;
}

.woocommerce-account .ltw-acc-welcome > * { position: relative; z-index: 1; }

.woocommerce-account .woocommerce-MyAccount-content .ltw-acc-welcome__title {
	margin: 0 0 .375rem;
	font-size: 2rem;
	line-height: 1.1;
}

.woocommerce-account .woocommerce-MyAccount-content .ltw-acc-welcome__text {
	max-width: 32rem;
	margin: 0;
	color: var(--eco-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .ltw-acc-welcome__logout {
	margin: 0;
	color: var(--eco-muted);
	font-size: .875rem;
}

.woocommerce-account .ltw-acc-last-order {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.125rem;
	margin: 0 0 1rem;
	padding: 1.125rem 1.25rem 1.125rem 1.5rem;
	border: 1px solid var(--eco-line);
	border-radius: var(--eco-radius);
	background: #fff;
}

.woocommerce-account .ltw-acc-last-order__info {
	display: flex;
	flex: 1 1 15rem;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .125rem .75rem;
}

.woocommerce-account .ltw-acc-last-order__label {
	flex: 1 0 100%;
	color: var(--eco-muted);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.woocommerce-account .ltw-acc-last-order__number {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
}

.woocommerce-account .ltw-acc-last-order__meta { color: var(--eco-muted); }

.woocommerce-account .ltw-acc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .ltw-acc-tile { margin: 0; }

.woocommerce-account .ltw-acc-tile a {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding: 1.125rem 1.125rem 1.125rem 1.25rem;
	border: 1px solid var(--eco-line);
	border-radius: var(--eco-radius);
	background: #fff;
	color: var(--eco-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.woocommerce-account .ltw-acc-tile a:hover {
	border-color: var(--eco-accent);
	box-shadow: var(--eco-shadow);
	transform: translateY(-2px);
}

.woocommerce-account .ltw-acc-tile__icon {
	position: relative;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--eco-accent-soft);
}

.woocommerce-account .ltw-acc-tile__icon::before {
	content: "";
	position: absolute;
	inset: .75rem;
	background: var(--eco-ink);
	-webkit-mask: var(--acc-ico) center / contain no-repeat;
	mask: var(--acc-ico) center / contain no-repeat;
}

.woocommerce-account .ltw-acc-tile__text { flex: 1 1 auto; min-width: 0; }

.woocommerce-account .ltw-acc-tile__text strong {
	display: block;
	margin-bottom: .125rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}

.woocommerce-account .ltw-acc-tile__text small {
	display: block;
	color: var(--eco-muted);
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.4;
}

.woocommerce-account .ltw-acc-tile__arrow {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: .35;
	transition: opacity .15s, transform .15s;
}

.woocommerce-account .ltw-acc-tile a:hover .ltw-acc-tile__arrow { opacity: 1; transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Estado del pedido como píldora                                       */
/* ------------------------------------------------------------------ */

.woocommerce-account .ltw-acc-status,
.woocommerce-account mark.order-status {
	display: inline-block;
	max-width: 100%;
	padding: .25rem .75rem .2rem;
	border-radius: 999px;
	background: var(--st-bg, var(--eco-cream));
	color: var(--st-fg, var(--eco-ink));
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
}

.woocommerce-account .woocommerce-orders-table__row--status-completed { --st-bg: #e5f2e6; --st-fg: #24603a; }
.woocommerce-account .woocommerce-orders-table__row--status-processing { --st-bg: #e6eef6; --st-fg: #2b4f78; }
.woocommerce-account .woocommerce-orders-table__row--status-on-hold { --st-bg: #fbf0cf; --st-fg: #6f5300; }
.woocommerce-account .woocommerce-orders-table__row--status-pending { --st-bg: #fbe8d6; --st-fg: #82460c; }
.woocommerce-account .woocommerce-orders-table__row--status-cancelled,
.woocommerce-account .woocommerce-orders-table__row--status-failed,
.woocommerce-account .woocommerce-orders-table__row--status-refunded { --st-bg: #f9e3e1; --st-fg: #98281f; }

/* ------------------------------------------------------------------ */
/* Lista de pedidos                                                     */
/* ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table {
	width: 100%;
	margin: 0 0 1.5rem;
	overflow: hidden;
	border: 1px solid var(--eco-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--eco-radius);
	background: #fff;
	font-size: 1rem;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
	padding: 1rem 1.125rem;
	border: 0;
	border-bottom: 1px solid var(--eco-line);
	background: transparent;
	text-align: left;
	vertical-align: middle;
	font-weight: 400;
}

.woocommerce-account .woocommerce-orders-table thead th {
	padding-block: .75rem;
	background: var(--eco-soft);
	color: var(--eco-muted);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.woocommerce-account .woocommerce-orders-table tbody tr:last-child > * { border-bottom: 0; }
.woocommerce-account .woocommerce-orders-table tbody tr { transition: background-color .15s; }
.woocommerce-account .woocommerce-orders-table tbody tr:hover { background: #fcfbf8; }

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a {
	font-weight: 700 !important;
	text-decoration: none !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-total { color: var(--eco-muted); }
.woocommerce-account .woocommerce-orders-table__cell-order-total .amount { color: var(--eco-ink); font-weight: 700; }
.woocommerce-account .woocommerce-orders-table__header-order-actions,
.woocommerce-account .woocommerce-orders-table__cell-order-actions { text-align: right !important; }

body.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions .button {
	min-height: 2.25rem;
	margin: .125rem 0 .125rem .375rem;
	padding: .4rem 1rem .3rem;
	font-size: .9375rem;
}

/* Móvil: cada pedido como tarjeta */
@media (max-width: 767px) {
	.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
	.woocommerce-account .woocommerce-orders-table tbody {
		display: block;
		border: 0;
		background: none;
		overflow: visible;
	}

	.woocommerce-account .woocommerce-orders-table thead { display: none; }

	.woocommerce-account .woocommerce-orders-table tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: .25rem 1rem;
		margin: 0 0 .75rem;
		padding: 1rem 1.125rem;
		border: 1px solid var(--eco-line);
		border-radius: var(--eco-radius);
		background: #fff;
	}

	.woocommerce-account .woocommerce-orders-table tbody tr > * {
		display: block;
		padding: 0;
		border: 0;
		text-align: left !important;
	}

	.woocommerce-account .woocommerce-orders-table tbody tr > *::before { content: none !important; }

	/* Número y estado en la primera fila; fecha y total debajo, a todo el ancho */
	.woocommerce-account .woocommerce-orders-table__cell-order-number { grid-row: 1; grid-column: 1; font-size: 1.125rem; }
	.woocommerce-account .woocommerce-orders-table__cell-order-status { grid-row: 1; grid-column: 2; justify-self: end; text-align: right !important; }
	.woocommerce-account .woocommerce-orders-table__cell-order-date { grid-column: 1 / -1; color: var(--eco-muted); font-size: .9375rem; }
	.woocommerce-account .woocommerce-orders-table__cell-order-total { grid-column: 1 / -1; font-size: .9375rem; }

	.woocommerce-account .woocommerce-orders-table__cell-order-actions {
		display: flex !important;
		grid-column: 1 / -1;
		gap: .5rem;
		margin-top: .625rem;
		padding-top: .75rem !important;
		border-top: 1px solid var(--eco-line) !important;
	}

	body.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions .button { flex: 1 1 0; margin: 0; }
}

/* Paginación */
.woocommerce-account .woocommerce-pagination {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
}

/* Vacío (sin pedidos, sin métodos de pago…) */
.woocommerce-account .ltw-acc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .375rem;
	padding: 2.75rem 1.5rem;
	border: 1px dashed var(--eco-line-strong);
	border-radius: var(--eco-radius);
	background: var(--eco-soft);
	text-align: center;
}

.woocommerce-account .ltw-acc-empty__icon {
	position: relative;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: .5rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 6px var(--eco-accent-soft);
}

.woocommerce-account .ltw-acc-empty__icon::before {
	content: "";
	position: absolute;
	inset: 1rem;
	background: var(--eco-ink);
	-webkit-mask: var(--acc-ico) center / contain no-repeat;
	mask: var(--acc-ico) center / contain no-repeat;
}

.woocommerce-account .ltw-acc-empty strong { font-size: 1.125rem; }

.woocommerce-account .woocommerce-MyAccount-content .ltw-acc-empty p {
	max-width: 24rem;
	margin: 0;
	color: var(--eco-muted);
	font-size: .9375rem;
}

body.woocommerce-account .woocommerce .ltw-acc-empty .button { margin-top: 1rem; }

/* «Métodos de pago» sin tarjetas guardadas: el aviso como tarjeta vacía */
.woocommerce-account.woocommerce-payment-methods .woocommerce-MyAccount-content > .woocommerce-info,
.woocommerce-account.woocommerce-payment-methods .woocommerce-MyAccount-content > .woocommerce-Message {
	justify-content: center;
	padding: 2.25rem 1.5rem;
	border: 1px dashed var(--eco-line-strong);
	background: var(--eco-soft);
	text-align: center;
}

/* Tabla de métodos de pago guardados */
.woocommerce-account table.woocommerce-MyAccount-paymentMethods {
	width: 100%;
	margin: 0 0 1.25rem;
	overflow: hidden;
	border: 1px solid var(--eco-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--eco-radius);
	background: #fff;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods th,
.woocommerce-account table.woocommerce-MyAccount-paymentMethods td {
	padding: .875rem 1.125rem;
	border-bottom: 1px solid var(--eco-line);
	text-align: left;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods thead th {
	background: var(--eco-soft);
	color: var(--eco-muted);
	font-size: .8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ------------------------------------------------------------------ */
/* Direcciones                                                          */
/* ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-content > p:first-child:has(+ .woocommerce-Addresses) {
	color: var(--eco-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	gap: 1rem;
	margin: 0;
}

@media (min-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { content: none; }

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 1.375rem 1.5rem 1.5rem;
	border: 1px solid var(--eco-line);
	border-radius: var(--eco-radius);
	background: #fff;
}

body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin: 0 0 1rem;
	padding: 0 0 .875rem;
	border-bottom: 1px solid var(--eco-line);
}

.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after { content: none !important; display: none !important; }

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	flex: 1 1 auto;
	margin: 0 !important;
	font-size: 1.25rem;
}

/* «Editar Dirección de facturación» es largo: el botón muestra un lápiz y se
 * queda con el texto completo para lectores de pantalla */
body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title a.edit {
	position: relative;
	flex: 0 0 auto;
	width: 2.5rem;
	min-height: 2.5rem;
	height: 2.5rem;
	padding: 0;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	text-indent: -999px;
}

body.woocommerce-account .woocommerce .woocommerce-Address-title a.edit::before {
	content: "";
	position: absolute;
	inset: .6875rem;
	background: var(--eco-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.woocommerce-account .woocommerce .woocommerce-Address-title a.edit:hover::before { background: var(--eco-accent); }

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
	margin: 0;
	color: var(--eco-muted);
	font-style: normal;
	font-weight: 400;
	line-height: 1.65;
}

/* ------------------------------------------------------------------ */
/* Formularios (detalles de la cuenta, editar dirección)                */
/* ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-content > form,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-address-fields,
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields {
	padding: 1.75rem;
	border: 1px solid var(--eco-line);
	border-radius: var(--eco-radius);
	background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content > form:has(.woocommerce-address-fields) {
	padding: 0;
	border: 0;
	background: none;
}

.woocommerce-account .woocommerce-MyAccount-content > form > h2:first-child,
.woocommerce-account .woocommerce-MyAccount-content > form > h3:first-child {
	margin: 0 0 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content form .form-row {
	float: none;
	width: auto;
	margin: 0 0 1.125rem;
	padding: 0;
}

.woocommerce-account .woocommerce .woocommerce-form-row label,
.woocommerce-account .woocommerce form .form-row label,
.woocommerce-account .woocommerce .woocommerce-ResetPassword label {
	display: block;
	margin-bottom: .375rem;
	color: var(--eco-ink);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.4;
}

.woocommerce-account .woocommerce form .required {
	color: #b3261e;
	text-decoration: none;
	border: 0;
}

.woocommerce-account .woocommerce form .form-row em,
.woocommerce-account .woocommerce form .form-row .description,
.woocommerce-account .woocommerce form #account_display_name_description {
	display: block;
	margin-top: .375rem;
	color: var(--eco-muted);
	font-size: .8125rem;
	font-style: normal;
	line-height: 1.45;
}

/* Campos: blancos, con borde y esquinas, como el selector de cantidad de la ficha */
body.woocommerce-account .woocommerce form :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select),
body.woocommerce-account .woocommerce form .select2-container--default .select2-selection--single {
	min-height: 3.125rem;
	padding: .75rem 1rem;
	border: 1px solid var(--eco-line-strong);
	border-radius: var(--eco-radius-sm);
	background-color: #fff;
	color: var(--eco-ink);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}

body.woocommerce-account .woocommerce form select,
body.woocommerce-account .woocommerce form .select2-container--default .select2-selection--single {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: calc(100% - 1rem) center !important;
	background-size: 1.125rem !important;
}

body.woocommerce-account .woocommerce form .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	padding-right: 2.5rem;
	background-position: calc(100% - 1rem) center;
}

body.woocommerce-account .woocommerce form :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select):hover { border-color: #bdb5a4; }

body.woocommerce-account .woocommerce form :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select):focus,
body.woocommerce-account .woocommerce form .select2-container--focus .select2-selection--single,
body.woocommerce-account .woocommerce form .select2-container--open .select2-selection--single {
	border-color: var(--eco-ink);
	outline: 0;
	box-shadow: 0 0 0 3px var(--eco-accent-soft);
}

/* Ojo de mostrar la contraseña */
.woocommerce-account .woocommerce form .password-input { position: relative; display: block; }
.woocommerce-account .woocommerce form .password-input input { padding-right: 3rem; }

.woocommerce-account .woocommerce form .show-password-input {
	position: absolute;
	top: 50%;
	right: .75rem;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	background: var(--eco-muted);
	cursor: pointer;
	opacity: .7;
	transform: translateY(-50%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
}

.woocommerce-account .woocommerce form .show-password-input:hover,
.woocommerce-account .woocommerce form .show-password-input.display-password { opacity: 1; background: var(--eco-ink); }

.woocommerce-account .woocommerce form .show-password-input::after { content: none; }

.woocommerce-account .woocommerce-MyAccount-content form fieldset {
	margin: 1.25rem 0 .5rem;
	padding: 1.25rem 0 0;
	border: 0;
	border-top: 1px solid var(--eco-line);
}

.woocommerce-account .woocommerce-MyAccount-content form legend {
	float: left;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	color: var(--eco-ink);
	font-size: 1.25rem;
	font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content form legend + * { clear: both; }

@media (min-width: 768px) {
	.woocommerce-account .woocommerce-EditAccountForm,
	.woocommerce-account .woocommerce-address-fields__field-wrapper,
	.woocommerce-account .woocommerce-EditAccountForm fieldset {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1.25rem;
	}

	.woocommerce-account .woocommerce-EditAccountForm > *,
	.woocommerce-account .woocommerce-EditAccountForm fieldset > *,
	.woocommerce-account .woocommerce-address-fields__field-wrapper > * {
		grid-column: 1 / -1;
	}

	.woocommerce-account .woocommerce-EditAccountForm > .form-row-first,
	.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }

	.woocommerce-account .woocommerce-EditAccountForm > .form-row-last,
	.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }

	.woocommerce-account .woocommerce-EditAccountForm fieldset > .form-row:nth-of-type(2) { grid-column: 1; }
	.woocommerce-account .woocommerce-EditAccountForm fieldset > .form-row:nth-of-type(3) { grid-column: 2; }

	.woocommerce-account .woocommerce-EditAccountForm > .clear,
	.woocommerce-account .woocommerce-EditAccountForm fieldset > .clear { display: none; }

	/* Dos campos en la misma fila: alineados abajo aunque una etiqueta ocupe dos líneas
	 * («Confirmar nueva contraseña (déjalo en blanco…)») */
	.woocommerce-account .woocommerce-EditAccountForm > :is(.form-row-first, .form-row-last),
	.woocommerce-account .woocommerce-EditAccountForm fieldset > .form-row:is(:nth-of-type(2), :nth-of-type(3)),
	.woocommerce-account .woocommerce-address-fields__field-wrapper > :is(.form-row-first, .form-row-last) {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
	}
}

.woocommerce-account .woocommerce-MyAccount-content form > p:last-of-type,
.woocommerce-account .woocommerce-address-fields > p:last-child {
	margin: .5rem 0 0;
}

/* ------------------------------------------------------------------ */
/* Acceso y registro                                                    */
/* ------------------------------------------------------------------ */

body.woocommerce-account:not(.logged-in) #customer_login,
body.woocommerce-account:not(.logged-in) .u-columns {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	body.woocommerce-account:not(.logged-in) #customer_login,
	body.woocommerce-account:not(.logged-in) .u-columns { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

body.woocommerce-account:not(.logged-in) .u-columns::before,
body.woocommerce-account:not(.logged-in) .u-columns::after { content: none; }

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	max-width: none;
	padding: 2rem 2rem 1.75rem;
	border: 1px solid var(--eco-line);
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: none;
}

/* El registro, sobre crema para distinguirlo del acceso */
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
	border-color: transparent;
	background: var(--eco-soft);
}

@media (max-width: 575px) {
	body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
	body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 { padding: 1.5rem 1.25rem 1.25rem; }
}

/* Título con icono */
body.woocommerce-account:not(.logged-in) #customer_login h2 {
	display: flex;
	align-items: center;
	gap: .875rem;
	margin: 0 0 .5rem;
	font-size: 1.875rem;
	line-height: 1.1;
}

body.woocommerce-account:not(.logged-in) #customer_login h2::before {
	content: "";
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--eco-accent-soft) no-repeat center / 1.25rem;
}

body.woocommerce-account:not(.logged-in) #customer_login .u-column1 h2::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='m10 17 5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
}

body.woocommerce-account:not(.logged-in) #customer_login .u-column2 h2::before {
	background-color: var(--eco-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6'/%3E%3Cpath d='M22 11h-6'/%3E%3C/svg%3E");
}

body.woocommerce-account:not(.logged-in) .ltw-acc-auth__intro {
	margin: 0 0 1.5rem;
	color: var(--eco-muted);
	font-size: 1rem;
	line-height: 1.5;
}

/* Las tarjetas son las columnas: los formularios van sin caja */
body.woocommerce-account:not(.logged-in) #customer_login form {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

body.woocommerce-account:not(.logged-in) .woocommerce form .form-row { margin: 0 0 1.125rem; padding: 0; }

body.woocommerce-account:not(.logged-in) .woocommerce form :is(input[type="text"], input[type="email"], input[type="password"]) { width: 100%; }

/*
 * Acceso: «Recuérdame» y «¿Olvidaste la contraseña?» en la misma línea y el
 * botón debajo, a todo el ancho. La fila del botón se deshace (contents) para
 * colocar sus piezas en la rejilla del formulario.
 */
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	align-content: start;
	column-gap: .75rem;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login > * { grid-column: 1 / -1; }
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: contents; }

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
	display: inline-flex !important;
	align-items: center;
	justify-self: start;
	gap: .5rem;
	margin: 0 !important;
	font-weight: 400 !important;
	cursor: pointer;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme span { font-size: .9375rem; }

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme { order: 1; grid-column: 1; }

body.woocommerce-account:not(.logged-in) .woocommerce-form__input-checkbox {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0 !important;
	cursor: pointer;
}

body.woocommerce-account:not(.logged-in) .woocommerce .lost_password {
	margin: 0;
	font-size: .9375rem;
}

body.woocommerce-account:not(.logged-in) #customer_login .lost_password { order: 1; grid-column: 2; white-space: nowrap; }

body.woocommerce-account:not(.logged-in) .woocommerce .lost_password a,
body.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-privacy-policy-text a,
body.woocommerce-account:not(.logged-in) .ltw-acc-auth__switch a {
	color: var(--eco-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--eco-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

body.woocommerce-account:not(.logged-in) .woocommerce .lost_password a:hover,
body.woocommerce-account:not(.logged-in) .ltw-acc-auth__switch a:hover { text-decoration-color: currentColor; }

body.woocommerce-account:not(.logged-in) .woocommerce button.woocommerce-form-login__submit,
body.woocommerce-account:not(.logged-in) .woocommerce button.woocommerce-form-register__submit,
body.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-ResetPassword button.button {
	width: 100%;
	min-height: 3.125rem;
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__submit {
	order: 2;
	grid-column: 1 / -1;
	margin-top: 1.5rem;
}

/* Al pie del acceso, un enlace al registro (en dos columnas; en una, el registro ya va debajo) */
body.woocommerce-account:not(.logged-in) .ltw-acc-auth__switch { display: none; }

@media (min-width: 768px) {
	body.woocommerce-account:not(.logged-in) #customer_login .ltw-acc-auth__switch {
		display: block;
		order: 3;
		align-self: end;
		margin: 1.5rem 0 0;
		padding-top: 1.125rem;
		border-top: 1px solid var(--eco-line);
		color: var(--eco-muted);
		font-size: .9375rem;
	}
	body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login { grid-template-rows: auto; }
}

/* Sin sitio para los dos en una línea: el enlace, debajo del botón */
@media (max-width: 419px) {
	body.woocommerce-account:not(.logged-in) #customer_login .lost_password {
		order: 3;
		grid-column: 1 / -1;
		margin-top: 1rem;
		text-align: center;
	}
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-register .form-row:has(.woocommerce-form-register__submit) { margin: .5rem 0 0; }

/* Registro: el aviso de que la contraseña llega por correo, como nota */
body.woocommerce-account:not(.logged-in) .woocommerce-form-register > p:not(.form-row):not(.ltw-acc-auth__intro) {
	display: flex;
	gap: .625rem;
	margin: 0 0 1.25rem;
	padding: .75rem .875rem;
	border-radius: var(--eco-radius-sm);
	background: #fff;
	font-size: .9375rem;
	line-height: 1.45;
}

body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text p {
	margin: 0 0 1.25rem;
	color: var(--eco-muted);
	font-size: .875rem;
	line-height: 1.5;
}

/* Recuperar y crear contraseña: una tarjeta sola */
body.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-ResetPassword,
body.woocommerce-account.woocommerce-lost-password .woocommerce .woocommerce-ResetPassword {
	max-width: 32rem;
	margin: 0 auto;
	padding: 2rem;
	border: 1px solid var(--eco-line);
	border-radius: 1.25rem;
	background: #fff;
}

body.woocommerce-account .woocommerce-ResetPassword > p:first-child {
	margin: 0 0 1.5rem;
	padding-left: 3.625rem;
	min-height: 2.75rem;
	color: var(--eco-muted);
	font-size: 1rem;
	line-height: 1.5;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill='%23fbf5e3'/%3E%3Cg transform='translate(12 12)' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M6 11V7a4 4 0 0 1 8 0v4'/%3E%3C/g%3E%3C/svg%3E") no-repeat left top / 2.75rem;
}

body.woocommerce-account .woocommerce-ResetPassword .form-row {
	float: none;
	width: 100%;
	margin: 0 0 1.125rem;
}

body.woocommerce-account .woocommerce-ResetPassword .form-row:last-of-type { margin-bottom: 0; }

/* Recuperar contraseña: título y tarjeta centrados en la página (el contenedor es más ancho que la
 * tarjeta y quedaba a la izquierda, ni centrada ni alineada con el logo) */
.woocommerce-account.woocommerce-lost-password .entry-header { text-align: center; }

/* Las páginas sin sesión, sin la caja con sombra del bundle */
.woocommerce-account.woocommerce-lost-password #primary .container {
	padding: 0 1.25rem;
	box-shadow: none;
	border-radius: 0;
}

/* Mismo ancho de página para todo Mi cuenta */
@media (min-width: 1710px) {
	body.woocommerce-account #primary .container { max-width: 1420px; }
}

/* ------------------------------------------------------------------ */
/* Añadir método de pago: las opciones como en el checkout              */
/* ------------------------------------------------------------------ */

.woocommerce-account #add_payment_method ul.payment_methods {
	display: grid;
	gap: 0;
	margin: 0 0 1.5rem;
	padding: 0;
	border: 1px solid var(--eco-line);
	border-radius: var(--eco-radius-sm);
	list-style: none;
	overflow: hidden;
}

.woocommerce-account #add_payment_method ul.payment_methods > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin: 0;
	padding: 1rem 1.125rem;
	border-bottom: 1px solid var(--eco-line);
	background: #fff;
	transition: background-color .15s;
}

.woocommerce-account #add_payment_method ul.payment_methods > li:last-child { border-bottom: 0; }
.woocommerce-account #add_payment_method ul.payment_methods > li::before { content: none !important; display: none !important; } /* viñeta de hoja del tema */
.woocommerce-account #add_payment_method ul.payment_methods > li:hover { background: var(--eco-soft); }
.woocommerce-account #add_payment_method ul.payment_methods > li:has(> input:checked) {
	background: var(--eco-accent-soft);
	box-shadow: inset 0 0 0 1.5px var(--eco-accent);
}

.woocommerce-account #add_payment_method ul.payment_methods > li > input[type="radio"] {
	appearance: none;
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	border: 1.5px solid #9f9f9f;
	border-radius: 50%;
	background: #fff none;
	box-shadow: none;
	cursor: pointer;
}

.woocommerce-account #add_payment_method ul.payment_methods > li > input[type="radio"]:checked { border: 6px solid var(--eco-ink); }
.woocommerce-account #add_payment_method ul.payment_methods > li > input[type="radio"]:focus-visible { outline: 2px solid var(--eco-accent); outline-offset: 2px; }

.woocommerce-account #add_payment_method ul.payment_methods > li > label {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	margin: 0;
	color: var(--eco-ink);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

/* El icono de la pasarela no aporta (Redsys sale como un círculo negro) */
.woocommerce-account #add_payment_method ul.payment_methods > li > label img { display: none; }

.woocommerce-account #add_payment_method .payment_box {
	flex: 1 0 100%;
	margin: 0;
	padding: 0 0 0 2rem;
	background: none;
	color: var(--eco-muted);
	font-size: .9375rem;
}

.woocommerce-account #add_payment_method .payment_box::before { content: none; }
.woocommerce-account #add_payment_method .payment_box:not(:has(:is(p, input, select, iframe, label))) { display: none !important; } /* vacía */
.woocommerce-account #add_payment_method .form-row { margin: 0; padding: 0; }
