/* impact Tickets: the selector is drawn as a ticket, with the total on the stub. */
.imt {
	--imt-paper: #ffffff;
	--imt-ink: #23262d;
	--imt-soft: #4b505b;
	--imt-line: #e1e4ea;
	--imt-accent: #ffba2b;
	--imt-accent-ink: #23262d;
	--imt-chosen: #fff3d9;
	--imt-radius: 10px;
	--imt-serif: inherit;
	color: var(--imt-ink);
	margin: 1.5rem 0;
}
.imt--ball {
	--imt-paper: #f6e6c8;
	--imt-ink: #401209;
	--imt-soft: #8a5c1c;
	--imt-line: rgba(138, 92, 28, 0.28);
	--imt-accent: #6f261a;
	--imt-accent-ink: #f6e6c8;
	--imt-chosen: rgba(240, 184, 102, 0.24);
	--imt-serif: "Bodoni Moda", Georgia, serif;
	font-family: "Cormorant Garamond", Garamond, Georgia, serif;
	font-size: 1.12rem;
	font-variant-numeric: lining-nums;
}
.imt * { box-sizing: border-box; }
.imt-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	background: var(--imt-paper);
	border: 1px solid var(--imt-line);
	border-radius: var(--imt-radius);
	box-shadow: 0 18px 40px -24px rgba(20, 4, 9, 0.45);
	overflow: hidden;
}
.imt-main { padding: 1.5rem 1.5rem 1.25rem; }
.imt-event { margin: 0; font-family: var(--imt-serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.imt-when { margin: 0.35rem 0 0; color: var(--imt-soft); font-size: 0.95rem; line-height: 1.45; }
.imt-notice { margin: 1rem 0 0; padding: 0.6rem 0.8rem; border-radius: 6px; background: var(--imt-chosen); font-size: 0.95rem; }
.imt-types { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.imt-type {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.85rem 0.6rem; margin: 0 -0.6rem; border-top: 1px solid var(--imt-line); border-radius: 6px;
}
.imt-type:last-child { border-bottom: 1px solid var(--imt-line); }
.imt-type.is-chosen { background: var(--imt-chosen); }
.imt-type.is-soldout { opacity: 0.55; }
.imt-type-label { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 0.6rem; row-gap: 0.1rem; align-items: baseline; }
.imt-type-name { font-family: var(--imt-serif); font-weight: 600; font-size: 1.15rem; }
.imt-type-price { font-weight: 700; }
.imt-type-note { grid-column: 1 / -1; color: var(--imt-soft); font-size: 0.875rem; }
.imt-stepper { display: flex; align-items: center; gap: 0.25rem; flex: none; }
.imt-stepper button {
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	border: 1.5px solid var(--imt-ink); background: transparent; color: var(--imt-ink);
	font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0;
}
.imt-stepper button:disabled { opacity: 0.3; cursor: default; }
.imt-stepper button:focus-visible, .imt-pay:focus-visible, .imt input:focus-visible { outline: 3px solid #1d3f8c; outline-offset: 2px; }
.imt-qty { min-width: 2rem; text-align: center; font-weight: 700; font-size: 1.15rem; }
.imt-fields { margin-top: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.imt-fields p { margin: 0; }
.imt-fields label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.imt-fields input[type="text"], .imt-fields input[type="email"] {
	width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #c3c8d2; border-radius: 6px; background: #fff; color: #23262d;
}
.imt-terms { grid-column: 1 / -1; font-size: 0.9rem; }
.imt-terms label { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; }
.imt-terms input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex: none; }
.imt-stub {
	padding: 1.5rem 1.25rem; border-left: 2px dashed var(--imt-line);
	display: flex; flex-direction: column; justify-content: flex-end;
}
.imt-stub-label { margin: 0; color: var(--imt-soft); font-size: 0.9rem; }
.imt-total { margin: 0.1rem 0 0; font-family: var(--imt-serif); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.imt-count { margin: 0.35rem 0 1rem; color: var(--imt-soft); font-size: 0.9rem; }
.imt-pay {
	display: block; width: 100%; text-align: center; font: inherit; font-weight: 700; font-size: 1.05rem;
	padding: 0.95rem 1rem; border: 0; border-radius: 6px; background: var(--imt-accent); color: var(--imt-accent-ink); cursor: pointer; text-decoration: none;
}
.imt-pay:disabled { opacity: 0.45; cursor: default; }
.imt-error { margin: 0.6rem 0 0; color: #b3261e; font-size: 0.9rem; min-height: 1.2em; }
.imt-small { margin: 0.6rem 0 0; color: var(--imt-soft); font-size: 0.8rem; line-height: 1.45; }
.imt-done { display: block; padding: 1.75rem 1.5rem; }
.imt-done-title { margin: 0 0 0.5rem; font-family: var(--imt-serif); font-size: 1.6rem; }
.imt-done .imt-pay { display: inline-block; width: auto; }
.imt-closed { margin: 0; padding: 1.5rem; }
@media (max-width: 720px) {
	.imt-card { grid-template-columns: 1fr; }
	.imt-main { padding: 1.25rem 1rem 1rem; }
	.imt-stub { border-left: 0; border-top: 2px dashed var(--imt-line); padding: 1.1rem 1rem 1.25rem; }
	.imt-fields { grid-template-columns: 1fr; }
	.imt-total { font-size: 2.1rem; }
}

.imt-tlist, .imt-orders { list-style: none; margin: 0.9rem 0 0; padding: 0; max-height: 15rem; overflow: auto; border-top: 1px solid currentColor; border-top-color: rgba(128,128,128,.35); }
.imt-tlist li, .imt-orders li { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid rgba(128,128,128,.35); font-size: 0.92rem; }
.imt-tlist code { font-size: 0.82rem; letter-spacing: 0.04em; white-space: nowrap; }
.imt-tlist em { color: #b3261e; font-style: normal; }
.imt-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; align-items: center; margin: 1.1rem 0 0; }
.imt-again { text-decoration: underline; }
.imt-mine { margin-top: 1.25rem; }

/* ---------- who are the tickets for ---------- */
.imt .imt-done-title { color: var(--imt-ink) !important; }
.imt .imt-done a.imt-pay, .imt .imt-done a.imt-pay:visited { color: var(--imt-accent-ink) !important; background: var(--imt-accent) !important; text-decoration: none; }
.imt .imt-done a.imt-again { color: var(--imt-ink) !important; }
html.imt-lock { overflow: hidden; }
.imt-dialog {
	padding: 0; border: 1px solid var(--imt-line); border-radius: 14px; background: var(--imt-paper); color: var(--imt-ink);
	width: min(36rem, calc(100% - 1.5rem)); max-height: min(92vh, 92dvh); overflow: hidden;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.imt-dialog[open] { display: flex; flex-direction: column; }
.imt-dialog::backdrop { background: rgba(14, 3, 6, 0.72); }
.imt-dform { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.imt-dhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--imt-line); }
.imt-dhead h3 { margin: 0; font-family: var(--imt-serif); font-size: 1.35rem; font-weight: 600; color: var(--imt-ink) !important; }
.imt-dclose { flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--imt-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.imt-dclose:hover { background: var(--imt-chosen); }
.imt-dbody { padding: 1rem 1.25rem; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.imt-dsum { margin: 0 0 0.9rem; font-weight: 700; }
.imt-buyer { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.8rem; }
.imt-buyer p { margin: 0; }
.imt-buyer .imt-wide { grid-column: 1 / -1; }
.imt-dialog label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.25rem; }
.imt-dialog input[type="text"], .imt-dialog input[type="email"] {
	width: 100%; font: inherit; font-size: 1rem; padding: 0.65rem 0.75rem; border: 1px solid #c3c8d2; border-radius: 6px; background: #fff; color: #23262d;
}
.imt-dialog input:disabled { background: rgba(255, 255, 255, 0.55); color: #4b505b; }
.imt-who { margin-top: 1.2rem; }
.imt-who-title { margin: 0 0 0.5rem; font-family: var(--imt-serif); font-weight: 600; font-size: 1.05rem; }
.imt-dialog label.imt-same { display: flex; gap: 0.55rem; align-items: center; font-weight: 600; margin-bottom: 0.7rem; padding: 0.6rem 0.7rem; border-radius: 6px; background: var(--imt-chosen); cursor: pointer; }
.imt-same input { width: 1.15rem; height: 1.15rem; flex: none; }
.imt-holders { list-style: none; margin: 0; padding: 0; }
.imt-holder { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.6rem; padding: 0.65rem 0; border-top: 1px solid var(--imt-line); }
.imt-holder-label { grid-column: 1 / -1; font-size: 0.85rem; font-weight: 700; color: var(--imt-soft); }
.imt-dialog .imt-terms { margin: 1rem 0 0; }
.imt-dialog .imt-terms label { font-weight: 400; font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.imt-dfoot { padding: 0.8rem 1.25rem 1.1rem; border-top: 1px solid var(--imt-line); background: var(--imt-paper); }
.imt-dfoot .imt-error { margin: 0 0 0.5rem; }
@media (max-width: 480px) {
	.imt-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 94dvh; }
	.imt-buyer, .imt-holder { grid-template-columns: 1fr; }
}

/* Launch offer: a clear strip above the prices */
.imt-offer { display: flex; align-items: center; justify-content: space-between; gap: .9rem; margin: 0 0 1rem; padding: .7rem .95rem; border-radius: 6px; border: 1px solid rgba(138, 42, 55, .45); border-left: 5px solid #8a2a37; background: rgba(138, 42, 55, .09); }
.imt-offer-l { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.imt-offer-k { font-family: var(--imt-serif); font-weight: 700; font-size: 1.25rem; line-height: 1.15; color: #7a1f2b; }
.imt-offer-d { font-size: 1rem; line-height: 1.3; font-weight: 600; color: #3a120f; }
.imt-offer-r { text-align: right; flex: none; }
.imt-offer-cd { display: block; font-family: var(--imt-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: #7a1f2b; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .imt-offer { flex-direction: column; align-items: flex-start; gap: .35rem; } .imt-offer-r { text-align: left; } }
.imt-was { font-weight: 400; opacity: .55; margin-right: .25rem; font-size: .85em; }
