/* CJ Event Registrations — public UI. Theme-agnostic: override the custom properties in the theme. */
:root {
	--cj-er-primary: var(--theme-palette-color-1, #382564);
	--cj-er-accent: var(--theme-palette-color-2, #e1bbb2);
	--cj-er-soft: var(--theme-palette-color-11, #f3e8ff);
	--cj-er-surface: #fff;
	--cj-er-text: var(--theme-palette-color-4, #111518);
	--cj-er-muted: var(--theme-palette-color-3, #51565a);
	--cj-er-radius: 18px;
	--cj-er-ok: #1f7a4d;
	--cj-er-warn: #b4234a;
}

.cj-er-seats { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5em .6em; padding: .45em .9em; border-radius: 999px; background: var(--cj-er-soft); color: var(--cj-er-primary); font-weight: 700; font-size: .95em; line-height: 1.2; }
.cj-er-seats__dot { width: .6em; height: .6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: cj-er-pulse 1.8s infinite; }
.cj-er-seats--last, .cj-er-seats--full { background: #ffe3ea; color: var(--cj-er-warn); }
.cj-er-seats--closed { background: #ececf1; color: var(--cj-er-muted); }
.cj-er-seats--closed .cj-er-seats__dot { animation: none; }
.cj-er-seats__bar { flex-basis: 100%; height: 6px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; }
.cj-er-seats__bar > span { display: block; height: 100%; background: currentColor; border-radius: inherit; }
@keyframes cj-er-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 .6em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .cj-er-seats__dot { animation: none; } }

.cj-er-notice { padding: 1em 1.2em; border-radius: var(--cj-er-radius); background: var(--cj-er-soft); color: var(--cj-er-text); margin: 0 0 1.2em; }
.cj-er-notice--full { background: #ffe3ea; }
.cj-er-notice--closed { background: #ececf1; }

.cj-er-pay { background: var(--cj-er-surface); color: var(--cj-er-text); border: 2px solid var(--cj-er-primary); border-radius: var(--cj-er-radius); padding: 1.25em 1.25em 1em; box-shadow: 0 18px 40px -24px rgba(56,37,100,.45); }
.cj-er-pay__title { margin: 0 0 .8em; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--cj-er-primary); }
.cj-er-pay__list { margin: 0; display: grid; gap: .1em; }
.cj-er-pay__row { display: grid; grid-template-columns: 1fr; gap: .15em; padding: .6em 0; border-bottom: 1px dashed rgba(56,37,100,.18); }
.cj-er-pay__row:last-child { border-bottom: 0; }
.cj-er-pay__row dt { font-size: .8em; color: var(--cj-er-muted); }
.cj-er-pay__row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em .75em; font-weight: 700; }
.cj-er-pay__row dd span { min-width: 0; flex: 1 1 12em; overflow-wrap: anywhere; }
.cj-er-pay__row--iban dd span, .cj-er-pay__row--code dd span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; font-size: 1.05em; }
.cj-er-pay__row--code dd span { color: var(--cj-er-primary); font-size: 1.2em; }
.cj-er-pay__note { margin: .8em 0 0; font-size: .9em; color: var(--cj-er-muted); }
.cj-er-pay--waitlist { border-color: var(--cj-er-accent); }
.cj-er-copy { flex: none; appearance: none; border: 1.5px solid var(--cj-er-primary); background: transparent; color: var(--cj-er-primary); border-radius: 999px; padding: .35em .9em; font: inherit; font-size: .78em; font-weight: 700; cursor: pointer; min-height: 36px; }
.cj-er-copy:hover, .cj-er-copy:focus-visible { background: var(--cj-er-primary); color: #fff; }
.cj-er-copy.is-copied { background: var(--cj-er-ok); border-color: var(--cj-er-ok); color: #fff; }
@media (min-width: 640px) { .cj-er-pay { padding: 1.6em 1.8em 1.2em; } .cj-er-pay__row { grid-template-columns: 11em 1fr; align-items: center; } }

form.cj-er-redirecting { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* Buttons (thank-you actions, event cards) */
.cj-er-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.cj-er-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; background: var(--cj-er-primary); color: #fff !important; font-weight: 700; text-decoration: none; line-height: 1.2; text-align: center; transition: filter .2s ease, transform .2s ease; }
.cj-er-btn:hover, .cj-er-btn:focus-visible { filter: brightness(1.15); transform: translateY(-1px); }
.cj-er-btn:focus-visible { outline: 3px solid var(--cj-er-accent); outline-offset: 3px; }
.cj-er-btn--wa { background: var(--cj-er-ok); }
.cj-er-btn--ghost { background: transparent; color: var(--cj-er-primary) !important; box-shadow: inset 0 0 0 2px var(--cj-er-primary); }
@media (max-width: 599px) { .cj-er-actions .cj-er-btn { width: 100%; } }

/* Events list */
.cj-er-events__grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .cj-er-events__grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.cj-er-event { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--cj-er-radius); background: var(--cj-er-surface); box-shadow: 0 18px 40px -26px rgba(56,37,100,.5); text-align: left; }
.cj-er-event__media img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.cj-er-event__body { display: flex; flex-direction: column; gap: .5em; padding: 1.2em 1.3em 1.4em; flex: 1; }
.cj-er-event__date { margin: 0; font-size: .85em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cj-er-primary); }
.cj-er-event__title { margin: 0; font-size: 1.25em; line-height: 1.2; }
.cj-er-event__title a { color: var(--cj-er-text); text-decoration: none; }
.cj-er-event__title a:hover { color: var(--cj-er-primary); }
.cj-er-event__place { margin: 0; color: var(--cj-er-muted); font-size: .95em; }
.cj-er-event__cta { margin: auto 0 0; padding-top: .6em; }
.cj-er-event--past { opacity: .82; }
.cj-er-event--past .cj-er-event__media img { filter: grayscale(.6); }
.cj-er-events__past-title { margin: 2em 0 .8em; }
.cj-er-events__empty { color: var(--cj-er-muted); }

/* WhatsApp glyph (simple-icons 13.0.0, CC0) as a mask: no inline SVG in content. */
.cj-er-btn--wa::before { content: ""; flex: none; width: 1.25em; height: 1.25em; margin-right: .55em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat; }
