/* Kalender & Tickets – website. Neemt lettertype en tekstkleur van je thema over. */
:root {
	--kt-primary: #2d6cdf;
	--kt-text: inherit;
	--kt-muted: #6b7280;
	--kt-border: #e3e6ec;
	--kt-bg-soft: #f6f7fa;
	--kt-radius: 10px;
	--kt-success: #1f9d55;
	--kt-error: #d63638;
	--kt-warn: #b26a00;
}

.kt-calendar, .kt-tickets, .kt-event-details, .kt-order, .kt-upcoming, .kt-box { box-sizing: border-box; }
.kt-calendar *, .kt-tickets *, .kt-order * { box-sizing: border-box; }
.kt-muted { color: var(--kt-muted); }
.kt-small { font-size: .85em; color: var(--kt-muted); }
.kt-right { text-align: right; }
.kt-empty { padding: 1.5em; text-align: center; color: var(--kt-muted); background: var(--kt-bg-soft); border-radius: var(--kt-radius); }

/* Knoppen */
.kt-button, a.kt-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	background: var(--kt-primary); color: #fff !important; border: 2px solid var(--kt-primary);
	padding: .65em 1.2em; border-radius: 8px; font-weight: 600; line-height: 1.2;
	text-decoration: none !important; cursor: pointer; font-size: 1em; transition: filter .15s, transform .05s;
}
.kt-button:hover { filter: brightness(1.08); }
.kt-button:active { transform: translateY(1px); }
.kt-button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.kt-button--ghost, a.kt-button--ghost { background: transparent; color: var(--kt-primary) !important; }
.kt-button--small { padding: .45em .9em; font-size: .9em; }
.kt-button.is-loading { opacity: .7; pointer-events: none; }

/* Meldingen */
.kt-box { border: 1px solid var(--kt-border); border-radius: var(--kt-radius); padding: 1.1em 1.3em; margin: 1.2em 0; background: #fff; color: #1d2330; }
.kt-box h2, .kt-box h3 { margin-top: 0; }
.kt-success { border-color: color-mix(in srgb, var(--kt-success) 40%, #fff); background: color-mix(in srgb, var(--kt-success) 8%, #fff); }
.kt-error { border-color: color-mix(in srgb, var(--kt-error) 40%, #fff); background: color-mix(in srgb, var(--kt-error) 7%, #fff); }
.kt-notice { background: var(--kt-bg-soft); }

/* Evenementdetails */
.kt-event-details { margin: 0 0 1.6em; }
.kt-past-notice { background: #fff4e5; color: var(--kt-warn); padding: .6em 1em; border-radius: 8px; margin-bottom: 1em; font-weight: 600; }
.kt-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1em 1.5em; margin: 0 0 1.2em; padding: 1.2em 1.4em; background: var(--kt-bg-soft); border-radius: var(--kt-radius); }
.kt-dl dt { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--kt-muted); margin: 0 0 .2em; font-weight: 600; }
.kt-dl dd { margin: 0; color: #1d2330; }
.kt-add-cal { display: block; font-size: .85em; margin-top: .3em; }
.kt-meta-line { color: var(--kt-muted); font-size: .95em; }

/* Ticketformulier */
.kt-tickets { margin: 2em 0; padding: 1.4em; border: 1px solid var(--kt-border); border-radius: calc(var(--kt-radius) + 4px); background: #fff; color: #1d2330; }
.kt-tickets h2 { margin-top: 0; }
.kt-ticket-types { display: flex; flex-direction: column; gap: .6em; margin-bottom: 1.2em; }
.kt-ticket-type { display: grid; grid-template-columns: 1fr auto 5.5em; gap: .4em 1em; align-items: center; padding: .9em 1em; border: 1px solid var(--kt-border); border-radius: var(--kt-radius); transition: border-color .15s, background .15s; }
.kt-ticket-type.is-selected { border-color: var(--kt-primary); background: color-mix(in srgb, var(--kt-primary) 5%, #fff); }
.kt-ticket-type.is-unavailable { opacity: .6; }
.kt-ticket-type__name { font-weight: 600; }
.kt-ticket-type__desc { font-size: .9em; color: var(--kt-muted); }
.kt-ticket-type__status { font-size: .82em; color: var(--kt-warn); font-weight: 600; }
.kt-ticket-type__status:empty { display: none; }
.kt-ticket-type__price { font-weight: 700; white-space: nowrap; }
.kt-ticket-type__qty select { width: 100%; padding: .4em; border-radius: 6px; border: 1px solid var(--kt-border); font-size: 1em; }
.kt-holders { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5em .8em; }
.kt-holders:empty { display: none; }
.kt-holder span { display: block; font-size: .8em; color: var(--kt-muted); }
.kt-holder input { width: 100%; }
.kt-buyer { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8em 1em; margin-bottom: 1em; }
.kt-field label { display: block; font-size: .88em; font-weight: 600; margin-bottom: .25em; }
.kt-field input, .kt-holder input { width: 100%; padding: .6em .7em; border: 1px solid #c9ced8; border-radius: 6px; font-size: 1em; background: #fff; }
.kt-field input:focus, .kt-holder input:focus { outline: 2px solid color-mix(in srgb, var(--kt-primary) 50%, transparent); border-color: var(--kt-primary); }
.kt-terms { font-size: .92em; }
.kt-checkout-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1em; padding-top: 1em; border-top: 1px solid var(--kt-border); }
.kt-total { font-size: 1.15em; }
.kt-pay-note { font-size: .85em; color: var(--kt-muted); margin: .8em 0 0; }
.kt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
	.kt-ticket-type { grid-template-columns: 1fr 5em; }
	.kt-ticket-type__price { grid-column: 1; grid-row: 2; }
	.kt-ticket-type__qty { grid-column: 2; grid-row: 1 / span 2; }
}

/* Bestelpagina en tickets */
.kt-table { width: 100%; border-collapse: collapse; }
.kt-table td { padding: .45em 0; border-bottom: 1px solid var(--kt-border); }
.kt-table .kt-total td { font-weight: 700; border-bottom: 0; }
.kt-tickets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1em; margin: 1.2em 0; }
.kt-ticket { display: flex; gap: 1em; align-items: center; padding: 1em; border: 2px dashed #c8ccd4; border-radius: var(--kt-radius); background: #fff; color: #1d2330; break-inside: avoid; }
.kt-ticket__qr svg { display: block; width: 150px; height: 150px; }
.kt-ticket__event { font-weight: 700; font-size: 1.05em; }
.kt-ticket__date { font-size: .88em; color: var(--kt-muted); margin-bottom: .5em; }
.kt-ticket__type { font-weight: 600; }
.kt-ticket__code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; margin-top: .4em; font-size: 1.05em; }
.kt-ticket__used { display: inline-block; margin-top: .4em; background: #fde8e8; color: var(--kt-error); padding: .1em .6em; border-radius: 99px; font-size: .8em; font-weight: 600; }

@media print {
	.kt-no-print, header, footer, nav, .site-header, .site-footer, #wpadminbar { display: none !important; }
	.kt-ticket { page-break-inside: avoid; }
}

/* Kalender: werkbalk */
.kt-calendar { margin: 1.5em 0; color: inherit; }
.kt-cal-toolbar { display: flex; flex-direction: column; gap: .9em; margin-bottom: 1.2em; }
.kt-cal-filters { display: flex; flex-wrap: wrap; gap: .5em; }
.kt-cal-filters input[type=search], .kt-cal-filters select { padding: .5em .7em; border: 1px solid #c9ced8; border-radius: 6px; font-size: .95em; min-width: 0; flex: 1 1 160px; background: #fff; }
.kt-cal-filters .kt-button { flex: 0 0 auto; }
.kt-cal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8em; }
.kt-cal-nav__dates { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.kt-cal-title { margin: 0 0 0 .4em !important; font-size: 1.35em !important; text-transform: capitalize; }
.kt-navbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2em; height: 2.2em; padding: 0 .7em; border: 1px solid var(--kt-border); border-radius: 8px; text-decoration: none !important; color: inherit !important; font-size: 1em; background: #fff; }
.kt-navbtn:hover { border-color: var(--kt-primary); color: var(--kt-primary) !important; }
.kt-navbtn--today { font-size: .9em; }
.kt-view-switch { display: inline-flex; border: 1px solid var(--kt-border); border-radius: 8px; overflow: hidden; background: #fff; }
.kt-view-switch a { padding: .45em .9em; text-decoration: none !important; color: inherit !important; font-size: .92em; border-left: 1px solid var(--kt-border); }
.kt-view-switch a:first-child { border-left: 0; }
.kt-view-switch a.is-active { background: var(--kt-primary); color: #fff !important; }
.kt-subscribe { font-size: .85em; text-align: right; margin-top: 1em; }

/* Maandweergave */
.kt-month { border: 1px solid var(--kt-border); border-radius: var(--kt-radius); overflow: hidden; background: #fff; color: #1d2330; }
.kt-month__head, .kt-month__body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kt-month__head div { padding: .5em; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--kt-muted); text-align: center; background: var(--kt-bg-soft); border-bottom: 1px solid var(--kt-border); font-weight: 600; }
.kt-day { min-height: 7.2em; padding: .35em; border-right: 1px solid var(--kt-border); border-bottom: 1px solid var(--kt-border); display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.kt-day:nth-child(7n) { border-right: 0; }
.kt-day.is-other-month { background: #fafbfc; }
.kt-day.is-other-month .kt-day__num { color: #b4b9c4 !important; }
.kt-day__num { align-self: flex-end; font-size: .85em; font-weight: 600; text-decoration: none !important; color: inherit !important; width: 1.9em; height: 1.9em; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.kt-day__wd { display: none; }
.kt-day.is-today .kt-day__num { background: var(--kt-primary); color: #fff !important; }
.kt-chip { --kt-cat: var(--kt-primary); display: block; font-size: .78em; line-height: 1.3; padding: .25em .45em; border-radius: 5px; text-decoration: none !important; color: #1d2330 !important; background: color-mix(in srgb, var(--kt-cat) 12%, #fff); border-left: 3px solid var(--kt-cat); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-chip:hover { background: color-mix(in srgb, var(--kt-cat) 22%, #fff); }
.kt-chip.is-past { opacity: .55; }
.kt-chip__time { font-weight: 600; }
.kt-more { font-size: .75em; color: var(--kt-muted) !important; padding-left: .45em; }

@media (max-width: 720px) {
	.kt-month__head { display: none; }
	.kt-month__body { display: block; }
	.kt-day { min-height: 0; border-right: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .5em .7em; }
	.kt-day:not(.has-events) { display: none; }
	.kt-day__num { align-self: auto; width: auto; height: auto; border-radius: 6px; padding: .1em .5em; margin-right: .3em; }
	.kt-day__wd { display: inline; font-weight: 400; color: var(--kt-muted); }
	.kt-day.is-today .kt-day__wd { color: #fff; }
	.kt-chip { flex: 1 1 100%; font-size: .92em; white-space: normal; }
	.kt-month__body:not(:has(.has-events))::after { content: "—"; display: block; padding: 1.2em; text-align: center; color: var(--kt-muted); }
}

/* Weekweergave */
.kt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5em; }
.kt-week__day { border: 1px solid var(--kt-border); border-radius: var(--kt-radius); padding: .5em; min-height: 9em; display: flex; flex-direction: column; gap: .3em; background: #fff; color: #1d2330; min-width: 0; }
.kt-week__day.is-today { border-color: var(--kt-primary); box-shadow: inset 0 3px 0 var(--kt-primary); }
.kt-week__head { font-size: .82em; color: var(--kt-muted); display: flex; flex-direction: column; }
.kt-week__head strong { color: #1d2330; font-size: 1.1em; }
.kt-week__empty { color: #c3c7cf; font-size: .9em; }
.kt-week .kt-chip { white-space: normal; }
@media (max-width: 860px) { .kt-week { grid-template-columns: 1fr; } .kt-week__day { min-height: 0; } }

/* Lijst en dag */
.kt-list { display: flex; flex-direction: column; gap: .8em; }
.kt-list__month { margin: 1.2em 0 .2em !important; font-size: 1.05em !important; text-transform: capitalize; color: var(--kt-muted); }
.kt-list__item { --kt-cat: var(--kt-primary); display: grid; grid-template-columns: 4.2em 1fr auto auto; gap: 1.1em; align-items: center; padding: 1em; border: 1px solid var(--kt-border); border-radius: var(--kt-radius); background: #fff; color: #1d2330; border-left: 4px solid var(--kt-cat); }
.kt-list__body h3 { margin: 0 0 .2em !important; font-size: 1.15em !important; }
.kt-list__body h3 a { text-decoration: none; color: inherit; }
.kt-list__body p { margin: .15em 0; }
.kt-list__excerpt { font-size: .92em; }
.kt-list__thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.kt-list__cta { display: flex; flex-direction: column; align-items: flex-end; gap: .4em; }
.kt-list__price { font-weight: 700; white-space: nowrap; }
@media (max-width: 680px) {
	.kt-list__item { grid-template-columns: 3.6em 1fr; }
	.kt-list__thumb { display: none; }
	.kt-list__cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.kt-datebadge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--kt-bg-soft); border-radius: 8px; padding: .35em .3em; line-height: 1.1; min-width: 3.4em; color: #1d2330; }
.kt-datebadge__wd, .kt-datebadge__m { font-size: .72em; text-transform: uppercase; letter-spacing: .06em; color: var(--kt-muted); }
.kt-datebadge__d { font-size: 1.5em; font-weight: 700; }

/* Fotoweergave */
.kt-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1em; }
.kt-card { border: 1px solid var(--kt-border); border-radius: var(--kt-radius); overflow: hidden; background: #fff; color: #1d2330; transition: box-shadow .2s, transform .2s; }
.kt-card:hover { box-shadow: 0 8px 24px rgba(20, 30, 60, .1); transform: translateY(-2px); }
.kt-card__link { display: block; text-decoration: none !important; color: inherit !important; }
.kt-card__img { position: relative; aspect-ratio: 16 / 10; background: var(--kt-bg-soft); }
.kt-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in srgb, var(--kt-primary) 25%, #fff), color-mix(in srgb, var(--kt-primary) 60%, #fff)); }
.kt-card__img .kt-datebadge { position: absolute; top: .7em; left: .7em; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.kt-card__body { padding: .9em 1em 1.1em; }
.kt-card__body h3 { margin: 0 0 .3em !important; font-size: 1.08em !important; }
.kt-card__body p { margin: 0; font-size: .9em; }
.kt-card__price { font-weight: 700; margin-top: .5em !important; color: var(--kt-primary); }

.kt-pagination { display: flex; justify-content: space-between; margin-top: 1.2em; }

/* Komende evenementen */
.kt-upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6em; }
.kt-upcoming__item { display: flex; gap: .8em; align-items: center; }
.kt-upcoming__body { display: flex; flex-direction: column; }
.kt-upcoming__body a { font-weight: 600; text-decoration: none; }
.kt-upcoming__body .kt-muted { font-size: .88em; }

.kt-venue-block p { margin: .3em 0; }

/* Blokthema's: kalender mag breder dan de tekstkolom. */
.is-layout-constrained > .kt-calendar { max-width: var(--wp--style--global--wide-size, 1200px); }

/* Maand: tijd boven titel, titel max. 2 regels. */
.kt-month .kt-chip { white-space: normal; }
.kt-month .kt-chip__time { display: block; font-size: .92em; }
.kt-month .kt-chip__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kt-view-switch { max-width: 100%; overflow-x: auto; }
.kt-view-switch a { white-space: nowrap; }
@media (max-width: 720px) {
	.kt-day__wd { margin-right: .3em; }
	.kt-month .kt-chip__time { display: inline; }
	.kt-month .kt-chip__title { display: inline; }
}
.kt-ticket__extra { font-size: .85em; color: var(--kt-muted); }
.kt-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7em 1em; margin-bottom: 1em; }
.kt-fields-grid .kt-field--full, .kt-fields-grid .kt-field--textarea { grid-column: 1 / -1; }
@media (max-width: 560px) { .kt-fields-grid { grid-template-columns: 1fr; } }
.kt-field textarea, .kt-field select { width: 100%; padding: .6em .7em; border: 1px solid #c9ced8; border-radius: 6px; font-size: 1em; background: #fff; font-family: inherit; }
.kt-field__label { display: block; font-size: .88em; font-weight: 600; margin-bottom: .25em; }
.kt-radios { display: flex; flex-wrap: wrap; gap: .4em 1.4em; padding-top: .2em; }
.kt-req { color: var(--kt-error); }
.kt-attendee { grid-column: 1 / -1; border: 1px solid var(--kt-border); border-radius: 8px; padding: .6em .9em .2em; margin: .3em 0 0; background: #fff; }
.kt-attendee legend { font-size: .85em; font-weight: 600; padding: 0 .4em; color: var(--kt-muted); }
.kt-holders { display: block; }
.kt-wc-tickets { margin-top: 2em; }

/* [kt_evenementen] */
.kt-events { margin: 1.5em 0; }
.kt-events__title { margin-top: 0; }
.kt-events__more { margin-top: 1em; font-weight: 600; }
.kt-photo-grid[style*="--kt-cols"] { grid-template-columns: repeat(var(--kt-cols), minmax(0, 1fr)); }
@media (max-width: 900px) { .kt-photo-grid[style*="--kt-cols"] { grid-template-columns: repeat(min(var(--kt-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 560px) { .kt-photo-grid[style*="--kt-cols"] { grid-template-columns: 1fr; } }
.kt-card__excerpt { margin-top: .5em !important; font-size: .88em; color: #3d4554; }
.kt-card__button { margin-top: .8em; }
.kt-badges { display: inline-flex; flex-wrap: wrap; gap: .3em; margin-bottom: .3em; }
.kt-badge { --kt-cat: var(--kt-primary); font-size: .72em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .15em .55em; border-radius: 99px; background: color-mix(in srgb, var(--kt-cat) 14%, #fff); color: color-mix(in srgb, var(--kt-cat) 80%, #000); }
.kt-table-wrap { overflow-x: auto; }
.kt-events-table { width: 100%; border-collapse: collapse; background: #fff; color: #1d2330; border: 1px solid var(--kt-border); border-radius: var(--kt-radius); }
.kt-events-table th, .kt-events-table td { padding: .7em .9em; border-bottom: 1px solid var(--kt-border); text-align: left; vertical-align: middle; }
.kt-events-table th { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--kt-muted); background: var(--kt-bg-soft); }
.kt-events-table tr:last-child td { border-bottom: 0; }
.kt-events-table a:not(.kt-button) { font-weight: 600; text-decoration: none; }
.kt-nowrap { white-space: nowrap; }
.kt-list__item.no-thumb { grid-template-columns: 4.2em 1fr auto; }
@media (max-width: 680px) { .kt-list__item.no-thumb { grid-template-columns: 3.6em 1fr; } }

/* Vinkjes en keuzerondjes: bestand tegen thema's die alle invoervelden/labels op volle breedte zetten. */
.kt-ticket-form .kt-check,
.kt-buyer .kt-check {
	display: inline-flex !important; flex-direction: row !important; align-items: flex-start; gap: .55em;
	width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
	font-weight: 400 !important; line-height: 1.4; cursor: pointer; text-align: left;
}
.kt-ticket-form .kt-check .kt-check__input,
.kt-buyer .kt-check .kt-check__input {
	-webkit-appearance: auto !important; appearance: auto !important;
	display: inline-block !important; flex: 0 0 auto; position: static !important;
	width: 1.15em !important; height: 1.15em !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important;
	margin: .15em 0 0 !important; padding: 0 !important; border-radius: 0; box-shadow: none !important; background: none;
	accent-color: var(--kt-primary); opacity: 1 !important; clip: auto !important;
}
.kt-check__text { display: inline; }
/* Vinkje als los veld: halve breedte lijnt uit met de invoervakken ernaast, volledige breedte krijgt een eigen regel. */
.kt-fields-grid .kt-field--checkbox { display: flex; align-items: center; }
.kt-fields-grid .kt-field--checkbox.kt-field--half { align-self: end; min-height: 2.9em; }
.kt-fields-grid .kt-field--checkbox.kt-field--full { grid-column: 1 / -1; }
.kt-fields-grid .kt-field--radio.kt-field--full { grid-column: 1 / -1; }
