/**
 * Pasaporte Coctelero Account Center — estilos del panel.
 * Mobile-first. Toda la paleta deriva de las variables inyectadas desde ajustes.
 * Scope: body.pcac-account
 */

:root {
	--pcac-primary: #e95061;
	--pcac-primary-rgb: 233, 80, 97;
	--pcac-primary-hover: #cd4655;
	--pcac-primary-soft: #fdeaec;
	--pcac-primary-tint: #fbdfe2;
	--pcac-on-primary: #ffffff;
	--pcac-radius: 16px;
	--pcac-radius-sm: 8px;

	--pcac-ink: #18181b;
	--pcac-muted: #71717a;
	--pcac-line: #e4e4e7;
	--pcac-surface: #ffffff;
	--pcac-bg: #f4f4f5;
	--pcac-success: #16a34a;
	--pcac-success-bg: #dcfce7;
	--pcac-warning: #b45309;
	--pcac-warning-bg: #fef3c7;
	--pcac-danger: #b91c1c;
	--pcac-danger-bg: #fee2e2;
	--pcac-info-bg: #e0f2fe;
	--pcac-info: #0369a1;

	--pcac-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}

/* ----------------------------------------------------------------------------
 * Layout de "Mi cuenta"
 * ------------------------------------------------------------------------- */
body.pcac-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

body.pcac-account .woocommerce > .woocommerce-notices-wrapper {
	flex: 1 0 100%;
}

body.pcac-account .woocommerce-MyAccount-navigation {
	flex: 1 1 100%;
	position: relative;
}

body.pcac-account .woocommerce-MyAccount-content {
	flex: 1 1 100%;
	min-width: 0;
	background: var(--pcac-surface);
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	padding: 22px;
	box-shadow: var(--pcac-shadow);
	color: var(--pcac-ink);
}

/* Menú lateral */
body.pcac-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--pcac-surface);
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	box-shadow: var(--pcac-shadow);
}

body.pcac-account .woocommerce-MyAccount-navigation ul li {
	margin: 2px 0;
}

body.pcac-account .woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--pcac-radius-sm);
	color: var(--pcac-ink);
	text-decoration: none;
	font-weight: 600;
	transition: background .15s ease, color .15s ease;
}

body.pcac-account .woocommerce-MyAccount-navigation ul li a::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: currentColor;
	opacity: .55;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

body.pcac-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--pcac-bg);
}

body.pcac-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--pcac-primary);
	color: var(--pcac-on-primary);
}

body.pcac-account .woocommerce-MyAccount-navigation ul li.is-active a::before {
	opacity: 1;
}

/* Iconos del menú (SVG en máscara, heredan color). Icono por defecto = ticket,
   con overrides por slug estándar. Si se cambia un slug, cae al icono ticket. */
body.pcac-account .woocommerce-MyAccount-navigation ul li a::before {
	-webkit-mask-image: 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='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4V7z'/%3E%3C/svg%3E");
	mask-image: 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='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4V7z'/%3E%3C/svg%3E");
}
body.pcac-account .woocommerce-MyAccount-navigation-link--dashboard a::before,
body.pcac-account .woocommerce-MyAccount-navigation-link--resumen a::before { -webkit-mask-image: 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='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); mask-image: 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='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
body.pcac-account .woocommerce-MyAccount-navigation-link--covers a::before { -webkit-mask-image: 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='M18 8h1a3 3 0 0 1 0 6h-1'/%3E%3Cpath d='M4 8h14v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8z'/%3E%3Cpath d='M6 2v2M10 2v2M14 2v2'/%3E%3C/svg%3E"); mask-image: 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='M18 8h1a3 3 0 0 1 0 6h-1'/%3E%3Cpath d='M4 8h14v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8z'/%3E%3Cpath d='M6 2v2M10 2v2M14 2v2'/%3E%3C/svg%3E"); }
body.pcac-account .woocommerce-MyAccount-navigation-link--eventos a::before { -webkit-mask-image: 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='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); mask-image: 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='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
body.pcac-account .woocommerce-MyAccount-navigation-link--compras a::before { -webkit-mask-image: 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 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); mask-image: 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 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
body.pcac-account .woocommerce-MyAccount-navigation-link--perfil a::before,
body.pcac-account .woocommerce-MyAccount-navigation-link--edit-account a::before { -webkit-mask-image: 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"); mask-image: 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"); }
body.pcac-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { -webkit-mask-image: 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 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); mask-image: 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 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

/* Botón hamburguesa (solo móvil) */
.pcac-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	margin-bottom: 10px;
	background: var(--pcac-surface);
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	font-weight: 700;
	cursor: pointer;
	color: var(--pcac-ink);
}

.pcac-nav-toggle__bars,
.pcac-nav-toggle__bars::before,
.pcac-nav-toggle__bars::after {
	content: "";
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
	border-radius: 2px;
}

.pcac-nav-toggle__bars::before { position: absolute; top: -6px; }
.pcac-nav-toggle__bars::after { position: absolute; top: 6px; }

/* ----------------------------------------------------------------------------
 * Componentes del panel
 * ------------------------------------------------------------------------- */
.pcac,
.pcac * { box-sizing: border-box; }

.pcac-welcome__title { font-size: 1.6rem; margin: 0 0 4px; color: var(--pcac-ink); }
.pcac-welcome__sub { color: var(--pcac-muted); margin: 0 0 20px; }

.pcac-section { margin-top: 28px; }
.pcac-section__head { margin-bottom: 14px; }
.pcac-section__title { font-size: 1.15rem; margin: 0; color: var(--pcac-ink); }
.pcac-section__sub { color: var(--pcac-muted); margin: 4px 0 0; font-size: .92rem; }
.pcac-group__title { font-size: 1rem; color: var(--pcac-muted); margin: 24px 0 12px; text-transform: uppercase; letter-spacing: .04em; }

.pcac-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Próximo evento */
.pcac-next {
	border-radius: var(--pcac-radius);
	overflow: hidden;
	border: 1px solid var(--pcac-line);
	box-shadow: var(--pcac-shadow);
	background: var(--pcac-surface);
	margin-bottom: 24px;
}
.pcac-next--empty { padding: 8px; }
.pcac-next__banner {
	height: 150px;
	background: var(--pcac-primary-tint) center / cover no-repeat;
}
.pcac-next__banner--fallback {
	background: linear-gradient(135deg, var(--pcac-primary), var(--pcac-primary-hover));
}
.pcac-next__body { padding: 18px 20px 20px; }
.pcac-next__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pcac-next__eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pcac-muted); font-weight: 700; }
.pcac-next__title { font-size: 1.35rem; margin: 0 0 12px; color: var(--pcac-ink); }
.pcac-next__meta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pcac-next__meta li { display: flex; align-items: center; gap: 8px; color: var(--pcac-ink); }
.pcac-next__meta .pcac-icon { color: var(--pcac-primary); }

/* Estadísticas */
.pcac-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 24px;
}
.pcac-stat {
	background: var(--pcac-surface);
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	padding: 16px;
	text-align: center;
}
.pcac-stat__icon { color: var(--pcac-primary); display: flex; justify-content: center; margin-bottom: 6px; }
.pcac-stat__value { font-size: 1.7rem; font-weight: 800; color: var(--pcac-ink); line-height: 1; }
.pcac-stat__label { color: var(--pcac-muted); font-size: .85rem; margin-top: 4px; }

/* Timeline / actividad */
.pcac-timeline { list-style: none; margin: 0; padding: 0; }
.pcac-timeline__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pcac-line);
}
.pcac-timeline__item:last-child { border-bottom: 0; }
.pcac-timeline__icon {
	width: 36px; height: 36px; flex: 0 0 36px;
	display: flex; align-items: center; justify-content: center;
	background: var(--pcac-primary-soft); color: var(--pcac-primary);
	border-radius: 50%;
}
.pcac-timeline__text { flex: 1; color: var(--pcac-ink); }
.pcac-timeline__time { color: var(--pcac-muted); font-size: .82rem; white-space: nowrap; }

/* Tarjetas (entradas / covers) */
.pcac-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.pcac-cards--muted { opacity: .85; }
.pcac-card {
	background: var(--pcac-surface);
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	padding: 18px;
	box-shadow: var(--pcac-shadow);
	position: relative;
}
.pcac-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pcac-card__icon {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: var(--pcac-primary-soft); color: var(--pcac-primary);
	border-radius: 12px;
}
.pcac-card__title { margin: 0 0 10px; font-size: 1.1rem; color: var(--pcac-ink); }
.pcac-card__sub { color: var(--pcac-muted); margin: -6px 0 10px; font-size: .9rem; }
.pcac-card__meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pcac-card__meta li { display: flex; align-items: center; gap: 8px; color: var(--pcac-ink); font-size: .92rem; }
.pcac-card__meta .pcac-icon { color: var(--pcac-muted); }
.pcac-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pcac-card__cover-line { color: var(--pcac-muted); font-size: .88rem; margin: 8px 0 0; }

/* Progreso de covers */
.pcac-progress { height: 8px; border-radius: 6px; background: var(--pcac-bg); overflow: hidden; }
.pcac-progress__bar { display: block; height: 100%; background: var(--pcac-primary); }

/* Eventos */
.pcac-event-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pcac-event-grid--muted { opacity: .9; }
.pcac-event {
	border-radius: var(--pcac-radius);
	overflow: hidden;
	border: 1px solid var(--pcac-line);
	box-shadow: var(--pcac-shadow);
	background: var(--pcac-surface);
}
.pcac-event__banner {
	height: 120px; position: relative;
	background: var(--pcac-primary-tint) center / cover no-repeat;
}
.pcac-event__banner--fallback { background: linear-gradient(135deg, var(--pcac-primary), var(--pcac-primary-hover)); }
.pcac-event__status { position: absolute; top: 10px; left: 10px; }
.pcac-event__body { padding: 16px 18px 18px; }
.pcac-event__title { margin: 0 0 10px; font-size: 1.1rem; color: var(--pcac-ink); }
.pcac-event__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pcac-event__meta li { display: flex; align-items: center; gap: 8px; color: var(--pcac-ink); font-size: .92rem; }
.pcac-event__meta .pcac-icon { color: var(--pcac-primary); }

/* Pedidos */
.pcac-orders { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pcac-order {
	background: var(--pcac-surface);
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	padding: 16px 18px;
	box-shadow: var(--pcac-shadow);
}
.pcac-order__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcac-order__num { font-weight: 800; color: var(--pcac-ink); }
.pcac-order__date { display: block; color: var(--pcac-muted); font-size: .82rem; }
.pcac-order__items { color: var(--pcac-muted); margin: 10px 0; font-size: .92rem; }
.pcac-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcac-order__total { font-weight: 800; color: var(--pcac-ink); }
.pcac-order__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pcac-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.pcac-pagination__info { color: var(--pcac-muted); font-size: .9rem; }

/* Badges */
.pcac-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.pcac-badge--success { background: var(--pcac-success-bg); color: var(--pcac-success); }
.pcac-badge--warning { background: var(--pcac-warning-bg); color: var(--pcac-warning); }
.pcac-badge--danger { background: var(--pcac-danger-bg); color: var(--pcac-danger); }
.pcac-badge--info { background: var(--pcac-info-bg); color: var(--pcac-info); }
.pcac-badge--neutral { background: var(--pcac-bg); color: var(--pcac-muted); }

/* Botones */
.pcac-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: var(--pcac-radius-sm);
	font-weight: 700; font-size: .92rem; cursor: pointer;
	text-decoration: none; border: 1px solid transparent; line-height: 1;
	transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.pcac-btn:active { transform: translateY(1px); }
.pcac-btn--primary { background: var(--pcac-primary); color: var(--pcac-on-primary); }
.pcac-btn--primary:hover { background: var(--pcac-primary-hover); color: var(--pcac-on-primary); }
.pcac-btn--ghost { background: var(--pcac-surface); color: var(--pcac-ink); border-color: var(--pcac-line); }
.pcac-btn--ghost:hover { background: var(--pcac-bg); }
.pcac-btn[disabled] { opacity: .6; cursor: default; }
.pcac-btn .pcac-icon { width: 16px; height: 16px; }

/* Estado vacío */
.pcac-empty { text-align: center; padding: 36px 20px; }
.pcac-empty__icon { color: var(--pcac-primary); display: flex; justify-content: center; margin-bottom: 10px; }
.pcac-empty__icon .pcac-icon { width: 40px; height: 40px; }
.pcac-empty__title { margin: 0 0 6px; color: var(--pcac-ink); }
.pcac-empty__msg { color: var(--pcac-muted); margin: 0; max-width: 420px; margin-inline: auto; }

/* Formulario de perfil */
.pcac-form__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pcac-form__row { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pcac-form__label { font-weight: 600; color: var(--pcac-ink); font-size: .9rem; }
.pcac-req { color: var(--pcac-primary); }
.pcac-form__input {
	width: 100%; padding: 11px 13px; border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius-sm); font-size: 1rem; background: var(--pcac-surface); color: var(--pcac-ink);
}
.pcac-form__input:focus { outline: 2px solid rgba(var(--pcac-primary-rgb), .35); border-color: var(--pcac-primary); }
.pcac-form__actions { margin-top: 18px; }

.pcac-notice { padding: 12px 14px; border-radius: var(--pcac-radius-sm); margin-bottom: 16px; font-weight: 600; }
.pcac-notice--success { background: var(--pcac-success-bg); color: var(--pcac-success); }
.pcac-notice--danger { background: var(--pcac-danger-bg); color: var(--pcac-danger); }

/* ----------------------------------------------------------------------------
 * Modal QR
 * ------------------------------------------------------------------------- */
.pcac-modal {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(0, 0, 0, .6);
}
.pcac-modal[hidden] { display: none; }
.pcac-modal__box {
	background: var(--pcac-surface); border-radius: var(--pcac-radius);
	width: 100%; max-width: 380px; padding: 24px; text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3); position: relative;
}
.pcac-modal__close {
	position: absolute; top: 12px; right: 12px;
	width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid var(--pcac-line); background: var(--pcac-surface);
	cursor: pointer; font-size: 18px; line-height: 1; color: var(--pcac-muted);
}
.pcac-modal__title { margin: 0 0 4px; color: var(--pcac-ink); }
.pcac-modal__event { color: var(--pcac-muted); margin: 0 0 16px; font-size: .92rem; }
.pcac-modal__qr { display: flex; justify-content: center; min-height: 220px; align-items: center; }
.pcac-modal__qr svg { width: 220px; height: 220px; }
.pcac-modal__hint { color: var(--pcac-muted); font-size: .85rem; margin: 14px 0 0; }
.pcac-modal__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--pcac-muted); word-break: break-all; margin-top: 8px; }

.pcac-spinner {
	width: 34px; height: 34px; border-radius: 50%;
	border: 3px solid var(--pcac-line); border-top-color: var(--pcac-primary);
	animation: pcac-spin .8s linear infinite;
}
@keyframes pcac-spin { to { transform: rotate(360deg); } }

.pcac-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
	background: var(--pcac-ink); color: #fff; padding: 12px 18px;
	border-radius: 999px; font-weight: 600; z-index: 100000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 90vw;
}
.pcac-toast--error { background: var(--pcac-danger); }

/* ----------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
/* En móvil el menú se apila (sin hamburguesa). */

@media (min-width: 768px) {
	body.pcac-account .woocommerce { gap: 28px; }
	body.pcac-account .woocommerce-MyAccount-navigation { flex: 0 0 250px; }
	body.pcac-account .woocommerce-MyAccount-content { flex: 1 1 0; padding: 30px; }
	.pcac-stats { grid-template-columns: repeat(4, 1fr); }
	.pcac-stats--3 { grid-template-columns: repeat(3, 1fr); }
	.pcac-cards { grid-template-columns: repeat(2, 1fr); }
	.pcac-event-grid { grid-template-columns: repeat(2, 1fr); }
	.pcac-form__grid { grid-template-columns: repeat(2, 1fr); }
	.pcac-next__banner { height: 200px; }
}

@media (min-width: 1024px) {
	.pcac-cards { grid-template-columns: repeat(3, 1fr); }
	.pcac-event-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------------------------
 * Blindaje contra el tema
 * Muchos temas estilizan `a` y `button` globalmente (píldoras rellenas) y pisan
 * el panel. Estas reglas acotadas con !important recuperan el diseño propio.
 * ------------------------------------------------------------------------- */

/* Menú lateral */
body.pcac-account .woocommerce-MyAccount-navigation ul li a {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	background: transparent !important;
	color: var(--pcac-ink) !important;
	border: 0 !important;
	border-radius: var(--pcac-radius-sm) !important;
	box-shadow: none !important;
	font-weight: 600 !important;
	font-size: .95rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: left !important;
	text-decoration: none !important;
	min-height: 0 !important;
}
body.pcac-account .woocommerce-MyAccount-navigation ul li a:hover,
body.pcac-account .woocommerce-MyAccount-navigation ul li a:focus {
	background: var(--pcac-bg) !important;
	color: var(--pcac-ink) !important;
}
body.pcac-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--pcac-primary) !important;
	color: var(--pcac-on-primary) !important;
}

/* Botón hamburguesa */
body.pcac-account .pcac-nav-toggle {
	background: var(--pcac-surface) !important;
	color: var(--pcac-ink) !important;
	border: 1px solid var(--pcac-line) !important;
	border-radius: var(--pcac-radius) !important;
	box-shadow: none !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	width: 100% !important;
	padding: 12px 16px !important;
}

/* Botones del panel */
body.pcac-account .pcac-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: auto !important;
	min-height: 0 !important;
	padding: 10px 16px !important;
	margin: 0 !important;
	border-radius: var(--pcac-radius-sm) !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
	font-weight: 700 !important;
	font-size: .9rem !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
}
body.pcac-account .pcac-btn--primary {
	background: var(--pcac-primary) !important;
	color: var(--pcac-on-primary) !important;
	border-color: var(--pcac-primary) !important;
}
body.pcac-account .pcac-btn--primary:hover {
	background: var(--pcac-primary-hover) !important;
	border-color: var(--pcac-primary-hover) !important;
	color: var(--pcac-on-primary) !important;
}
body.pcac-account .pcac-btn--ghost {
	background: var(--pcac-surface) !important;
	color: var(--pcac-ink) !important;
	border-color: var(--pcac-line) !important;
}
body.pcac-account .pcac-btn--ghost:hover {
	background: var(--pcac-bg) !important;
	color: var(--pcac-ink) !important;
}

/* Reset de alineación: algunos temas centran el contenido de "Mi cuenta",
   lo que descuadra el panel. Forzamos izquierda a nivel de contenedor (los
   hijos heredan) sin usar un `*` que rompería el centrado de las stats. */
body.pcac-account .woocommerce-MyAccount-content,
body.pcac-account .pcac,
body.pcac-account .pcac-section,
body.pcac-account .pcac-card,
body.pcac-account .pcac-event,
body.pcac-account .pcac-order { text-align: left; }
body.pcac-account .pcac-stat,
body.pcac-account .pcac-stat *,
body.pcac-account .pcac-empty,
body.pcac-account .pcac-empty * { text-align: center; }
body.pcac-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
body.pcac-account .woocommerce-MyAccount-navigation { float: none !important; width: auto !important; }
body.pcac-account .pcac-cards,
body.pcac-account .pcac-event-grid { align-items: stretch; align-content: start; }

/* Contador de listados */
.pcac-count { color: var(--pcac-muted); font-size: .9rem; margin: 0 0 16px; }

/* Entrada de un pedido anulado */
.pcac-card--void { opacity: .68; }

/* Evitar que los hijos del grid se desborden (causa típica del "3.ª columna
   cortada" y de la mala distribución): permitir que encojan y que el texto rompa. */
body.pcac-account .pcac-cards,
body.pcac-account .pcac-event-grid,
body.pcac-account .pcac-orders,
body.pcac-account .pcac-stats,
body.pcac-account .pcac-stats--3 { min-width: 0; }

body.pcac-account .pcac-card,
body.pcac-account .pcac-event,
body.pcac-account .pcac-order,
body.pcac-account .pcac-stat,
body.pcac-account .pcac-next { min-width: 0; max-width: 100%; }

body.pcac-account .pcac-card__title,
body.pcac-account .pcac-event__title,
body.pcac-account .pcac-next__title,
body.pcac-account .pcac-order__items { overflow-wrap: break-word; word-break: break-word; }

/* ----------------------------------------------------------------------------
 * Vista nativa de detalle de pedido (view-order) — rediseño con tarjetas
 * ------------------------------------------------------------------------- */
body.pcac-account .woocommerce-MyAccount-content h2 {
	color: var(--pcac-ink);
	font-size: 1.15rem;
	margin: 26px 0 14px;
}
body.pcac-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
body.pcac-account .woocommerce-MyAccount-content .woocommerce-column__title {
	color: var(--pcac-ink);
}
body.pcac-account .woocommerce-MyAccount-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	overflow: hidden;
	background: var(--pcac-surface);
	box-shadow: var(--pcac-shadow);
	margin: 0 0 20px;
	font-size: .93rem;
}
body.pcac-account .woocommerce-MyAccount-content table th,
body.pcac-account .woocommerce-MyAccount-content table td {
	padding: 12px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--pcac-line) !important;
	text-align: left;
	vertical-align: top;
	color: var(--pcac-ink);
}
body.pcac-account .woocommerce-MyAccount-content table tr:last-child th,
body.pcac-account .woocommerce-MyAccount-content table tr:last-child td {
	border-bottom: 0 !important;
}
body.pcac-account .woocommerce-MyAccount-content table thead th {
	background: var(--pcac-bg);
	color: var(--pcac-muted);
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}
body.pcac-account .woocommerce-MyAccount-content table tfoot th,
body.pcac-account .woocommerce-MyAccount-content table tfoot td {
	background: var(--pcac-bg);
	font-weight: 700;
}
body.pcac-account .woocommerce-MyAccount-content address {
	display: block;
	border: 1px solid var(--pcac-line);
	border-radius: var(--pcac-radius);
	padding: 16px;
	background: var(--pcac-surface);
	box-shadow: var(--pcac-shadow);
	font-style: normal;
	line-height: 1.7;
}
body.pcac-account .woocommerce-MyAccount-content .woocommerce-customer-details,
body.pcac-account .woocommerce-MyAccount-content .woocommerce-order-details,
body.pcac-account .woocommerce-MyAccount-content .woocommerce-columns {
	margin-bottom: 8px;
}
