/* Checkout del Teatro Nacional. La lógica de compra permanece en el widget. */
body main#content:has(tickera-checkout) {
	width: min(100% - 32px, 1280px);
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(24px, 3vw, 38px) 0 clamp(56px, 7vw, 90px);
}

/* Tailwind usa utilidades !important; en esta capa prevalecen los colores del resultado. */
@layer theme {
	body main#content tickera-payment-result checkout-payment-result > div > div:first-child {
		background-color: #173725 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div:has(.ri-close-line) > div:first-child {
		background-color: #3d2020 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div:has(.ri-time-line) > div:first-child {
		background-color: #3a3020 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:first-child .ri-check-line {
		color: #8ed6a2 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:first-child .ri-close-line {
		color: #ff8a84 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:first-child .ri-time-line {
		color: #e5c486 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a {
		color: #fff !important;
		background-color: #303030 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a[routerlink],
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:only-child {
		color: #fff !important;
		background-color: #d92725 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:hover {
		background-color: #484848 !important;
	}
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a[routerlink]:hover,
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:only-child:hover {
		background-color: #ad201e !important;
	}
}

body main#content:has(tickera-checkout) .page-header {
	margin: 0;
}

body main#content:has(tickera-checkout) .entry-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* El estado del pago ya tiene título y mensaje propios dentro del widget. */
body main#content:has(tickera-payment-result) {
	width: min(100% - 32px, 900px);
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(24px, 3vw, 38px) 0 clamp(56px, 7vw, 90px);
}

body main#content:has(tickera-payment-result) .page-header {
	margin: 0;
}

body main#content:has(tickera-payment-result) .entry-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

body main#content tickera-payment-result checkout-payment-result > div {
	min-height: 0 !important;
	padding: clamp(40px, 5vw, 60px) 16px;
}

body main#content tickera-payment-result checkout-payment-result h2 {
	color: #f7f7f7 !important;
	font-size: clamp(28px, 3.2vw, 38px) !important;
	line-height: 1.15;
}

body main#content tickera-payment-result checkout-payment-result p {
	color: #c9c9c9 !important;
	font-size: clamp(15px, 1.5vw, 17px) !important;
	line-height: 1.5;
}

/* Retorno de Mercado Pago: una tarjeta clara para cada estado. */
body main#content tickera-payment-result checkout-payment-result {
	display: block;
	width: 100%;
}
body main#content tickera-payment-result checkout-payment-result > div {
	box-sizing: border-box;
	width: min(100%, 760px);
	margin: clamp(24px, 5vw, 64px) auto;
	padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 54px);
	background: linear-gradient(150deg, #252525, #191919 68%);
	border: 1px solid #505050;
	border-top: 4px solid #68ae7d;
	border-radius: 20px;
	box-shadow: 0 22px 65px #0005;
}
body main#content tickera-payment-result checkout-payment-result > div:has(.ri-close-line) { border-top-color: #df4743; }
body main#content tickera-payment-result checkout-payment-result > div:has(.ri-time-line) { border-top-color: #c9a35f; }
body main#content tickera-payment-result checkout-payment-result > div > div:first-child {
	width: 76px;
	height: 76px;
	margin-bottom: 6px;
	background: #173725 !important;
	border: 1px solid #579b6c;
	border-radius: 50%;
}
body main#content tickera-payment-result checkout-payment-result > div:has(.ri-close-line) > div:first-child {
	background: #3d2020 !important;
	border-color: #ad4c49;
}
body main#content tickera-payment-result checkout-payment-result > div:has(.ri-time-line) > div:first-child {
	background: #3a3020 !important;
	border-color: #ac8e55;
}
body main#content tickera-payment-result checkout-payment-result > div > div:first-child i {
	font-size: 38px !important;
	color: #8ed6a2 !important;
}
body main#content tickera-payment-result checkout-payment-result .ri-close-line { color: #ff8a84 !important; }
body main#content tickera-payment-result checkout-payment-result .ri-time-line { color: #e5c486 !important; }
body main#content tickera-payment-result checkout-payment-result h2 {
	margin: 0;
	color: #fff !important;
	font-weight: 600 !important;
}
body main#content tickera-payment-result checkout-payment-result p {
	margin: 0;
	color: #d2d2d2 !important;
}
body main#content tickera-payment-result checkout-payment-result p.text-sm {
	padding: 8px 12px;
	color: #e6e6e6 !important;
	background: #303030;
	border: 1px solid #565656;
	border-radius: 8px;
	font-size: 13px !important;
	overflow-wrap: anywhere;
}
body main#content tickera-payment-result checkout-payment-result > div > div:last-child {
	width: 100%;
	margin-top: 14px;
	gap: 10px;
}
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 190px;
	min-height: 48px;
	padding: 11px 20px;
	color: #fff !important;
	background: #303030 !important;
	border: 1px solid #777;
	border-radius: 10px;
	box-shadow: none;
	font: 700 15px/1.25 Lato, Arial, sans-serif !important;
	text-decoration: none !important;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a[routerlink],
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:only-child {
	background: #d92725 !important;
	border-color: #d92725;
}
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:hover {
	color: #fff !important;
	background: #484848 !important;
	border-color: #aaa;
	transform: translateY(-1px);
}
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a[routerlink]:hover,
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:only-child:hover {
	background: #ad201e !important;
	border-color: #ad201e;
}
body main#content tickera-payment-result checkout-payment-result > div > div:last-child a:focus-visible {
	outline: 3px solid #f3c7c3;
	outline-offset: 3px;
}
@media (max-width: 520px) {
	body main#content:has(tickera-payment-result) { width: min(100% - 24px, 480px); }
	body main#content tickera-payment-result checkout-payment-result > div { margin-block: 20px 36px; }
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child { flex-direction: column; }
	body main#content tickera-payment-result checkout-payment-result > div > div:last-child a { width: 100%; }
}

body main#content .tickera-checkout-steps {
	margin: 0 0 clamp(22px, 3vw, 32px);
	color: #f4f4f4;
}

body main#content .tickera-checkout-steps__eyebrow {
	margin: 0 0 12px;
	color: #c9c9c9;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
}

body main#content .tickera-checkout-steps ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body main#content .tickera-checkout-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 68px;
	padding: 12px 16px;
	background: #1b1b1b;
	border: 1px solid #454545;
	border-radius: 10px;
}

body main#content .tickera-checkout-steps li.is-current {
	background: #281919;
	border-color: #e52b28;
}

body main#content .tickera-checkout-steps li.is-complete {
	border-color: #a44440;
}

body main#content .tickera-checkout-steps__number {
	display: grid;
	flex: 0 0 31px;
	place-items: center;
	width: 31px;
	height: 31px;
	color: #ececec;
	background: #353535;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
}

body main#content .tickera-checkout-steps .is-current .tickera-checkout-steps__number,
body main#content .tickera-checkout-steps .is-complete .tickera-checkout-steps__number {
	color: #fff;
	background: #e52b28;
}

body main#content .tickera-checkout-steps li strong,
body main#content .tickera-checkout-steps li small {
	display: block;
	line-height: 1.25;
}

body main#content .tickera-checkout-steps li strong {
	font-size: 14px;
	font-weight: 700;
}

body main#content .tickera-checkout-steps li small {
	margin-top: 4px;
	color: #aaa;
	font-size: 11px;
}

body main#content .tickera-checkout-steps .is-current small {
	color: #ffaaa7;
}

body main#content:has(tickera-checkout) .page-content,
body main#content tickera-checkout,
body main#content tickera-checkout checkout-page,
body main#content tickera-checkout checkout-page > div {
	display: block;
	width: 100%;
	max-width: none;
}

body main#content tickera-checkout checkout-page > div {
	padding: 0;
}

body main#content tickera-checkout checkout-page > div > .grid {
	max-width: none;
	gap: clamp(20px, 3vw, 32px);
	align-items: start;
}

body main#content tickera-checkout checkout-page > div > .grid > div {
	min-width: 0;
}

body main#content tickera-checkout checkout-form > div {
	padding: clamp(22px, 3vw, 34px);
	color: #f3f3f3;
	background: #1b1b1b;
	border: 1px solid #3c3c3c;
	border-top: 3px solid #e52b28;
	border-radius: 14px;
}

body main#content tickera-checkout checkout-form > div::before {
	content: 'Tus datos para la compra';
	display: block;
	margin-bottom: 8px;
	color: #f8f8f8;
	font-size: clamp(21px, 2vw, 25px);
	font-weight: 700;
	line-height: 1.2;
}

body main#content tickera-checkout checkout-form > div::after {
	content: 'Revisa tu información antes de continuar.';
	display: block;
	margin-top: -2px;
	color: #bdbdbd;
	font-size: 13px;
	line-height: 1.45;
}

/* La descripción visual aparece antes del formulario, sin alterar los campos de Angular. */
body main#content tickera-checkout checkout-form > div {
	display: flex;
	flex-direction: column;
}

body main#content tickera-checkout checkout-form > div > form {
	order: 3;
	gap: 18px;
	margin-top: 22px;
}

body main#content tickera-checkout checkout-form form > div {
	min-width: 0;
}

body main#content tickera-checkout checkout-form form > div:not(:last-child) {
	align-items: flex-start;
}

body main#content tickera-checkout checkout-form form > div:not(:last-child) > :is(form-input, phone-input, form-select, identity-document-input, async-select) {
	flex: 1 1 0;
	min-width: 0;
}

body main#content tickera-checkout checkout-form :is(form-input, phone-input, form-select, city-select) {
	min-width: 0;
}

body main#content tickera-checkout checkout-form :is(.form-input-label, .phone-input-label, .form-select-label, .identity-document-input-label, .async-select-label) {
	display: block;
	min-height: 20px;
	margin-bottom: 7px;
	color: #ededed !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body main#content tickera-checkout checkout-form :is(input.form-input, select.form-select, input.identity-document-input, async-select .ng-select-container) {
	box-sizing: border-box;
	height: 48px;
	min-height: 48px;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #b8b8b8;
	border-radius: 8px;
	font-size: 14px;
	box-shadow: none;
}

body main#content tickera-checkout checkout-form :is(.identity-document-input-hint, .async-select-hint, .identity-document-input-error-message, .async-select-error-message) {
	margin-top: 6px;
	color: #bcbcbc !important;
	font-size: 12px;
	line-height: 1.4;
}

body main#content tickera-checkout checkout-form async-select :is(.ng-value, .ng-placeholder, .ng-input input) {
	color: #1a1a1a !important;
}

body main#content tickera-checkout checkout-form :is(input.form-input, select.form-select)::placeholder {
	color: #686868;
	opacity: 1;
}

body main#content tickera-checkout checkout-form :is(input.form-input, select.form-select):focus {
	border-color: #fa5550;
	outline: 2px solid #fa555044;
	outline-offset: 1px;
}

body main#content tickera-checkout checkout-form select.form-select {
	color-scheme: light;
}

body main#content tickera-checkout checkout-form .phone-input-field {
	position: relative;
}

body main#content tickera-checkout checkout-form .phone-prefix-wrapper {
	position: absolute;
	z-index: 2;
	top: 1px;
	left: 1px;
	width: 98px;
	height: 46px;
	border-right: 1px solid #b8b8b8;
}

body main#content tickera-checkout checkout-form .phone-prefix-select,
body main#content tickera-checkout checkout-form .phone-prefix-select .ng-select-container {
	width: 100%;
	height: 100%;
	min-height: 0;
	color: #1a1a1a !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
}

body main#content tickera-checkout checkout-form .phone-prefix-select .ng-value,
body main#content tickera-checkout checkout-form .phone-prefix-select .ng-value-container {
	color: #1a1a1a !important;
}

body main#content tickera-checkout checkout-form .phone-prefix-select :is(.ng-arrow, .ng-input input) {
	color: #1a1a1a !important;
}

body main#content tickera-checkout checkout-form #mobile {
	width: 100%;
	padding-left: 111px;
}

body main#content tickera-checkout checkout-form form > div:last-child {
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid #3d3d3d;
}

body main#content tickera-checkout checkout-form form > div:last-child > div {
	align-items: flex-start;
	gap: 10px;
}

body main#content tickera-checkout checkout-form form > div:last-child label {
	margin: 0;
	color: #dedede !important;
	font-size: 13px;
	line-height: 1.5;
}

body main#content tickera-checkout checkout-form form > div:last-child label a {
	color: #ff8c88 !important;
	text-decoration: underline;
}

body main#content tickera-checkout checkout-form form > div:last-child toggle-switch {
	flex: none;
	margin-top: 1px;
}

body main#content tickera-checkout checkout-form toggle-switch .toggle-switch.checked {
	background: #df2926 !important;
	border-color: #df2926 !important;
}

body main#content tickera-checkout checkout-form toggle-switch .toggle-switch:focus-visible {
	outline: 2px solid #ff918d !important;
	outline-offset: 3px;
}

/* Resumen, descuentos y pago comparten la misma superficie. */
body main#content tickera-checkout checkout-page > div > .grid > div:last-child {
	gap: 16px;
}

body main#content tickera-checkout :is(checkout-summary, discount-section, checkout-payment-methods, ticket-map-totals) > ticket-map-widget > .ticket-map-widget {
	padding: 19px 20px;
	color: #f2f2f2;
	background: #1b1b1b;
	border: 1px solid #3c3c3c;
	border-radius: 12px;
}

body main#content tickera-checkout checkout-summary > ticket-map-widget > .ticket-map-widget {
	border-top: 3px solid #e52b28;
}

body main#content tickera-checkout .tw-checkout-summary-heading,
body main#content tickera-checkout .tw-checkout-benefits h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

body main#content tickera-checkout .tw-checkout-summary-heading {
	font-size: 12px;
	letter-spacing: .09em;
	text-transform: uppercase;
}

body main#content tickera-checkout .tw-checkout-benefits {
	margin: 0 0 13px;
}

body main#content tickera-checkout .tw-checkout-benefits p {
	margin: 0;
	color: #c8c8c8;
	font-size: 12px;
	line-height: 1.45;
}

body main#content tickera-checkout checkout-summary .truncate {
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	white-space: normal;
}

body main#content tickera-checkout checkout-summary .text-xs,
body main#content tickera-checkout checkout-summary .text-\[10px\] {
	color: #bdbdbd !important;
	font-size: 12px;
	line-height: 1.45;
}

body main#content tickera-checkout checkout-summary .overflow-y-auto > div {
	gap: 9px;
	padding: 12px 0;
}

body main#content tickera-checkout checkout-summary .overflow-y-auto .text-sm.font-medium {
	color: #f2f2f2 !important;
	font-size: 13px;
}

body main#content tickera-checkout checkout-summary app-button.btn-transparent button,
body main#content tickera-checkout checkout-summary .btn-transparent {
	color: #aaa !important;
}

body main#content tickera-checkout checkout-summary .btn-transparent:hover {
	color: #fff !important;
	background: #442322 !important;
}

body main#content tickera-checkout checkout-summary .text-sm {
	color: #f3f3f3 !important;
	line-height: 1.4;
}

body main#content tickera-checkout checkout-summary .border-gray-100,
body main#content tickera-checkout checkout-summary .border-gray-200 {
	border-color: #424242 !important;
}

body main#content tickera-checkout checkout-summary .hover\:bg-gray-50:hover {
	background: #292929 !important;
}

body main#content tickera-checkout discount-section .scrollbar-hide {
	gap: 7px;
	margin: 0 0 14px;
	padding: 0 0 5px;
}

body main#content tickera-checkout discount-section .scrollbar-hide button {
	min-height: 33px;
	color: #ddd;
	background: #2b2b2b;
	border: 1px solid #515151;
	border-radius: 999px;
	font-size: 11px;
	white-space: nowrap;
}

body main#content tickera-checkout discount-section .scrollbar-hide button.bg-gray-900 {
	color: #fff;
	background: #9e2522;
	border-color: #d93430;
}

body main#content tickera-checkout discount-section .text-sm.font-semibold.text-gray-900 {
	color: #e7f5ea !important;
}

body main#content tickera-checkout discount-section .text-\[10px\].font-medium.text-gray-500 {
	color: #c4d9ca !important;
}

body main#content tickera-checkout discount-section :is(.form-input-label, .form-select-label) {
	color: #ededed;
}

body main#content tickera-checkout discount-section input.form-input {
	min-height: 43px;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #b8b8b8;
	border-radius: 7px;
}

body main#content tickera-checkout discount-section app-button {
	padding: 0;
	border: 0;
}

body main#content tickera-checkout discount-section app-button button {
	min-height: 43px;
	border-radius: 7px;
}

body main#content tickera-checkout discount-section app-button button:not(:disabled),
body main#content tickera-checkout discount-section app-button button:not(:disabled):hover {
	color: #fff !important;
	background: #df2926 !important;
}

body main#content tickera-checkout checkout-payment-methods span.text-gray-900 {
	color: #f5f5f5 !important;
	font-size: 14px;
	font-weight: 700;
}

body main#content tickera-checkout checkout-payment-methods p.text-gray-500 {
	color: #bdbdbd !important;
	font-size: 12px;
	line-height: 1.45;
}

body main#content tickera-checkout ticket-map-totals .ticket-map-widget-header__title {
	color: #f5f5f5;
	font-size: 14px;
	letter-spacing: .025em;
}

body main#content tickera-checkout ticket-map-totals .ticket-map-totals__item {
	color: #c3c3c3;
	font-size: 13px;
}

body main#content tickera-checkout ticket-map-totals .ticket-map-totals__divider {
	border-top-color: #454545;
}

body main#content tickera-checkout ticket-map-totals :is(.ticket-map-totals__calculated-title, .ticket-map-totals__calculated-total) {
	color: #fff;
	font-size: 19px;
	font-weight: 700;
}

body main#content tickera-checkout ticket-map-totals app-button {
	display: block;
	margin-top: 12px;
}

body main#content tickera-checkout ticket-map-totals app-button button {
	width: 100%;
	min-height: 48px;
	background: #e52b28;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
}

body main#content tickera-checkout ticket-map-totals app-button button:hover {
	background: #bd201d;
}

body main#content tickera-checkout checkout-timer > div {
	color: #593000;
	background: #fff0d6;
	border-color: #e9b560;
}

@media (max-width: 1000px) {
	body main#content tickera-checkout checkout-page > div > .grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body main#content tickera-checkout checkout-page > div > .grid > div {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	body main#content .tickera-checkout-steps ol {
		gap: 6px;
	}

	body main#content .tickera-checkout-steps li {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		min-height: 92px;
		padding: 10px;
	}

	body main#content .tickera-checkout-steps li strong {
		font-size: 12px;
	}

	body main#content .tickera-checkout-steps li small {
		font-size: 10px;
	}

	body main#content:has(tickera-checkout) {
		width: min(100% - 28px, 520px);
		padding-top: 20px;
	}

	body main#content tickera-checkout checkout-form > div {
		padding: 23px 18px;
	}

	body main#content tickera-checkout checkout-form > div > form {
		gap: 16px;
	}

	body main#content tickera-checkout checkout-page > div > .grid {
		gap: 18px;
	}

	body main#content tickera-checkout :is(checkout-summary, discount-section, checkout-payment-methods, ticket-map-totals) > ticket-map-widget > .ticket-map-widget {
		padding: 18px;
	}
}

/* Las utilidades importantes de Angular prevalecen sobre reglas sin capa. */
@layer theme {
	body main#content tickera-payment-result checkout-payment-result > div {
		min-height: 0 !important;
	}

	body main#content tickera-payment-result checkout-payment-result h2 {
		color: #f7f7f7 !important;
		font-size: clamp(28px, 3.2vw, 38px) !important;
	}

	body main#content tickera-payment-result checkout-payment-result p {
		color: #c9c9c9 !important;
		font-size: clamp(15px, 1.5vw, 17px) !important;
	}

	body main#content tickera-checkout checkout-form form > div:last-child label {
		color: #dedede !important;
	}

	body main#content tickera-checkout checkout-form form > div:last-child label a {
		color: #ff8c88 !important;
	}

	body main#content tickera-checkout checkout-summary :is(.text-gray-900, .text-gray-800) {
		color: #f3f3f3 !important;
	}

	body main#content tickera-checkout checkout-summary :is(.text-gray-500, .text-gray-400) {
		color: #bdbdbd !important;
	}

	body main#content tickera-checkout checkout-summary .hover\:bg-gray-50:hover {
		background: #292929 !important;
	}

	body main#content tickera-checkout discount-section .scrollbar-hide button {
		color: #ddd !important;
		background: #2b2b2b !important;
	}

	body main#content tickera-checkout discount-section .scrollbar-hide button.bg-gray-900 {
		color: #fff !important;
		background: #9e2522 !important;
	}

	body main#content tickera-checkout checkout-payment-methods span.text-gray-900 {
		color: #f5f5f5 !important;
	}

	body main#content tickera-checkout checkout-payment-methods p.text-gray-500 {
		color: #bdbdbd !important;
	}
}
