/* Voorstelling Tickets – voorkant.
 * Kleuren aanpassen? Overschrijf deze variabelen in je thema:
 *   :root { --vt-accent: #004f9f; }
 */
:root {
	--vt-accent: #b3261e;
	--vt-accent-text: #fff;
	--vt-border: rgba(0, 0, 0, .14);
	--vt-muted: rgba(0, 0, 0, .6);
	--vt-surface: rgba(0, 0, 0, .03);
	--vt-ok: #1b7f3b;
	--vt-warn: #b26a00;
	--vt-error: #b3261e;
	--vt-radius: 10px;
}

.vt-booking, .vt-overview, .vt-tickets, .vt-scanner { box-sizing: border-box; }
.vt-booking *, .vt-overview *, .vt-tickets *, .vt-scanner * { box-sizing: inherit; }

/* Knoppen */
.vt-button, .vt-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px; padding: .6em 1.3em; border: 0; border-radius: 999px;
	background: var(--vt-accent); color: var(--vt-accent-text) !important;
	font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.vt-button:hover, .vt-submit:hover { filter: brightness(1.08); }
.vt-button--ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor; }
.vt-submit { width: 100%; margin-top: 1.2em; font-size: 1.1em; min-height: 52px; }
.vt-submit.is-busy { opacity: .6; cursor: progress; }

.vt-notice { padding: 1em 1.2em; border-radius: var(--vt-radius); background: var(--vt-surface); }
.vt-badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .82em; font-weight: 600; background: rgba(27, 127, 59, .12); color: var(--vt-ok); }
.vt-badge--few { background: rgba(178, 106, 0, .14); color: var(--vt-warn); }
.vt-badge--soldout { background: rgba(179, 38, 30, .12); color: var(--vt-error); }

/* Bestelformulier */
.vt-booking { margin-top: 2.5em; }
.vt-booking__title { margin-bottom: .6em; }
.vt-form { max-width: 640px; }
.vt-step { border: 0; padding: 0; margin: 0 0 1.8em; min-width: 0; }
.vt-step[hidden] { display: none; }
.vt-step legend { font-weight: 700; font-size: 1.1em; margin-bottom: .7em; padding: 0; display: flex; align-items: center; gap: .5em; }
.vt-step__nr { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--vt-accent); color: var(--vt-accent-text); font-size: .85em; }

.vt-performances { display: grid; gap: .5em; }
.vt-performance {
	display: grid; grid-template-columns: auto 7.5em 1fr auto; align-items: center; gap: .8em;
	padding: .8em 1em; border: 2px solid var(--vt-border); border-radius: var(--vt-radius); cursor: pointer;
}
.vt-performance:has(input:checked) { border-color: var(--vt-accent); background: var(--vt-surface); }
.vt-performance.is-disabled { opacity: .55; cursor: not-allowed; }
.vt-performance input { width: 1.2em; height: 1.2em; accent-color: var(--vt-accent); margin: 0; }
.vt-performance__date { display: flex; flex-direction: column; line-height: 1.2; }
.vt-performance__day { font-weight: 700; }
.vt-performance__time { color: var(--vt-muted); }
.vt-performance__status { text-align: right; font-size: .9em; }
@media (max-width: 520px) {
	.vt-performance { grid-template-columns: auto 1fr; row-gap: .2em; }
	.vt-performance__location, .vt-performance__status { grid-column: 2; text-align: left; }
}

.vt-types { display: grid; gap: .6em; }
.vt-type { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .4em 0; border-bottom: 1px solid var(--vt-border); }
.vt-type__name { display: flex; flex-direction: column; font-weight: 600; }
.vt-type__price { font-weight: 400; color: var(--vt-muted); }
.vt-qty { display: flex; align-items: center; gap: .3em; }
.vt-qty input { width: 3.2em; text-align: center; padding: .4em; -moz-appearance: textfield; }
.vt-qty input::-webkit-outer-spin-button, .vt-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vt-qty__btn {
	width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--vt-border); background: transparent;
	font-size: 1.3em; line-height: 1; cursor: pointer; color: inherit; padding: 0;
}
.vt-qty__btn:hover { border-color: var(--vt-accent); color: var(--vt-accent); }
.vt-total { display: flex; justify-content: space-between; font-size: 1.15em; padding-top: .3em; }
.vt-fee-line { display: flex; justify-content: space-between; font-size: .95em; color: var(--vt-muted, #6b6760); padding-top: .3em; }
.vt-fee-line[hidden] { display: none; }

.vt-field { margin-bottom: 1em; }
.vt-field > label { display: block; font-weight: 600; margin-bottom: .3em; }
.vt-field input[type=text], .vt-field input[type=email], .vt-field input[type=tel], .vt-field select, .vt-field textarea {
	width: 100%; min-height: 44px; padding: .55em .7em; border: 1px solid var(--vt-border); border-radius: 6px; font: inherit; background: #fff; color: #1d1d1f;
}
.vt-field input:focus, .vt-field select:focus, .vt-field textarea:focus { outline: 2px solid var(--vt-accent); outline-offset: 1px; }
.vt-req { color: var(--vt-error); }
.vt-hint { margin: .3em 0 0; font-size: .88em; color: var(--vt-muted); }
.vt-qty-hint { color: var(--vt-warn); }
.vt-check, .vt-terms { display: flex; gap: .6em; align-items: flex-start; font-weight: 400 !important; }
.vt-check input, .vt-terms input { margin-top: .3em; width: 1.1em; height: 1.1em; accent-color: var(--vt-accent); }

.vt-methods { display: grid; gap: .5em; }
.vt-method { display: flex; align-items: center; gap: .7em; padding: .8em 1em; border: 2px solid var(--vt-border); border-radius: var(--vt-radius); cursor: pointer; }
.vt-method:has(input:checked) { border-color: var(--vt-accent); background: var(--vt-surface); }
.vt-method input { accent-color: var(--vt-accent); margin: 0; }

.vt-errors { border-left: 4px solid var(--vt-error); background: rgba(179, 38, 30, .07); padding: .9em 1.1em; border-radius: 6px; margin-bottom: 1.4em; }
.vt-errors ul { margin: .4em 0 0 1.2em; padding: 0; }
.vt-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Overzicht */
.vt-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4em; }
.vt-card { border: 1px solid var(--vt-border); border-radius: var(--vt-radius); overflow: hidden; display: flex; flex-direction: column; }
.vt-card__image img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; height: auto; }
.vt-card__body { padding: 1em 1.1em 1.2em; display: flex; flex-direction: column; gap: .35em; flex: 1; }
.vt-card__body > * { margin: 0; }
.vt-card__dates { font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vt-accent); }
.vt-card__title a { text-decoration: none; color: inherit; }
.vt-card__location, .vt-card__excerpt { color: var(--vt-muted); font-size: .95em; }
.vt-card .vt-button { margin-top: auto; align-self: flex-start; }

/* Tickets */
.vt-status { display: flex; gap: 1em; align-items: flex-start; padding: 1.1em 1.3em; border-radius: var(--vt-radius); margin-bottom: 1.5em; }
.vt-status p { margin: .3em 0 0; }
.vt-status--ok { background: rgba(27, 127, 59, .1); border-left: 5px solid var(--vt-ok); }
.vt-status--wait { background: var(--vt-surface); border-left: 5px solid var(--vt-warn); }
.vt-status--error { background: rgba(179, 38, 30, .08); border-left: 5px solid var(--vt-error); }
.vt-spinner { width: 22px; height: 22px; border: 3px solid var(--vt-border); border-top-color: var(--vt-warn); border-radius: 50%; animation: vt-spin 1s linear infinite; flex: none; margin-top: .15em; }
@keyframes vt-spin { to { transform: rotate(360deg); } }
.vt-print { text-align: right; }
.vt-ticket {
	display: flex; justify-content: space-between; gap: 1em; align-items: center;
	border: 1px solid var(--vt-border); border-left: 6px solid var(--vt-accent); border-radius: var(--vt-radius);
	padding: 1.1em 1.3em; margin-bottom: 1em; break-inside: avoid; background: #fff; color: #1d1d1f;
}
.vt-ticket.is-used { opacity: .55; }
.vt-ticket__info p { margin: 0 0 .4em; }
.vt-ticket__nr { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--vt-accent); }
.vt-ticket__title { margin: .1em 0 .4em; }
.vt-ticket__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; color: rgba(0, 0, 0, .6); }
.vt-ticket__qr { width: 180px; height: 180px; flex: none; image-rendering: pixelated; background: #fff; }
@media (max-width: 520px) {
	.vt-ticket { flex-direction: column-reverse; align-items: stretch; text-align: center; }
	.vt-ticket__qr { width: 220px; height: 220px; align-self: center; }
}
@media print {
	.vt-print, header, footer, nav, .site-header, .site-footer { display: none !important; }
	.vt-ticket { page-break-inside: avoid; }
}

/* Scanner */
.vt-scanner { max-width: 520px; margin: 0 auto; }
.vt-scanner__bar { display: flex; gap: .8em; align-items: center; margin-bottom: .8em; }
.vt-scanner__bar select { flex: 1; min-width: 0; min-height: 44px; font: inherit; padding: .4em; }
.vt-scanner__count { white-space: nowrap; font-weight: 700; }
.vt-scanner__switch { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff4d6; color: #5c4400; font-weight: 600; }
.vt-scanner__switch[hidden] { display: none; }
.vt-scanner__camera { position: relative; background: #111; border-radius: var(--vt-radius); overflow: hidden; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#vt-reader { width: 100%; }
#vt-reader video { display: block; width: 100% !important; }
.vt-scanner__toggle { margin: .8em; }
.vt-scanner.is-scanning .vt-scanner__toggle { position: absolute; bottom: 0; right: 0; min-height: 36px; font-size: .85em; background: rgba(0, 0, 0, .6); }
.vt-scanner__result { margin-top: 1em; padding: 1.2em; border-radius: var(--vt-radius); background: var(--vt-surface); font-size: 1.05em; }
.vt-scanner__result.is-ok { background: var(--vt-ok); color: #fff; }
.vt-scanner__result.is-warn { background: #f2a900; color: #1d1d1f; }
.vt-scanner__result.is-error { background: var(--vt-error); color: #fff; }
.vt-scanner__title { font-size: 1.8em; font-weight: 800; line-height: 1.1; }
.vt-scanner__message { font-weight: 700; margin: .4em 0; }
.vt-scanner__details { margin: .5em 0; }
.vt-scanner__actions { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .8em; }
.vt-scanner__result .vt-button { background: #fff; color: #1d1d1f !important; }
.vt-scanner__result .vt-button--ghost { background: transparent; color: inherit !important; }
.vt-scanner__manual { margin-top: 1.2em; }
.vt-scanner__manual label { display: block; font-weight: 600; margin-bottom: .3em; }
.vt-scanner__manual-row { display: flex; gap: .5em; }
.vt-scanner__manual-row input { flex: 1; min-width: 0; min-height: 44px; font: inherit; padding: .4em .7em; text-transform: uppercase; }
.vt-scanner-login { max-width: 360px; margin: 0 auto; }

/* Donateurs */
.vt-donor { padding: .9em 1.1em; border: 2px dashed var(--vt-border); border-radius: var(--vt-radius); margin-bottom: 1em; }
.vt-donor.is-known { border-style: solid; border-color: var(--vt-ok); background: rgba(27, 127, 59, .06); }
.vt-donor p { margin: 0; }
.vt-donor label { display: block; font-weight: 600; margin-bottom: .3em; }
.vt-donor input { width: 100%; max-width: 18em; min-height: 44px; padding: .5em .7em; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--vt-border); border-radius: 6px; }
.vt-type.is-disabled { opacity: .45; }
.vt-badge--donor { background: rgba(0, 0, 0, .07); color: inherit; font-weight: 500; margin-left: .3em; }
.vt-notice--ok { background: rgba(27, 127, 59, .1); }
.vt-notice--error { background: rgba(179, 38, 30, .08); }
.vt-field input[readonly] { background: var(--vt-surface); color: var(--vt-muted); }
.vt-donor__ref-label { margin-top: .8em; }
.vt-scanner__links { margin: 1em 0 0; font-size: .95em; }

/* Vrijwilligerspagina: kaartcontrole, kassa, invallers */
.vt-vol { max-width: 560px; margin: 0 auto; }
.vt-vol__who { color: var(--vt-muted, #6b6760); font-size: .9em; margin: 0 0 .6em; }
.vt-vol__nav { display: flex; gap: 4px; margin: 0 0 1em; padding: 4px; background: #f1efea; border-radius: 12px; }
.vt-vol__nav a { flex: 1; text-align: center; padding: .6em .4em; border-radius: 9px; text-decoration: none; color: inherit; font-weight: 600; }
.vt-vol__nav a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vt-vol-intro { max-width: 560px; margin: 0 auto; }
.vt-linkbutton { background: none; border: 0; padding: 0; color: var(--vt-accent, #b3261e); text-decoration: underline; cursor: pointer; font: inherit; }
.vt-button--ghost { background: transparent !important; color: var(--vt-accent, #b3261e) !important; border: 1.5px solid currentColor; }

.vt-kassa__pick { display: grid; gap: .3em; margin-bottom: 1em; }
.vt-kassa__pick select, .vt-kassa select { width: 100%; padding: .6em; font: inherit; border-radius: 10px; border: 1px solid #ccc; }
.vt-kassa__form { display: grid; gap: .9em; }
.vt-kassa__info { margin: 0; padding: .8em 1em; background: #f7f5f1; border-radius: 12px; }
.vt-kassa__types { border: 0; padding: 0; margin: 0; }
.vt-kassa__types legend, .vt-kassa__kind legend { font-weight: 700; margin-bottom: .4em; }
.vt-kassa__type { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .5em 0; border-bottom: 1px solid #eee; }
.vt-kassa__type input { width: 5em; padding: .5em; font: inherit; text-align: center; border-radius: 10px; border: 1px solid #ccc; }
.vt-kassa__total { display: flex; justify-content: space-between; font-size: 1.15em; margin: .5em 0 0; }
.vt-kassa__lookup > label { font-weight: 700; display: block; margin-bottom: .3em; }
.vt-kassa__search { position: relative; }
.vt-kassa__search input, .vt-kassa .vt-field input { width: 100%; padding: .65em; font: inherit; border-radius: 10px; border: 1px solid #ccc; box-sizing: border-box; }
.vt-kassa__list { position: absolute; z-index: 20; left: 0; right: 0; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #bbb; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); max-height: 320px; overflow-y: auto; }
.vt-kassa__list li { padding: .6em .8em; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.vt-kassa__list li span { display: block; font-size: .85em; color: #6b6760; }
.vt-kassa__list li em { display: block; font-size: .85em; font-style: normal; font-weight: 700; color: #8a5300; }
.vt-kassa__list li.is-active, .vt-kassa__list li:hover { background: #fbf3f2; }
.vt-kassa__list li.is-disabled { opacity: .55; cursor: not-allowed; background: #fff; }
.vt-kassa__chosen { padding: .7em .9em; background: #fbf3f2; border-left: 4px solid var(--vt-accent, #b3261e); border-radius: 8px; display: grid; gap: .3em; }
.vt-kassa__meta { color: #6b6760; font-size: .9em; }
.vt-kassa__kind { border: 0; padding: 0; margin: 0; display: grid; gap: .3em; }
.vt-kassa__last { padding: .8em 1em; background: #eef7ee; border-radius: 12px; margin-bottom: 1em; }
.vt-kassa__last p { margin: .2em 0; display: flex; gap: .5em; flex-wrap: wrap; }

.vt-coord__form { display: grid; gap: .6em; padding: 1em; background: #f7f5f1; border-radius: 12px; }
.vt-coord__form h3 { margin: 0; }
.vt-coord__form input[type="text"] { width: 100%; padding: .65em; font: inherit; border-radius: 10px; border: 1px solid #ccc; box-sizing: border-box; }
.vt-coord__qr { text-align: center; padding: 1em; border: 2px solid var(--vt-accent, #b3261e); border-radius: 16px; margin-bottom: 1em; background: #fff; }
.vt-coord__qr img { width: 260px; max-width: 100%; height: auto; }
.vt-coord__list { list-style: none; margin: 0; padding: 0; }
.vt-coord__list li { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .6em 0; border-bottom: 1px solid #eee; }
.vt-coord__list form { margin: 0; }
.vt-kassa [hidden], .vt-coord [hidden], .vt-vol [hidden] { display: none !important; }
