/* Una tipografía de interfaz para títulos y acciones del flujo de compra. */
body main#content:has(:is(tickera-seat-selection, tickera-checkout, tickera-account, tickera-auth)) .entry-title,
body.page-id-369 main#content .page-header .entry-title,
main#content:has(tickera-auth[view="register-success"]) .page-header .entry-title,
body main#content :is(tickera-seat-selection, tickera-checkout, tickera-account, tickera-auth, tickera-payment-result, tickera-shows-list, tickera-performances) :is(h1, h2, h3, h4, h5, h6, .ticket-map-widget-header__title, .tw-checkout-summary-heading, .tw-account-nav-label, button, a.btn),
body :is(.tickera-login-gate, .tickera-purchase-confirmation) :is(.modal-title, button, a.btn),
body main#content tickera-account profile-form form > div:nth-child(-n + 4)::before {
	font-family: Lato, Arial, Helvetica, sans-serif !important;
	font-variant: normal !important;
	font-variant-caps: normal !important;
	text-transform: none !important;
}

/* Cartelera y ficha de obra usan el mismo criterio en títulos y acciones. */
body .tickera-obras-todas :is(.tickera-obra-labels span, .tickera-obra-body h3, .tickera-obra-buy),
body .tickera-funciones :is(.tickera-funciones-right > h3, .tickera-funciones-seat) {
	font-family: Lato, Arial, Helvetica, sans-serif !important;
	font-variant: normal !important;
	font-variant-caps: normal !important;
	text-transform: none !important;
}

body .tickera-obras-todas .tickera-obra-buy,
body .tickera-funciones .tickera-funciones-seat {
	font-size: 14px !important;
	font-weight: 700 !important;
}

body .tickera-obras-todas .tickera-obra-buy:is(:hover, :focus-visible),
body .tickera-funciones .tickera-funciones-seat:is(:hover, :focus-visible) {
	color: #fff !important;
}

/* Los rótulos del registro vienen como contenido generado en el build. */
body main#content tickera-auth[view="register"] register-page form > div:nth-child(1)::before { content: "01 · Datos personales" !important; }
body main#content tickera-auth[view="register"] register-page form > div:nth-child(3)::before { content: "02 · Documento de identidad" !important; }
body main#content tickera-auth[view="register"] register-page form > div:nth-child(5)::before { content: none !important; }

body main#content tickera-seat-selection performance-reservation > section > .grid > div:first-child > ticket-map-price-zones::before {
	content: "Zonas y precios" !important;
	font-family: Lato, Arial, Helvetica, sans-serif !important;
	font-variant: normal !important;
	text-transform: none !important;
}

/* La obra ocupa el primer paso; no hay otra fila de título o migas antes del mapa. */
body main#content .tickera-checkout-steps--reservation {
	margin-bottom: 16px;
}

body main#content .tickera-checkout-steps--reservation ol {
	grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
}

body main#content .tickera-checkout-steps--reservation li {
	min-height: 58px;
	padding: 8px 12px;
}

body main#content .tickera-reservation-context {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	color: #fff;
}

body main#content .tickera-reservation-context__poster {
	width: 32px;
	height: 42px;
	object-fit: cover;
	border-radius: 4px;
	flex: none;
}

body main#content .tickera-reservation-context__poster[hidden] {
	display: none;
}

body main#content .tickera-reservation-context__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body main#content .tickera-reservation-context__eyebrow {
	font-size: 11px;
	line-height: 1.2;
	color: #ffaaa7;
}

body main#content .tickera-reservation-context__title {
	display: block;
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none;
}

body main#content .tickera-reservation-context__title:hover,
body main#content .tickera-reservation-context__title:focus-visible {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-color: #ffaaa7;
}

body main#content .tickera-reservation-context__details {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.3;
	color: #c7c7c7;
}

body main#content .tickera-reservation-context__details:empty {
	display: none;
}

body main#content tickera-seat-selection .ticket-map-widget-header__title {
	font-family: Lato, Arial, Helvetica, sans-serif !important;
	font-size: 16px;
	font-weight: 700;
	text-transform: none !important;
	line-height: 1.25;
}

body main#content tickera-seat-selection :is(.tickera-reservation-help, button[data-tour="ticket-map-multi-select"]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.2;
	text-transform: none !important;
}

body main#content tickera-seat-selection :is(.tickera-reservation-help, button[data-tour="ticket-map-multi-select"]) :is(i, span) {
	line-height: 1;
}

/* Botones principales y secundarios: una caja tipográfica y centrado comunes. */
body main#content :is(tickera-seat-selection, tickera-checkout, tickera-account, tickera-auth, tickera-payment-result) app-button button:is(.btn-primary, .btn-secondary, .btn-tertiary),
body :is(.tickera-login-gate, .tickera-purchase-confirmation) :is(button, a):is(.btn-primary, .btn-secondary, .btn-tertiary) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: Lato, Arial, Helvetica, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2;
	letter-spacing: 0;
	font-variant: normal !important;
	text-transform: none !important;
}

body main#content :is(tickera-seat-selection, tickera-checkout, tickera-account, tickera-auth, tickera-payment-result) app-button button.btn-primary,
body :is(.tickera-login-gate, .tickera-purchase-confirmation) :is(button, a).btn-primary,
body main#content :is(tickera-seat-selection, tickera-checkout, tickera-account, tickera-auth, tickera-payment-result) app-button button.btn-primary:is(:hover, :focus-visible),
body :is(.tickera-login-gate, .tickera-purchase-confirmation) :is(button, a).btn-primary:is(:hover, :focus-visible) {
	color: #fff !important;
}

body main#content :is(tickera-seat-selection, tickera-checkout, tickera-account, tickera-auth, tickera-payment-result) app-button button.btn-primary:is(:hover, :focus-visible) :is(span, i, svg),
body :is(.tickera-login-gate, .tickera-purchase-confirmation) :is(button, a).btn-primary:is(:hover, :focus-visible) :is(span, i, svg) {
	color: inherit !important;
}

/* El botón de limpieza mantiene un tono secundario. */
body main#content tickera-seat-selection seat-selection-summary .tickets-actions app-button button.btn-primary {
	color: #ededed !important;
	font-family: Lato, Arial, Helvetica, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: none !important;
}

body main#content tickera-seat-selection ticket-map-totals app-button button.btn-primary,
body .tickera-purchase-confirmation .confirmation-modal__actions button.btn-primary {
	font-size: 15px !important;
}

body main#content tickera-seat-selection ticket-map-totals app-button button.btn-primary:is(:hover, :focus-visible),
body main#content tickera-checkout ticket-map-totals app-button button.btn-primary:is(:hover, :focus-visible),
body .tickera-purchase-confirmation .confirmation-modal__actions button.btn-primary:is(:hover, :focus-visible) {
	color: #fff !important;
	background: #b8201d !important;
}

@media (max-width: 767px) {
	body main#content .tickera-checkout-steps--reservation ol {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .65fr);
	}

	body main#content .tickera-checkout-steps--reservation li {
		flex-direction: row;
		align-items: center;
		gap: 5px;
		min-height: 66px;
		padding: 7px;
	}

	body main#content .tickera-checkout-steps--reservation .tickera-checkout-steps__number {
		flex-basis: 23px;
		width: 23px;
		height: 23px;
		font-size: 11px;
	}

	body main#content .tickera-reservation-context__poster,
	body main#content .tickera-reservation-context__details {
		display: none;
	}

	body main#content .tickera-reservation-context__eyebrow {
		font-size: 10px;
	}

	body main#content .tickera-reservation-context__title {
		font-size: 12px;
	}

	body main#content .tickera-checkout-steps--reservation li:not(.is-current) small {
		display: none;
	}

	body main#content tickera-seat-selection .ticket-map-price-zones {
		flex-wrap: nowrap !important;
	}

	body main#content tickera-seat-selection ticket-map-totals app-button button.btn-primary,
	body .tickera-purchase-confirmation .confirmation-modal__actions button.btn-primary {
		font-size: 14px !important;
	}
}
