/* WPStack Events — month calendar + registration modal (self-contained) */
.we-app {
	--we-accent: #3f6c51;
	--we-ink: #1f2937;
	--we-line: #e5e7eb;
	--we-grid: rgba(0,0,0,.045);
	--we-muted: #6b7280;
	--we-surface: #fff;        /* calendar / card / list / modal / input backgrounds */
	--we-surface-2: #fafafa;   /* blank/empty calendar cells */
	--we-on-accent: #fff;      /* text that sits ON the accent colour (stays light) */
	--we-label: #374151;       /* form labels / consent text */
	--we-past: #c7cbd1;        /* past-day numbers */
	font-family: inherit;
	color: var(--we-ink);
	max-width: none;
	width: 100%;
	margin: 0;
}
.we-app[data-theme="dark"] {
	--we-ink: #fff;
	--we-muted: #9ca3af;
	--we-line: #374151;
	--we-grid: rgba(255,255,255,.05);
	--we-surface: #1f2937;
	--we-surface-2: #161f2c;
	--we-label: #cbd5e1;
	--we-past: #4b5563;
}
.we-app[data-theme="dark"] .we-evt.is-full { background: #374151 !important; color: #9ca3af !important; }
.we-app[data-theme="dark"] .we-form-msg { background: #3b1f1d; color: #fca5a5; }
.we-app *, .we-app *::before, .we-app *::after { box-sizing: border-box; }

.we-toolbar { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.we-toolbar[hidden] { display: none; }
.we-nav { display: flex; align-items: center; gap: 14px; }
.we-nav button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--we-line); background: var(--we-surface); width: 40px; height: 40px; border-radius: 10px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--we-ink); transition: .15s; }
.we-nav button:hover { background: var(--we-accent); color: #fff; border-color: var(--we-accent); }
.we-month-label { font-size: 22px; font-weight: 800; min-width: 200px; text-align: center; color: var(--we-ink); }

/* Calendar */
.we-cal { border: 1px solid var(--we-line); border-radius: 14px; overflow: hidden; background: var(--we-surface); }
.we-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--we-accent); color: #fff; }
.we-cal-head span { padding: 12px 8px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.we-week { border-top: 1px solid var(--we-line); background-image: repeating-linear-gradient( to right, var(--we-grid) 0 1px, transparent 1px calc(100% / 7) ); }
.we-week:first-of-type { border-top: 0; }
.we-week-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.we-day { min-height: 58px; padding: 7px 9px; text-align: right; }
.we-day.is-blank { background: var(--we-surface-2); }
.we-daynum { font-weight: 700; font-size: 14px; color: var(--we-muted); }
.we-day.is-today .we-daynum { background: var(--we-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; }
.we-day.is-past .we-daynum { color: var(--we-past); }
.we-week-events { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px 0; padding: 2px 0 8px; grid-auto-rows: minmax(0, auto); }
.we-evt { border: 0; cursor: pointer; text-align: left; color: #fff; border-radius: 8px; padding: 6px 9px; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-family: inherit; line-height: 1.2; transition: transform .12s, filter .12s; }
/* Win over theme button rules (e.g. .elementor-kit-X button) that force their own padding, border and pill radius. */
.we-app .we-evt { padding: 16px; border: 0 !important; border-radius: 8px !important; box-shadow: none; }
.we-app .we-evt:hover, .we-app .we-evt:focus { border: 0 !important; border-radius: 8px !important; }
.we-app .we-evt.is-full { border: 0 !important; }
.we-evt:hover { transform: translateY(-1px); filter: brightness(1.06); }
.we-evt.is-full:hover { transform: none; filter: none; }
.we-evt-title { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.we-evt-seats { font-size: 11px; opacity: .92; }
.we-evt.is-full { background: #e9e7e0 !important; color: #8a8d80 !important; cursor: not-allowed; }
.we-loading, .we-empty { padding: 40px; text-align: center; color: var(--we-muted); }

/* ── List layout (upcoming, date-sorted) ── */
.we-list { display: flex; flex-direction: column; gap: 10px; }
.we-list-month { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--we-muted); margin: 12px 2px 2px; }
.we-list-month:first-child { margin-top: 0; }
.we-list-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--we-surface); border: 1px solid var(--we-line); border-radius: 12px; transition: box-shadow .12s, transform .12s; }
.we-list-row:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.we-list-date { flex: 0 0 140px; font-weight: 700; font-size: 14px; color: var(--we-ink); }
.we-list-main { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 auto; min-width: 0; }
.we-list-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.we-list-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: 0 0 auto; }
.we-list-title { font-weight: 800; font-size: 15px; color: var(--we-ink); }
.we-list-meta { font-size: 13px; color: var(--we-muted); margin-top: 2px; }
.we-list-row.is-full { opacity: .7; }
@media (max-width: 560px) {
	.we-list-row { flex-wrap: wrap; gap: 8px 16px; }
	.we-list-date { flex-basis: 100%; }
}

/* ── Cards layout ── */
.we-cards { display: grid; grid-template-columns: repeat(var(--we-cols, 3), minmax(0, 1fr)); gap: 16px; }
.we-card { display: flex; flex-direction: column; background: var(--we-surface); border: 1px solid var(--we-line); border-radius: 14px; overflow: hidden; transition: box-shadow .12s, transform .12s; }
.we-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-2px); }
.we-card-bar { display: block; height: 6px; background: var(--we-accent); }
.we-card-img { display: block; width: 100%; height: 160px; object-fit: cover; }
.we-card-body { padding: 16px 16px 10px; flex: 1 1 auto; }
.we-card-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--we-ink); }
.we-card-date { font-weight: 700; font-size: 13px; color: var(--we-ink); }
.we-card-meta { font-size: 13px; color: var(--we-muted); margin-top: 2px; }
.we-card-foot { padding: 0 16px 16px; }
.we-card.is-full { opacity: .7; }
@media (max-width: 640px) { .we-cards { grid-template-columns: 1fr; } }

/* Register button (List + Cards) + sold-out tag */
.we-go { flex: 0 0 auto; background: var(--we-accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: filter .12s; }
.we-go:hover { filter: brightness(1.07); }
.we-card .we-go { width: 100%; }
.we-go-full { display: inline-block; color: var(--we-muted); font-weight: 700; font-size: 13px; }
.we-card .we-go-full { padding: 10px 0; }

/* In-page registration view (replaces the calendar when a date is selected) */
.we-modal { display: block; max-width: 640px; margin: 0 auto; }
.we-modal[hidden] { display: none; }
.we-modal-card { background: var(--we-surface); width: 100%; border: 1px solid var(--we-line); border-radius: 16px; padding: 28px; }
.we-modal-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.we-app .we-modal-img[hidden] { display: none; }
.we-app .we-back[hidden] { display: none; }
.we-back { display: inline-flex; align-items: center; gap: 6px; background: var(--we-surface); border: 1px solid var(--we-line); border-radius: 10px; padding: 9px 16px; margin: 0 0 16px; color: var(--we-ink); font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.we-back:hover { background: var(--we-accent); color: #fff; border-color: var(--we-accent); }
.we-modal-summary { display: flex; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--we-line); }
.we-modal-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.we-modal-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--we-ink); }
.we-modal-meta { margin: 0 0 2px; color: var(--we-muted); font-size: 14px; }
.we-modal-seats { margin: 0; font-weight: 700; color: var(--we-accent); font-size: 13px; }

/* Form */
.we-form { display: flex; flex-direction: column; gap: 14px; }
.we-fields { display: flex; flex-direction: column; gap: 14px; }
.we-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.we-field { display: flex; flex-direction: column; gap: 5px; }
.we-field.we-hidden { display: none; }
.we-field label { font-weight: 600; font-size: 13px; color: var(--we-label); }
.we-form input[type=text], .we-form input[type=email], .we-form input[type=number], .we-form select, .we-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--we-line); border-radius: 9px; font-size: 14px; font-family: inherit; background: var(--we-surface); color: var(--we-ink);
}
.we-form input:focus, .we-form select:focus, .we-form textarea:focus { outline: 0; border-color: var(--we-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--we-accent) 18%, transparent); }
.we-field-tickets select { max-width: 130px; }
.we-opts { display: flex; flex-direction: column; gap: 6px; }
.we-opt { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.we-field-check label { font-weight: 500; }

/* Honeypot (anti-spam) — present in the DOM for bots, hidden from people */
.we-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Field-level validation errors */
.we-field.we-invalid input, .we-field.we-invalid select, .we-field.we-invalid textarea { border-color: #dc2626 !important; }
.we-field.we-invalid input:focus, .we-field.we-invalid select:focus, .we-field.we-invalid textarea:focus { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important; }
.we-field.we-invalid label { color: #dc2626; }
.we-err { color: #dc2626; font-size: 12px; font-weight: 600; margin-top: 2px; }
.we-consent { font-size: 13px; color: var(--we-label); }
.we-consent label { display: flex; gap: 8px; align-items: flex-start; }
.we-form-msg { background: #fde9e7; color: #b53127; border-radius: 9px; padding: 10px 14px; font-size: 14px; }
.we-payment { margin-top: 4px; }
.we-submit { border: 0; background: var(--we-accent); color: #fff; cursor: pointer; padding: 14px; border-radius: 11px; font-weight: 800; font-size: 15px; margin-top: 4px; }
.we-submit:hover { filter: brightness(1.07); }
.we-submit:disabled { opacity: .6; cursor: default; }
/* On success: hide the whole form, leaving only the confirmation message. */
.we-form.we-form-done > *:not(.we-success) { display: none !important; }
.we-success { text-align: center; padding: 16px 0; }
.we-success-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; background: var(--we-accent); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.we-success-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--we-ink); }
.we-success-msg { font-size: 15px; margin: 0 0 18px; color: var(--we-muted); }
.we-success-close, .we-success-again { border: 1px solid var(--we-line); background: var(--we-surface); cursor: pointer; padding: 10px 22px; border-radius: 10px; font-weight: 700; }
.we-success .we-success-again { margin: 0 6px 8px; }
.we-success .we-success-close { margin: 0 6px; }

/* ── Theme-proofing: keep the active theme's button/input styles out of .we-app ── */
/* Headings: theme kits (e.g. .elementor-kit-N h3) override our <h3> titles' font/colour — restore ours. */
.we-app .we-modal-title, .we-app .we-success-title, .we-app .we-card-title {
	font-family: inherit; line-height: 1.2; font-weight: 800; color: var(--we-ink);
}
.we-app .we-modal-title { font-size: 20px; }
.we-app .we-success-title { font-size: 18px; }
.we-app .we-card-title { font-size: 16px; }
.we-app .we-submit, .we-app .we-success-close, .we-app .we-success-again, .we-app .we-nav button, .we-app .we-back, .we-app .we-go { text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; }
.we-app .we-go { background: var(--we-accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; }
.we-app .we-go:hover, .we-app .we-go:focus { background: var(--we-accent) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; filter: brightness(1.07); }
.we-app .we-submit { width: 100%; background: var(--we-accent); color: #fff; border: 0; border-radius: 11px; padding: 14px; font-weight: 800; font-size: 15px; cursor: pointer; }
.we-app .we-submit:hover, .we-app .we-submit:focus { background: var(--we-accent) !important; color: #fff !important; border: 0 !important; border-radius: 11px !important; filter: brightness(1.07); }
.we-app .we-submit:disabled { opacity: .6; cursor: default; }
.we-app .we-back { background: var(--we-surface); border: 1px solid var(--we-line); border-radius: 10px; padding: 9px 16px; color: var(--we-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.we-app .we-back:hover, .we-app .we-back:focus { background: var(--we-accent) !important; color: #fff !important; border: 1px solid var(--we-accent) !important; border-radius: 10px !important; }
.we-app .we-success-close, .we-app .we-success-again { background: var(--we-surface); border: 1px solid var(--we-line); color: var(--we-ink); padding: 10px 22px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.we-app .we-success-close:hover, .we-app .we-success-close:focus, .we-app .we-success-again:hover, .we-app .we-success-again:focus { background: var(--we-accent) !important; color: #fff !important; border: 1px solid var(--we-accent) !important; border-radius: 10px !important; }
.we-app .we-nav button { width: 40px; height: 40px; background: var(--we-surface); border: 1px solid var(--we-line); border-radius: 10px; padding: 0; color: var(--we-ink); font-size: 18px; cursor: pointer; }
.we-app .we-nav button:hover, .we-app .we-nav button:focus { background: var(--we-accent) !important; color: #fff !important; border: 1px solid var(--we-accent) !important; border-radius: 10px !important; }
.we-app .we-form input, .we-app .we-form select, .we-app .we-form textarea { background: var(--we-surface); color: var(--we-ink); box-shadow: none; }

@media (max-width: 720px) {
	.we-evt-title { font-size: 11px; }
	.we-row { grid-template-columns: 1fr; }
	.we-month-label { font-size: 18px; min-width: 130px; }
	.we-cal-head span { font-size: 10px; padding: 8px 4px; }
	.we-day { min-height: 26px; padding: 4px; }
}
