/* =========================================================
   MAD ONES TICKETS – the checkout modal

   The tokens come from the theme, with the hex behind them as a fallback for
   the day this runs somewhere the theme is not.
   ========================================================= */

.mt-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* The checkout is injected into pages owned by the theme. Keep every one of
   its boxes inside the viewport even when the surrounding page has stricter
   grid or flex rules. */
.mt-modal,
.mt-modal *,
.mt-modal *::before,
.mt-modal *::after {
	box-sizing: border-box;
}

.mt-modal__panel,
.mt-modal__head,
.mt-modal__body,
.mt-types,
.mt-type,
.mt-form,
.mt-stripe {
	min-width: 0;
	max-width: 100%;
}

.mt-modal[hidden] {
	display: none;
}

html.mt-modal-open {
	overflow: hidden;
}

.mt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.mt-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	background: var(--madones-bg-soft, #101010);
	border: 1px solid var(--madones-line, rgba(255, 255, 255, 0.12));
	border-top: 4px solid var(--madones-acid, #b8ff52);
	color: var(--madones-text, #f4f0e8);
}

@media (min-width: 720px) {
	.mt-modal {
		align-items: center;
	}

	.mt-modal__panel {
		max-height: 88vh;
	}
}

.mt-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--madones-line-soft, rgba(255, 255, 255, 0.08));
}

.mt-modal__title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--madones-acid, #b8ff52);
}

.mt-modal__title-secure {
	color: var(--madones-pink, #ff4fa3);
}

.mt-modal__close {
	padding: 0 6px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.mt-modal__body {
	padding: 18px;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mt-head {
	margin-bottom: 18px;
}

.mt-head__title {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.mt-head__line {
	margin: 6px 0 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.85rem;
}

.mt-test {
	margin: 0 0 14px;
	padding: 8px 10px;
	background: var(--madones-pink, #ff4fa3);
	color: #111111;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mt-training-page-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100001;
	padding: 9px 14px;
	background: var(--madones-pink, #ff4fa3);
	color: #070707;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}

body:has(.mt-training-page-banner) .mt-modal {
	padding-top: 34px;
}

.mt-types {
	display: grid;
	gap: 1px;
	background: var(--madones-line-faint, rgba(255, 255, 255, 0.06));
	border: 1px solid var(--madones-line-faint, rgba(255, 255, 255, 0.06));
}

.mt-type {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px;
	background: var(--madones-bg, #070707);
}

.mt-type__info {
	min-width: 0;
}

.mt-type__name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mt-type__days {
	margin: 4px 0 0;
	color: var(--madones-pink, #ff4fa3);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mt-type__desc {
	margin: 4px 0 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.82rem;
	line-height: 1.5;
}

.mt-type__price {
	margin: 6px 0 0;
	color: var(--madones-acid, #b8ff52);
	font-size: 0.9rem;
	font-weight: 800;
}

/* The fee rides on the price line, quiet enough not to compete with it. */
.mt-type__fee {
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.8rem;
	font-weight: 400;
}

.mt-type__gone {
	margin: 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mt-type__unavailable {
	display: grid;
	justify-items: end;
	gap: 8px;
}

.mt-waitlist__open,
.mt-waitlist__submit {
	min-height: 42px;
	padding: 10px 13px;
	border: 1px solid var(--madones-acid, #b8ff52);
	background: transparent;
	color: var(--madones-acid, #b8ff52);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.mt-waitlist {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
	width: 100%;
	padding-top: 12px;
	border-top: 1px solid var(--madones-line-soft, rgba(255, 255, 255, 0.08));
}

.mt-waitlist__title,
.mt-waitlist__success {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 800;
}

.mt-waitlist .mt-error {
	grid-column: 1 / -1;
}

.mt-type.is-waitlist-offer {
	outline: 2px solid var(--madones-acid, #b8ff52);
	outline-offset: -2px;
}

.mt-stepper {
	display: flex;
	align-items: center;
	gap: 2px;
}

.mt-stepper__btn {
	width: 44px;
	height: 44px;
	border: 1px solid var(--madones-line, rgba(255, 255, 255, 0.12));
	background: transparent;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.mt-stepper__btn:hover {
	border-color: var(--madones-acid, #b8ff52);
	color: var(--madones-acid, #b8ff52);
}

.mt-stepper__count {
	min-width: 38px;
	text-align: center;
	font-size: 1rem;
	font-weight: 800;
}

.mt-amount {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mt-amount__label {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--madones-text-soft, #c9c2b8);
}

.mt-amount__input,
.mt-support__input,
.mt-field__input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--madones-line, rgba(255, 255, 255, 0.12));
	border-radius: 0;
	background: var(--madones-bg, #070707);
	color: inherit;
	font-size: 16px;
	font-family: inherit;
}

.mt-amount__input {
	max-width: 120px;
}

.mt-amount__input:focus,
.mt-support__input:focus,
.mt-field__input:focus {
	outline: 2px solid var(--madones-acid, #b8ff52);
	outline-offset: -2px;
}

.mt-support {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 14px;
	padding: 16px;
	border: 1px solid var(--madones-line, rgba(255, 255, 255, 0.12));
}

.mt-support__info {
	flex: 1 1 auto;
}

.mt-support__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
}

.mt-support__text {
	margin: 6px 0 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.82rem;
	line-height: 1.5;
}

.mt-support__field {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
}

.mt-support__currency {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid var(--madones-line, rgba(255, 255, 255, 0.12));
	border-right: 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.95rem;
}

.mt-support__input {
	width: 110px;
	text-align: right;
}

.mt-support__input::placeholder {
	color: var(--madones-text-soft, #c9c2b8);
	opacity: 1;
}

@media (max-width: 560px) {
	.mt-support {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.mt-support__input {
		width: 100%;
	}
}

.mt-summary {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--madones-line-soft, rgba(255, 255, 255, 0.08));
}

.mt-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.88rem;
}

.mt-summary__row--total {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--madones-line-soft, rgba(255, 255, 255, 0.08));
	color: var(--madones-text, #f4f0e8);
	font-size: 1.05rem;
	font-weight: 900;
	text-transform: uppercase;
}

.mt-submit {
	width: 100%;
	margin-top: 16px;
	padding: 16px 18px;
	border: 0;
	background: var(--madones-acid, #b8ff52);
	color: #111111;
	font-size: 0.95rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.mt-submit:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.mt-back {
	width: 100%;
	margin-top: 8px;
	padding: 12px;
	border: 0;
	background: none;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.mt-form {
	display: block;
}

.mt-field__label {
	display: block;
	margin: 14px 0 6px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--madones-text-soft, #c9c2b8);
}

.mt-note {
	margin: 8px 0 0;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: 0.8rem;
}

.mt-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	font-size: 0.85rem;
	color: var(--madones-text-soft, #c9c2b8);
	cursor: pointer;
}

.mt-check input {
	flex: 0 0 auto;
	/* Optically level with the first line rather than the block. */
	margin-top: 1px;
	width: 20px;
	height: 20px;
	accent-color: var(--madones-acid, #b8ff52);
}

.mt-check__text {
	display: block;
}

.mt-check__label {
	display: block;
	color: var(--madones-text, #f4f0e8);
}

.mt-check__note {
	display: block;
	margin-top: 3px;
	font-size: 0.78rem;
	line-height: 1.5;
}

.mt-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: rgba(255, 79, 163, 0.12);
	border-left: 3px solid var(--madones-pink, #ff4fa3);
	color: var(--madones-text, #f4f0e8);
	font-size: 0.85rem;
}

.mt-training-fail {
	display: block;
	width: 100%;
	min-height: 54px;
	margin-top: 10px;
	padding: 13px 16px;
	border: 1px solid var(--madones-pink, #ff4fa3);
	background: transparent;
	color: var(--madones-pink, #ff4fa3);
	font: inherit;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.mt-training-note {
	margin: 0 0 18px;
	padding: 12px;
	border-left: 3px solid var(--madones-acid, #b8ff52);
	background: rgba(184, 255, 82, .08);
}

.mt-training-tickets {
	display: grid;
	gap: 12px;
	margin: 18px 0;
}

.mt-training-ticket {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--madones-line, rgba(255, 255, 255, .18));
	background: var(--madones-bg, #070707);
}

.mt-training-ticket img {
	display: block;
	width: 112px;
	height: 112px;
	background: #fff;
}

.mt-training-ticket__details {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.mt-training-ticket__details strong {
	text-transform: uppercase;
}

.mt-training-ticket__details span {
	color: var(--madones-text-soft, #c9c2b8);
}

.mt-training-ticket__details code {
	overflow-wrap: anywhere;
	color: var(--madones-acid, #b8ff52);
	font-size: .82rem;
	letter-spacing: .08em;
}

.mt-training-note.is-error {
	border-left-color: var(--madones-pink, #ff4fa3);
	background: rgba(255, 79, 163, .12);
}

.mt-training-print {
	display: block;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
}

.mt-find-ticket {
	display: inline-block;
	margin: 10px 0 0 14px;
	color: inherit;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mt-find-modal__title {
	margin: 0;
	font-size: clamp(1.8rem, 8vw, 2.8rem);
	font-weight: 900;
	line-height: .95;
	letter-spacing: -.035em;
	text-transform: uppercase;
}

.mt-find-modal__intro {
	margin: 14px 0 22px;
	color: var(--madones-text-soft, #c9c2b8);
	font-size: .9rem;
	line-height: 1.6;
}

.mt-find-modal__form label {
	display: block;
	margin-bottom: 8px;
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.mt-find-modal__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.mt-find-modal__row input,
.mt-find-modal__row button {
	min-height: 54px;
	border-radius: 0;
	font: inherit;
}

.mt-find-modal__row input {
	width: 100%;
	padding: 0 14px;
	border: 1px solid var(--madones-line, rgba(255, 255, 255, .22));
	background: var(--madones-bg, #070707);
	color: var(--madones-text, #f4f0e8);
	font-size: 16px;
}

.mt-find-modal__row button {
	padding: 0 20px;
	border: 0;
	background: var(--madones-acid, #b8ff52);
	color: #070707;
	font-weight: 900;
	cursor: pointer;
}

.mt-find-modal__row button:disabled {
	opacity: .6;
	cursor: wait;
}

.mt-find-modal__status {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--madones-acid, #b8ff52);
	background: rgba(184, 255, 82, .08);
	font-size: .85rem;
	line-height: 1.5;
}

.mt-find-modal__status.is-error {
	border-left-color: var(--madones-pink, #ff4fa3);
	background: rgba(255, 79, 163, .12);
}

@media (max-width: 520px) {
	.mt-find-ticket {
		display: block;
		margin: 10px 0 0;
	}

	.mt-find-modal__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.mt-find-modal__row button {
		width: 100%;
	}
}

/* Stripe draws its own form in here, on a light ground of its own. */
.mt-stripe {
	min-height: 320px;
	padding: 12px;
	overflow: hidden;
	background: #ffffff;
}

@media (max-width: 420px) {
	.mt-modal__head {
		padding: 13px 14px;
	}

	.mt-modal__body {
		padding: 14px;
	}

	.mt-modal__title {
		font-size: 0.68rem;
		letter-spacing: 0.14em;
	}

	.mt-type {
		grid-template-columns: minmax(0, 1fr);
	}

	.mt-type__unavailable {
		justify-items: start;
	}

	.mt-waitlist {
		grid-template-columns: minmax(0, 1fr);
	}

	.mt-waitlist__submit {
		width: 100%;
	}

	.mt-stepper {
		justify-content: flex-start;
	}

	.mt-amount {
		grid-column: 1;
		flex-wrap: wrap;
	}

	.mt-amount__input {
		max-width: none;
	}

	.mt-summary__row {
		align-items: baseline;
	}

	.mt-summary__row > :first-child {
		min-width: 0;
		overflow-wrap: anywhere;
	}
}
