/*
 * HCP private area: WooCommerce account, customer dashboard and support.
 * Templates and business logic remain in WooCommerce and hcp-* plugins.
 */
body.hcp-area-privada { --hcp-private-accent: var(--wp--preset--color--red); }
body.hcp-area-privada main.wp-block-group { max-width: var(--hcp-wrap); }
body.hcp-area-privada main > .wp-block-post-title {
	max-width: var(--hcp-wrap); margin: 0 auto 1.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em;
}
body.hcp-area-privada .hcp-card { padding: 0; background: transparent; box-shadow: none; }
body.hcp-area-privada .entry-content > .woocommerce {
	width: 100%; max-width: var(--hcp-wrap); margin-inline: auto;
}
body.hcp-area-privada .woocommerce-notices-wrapper:empty { display: none; }
body.hcp-area-privada .woocommerce-error,
body.hcp-area-privada .woocommerce-info,
body.hcp-area-privada .woocommerce-message {
	border: 1px solid var(--wp--preset--color--line);
	border-top: 3px solid var(--hcp-private-accent);
	border-radius: var(--hcp-radius-sm);
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink);
}

/* Login and password recovery */
body.hcp-area-privada .woocommerce > h2 {
	box-sizing: border-box; width: 100%; margin: 0 auto;
	padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 5vw, 2.5rem) 0;
	border: 1px solid var(--wp--preset--color--line); border-bottom: 0;
	border-radius: var(--hcp-radius) var(--hcp-radius) 0 0;
	background: var(--wp--preset--color--paper); font-size: clamp(1.35rem, 3vw, 1.75rem);
}
body.hcp-area-privada form.woocommerce-form-login,
body.hcp-area-privada form.woocommerce-ResetPassword {
	box-sizing: border-box; width: 100%; margin: 0 auto;
	padding: 1rem clamp(1.25rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
	border: 1px solid var(--wp--preset--color--line); border-top: 0;
	border-radius: 0 0 var(--hcp-radius) var(--hcp-radius);
	background: var(--wp--preset--color--paper); box-shadow: 0 16px 40px rgb(23 17 13 / 6%);
}
body.hcp-area-privada .woocommerce form .form-row { float: none; width: 100%; margin: 0 0 1.15rem; padding: 0; }
body.hcp-area-privada .woocommerce form label {
	display: block; margin: 0 0 .4rem; color: var(--wp--preset--color--ink);
	font-size: .92rem; font-weight: 700;
}
body.hcp-area-privada .woocommerce form input.input-text,
body.hcp-area-privada .woocommerce form select,
body.hcp-area-privada .woocommerce form textarea {
	box-sizing: border-box; width: 100%; min-height: 48px; padding: .75rem .9rem;
	border: 1px solid #c9c5c0; border-radius: var(--hcp-radius-sm);
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font: inherit;
}
body.hcp-area-privada .woocommerce form input.input-text:focus,
body.hcp-area-privada .woocommerce form select:focus,
body.hcp-area-privada .woocommerce form textarea:focus {
	border-color: var(--hcp-private-accent); box-shadow: 0 0 0 3px rgb(207 46 46 / 16%); outline: 0;
}
body.hcp-area-privada .woocommerce-form-login__rememberme {
	display: inline-flex; align-items: center; gap: .55rem; margin: 0 1rem 0 0; font-weight: 400;
}
body.hcp-area-privada .woocommerce-form-login__rememberme input { margin: 0; accent-color: var(--hcp-private-accent); }
body.hcp-area-privada .woocommerce button.button,
body.hcp-area-privada .woocommerce a.button,
body.hcp-area-privada .woocommerce input.button,
body.hcp-area-privada .woocommerce button[type="submit"] {
	min-height: 46px; padding: .75rem 1.25rem; border: 0; border-radius: var(--hcp-radius-sm);
	background: var(--hcp-private-accent); color: #fff; font: inherit; font-weight: 700;
	line-height: 1.2; text-decoration: none; transition: background-color 150ms ease, transform 150ms ease;
}
body.hcp-area-privada .woocommerce button.button:hover,
body.hcp-area-privada .woocommerce a.button:hover,
body.hcp-area-privada .woocommerce input.button:hover,
body.hcp-area-privada .woocommerce button[type="submit"]:hover {
	background: var(--wp--preset--color--red-dark); color: #fff; transform: translateY(-1px);
}
body.hcp-area-privada .woocommerce-LostPassword { margin: .25rem 0 0; font-size: .92rem; }

/* Customer dashboard */
body.hcp-area-privada .woocommerce-MyAccount-content {
	box-sizing: border-box; width: 100% !important; max-width: var(--hcp-wrap) !important;
	margin-inline: auto !important; float: none !important;
}
body.hcp-area-privada .hcp-dash-cabecera-bloque {
	display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--hcp-radius);
	background: var(--wp--preset--color--paper); box-shadow: 0 12px 32px rgb(23 17 13 / 5%);
}
body.hcp-area-privada .hcp-dash-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
body.hcp-area-privada .hcp-dash-titulo {
	margin: 0; color: var(--wp--preset--color--ink);
	font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2;
}
body.hcp-area-privada .hcp-dash-bloque,
body.hcp-area-privada .hcp-dash-nivel,
body.hcp-area-privada .hcp-dash-cal-bloque {
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--hcp-radius);
	background: var(--wp--preset--color--paper); box-shadow: none;
}
body.hcp-area-privada .hcp-dash-bloque { padding: clamp(1rem, 2.5vw, 1.5rem); }
/* El padding uniforme de la portada se define en cuenta-portada.css. */
body.hcp-area-privada .hcp-dash-nivel { overflow: hidden; }
body.hcp-area-privada .hcp-dash-cal-bloque { margin: 0 0 1.25rem; }
/* Las cabeceras de portada comparten estilo en cuenta-portada.css. */
body.hcp-area-privada .hcp-dash-cal-contenido { padding: 0; }

/* Secciones de HCP Soporte (Pedidos, Suscripciones, Revistas, Vídeos, Soporte…).
   El plugin solo pinta el HTML; todo su aspecto está aquí. */
body.hcp-area-privada .hcp-sop { width: 100%; max-width: var(--hcp-wrap); margin-inline: auto; color: var(--wp--preset--color--ink); }
body.hcp-area-privada .hcp-sop-bloque {
	padding: 18px 20px; background: #fff;
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--hcp-radius);
	box-shadow: 0 10px 28px rgb(23 17 13 / 4%);
}
body.hcp-area-privada .hcp-sop-bloque h3 { margin: 0 0 12px; color: var(--hcp-private-accent); font-size: 1.15em; }
body.hcp-area-privada .hcp-sop-bloque .hcp-sop-proximamente { margin: 0; color: #888; font-style: italic; }

/* Botón estándar de todas las secciones — también en las páginas nativas de
 * WooCommerce (My Account) fuera del panel hcp-sop, como cambiar método de
 * pago o ver el detalle de una suscripción, antes sin este estilo. */
body.hcp-area-privada :is(.hcp-sop, .woocommerce-MyAccount-content) :is(.button, button[type="submit"], button[type="button"], .hcp-ped-ayuda-btn, .hcp-sop-btn-descargas, .hcp-fac-btn, .hcp-ug0-btn, .hcp-ug0-pp-btn, .hcp-vid-btn, .hcp-vid-aviso-btn, .hcp-sop-btn-vertodos, .hcp-sop-ped-tracking-btn) {
	display: inline-block; padding: 12px 28px !important;
	border: none !important; border-radius: var(--hcp-radius-sm) !important;
	background: var(--hcp-private-accent) !important; color: #fff !important;
	font-family: var(--wp--preset--font-family--body) !important; font-size: 1em !important; font-weight: 700 !important;
	text-align: center !important; text-decoration: none !important; cursor: pointer;
}
body.hcp-area-privada :is(.hcp-sop, .woocommerce-MyAccount-content) :is(.button, button, .hcp-ped-ayuda-btn, .hcp-sop-btn-descargas, .hcp-fac-btn, .hcp-ug0-btn, .hcp-ug0-pp-btn, .hcp-vid-btn, .hcp-vid-aviso-btn, .hcp-sop-btn-vertodos, .hcp-sop-ped-tracking-btn):hover {
	background: var(--wp--preset--color--red-dark) !important;
}
body.hcp-area-privada :is(.hcp-sop, .woocommerce-MyAccount-content) :is(.button, button):disabled,
body.hcp-area-privada :is(.hcp-sop, .woocommerce-MyAccount-content) :is(.button, button):disabled:hover { background: #bbb !important; cursor: not-allowed; }
body.hcp-area-privada .hcp-sop #hcp-fac-btn { display: block; }
@media (max-width: 780px) {
	body.hcp-area-privada :is(.hcp-sop, .woocommerce-MyAccount-content) :is(.button, button[type="submit"], button[type="button"], .hcp-ped-ayuda-btn, .hcp-sop-btn-descargas, .hcp-fac-btn, .hcp-ug0-btn, .hcp-ug0-pp-btn, .hcp-vid-btn, .hcp-vid-aviso-btn, .hcp-sop-btn-vertodos, .hcp-sop-ped-tracking-btn) {
		display: block; width: 100% !important; box-sizing: border-box;
	}
}

/* Orders, subscriptions, addresses and account details */
body.hcp-area-privada .woocommerce-MyAccount-content table.shop_table {
	border: 1px solid var(--wp--preset--color--line); border-spacing: 0;
	border-radius: var(--hcp-radius-sm); background: var(--wp--preset--color--paper); overflow: hidden;
}
body.hcp-area-privada .woocommerce-MyAccount-content table.shop_table th {
	background: var(--wp--preset--color--ground); color: var(--wp--preset--color--ink); font-weight: 700;
}
body.hcp-area-privada .woocommerce-MyAccount-content table.shop_table th,
body.hcp-area-privada .woocommerce-MyAccount-content table.shop_table td {
	padding: .85rem; border-color: var(--wp--preset--color--line);
}
body.hcp-area-privada .woocommerce-MyAccount-content .woocommerce-Address {
	box-sizing: border-box; padding: 1rem; border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hcp-radius-sm); background: var(--wp--preset--color--paper);
}
body.hcp-area-privada .woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
/* Dirección de facturación/envío de "Ver pedido"/"Ver suscripción" — plantilla
 * order-details-customer.php del propio WooCommerce, con sus propias clases
 * (no .woocommerce-Address), antes sin estilo. */
body.hcp-area-privada .woocommerce-MyAccount-content .woocommerce-customer-details address {
	box-sizing: border-box; padding: 1rem; border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hcp-radius-sm); background: var(--wp--preset--color--paper);
	font-style: normal; display: block;
}
body.hcp-area-privada .woocommerce-MyAccount-content .woocommerce-column__title {
	margin: 1.5rem 0 .75rem; font-size: 1.1em; color: var(--hcp-private-accent);
}
body.hcp-area-privada .woocommerce-MyAccount-content a:not(.button) {
	color: var(--wp--preset--color--red-dark); font-weight: 600;
}
/* Match the theme content width while keeping the login fields readable. */
body.hcp-area-privada form.woocommerce-form-login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(1rem, 3vw, 2.5rem);
}
body.hcp-area-privada form.woocommerce-form-login > p.woocommerce-form-row--wide {
	grid-column: auto; width: auto; min-width: 0;
}
body.hcp-area-privada form.woocommerce-form-login > p.form-row:not(.form-row-wide),
body.hcp-area-privada form.woocommerce-form-login > p.woocommerce-LostPassword { grid-column: 1 / -1; }

/* Account sections hidden by the legacy support plugin are restored above. */
body.hcp-area-privada .woocommerce-MyAccount-navigation {
	display: block !important;
	box-sizing: border-box;
	float: left !important;
	width: 250px !important;
	margin: 0 !important;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: .5rem;
	list-style: none;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hcp-radius);
	background: var(--wp--preset--color--paper);
	box-shadow: 0 8px 24px rgb(23 17 13 / 4%);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li { margin: 0; }
body.hcp-area-privada .woocommerce-MyAccount-navigation li + li { border-top: 1px solid var(--wp--preset--color--line); }
body.hcp-area-privada .woocommerce-MyAccount-navigation a {
	display: block;
	padding: .8rem .9rem;
	border-radius: var(--hcp-radius-sm);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--hcp-private-accent);
	color: #fff;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation a:hover,
body.hcp-area-privada .woocommerce-MyAccount-navigation a:focus-visible {
	background: rgb(207 46 46 / 9%);
	color: var(--wp--preset--color--ink);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.is-active a:hover { background: var(--wp--preset--color--red-dark); color: #fff; }
body.hcp-area-privada .woocommerce-MyAccount-content {
	width: calc(100% - 282px) !important;
	max-width: none !important;
	margin: 0 !important;
	float: right !important;
}
body.hcp-area-privada .woocommerce::after { content: ""; display: table; clear: both; }

@media (max-width: 780px) {
	body.hcp-area-privada main.wp-block-group { padding-top: var(--wp--preset--spacing--40) !important; }
	body.hcp-area-privada main > .wp-block-post-title { margin-bottom: 1.1rem; }
	body.hcp-area-privada .hcp-dash-cabecera { align-items: flex-start; }
	body.hcp-area-privada .woocommerce-MyAccount-navigation {
		float: none !important; width: 100% !important; margin: 0 0 1.25rem !important;
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation ul {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation li:nth-child(even) {
		border-left: 1px solid var(--wp--preset--color--line);
	}
	body.hcp-area-privada .woocommerce-MyAccount-content {
		width: 100% !important; max-width: none !important; float: none !important;
	}
	body.hcp-area-privada .woocommerce-MyAccount-content table.shop_table {
		display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
	}
	body.hcp-area-privada .woocommerce form .form-row { margin-bottom: 1rem; }
	body.hcp-area-privada form.woocommerce-form-login { grid-template-columns: minmax(0, 1fr); }
	body.hcp-area-privada form.woocommerce-form-login > p.woocommerce-form-row--wide { grid-column: 1 / -1; width: 100%; }
}

/* Align the private area with the site's shared .hcp-wrap gutters. */
body.hcp-area-privada .entry-content > .woocommerce {
	box-sizing: border-box;
	padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Keep the account navigation inside the same desktop gutter as site content. */
body.hcp-area-privada .woocommerce-MyAccount-navigation {
	margin-left: clamp(1rem, 5vw, 2rem) !important;
}

/* Use the theme container for the WooCommerce account layout. */
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 1.5rem;
	width: min(100%, calc(var(--hcp-wrap) + 2 * clamp(1rem, 5vw, 2rem))) !important;
	max-width: calc(var(--hcp-wrap) + 2 * clamp(1rem, 5vw, 2rem)) !important;
	margin-inline: auto !important;
	padding-inline: clamp(1rem, 5vw, 2rem);
}
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
body.hcp-area-privada .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	min-width: 0;
	max-width: none !important;
	margin: 0 !important;
}
@media (max-width: 780px) {
	body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}
	body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
		grid-column: 1;
	}
}

/* Keep the expanded WooCommerce account menu compact while preserving every section. */
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	grid-template-columns: 255px minmax(0, 1fr);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 255px;
	max-height: min(72vh, 680px);
	position: sticky;
	top: 1.25rem;
	align-self: start;
	overflow-y: auto;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation a {
	padding: .62rem .72rem;
	font-size: .94rem;
}
@media (max-width: 780px) {
	body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation {
		width: 100% !important;
		max-width: none;
		max-height: min(42vh, 300px);
		position: static;
	}
}

/* Pin the navigation and account panel to their intended grid columns. */
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	grid-template-areas:
		"notices notices"
		"account-nav account-content";
}
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-area: notices;
}
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation {
	grid-area: account-nav;
}
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content {
	grid-area: account-content;
}
@media (max-width: 780px) {
	body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-areas:
			"notices"
			"account-nav"
			"account-content";
	}
}

/* Keep the full account grid inside the theme's 1200px content container. */
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	box-sizing: border-box;
	width: min(calc(100% - 2 * clamp(1rem, 5vw, 2rem)), var(--hcp-wrap)) !important;
	max-width: var(--hcp-wrap) !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

/* The 1200px account main must itself be centered in the viewport. */
body.hcp-area-privada main.wp-block-group {
	width: 100%;
	max-width: var(--hcp-wrap);
	margin-inline: auto !important;
}

/* Match the homepage's 1200px content width; count the root gutters only once. */
body.hcp-area-privada main.wp-block-group {
	box-sizing: border-box;
	max-width: calc(var(--hcp-wrap) + 2 * clamp(1rem, 5vw, 2rem));
}
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	width: 100% !important;
	max-width: var(--hcp-wrap) !important;
	padding-inline: 0 !important;
}

/* The hidden account title should not leave a second top gap before the card. */
body.hcp-area-privada main.wp-block-group > .hcp-card {
	margin-block-start: 0 !important;
}

/* Remove the constrained-layout block gap before WooCommerce account content. */
body.hcp-area-privada .entry-content > .woocommerce {
	margin-block-start: 0 !important;
}

/* WooCommerce's wrapper must not add its own top spacing in the account page. */
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	margin-block-start: 0 !important;
	padding-block-start: 0 !important;
}

/* The empty notice row must not leave a vertical grid gap above the account. */
body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	column-gap: 1.5rem;
	row-gap: 0;
}
@media (max-width: 780px) {
	body.hcp-area-privada .woocommerce-MyAccount-navigation {
		margin-bottom: 1rem !important;
	}
}

/* Remove separators between account navigation items. */
body.hcp-area-privada .woocommerce-MyAccount-navigation li + li {
	border-top: 0 !important;
}
@media (max-width: 780px) {
	body.hcp-area-privada .woocommerce-MyAccount-navigation li:nth-child(even) {
		border-left: 0 !important;
	}
}


/* One page scroll on desktop; compact disclosure navigation on mobile. */
body.hcp-area-privada .woocommerce-MyAccount-navigation {
	position: sticky;
	top: 1.25rem;
	align-self: start;
	max-height: calc(100vh - 2.5rem);
	max-height: calc(100dvh - 2.5rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}
body.hcp-area-privada .woocommerce-MyAccount-content,
body.hcp-area-privada .hcp-sop-bloque {
	max-height: none !important;
	overflow: visible !important;
}
body.hcp-area-privada .hcp-account-nav-toggle { display: none; }
@media (max-width: 780px) {
	body.hcp-area-privada .woocommerce-MyAccount-navigation {
		position: relative;
		top: auto;
		max-height: none;
		overflow: visible;
		margin-bottom: 1rem !important;
		z-index: 20;
	}
	body.hcp-area-privada .hcp-account-nav-toggle {
		box-sizing: border-box;
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: .75rem;
		padding: .8rem 1rem;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: var(--hcp-radius-sm);
		background: var(--wp--preset--color--paper);
		color: var(--wp--preset--color--ink);
		font: inherit;
		font-weight: 700;
		text-align: left;
		cursor: pointer;
	}
	body.hcp-area-privada .hcp-account-nav-toggle__label {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	body.hcp-area-privada .hcp-account-nav-toggle:focus-visible {
		outline: 2px solid var(--hcp-private-accent);
		outline-offset: 2px;
	}
	body.hcp-area-privada .hcp-account-nav-toggle__chevron {
		flex: 0 0 auto;
		transition: transform 150ms ease;
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation.is-open .hcp-account-nav-toggle__chevron {
		transform: rotate(180deg);
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation.has-compact-toggle > ul {
		display: none;
		position: absolute;
		top: calc(100% + .4rem);
		left: 0;
		right: 0;
		max-height: min(65vh, 400px);
		max-height: min(65dvh, 400px);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--wp--preset--color--paper);
		box-shadow: 0 12px 28px rgb(23 17 13 / 12%);
		z-index: 30;
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation.has-compact-toggle.is-open > ul { display: block; }
	body.hcp-area-privada .woocommerce-MyAccount-navigation > ul li:nth-child(even) { border-left: 0 !important; }
}


/* Keep link padding inside each item; remove all space between menu items. */
body.hcp-area-privada .woocommerce-MyAccount-navigation ul {
	gap: 0 !important;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li,
body.hcp-area-privada .woocommerce-MyAccount-navigation li + li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}


/* Roomier account menu buttons with consistent, unlined link styling. */
body.hcp-area-privada .woocommerce-MyAccount-navigation a {
	padding: .85rem 1rem;
	text-decoration: none !important;
}


/* Group digital support pages under one collapsible account menu section. */
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group-toggle {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .85rem 1rem;
	border: 0;
	border-radius: var(--hcp-radius-sm);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: .94rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group-toggle:hover,
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group-toggle:focus-visible {
	background: rgb(207 46 46 / 9%);
	color: var(--wp--preset--color--ink);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group.is-open > .hcp-account-nav-group-toggle {
	background: rgb(207 46 46 / 7%);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group-chevron {
	flex: 0 0 auto;
	transition: transform 150ms ease;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group.is-open > .hcp-account-nav-group-toggle .hcp-account-nav-group-chevron {
	transform: rotate(180deg);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-group > ul.hcp-account-nav-submenu {
	display: none;
	position: static;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-height: none;
	margin: 0;
	padding: 0 .55rem; box-sizing: border-box;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-group.is-open > ul.hcp-account-nav-submenu {
	display: block;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-toggle {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .85rem 1rem;
	border: 0;
	border-radius: var(--hcp-radius-sm);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: .94rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-toggle:hover,
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-toggle:focus-visible {
	background: rgb(207 46 46 / 9%);
	color: var(--wp--preset--color--ink);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-group.is-open > .hcp-account-nav-brand-toggle {
	background: rgb(207 46 46 / 5%);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-group.is-open > .hcp-account-nav-brand-toggle .hcp-account-nav-group-chevron {
	transform: rotate(180deg);
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-brand-group > ul.hcp-account-nav-brand-submenu {
	display: none;
	position: static;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-height: none;
	margin: 0;
	padding: 0 .55rem; box-sizing: border-box;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-brand-group.is-open > ul.hcp-account-nav-brand-submenu {
	display: block;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-submenu a {
	font-size: .94rem;
}


/* Keep all account actions the same width, with each nested level indented. */
body.hcp-area-privada .woocommerce-MyAccount-navigation a,
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-group-toggle,
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-toggle {
	box-sizing: border-box;
	width: 100% !important;
	margin: 0 0 2px !important;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation a {
	display: block;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-group > ul.hcp-account-nav-submenu,
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-brand-group > ul.hcp-account-nav-brand-submenu {
	box-sizing: border-box;
	width: 100%;
	padding: 0;
}
@media (min-width: 781px) {
	body.hcp-area-privada .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 275px minmax(0, 1fr);
	}
	body.hcp-area-privada .woocommerce-MyAccount-navigation {
		max-width: 275px;
	}
}

/* Keep highlighted buttons aligned to the menu; indent only nested labels. */
body.hcp-area-privada .woocommerce-MyAccount-navigation .hcp-account-nav-brand-toggle {
	padding-left: 2rem;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-brand-group > ul.hcp-account-nav-brand-submenu a {
	padding-left: 3rem !important;
}
body.hcp-area-privada .woocommerce-MyAccount-navigation li.hcp-account-nav-group > ul.hcp-account-nav-submenu > li:not(.hcp-account-nav-brand-group) > a {
	padding-left: 2rem !important;
}

/* Match account dashboard typography to the site's body type scale. */
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-cabecera-bloque,
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-insignias,
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-bloque,
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-nivel,
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-cal-bloque,
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-sf-caja {
	font-family: var(--wp--preset--font-family--body);
}
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-titulo {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1.25rem !important;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-cabecera-bloque :is(h1, h2, h3, h4, h5, h6),
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-insignias :is(h1, h2, h3, h4, h5, h6),
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-bloque :is(h1, h2, h3, h4, h5, h6),
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-nivel :is(h1, h2, h3, h4, h5, h6),
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-sf-caja :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1rem !important;
	line-height: 1.4;
	letter-spacing: 0;
}

/* Aviso rojo "!" de novedades sin ver en el menú (assets/area-privada.js). */
body.hcp-area-privada .hcp-account-nav-badge {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 16px; height: 16px; margin-left: 6px; border-radius: 50%;
	background: var(--hcp-private-accent); color: #fff;
	font-size: 11px; font-weight: 800; line-height: 1; vertical-align: middle;
	position: relative; top: -1px;
}
body.hcp-area-privada .hcp-account-nav-toggle .hcp-account-nav-badge { margin-left: auto; top: 0; }

/* Logged-out login form: same 1200px width as the logged-in account (overrides
   WooCommerce's 1000px cap and the gutter padding above, counted once by main). */
body.hcp-area-privada main .woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--hcp-wrap);
	margin-inline: auto;
	padding-inline: 0;
}

/* En Mi cuenta, el carnet usa su imagen propia por encima del fondo de tarjeta general. */
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-portada .hcp-dash-cabecera-bloque {
	display: flex;
	gap: 0;
	padding: 14px 10px 14px 14px;
	border: 0;
	border-radius: 14px;
	background-color: transparent;
	background-image: url('carnet-pixels-estandar.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: none;
}
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-portada .hcp-dash-cabecera-bloque--oro {
	background-image: url('carnet-pixels-oro-v2.png');
}

/* Tipografía de la tarjeta inicial Pixel+. */
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-pixel-plus {
	font-family: var(--wp--preset--font-family--body);
}
body.hcp-area-privada .woocommerce-MyAccount-content .hcp-dash-pixel-plus-titulo {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: .9em !important;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .04em;
}
