/* Pa mi cuenta — escritorio con tarjetas, progreso de pedidos y menú móvil. */
:root {
	--pmc-c: #ad1531;
}

/* ── Saludo ─────────────────────────────────────────────────────────────── */
.pmc-hello {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
}

.pmc-hello img.pmc-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pmc-hello h3 {
	margin: 0 0 2px;
}

.pmc-hello p {
	margin: 0;
	opacity: 0.65;
	font-size: 0.9em;
}

/* ── Tarjetas ───────────────────────────────────────────────────────────── */
.pmc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	margin-bottom: 30px;
}

.pmc-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 18px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--base, #fff);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pmc-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
	color: inherit;
}

.pmc-card-title {
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.6;
}

.pmc-card-big {
	font-size: 1.05em;
	font-weight: 700;
}

.pmc-card-link {
	font-size: 0.85em;
	color: var(--pmc-c);
	font-weight: 600;
}

.pmc-reco-title {
	margin: 8px 0 14px;
}

/* ── Progreso de pedido (Recibido → Preparando → Entregado) ─────────────── */
.pmc-progress {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 130px;
}

.pmc-progress-track {
	display: flex;
	align-items: center;
}

.pmc-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
}

.pmc-dot.is-on {
	background: var(--pmc-c);
}

.pmc-line {
	height: 3px;
	flex: 1;
	min-width: 16px;
	background: rgba(0, 0, 0, 0.12);
}

.pmc-line.is-on {
	background: var(--pmc-c);
}

.pmc-progress-label {
	font-size: 0.76em;
	opacity: 0.75;
	white-space: nowrap;
}

.pmc-cancelled {
	font-size: 0.8em;
	opacity: 0.55;
	text-decoration: line-through;
}

.pmc-view-progress {
	margin-bottom: 18px;
}

.pmc-view-progress .pmc-progress {
	max-width: 320px;
}

/* ── Menú de la cuenta ──────────────────────────────────────────────────── */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	font-size: 0.95em;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--pmc-c);
	color: #fff;
	font-weight: 600;
}

/* ── Foto de perfil (Mis datos) ─────────────────────────────────────────── */
.pmc-avatar-field {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 14px;
	padding: 18px;
	margin: 18px 0;
}

.pmc-avatar-field legend {
	padding: 0 8px;
	font-weight: 700;
}

.pmc-avatar-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.pmc-avatar-row img.pmc-avatar-preview {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pmc-avatar-hint {
	font-size: 0.8em;
	opacity: 0.65;
	margin: 6px 0;
}

/* Móvil: menú horizontal deslizable, no una columna que come pantalla. */
@media (max-width: 768px) {
	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		overflow-x: auto;
		gap: 6px;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 999px;
		padding: 8px 14px;
	}

	.pmc-cards {
		grid-template-columns: 1fr 1fr;
	}
}
