/**
 * Tu Piscina Tenerife — Páginas de cliente (Mi cuenta + Login + Registro)
 * Branding: navy #003D5C + turquesa #00BCD4 + Fraunces italic + Poppins
 */

/* ═══════════════════════════════════════════════════════════
   RESET / wrapper
   ═══════════════════════════════════════════════════════════ */
.tpt-account {
	font-family: 'Poppins', sans-serif;
	color: #2b3a44;
	background: #F8FAFB;
	min-height: 60vh;
}

/* Anular margenes raros del .woocommerce wrapper */
.woocommerce-account .woocommerce {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
.woocommerce-account #content,
.woocommerce-account #primary,
.woocommerce-account .entry-content,
.woocommerce-account article {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.woocommerce-account .entry-header,
.woocommerce-account .page-header,
.woocommerce-account .entry-title { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.tpt-account__hero {
	background: #003D5C;
	color: #fff;
	padding: 64px 28px 80px;
	position: relative;
	overflow: hidden;
}
.tpt-account__hero::before { display: none; }
.tpt-account__hero-inner {
	max-width: 1180px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.tpt-account__hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #00BCD4;
	margin-bottom: 14px;
}
.tpt-account__hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #00BCD4;
	box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18);
}
.tpt-account__hero-title {
	font-family: 'Poppins', sans-serif !important;
	font-size: clamp(1.85rem, 4vw, 2.65rem);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 12px;
	color: #ffffff !important;
	letter-spacing: -0.01em;
}
.tpt-account__hero-title .serif,
.tpt-account__hero-title .accent {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	color: #00BCD4;
}
.tpt-account__hero-sub {
	max-width: 640px;
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}
.tpt-account__hero-sub a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.55);
	text-underline-offset: 3px;
}
.tpt-account__hero-sub a:hover { color: #00BCD4; }

/* ═══════════════════════════════════════════════════════════
   CONTAINER (sidebar + content)
   ═══════════════════════════════════════════════════════════ */
.tpt-account__container {
	max-width: 1180px;
	margin: -40px auto 64px;
	padding: 0 28px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 28px;
	align-items: start;
	position: relative;
	z-index: 2;
}

@media (max-width: 880px) {
	.tpt-account__container { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION (sidebar) — overrides anti-Storefront (float+width:30%)
   ═══════════════════════════════════════════════════════════ */
.tpt-account__container .woocommerce-MyAccount-navigation,
.tpt-account__container .tpt-account__nav,
.tpt-account__container .woocommerce-MyAccount-content,
.tpt-account__container .tpt-account__content {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.tpt-account__nav {
	background: #fff;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 12px 32px -20px rgba(0, 61, 92, 0.22);
	position: sticky;
	top: 96px;
}
.tpt-account__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tpt-account__nav-item { margin: 0; }
.tpt-account__nav-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	color: #003D5C;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background .15s, color .15s, transform .15s;
}
.tpt-account__nav-item a:hover {
	background: rgba(0, 188, 212, 0.08);
	color: #00BCD4;
	transform: translateX(2px);
}
.tpt-account__nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	flex-shrink: 0;
	color: currentColor;
}
.tpt-account__nav-item.is-active a,
.tpt-account__nav-item a[aria-current="page"] {
	background: #003D5C;
	color: #fff;
}
.tpt-account__nav-item.is-active a:hover,
.tpt-account__nav-item a[aria-current="page"]:hover {
	background: #003D5C;
	color: #fff;
	transform: none;
}
.tpt-account__nav-item--logout {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid rgba(0, 61, 92, 0.08);
}
.tpt-account__nav-item--logout a {
	color: #6b7280;
}
.tpt-account__nav-item--logout a:hover {
	color: #d63638;
	background: rgba(214, 54, 56, 0.06);
}

@media (max-width: 880px) {
	.tpt-account__nav {
		position: static;
		padding: 8px;
	}
	.tpt-account__nav-list {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.tpt-account__nav-item a { padding: 9px 12px; font-size: 13px; }
	.tpt-account__nav-item--logout {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
		width: 100%;
	}
}

/* ═══════════════════════════════════════════════════════════
   CONTENT (panel principal)
   ═══════════════════════════════════════════════════════════ */
.tpt-account__content {
	background: #fff;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 16px;
	padding: 32px 32px 30px;
	box-shadow: 0 12px 40px -24px rgba(0, 61, 92, 0.22);
	min-height: 420px;
}

@media (max-width: 600px) {
	.tpt-account__content { padding: 22px 20px; border-radius: 12px; }
	.tpt-account__hero { padding: 48px 22px 64px; }
	.tpt-account__container { margin-top: -32px; padding: 0 18px; }
}

/* Headings dentro del panel */
.tpt-account__content h2,
.tpt-account__content h3 {
	font-family: 'Poppins', sans-serif;
	color: #003D5C;
	margin: 0 0 12px;
}
.tpt-account__content h2 { font-size: 1.4rem; font-weight: 600; }
.tpt-account__content h3 { font-size: 1.1rem; font-weight: 600; }
.tpt-account__content p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 14px;
}
.tpt-account__content p a {
	color: #00BCD4;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.tpt-account__content p a:hover { color: #003D5C; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — Bienvenida + tarjetas + últimos pedidos
   ═══════════════════════════════════════════════════════════ */
.tpt-account-dashboard__welcome { margin-bottom: 28px; }
.tpt-account-dashboard__hello {
	font-family: 'Poppins', sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: #003D5C;
	margin: 0 0 6px;
}
.tpt-account-dashboard__hello span {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	color: #00BCD4;
}
.tpt-account-dashboard__sub {
	font-size: 14.5px;
	color: #4b5563;
	margin: 0 0 6px;
}
.tpt-account-dashboard__logout {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}
.tpt-account-dashboard__logout a {
	color: #6b7280;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.tpt-account-dashboard__logout a:hover { color: #d63638; }

.tpt-account-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 0 0 32px;
}
@media (max-width: 600px) {
	.tpt-account-dashboard__cards { grid-template-columns: 1fr; }
}

.tpt-account-dashboard__card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 18px;
	background: #F8FAFB;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 12px;
	text-decoration: none;
	color: #003D5C;
	transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.tpt-account-dashboard__card:hover {
	background: #fff;
	border-color: #00BCD4;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px -16px rgba(0, 188, 212, 0.45);
}
.tpt-account-dashboard__card-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #E0F7FA;
	color: #003D5C;
	border-radius: 12px;
	transition: background .18s, color .18s;
}
.tpt-account-dashboard__card:hover .tpt-account-dashboard__card-icon {
	background: #00BCD4;
	color: #fff;
}
.tpt-account-dashboard__card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tpt-account-dashboard__card-title {
	font-weight: 600;
	font-size: 15px;
	color: #003D5C;
}
.tpt-account-dashboard__card-desc {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.45;
}
.tpt-account-dashboard__card-arrow {
	color: #00BCD4;
	font-size: 18px;
	flex-shrink: 0;
	transition: transform .18s;
}
.tpt-account-dashboard__card:hover .tpt-account-dashboard__card-arrow {
	transform: translateX(3px);
}

.tpt-account-dashboard__card--wa .tpt-account-dashboard__card-icon {
	background: #E8F5E9;
	color: #25D366;
}
.tpt-account-dashboard__card--wa:hover .tpt-account-dashboard__card-icon {
	background: #25D366;
	color: #fff;
}

/* Últimos pedidos */
.tpt-account-dashboard__recent {
	margin-top: 8px;
	border-top: 1px solid rgba(0, 61, 92, 0.08);
	padding-top: 24px;
}
.tpt-account-dashboard__recent-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}
.tpt-account-dashboard__recent-head h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1.35rem;
	color: #003D5C;
	margin: 0;
}
.tpt-account-dashboard__recent-all {
	font-size: 13px;
	font-weight: 500;
	color: #00BCD4;
	text-decoration: none;
}
.tpt-account-dashboard__recent-all:hover { color: #003D5C; }

.tpt-account-dashboard__recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tpt-account-dashboard__recent-item a {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	gap: 14px;
	align-items: center;
	padding: 12px 16px;
	background: #F8FAFB;
	border: 1px solid rgba(0, 61, 92, 0.06);
	border-radius: 10px;
	text-decoration: none;
	color: #003D5C;
	font-size: 13.5px;
	transition: background .15s, border-color .15s;
}
.tpt-account-dashboard__recent-item a:hover {
	background: #fff;
	border-color: #00BCD4;
}
.tpt-account-dashboard__recent-number { font-weight: 700; color: #003D5C; }
.tpt-account-dashboard__recent-date,
.tpt-account-dashboard__recent-items { color: #6b7280; }
.tpt-account-dashboard__recent-total {
	font-weight: 600;
	color: #003D5C;
}
.tpt-account-dashboard__recent-status {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: #E0F7FA;
	color: #006E97;
	white-space: nowrap;
}
.tpt-account-dashboard__status--completed,
.tpt-account-dashboard__status--processing {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
}
.tpt-account-dashboard__status--cancelled,
.tpt-account-dashboard__status--failed,
.tpt-account-dashboard__status--refunded {
	background: rgba(220, 38, 38, 0.10);
	color: #b91c1c;
}
.tpt-account-dashboard__status--pending,
.tpt-account-dashboard__status--on-hold {
	background: rgba(245, 158, 11, 0.14);
	color: #b45309;
}

@media (max-width: 700px) {
	.tpt-account-dashboard__recent-item a {
		grid-template-columns: 1fr auto;
		grid-template-areas: "number status" "date total" "items items";
		gap: 6px 12px;
	}
	.tpt-account-dashboard__recent-number { grid-area: number; }
	.tpt-account-dashboard__recent-date { grid-area: date; }
	.tpt-account-dashboard__recent-items { grid-area: items; font-size: 12px; }
	.tpt-account-dashboard__recent-total { grid-area: total; }
	.tpt-account-dashboard__recent-status { grid-area: status; justify-self: end; }
}

/* Empty state (sin pedidos) */
.tpt-account-dashboard__empty {
	margin-top: 16px;
	padding: 32px 24px;
	text-align: center;
	background: #F8FAFB;
	border: 1px dashed rgba(0, 61, 92, 0.18);
	border-radius: 14px;
}
.tpt-account-dashboard__empty h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	color: #003D5C;
	font-size: 1.4rem;
	margin: 0 0 8px;
}
.tpt-account-dashboard__empty p {
	color: #6b7280;
	max-width: 480px;
	margin: 0 auto 18px;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN + REGISTRO
   ═══════════════════════════════════════════════════════════ */
.tpt-account__container--login {
	grid-template-columns: 320px 1fr;
}
.tpt-account__container--centered {
	grid-template-columns: 1fr;
	max-width: 540px;
}
@media (max-width: 880px) {
	.tpt-account__container--login { grid-template-columns: 1fr; }
}

.tpt-account__benefits {
	background: #fff;
	color: #2b3a44;
	border-radius: 16px;
	padding: 28px 26px 24px;
	border: 1px solid rgba(0, 61, 92, 0.08);
	box-shadow: 0 12px 32px -22px rgba(0, 61, 92, 0.22);
	position: relative;
}
.tpt-account__benefits::before { display: none; }
.tpt-account__benefits-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	color: #003D5C;
	margin: 0 0 8px;
	line-height: 1.25;
}
.tpt-account__benefits-title .serif {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	color: #00BCD4;
}
.tpt-account__benefits-intro {
	font-size: 13.5px;
	line-height: 1.55;
	color: #6b7280;
	margin: 0 0 18px;
}
.tpt-account__benefits-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tpt-account__benefits-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13.5px;
	line-height: 1.5;
	color: #4b5563;
}
.tpt-account__benefits-list li strong {
	color: #003D5C;
	font-weight: 600;
}
.tpt-account__benefits-ic {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 188, 212, 0.12);
	color: #00BCD4;
	border-radius: 50%;
	margin-top: 1px;
}
.tpt-account__benefits-help {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 61, 92, 0.08);
	font-size: 12.5px;
	color: #6b7280;
}
.tpt-account__benefits-help a {
	color: #00BCD4;
	text-decoration: none;
	font-weight: 500;
}
.tpt-account__benefits-help a:hover { color: #003D5C; text-decoration: underline; }

/* Pie de formulario: "¿No tienes cuenta? Crear cuenta →" */
.tpt-account__form-foot {
	text-align: center;
	margin: 14px 0 0;
	font-size: 13.5px;
	color: #6b7280;
}
.tpt-account__form-foot a {
	color: #00BCD4;
	text-decoration: none;
	font-weight: 600;
	margin-left: 4px;
}
.tpt-account__form-foot a:hover { color: #003D5C; text-decoration: underline; }

/* Card ancho para la página de registro */
.tpt-account__form-card--wide {
	max-width: 720px;
	margin: 0 auto;
	padding: 30px 32px 26px;
}
@media (max-width: 600px) {
	.tpt-account__form-card--wide { padding: 22px 20px; }
}

/* Grids 2 / 3 columnas para campos de formulario */
.tpt-account-grid-2,
.tpt-account-grid-3 {
	display: grid;
	gap: 14px;
	align-items: end; /* alinea los inputs al pie aunque los labels ocupen distinto número de líneas */
}
.tpt-account-grid-2 { grid-template-columns: 1fr 1fr; }
.tpt-account-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Los campos dentro de grids son columnas flex con input al pie */
.tpt-account-grid-2 > .tpt-account-field,
.tpt-account-grid-3 > .tpt-account-field {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.tpt-account-grid-2 > .tpt-account-field > label,
.tpt-account-grid-3 > .tpt-account-field > label {
	min-height: 18px; /* línea base para que labels de 1 línea ocupen lo mismo que vacíos */
}
.tpt-account-grid-2 > .tpt-account-field > input,
.tpt-account-grid-2 > .tpt-account-field > select,
.tpt-account-grid-3 > .tpt-account-field > input,
.tpt-account-grid-3 > .tpt-account-field > select {
	margin-top: auto; /* empuja el input al pie del campo → todos alineados */
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.tpt-account-grid-2,
	.tpt-account-grid-3 { grid-template-columns: 1fr; }
}

/* Fieldset on-brand para registro */
.tpt-account-fieldset {
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 12px;
	padding: 20px 22px;
	background: #F8FAFB;
	margin: 0 0 16px;
}
.tpt-account-fieldset legend {
	padding: 0 10px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #003D5C;
}
.tpt-account-fieldset .tpt-account-field + .tpt-account-field,
.tpt-account-fieldset .tpt-account-grid-2 + .tpt-account-field,
.tpt-account-fieldset .tpt-account-grid-3 + .tpt-account-field,
.tpt-account-fieldset .tpt-account-field + .tpt-account-grid-2,
.tpt-account-fieldset .tpt-account-field + .tpt-account-grid-3 {
	margin-top: 12px;
}

.tpt-account-help {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
}

.tpt-required {
	color: #dc2626;
	font-weight: 700;
}

/* Privacy field */
.tpt-account-field--privacy {
	padding: 14px 16px;
	background: rgba(0, 188, 212, 0.05);
	border: 1px solid rgba(0, 188, 212, 0.18);
	border-radius: 10px;
	margin-top: 4px;
}
.tpt-account-field--privacy .tpt-account-check {
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #4b5563;
}
.tpt-account-field--privacy .tpt-account-check input { margin-top: 3px; }
.tpt-account-field--privacy a { color: #00BCD4; text-decoration: underline; }

/* Collapsible <details> */
.tpt-account-collapsible {
	border: 1px solid rgba(0, 61, 92, 0.10);
	border-radius: 12px;
	background: #fff;
	margin: 0 0 16px;
	transition: box-shadow .2s;
}
.tpt-account-collapsible[open] {
	box-shadow: 0 8px 24px -16px rgba(0, 61, 92, 0.18);
}
.tpt-account-collapsible > summary {
	cursor: pointer;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	color: #003D5C;
	font-weight: 600;
	font-size: 14px;
	user-select: none;
}
.tpt-account-collapsible > summary::-webkit-details-marker { display: none; }
.tpt-account-collapsible > summary::after {
	content: '+';
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 188, 212, 0.12);
	color: #00BCD4;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 600;
	transition: background .15s, color .15s, transform .2s;
}
.tpt-account-collapsible[open] > summary::after {
	content: '−';
	background: #00BCD4;
	color: #fff;
}
.tpt-account-collapsible > summary small {
	display: block;
	font-weight: 400;
	font-size: 12.5px;
	color: #6b7280;
	margin-top: 2px;
}
.tpt-account-collapsible > summary > span:first-child {
	display: flex;
	flex-direction: column;
}
.tpt-account-collapsible > .tpt-account-fieldset,
.tpt-account-collapsible > .tpt-account-field {
	margin: 0 18px 18px;
}
.tpt-account-collapsible > .tpt-account-fieldset:first-of-type {
	margin-top: 6px;
}

.tpt-account-btn--lg {
	padding: 15px 26px;
	font-size: 15px;
}

/* Resaltar erro container */
.woocommerce-error {
	margin-bottom: 18px !important;
}
.woocommerce-error ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Forms wrapper */
.tpt-account__forms {
	display: grid;
	gap: 18px;
}
.tpt-account__forms--two {
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 740px) {
	.tpt-account__forms--two { grid-template-columns: 1fr; }
}

.tpt-account__form-card {
	background: #fff;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 16px;
	padding: 24px 24px 22px;
	box-shadow: 0 10px 30px -18px rgba(0, 61, 92, 0.22);
}
.tpt-account__form-card--solo {
	max-width: 460px;
	margin: 0 auto;
}
.tpt-account__form-head { margin-bottom: 16px; }
.tpt-account__form-head h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: #003D5C;
	margin: 0 0 4px;
}
.tpt-account__form-head p {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}

/* Form fields */
.tpt-account-form { display: flex; flex-direction: column; gap: 14px; }

.tpt-account-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tpt-account-field label,
.woocommerce-form-row label {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #003D5C;
	text-transform: uppercase;
}

.tpt-account-input,
.tpt-account-form input[type="text"],
.tpt-account-form input[type="email"],
.tpt-account-form input[type="password"],
.tpt-account-form input[type="tel"],
.tpt-account-form input[type="number"],
.tpt-account-form select,
.tpt-account-form textarea,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid rgba(0, 61, 92, 0.15);
	border-radius: 10px;
	background: #fff;
	color: #003D5C;
	font-family: 'Poppins', sans-serif;
	font-size: 14.5px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.tpt-account-input:focus,
.tpt-account-form input:focus,
.tpt-account-form select:focus,
.tpt-account-form textarea:focus,
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
	outline: none;
	border-color: #00BCD4;
	box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.15);
}

.tpt-account-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	flex-wrap: wrap;
}
.tpt-account-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #4b5563;
}
.tpt-account-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #00BCD4;
	cursor: pointer;
}
.tpt-account-link-sm {
	font-size: 13px;
	color: #00BCD4;
	text-decoration: none;
	font-weight: 500;
}
.tpt-account-link-sm:hover { color: #003D5C; text-decoration: underline; }

.tpt-account-note {
	font-size: 12.5px;
	color: #6b7280;
	margin: 0;
	padding: 10px 12px;
	background: #F8FAFB;
	border-left: 3px solid #00BCD4;
	border-radius: 4px;
}

.tpt-account-fineprint {
	font-size: 11.5px;
	color: #6b7280;
	margin: 4px 0 0;
	line-height: 1.5;
}
.tpt-account-fineprint a { color: #00BCD4; text-decoration: underline; }
.tpt-account-fineprint--center { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.tpt-account-btn,
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	border: 1.5px solid transparent;
	text-decoration: none;
	line-height: 1.2;
	transition: background .18s, color .18s, transform .18s, box-shadow .18s, border-color .18s;
}
.tpt-account-btn:hover { transform: translateY(-1px); }

.tpt-account-btn--primary,
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
	background: #00BCD4;
	color: #fff;
}
.tpt-account-btn--primary:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
	background: #003D5C;
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(0, 61, 92, 0.4);
}

.tpt-account-btn--outline {
	background: #fff;
	color: #003D5C;
	border-color: #003D5C;
}
.tpt-account-btn--outline:hover {
	background: #003D5C;
	color: #fff;
}

.tpt-account-btn--block { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   TABLAS WC (pedidos, descargas) on-brand
   ═══════════════════════════════════════════════════════════ */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-MyAccount-content table.woocommerce-table--order-details {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 12px;
	overflow: hidden;
	font-size: 13.5px;
	background: #fff;
}
.woocommerce-MyAccount-content table.shop_table th {
	background: #F8FAFB;
	color: #003D5C;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(0, 61, 92, 0.08);
}
.woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(0, 61, 92, 0.06);
	color: #2b3a44;
	background: #fff;
}
.woocommerce-MyAccount-content table.shop_table tr:last-child td {
	border-bottom: none;
}
.woocommerce-MyAccount-content table.shop_table tfoot th,
.woocommerce-MyAccount-content table.shop_table tfoot td {
	background: #F8FAFB;
	font-weight: 600;
	color: #003D5C;
}

/* Botones acción dentro de tablas */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button {
	padding: 8px 14px;
	font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════════
   MENSAJES (info, success, error) on-brand
   ═══════════════════════════════════════════════════════════ */
.tpt-account .woocommerce-message,
.tpt-account .woocommerce-info,
.tpt-account .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-size: 13.5px;
	border: none;
	list-style: none;
}
.tpt-account .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-message {
	background: rgba(16, 185, 129, 0.10);
	color: #047857;
	border-left: 4px solid #10b981;
}
.tpt-account .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-info {
	background: rgba(0, 188, 212, 0.08);
	color: #006e97;
	border-left: 4px solid #00BCD4;
}
.tpt-account .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-error {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
	border-left: 4px solid #dc2626;
}

/* ═══════════════════════════════════════════════════════════
   FORM-EDIT-ACCOUNT / FORM-EDIT-ADDRESS — espacios
   ═══════════════════════════════════════════════════════════ */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
.woocommerce-MyAccount-content .woocommerce-address-fields fieldset {
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 12px;
	background: #F8FAFB;
}
.woocommerce-MyAccount-content fieldset legend {
	padding: 0 10px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #003D5C;
}
.woocommerce-MyAccount-content .form-row {
	margin-bottom: 14px;
}
.woocommerce-MyAccount-content .form-row label {
	display: block;
	margin-bottom: 5px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #003D5C;
	text-transform: uppercase;
}
.woocommerce-MyAccount-content .required {
	color: #dc2626;
	text-decoration: none;
}

/* My addresses (resumen) — overrides anti-Storefront (float+width:48%) */
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 8px;
	width: 100% !important;
}
.woocommerce-MyAccount-content .woocommerce-Addresses::after,
.woocommerce-MyAccount-content .woocommerce-Addresses::before {
	content: none !important;
}
@media (max-width: 700px) {
	.woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
}
.woocommerce-MyAccount-content .woocommerce-Address {
	background: #F8FAFB;
	border: 1px solid rgba(0, 61, 92, 0.08);
	border-radius: 12px;
	padding: 22px 24px;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
	gap: 12px;
	margin-bottom: 12px !important;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	flex: 1;
	min-width: 0;
}
.woocommerce-MyAccount-content .woocommerce-Address address {
	display: block;
	word-wrap: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

/* Submit del form de mis-datos */
.tpt-account-form__submit {
	margin-top: 18px;
	text-align: right;
}
@media (max-width: 600px) {
	.tpt-account-form__submit { text-align: stretch; }
	.tpt-account-form__submit .tpt-account-btn { width: 100%; }
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 8px;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1.2rem;
	margin: 0;
	color: #003D5C;
}
.woocommerce-MyAccount-content .woocommerce-Address address {
	font-style: normal;
	font-size: 13.5px;
	color: #4b5563;
	line-height: 1.6;
}
.woocommerce-MyAccount-content .woocommerce-Address .edit {
	font-size: 12.5px;
	color: #00BCD4;
	text-decoration: none;
	font-weight: 500;
}
.woocommerce-MyAccount-content .woocommerce-Address .edit:hover { color: #003D5C; }

/* Esconde notices duplicados */
.tpt-account .woocommerce-notices-wrapper:empty { display: none; }

/* ═══════════════════════════════════════════════════════════
   ORDER RECEIVED + VIEW ORDER — Diseño claro y legible
   ═══════════════════════════════════════════════════════════ */

/* Wrapper general */
.woocommerce-order,
.woocommerce-MyAccount-content .woocommerce-order,
.woocommerce-MyAccount-content .woocommerce-customer-details,
.woocommerce-MyAccount-content .woocommerce-order-details {
	background: #ffffff !important;
	color: #2b3a44 !important;
	padding: 0;
	max-width: 980px;
	margin: 0 auto 32px;
}

/* Mensaje de éxito */
.woocommerce-order .woocommerce-notice,
.woocommerce-order p.woocommerce-thankyou-order-received {
	background: #ECFEF8 !important;
	color: #064E3B !important;
	border-left: none !important;
	border: 1px solid #BBF7D0 !important;
	border-radius: 12px;
	padding: 20px 24px !important;
	font-size: 1.05rem;
	font-weight: 600;
	margin: 24px auto 28px !important;
	max-width: 980px;
}

/* Lista de detalles del pedido (overview) */
ul.woocommerce-order-overview,
ul.woocommerce-thankyou-order-details,
.woocommerce-order ul.order_details {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0 !important;
	background: #ffffff !important;
	border: 1px solid #E5EAF0 !important;
	border-radius: 14px;
	padding: 0 !important;
	margin: 0 auto 32px !important;
	list-style: none !important;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 61, 92, 0.04);
}
ul.woocommerce-order-overview li,
ul.woocommerce-thankyou-order-details li,
.woocommerce-order ul.order_details li {
	background: #ffffff !important;
	color: #2b3a44 !important;
	padding: 18px 22px !important;
	margin: 0 !important;
	border-right: 1px solid #E5EAF0;
	border-bottom: 1px solid #E5EAF0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7780 !important;
	font-weight: 600;
	line-height: 1.4;
	float: none !important;
	list-style: none !important;
}
ul.woocommerce-order-overview li:last-child,
ul.woocommerce-thankyou-order-details li:last-child,
.woocommerce-order ul.order_details li:last-child {
	border-right: none;
}
ul.woocommerce-order-overview li strong,
ul.woocommerce-thankyou-order-details li strong,
.woocommerce-order ul.order_details li strong {
	display: block !important;
	margin-top: 8px;
	font-size: 1.05rem;
	color: #003D5C !important;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
}

/* Bloque de datos bancarios (BACS) */
.woocommerce-order .woocommerce-bacs-bank-details,
.woocommerce-bacs-bank-details {
	background: #F8FAFB !important;
	border: 1px solid #E5EAF0 !important;
	border-radius: 14px;
	padding: 24px 28px !important;
	margin: 0 auto 32px !important;
	max-width: 980px;
}
.woocommerce-order .woocommerce-bacs-bank-details h2,
.woocommerce-bacs-bank-details h2,
.woocommerce-order .wc-bacs-bank-details-account-name {
	color: #003D5C !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 1.2rem !important;
	font-weight: 700;
	margin: 0 0 12px;
}
.woocommerce-order .woocommerce-bacs-bank-details ul.wc-bacs-bank-details {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px !important;
	background: #ffffff !important;
	border: 1px solid #E5EAF0 !important;
	border-radius: 10px;
	padding: 18px !important;
	list-style: none !important;
	margin: 0 !important;
}
.woocommerce-order .woocommerce-bacs-bank-details ul.wc-bacs-bank-details li {
	background: transparent !important;
	color: #2b3a44 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	font-size: 13.5px;
	line-height: 1.5;
}
.woocommerce-order .woocommerce-bacs-bank-details ul.wc-bacs-bank-details li strong {
	display: block;
	color: #6b7780 !important;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Tabla detalle del pedido (productos) */
.woocommerce-order-details h2,
.woocommerce-order-details h3,
.woocommerce-customer-details h2,
.woocommerce-customer-details h3 {
	color: #003D5C !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 1.35rem !important;
	font-weight: 700;
	margin: 0 0 18px !important;
}

.woocommerce-order-details table.shop_table,
.woocommerce-MyAccount-content table.shop_table.order_details,
table.woocommerce-table.woocommerce-table--order-details {
	width: 100% !important;
	background: #ffffff !important;
	border: 1px solid #E5EAF0 !important;
	border-radius: 14px !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden;
	margin: 0 0 28px !important;
	box-shadow: 0 1px 3px rgba(0, 61, 92, 0.04);
}

.woocommerce-order-details table.shop_table thead,
.woocommerce-MyAccount-content table.shop_table.order_details thead {
	background: #F8FAFB !important;
}
.woocommerce-order-details table.shop_table thead th,
.woocommerce-MyAccount-content table.shop_table.order_details thead th {
	background: #F8FAFB !important;
	color: #6b7780 !important;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	padding: 14px 18px !important;
	border-bottom: 1px solid #E5EAF0 !important;
	text-align: left;
}

.woocommerce-order-details table.shop_table tbody td,
.woocommerce-MyAccount-content table.shop_table.order_details tbody td {
	background: #ffffff !important;
	color: #2b3a44 !important;
	padding: 16px 18px !important;
	border-top: 1px solid #F0F3F5 !important;
	font-size: 14px;
	vertical-align: middle;
}
.woocommerce-order-details table.shop_table tbody td a,
.woocommerce-MyAccount-content table.shop_table.order_details tbody td a {
	color: #003D5C !important;
	font-weight: 600;
	text-decoration: none;
}
.woocommerce-order-details table.shop_table tbody td a:hover,
.woocommerce-MyAccount-content table.shop_table.order_details tbody td a:hover {
	color: #00BCD4 !important;
}

/* Imagen del producto en línea de pedido */
.woocommerce-order-details td.product-name .tpt-order-thumb,
.woocommerce-MyAccount-content td.product-name .tpt-order-thumb {
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #F8FAFB;
	border: 1px solid #E5EAF0;
	vertical-align: middle;
	margin-right: 14px;
}
.woocommerce-order-details td.product-name .tpt-order-thumb img,
.woocommerce-MyAccount-content td.product-name .tpt-order-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.woocommerce-order-details td.product-name .tpt-order-name,
.woocommerce-MyAccount-content td.product-name .tpt-order-name {
	display: inline-block;
	vertical-align: middle;
}

/* Totales (subtotal, envío, total) */
.woocommerce-order-details table.shop_table tfoot th,
.woocommerce-order-details table.shop_table tfoot td,
.woocommerce-MyAccount-content table.shop_table.order_details tfoot th,
.woocommerce-MyAccount-content table.shop_table.order_details tfoot td {
	background: #ffffff !important;
	color: #2b3a44 !important;
	padding: 12px 18px !important;
	border-top: 1px solid #E5EAF0 !important;
	font-size: 14px;
	text-align: right;
}
.woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-order-details table.shop_table tfoot tr:last-child td,
.woocommerce-MyAccount-content table.shop_table.order_details tfoot tr:last-child th,
.woocommerce-MyAccount-content table.shop_table.order_details tfoot tr:last-child td {
	font-size: 1.15rem;
	font-weight: 800;
	color: #003D5C !important;
	background: #F8FAFB !important;
}

/* Customer details (dirección facturación/envío) */
.woocommerce-customer-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	background: transparent !important;
}
.woocommerce-customer-details address {
	background: #ffffff !important;
	border: 1px solid #E5EAF0 !important;
	border-radius: 14px;
	padding: 22px 24px !important;
	color: #2b3a44 !important;
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
}

/* En móvil */
@media (max-width: 640px) {
	ul.woocommerce-order-overview li,
	ul.woocommerce-thankyou-order-details li,
	.woocommerce-order ul.order_details li {
		border-right: none;
	}
	.woocommerce-order-details table.shop_table,
	.woocommerce-MyAccount-content table.shop_table.order_details {
		font-size: 13px;
	}
	.woocommerce-order-details td.product-name .tpt-order-thumb,
	.woocommerce-MyAccount-content td.product-name .tpt-order-thumb {
		width: 44px;
		height: 44px;
		margin-right: 10px;
	}
}
