/* Xpidemix Campaigns. Fonts come from the theme; colours are set here. */
.xpc-page { width: 100%; }
.xpc-page-inner { max-width: 1280px; margin: 0 auto; padding: 32px 20px 56px; box-sizing: border-box; }
.xpc-page-title { margin: 0 0 12px; }
.xpc-page-content > p { max-width: 760px; }

.xpc {
	--xpc-ink: #1d1f24;
	--xpc-muted: #4a4f57;
	--xpc-line: #dcdcd8;
	--xpc-card: #ffffff;
	--xpc-accent: #0f5e5a;
	--xpc-accent-dark: #0a4340;
	--xpc-accent-soft: #e3f0ef;
	--xpc-track: #d6e8e6;
	--xpc-wa: #1a7f45;
	--xpc-lit: #e8a23a;
	color: var(--xpc-ink);
	margin: 24px 0;
}
.xpc *, .xpc *::before, .xpc *::after { box-sizing: border-box; }
.xpc .xpc-cnf {
	--xpc-accent: #5b3a8e;
	--xpc-accent-dark: #3f2766;
	--xpc-accent-soft: #efe9f6;
	--xpc-track: #e2d9ee;
}

.xpc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 28px;
	align-items: start;
}

.xpc-card {
	background: var(--xpc-card);
	border: 1px solid var(--xpc-line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.xpc-media { position: relative; aspect-ratio: 16 / 10; background: #2b2f36; overflow: hidden; }
.xpc-cnf .xpc-media { background: #34303f; }
/* Pinned to the frame so theme rules like img { height: auto } can't change the card's shape. */
.xpc .xpc-media > img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important;
	max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	object-fit: cover; display: block;
}
.xpc .xpc-media > img.is-whole { object-fit: contain; }
.xpc .xpc-media > img.xpc-img-bg { filter: blur(20px) brightness(.55); transform: scale(1.2); }
.xpc-sys, .xpc-status { z-index: 2; }
.xpc-noimg {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	padding: 24px; text-align: center; color: #d5d7db; font-size: 20px; font-weight: 700;
}
.xpc-sys, .xpc-status {
	position: absolute; top: 12px; font-size: 12px; font-weight: 700; line-height: 1;
	padding: 6px 10px; border-radius: 999px;
}
.xpc-sys { left: 12px; background: var(--xpc-accent); color: #fff; max-width: calc(100% - 140px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* System logo: a light plate so dark and light logos both read on the cover image. */
.xpc-sys.xpc-sys-logo {
	background: rgba(255, 255, 255, .94); padding: 5px 10px; border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25); max-width: calc(100% - 130px);
}
.xpc-media .xpc-sys-logo img { width: auto; height: 34px; max-width: 100%; object-fit: contain; }
.xpc-status { right: 12px; background: #fff; color: #5a5f66; display: flex; align-items: center; gap: 6px; }
.xpc-status.is-lit { color: var(--xpc-ink); }
.xpc-dot { width: 9px; height: 9px; border-radius: 999px; background: #b9bcc1; }
.xpc-status.is-lit .xpc-dot { background: var(--xpc-lit); box-shadow: 0 0 0 3px rgba(232, 162, 58, .3); }

.xpc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.xpc .xpc-by { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--xpc-accent); }
.xpc .xpc-title { margin: 0; font-size: 22px; line-height: 1.25; color: var(--xpc-ink); }
.xpc .xpc-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.xpc-tag { font-size: 12px; font-weight: 500; color: var(--xpc-muted); background: #ededea; padding: 4px 9px; border-radius: 6px; }
.xpc-tag.is-accent { color: var(--xpc-accent-dark); background: var(--xpc-accent-soft); }
/* Date, time and price on the face of the card. */
.xpc .xpc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xpc .xpc-fact { margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--xpc-ink); }
.xpc .xpc-fact::before { content: none; }
.xpc-fact svg { flex: none; margin-top: 2px; color: var(--xpc-accent); }
.xpc .xpc-fact-price { font-weight: 700; color: var(--xpc-accent-dark); }
.xpc .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.xpc .xpc-summary { margin: 0; font-size: 14px; line-height: 1.55; color: var(--xpc-muted); }
.xpc .xpc-readmore { font-size: 14px; font-weight: 700; color: var(--xpc-accent); text-decoration: none; }
.xpc .xpc-readmore:hover { color: var(--xpc-accent-dark); text-decoration: underline; }

.xpc-more summary {
	list-style: none; cursor: pointer; min-height: 44px; margin-top: 4px;
	border: 1px solid var(--xpc-line); background: #fafaf8; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 14px; font-weight: 500; color: var(--xpc-ink);
}
.xpc-more summary::-webkit-details-marker { display: none; }
.xpc-more summary svg { transition: transform .15s ease; }
.xpc-more[open] summary { border-color: var(--xpc-accent); background: var(--xpc-accent-soft); color: var(--xpc-accent-dark); }
.xpc-more[open] summary svg { transform: rotate(180deg); }
.xpc-more summary:focus-visible { outline: 2px solid var(--xpc-accent); outline-offset: 2px; }

.xpc-more-body { border-top: 1px solid #ebebe7; margin-top: 14px; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.xpc .xpc-row { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.xpc-row span { font-size: 13px; color: #5a5f66; }
.xpc-row strong { font-size: 15px; text-align: right; }
.xpc-row small { font-size: 13px; font-weight: 400; color: #5a5f66; }
.xpc-seats { display: flex; gap: 6px; }
.xpc-seats span { flex: 1; height: 8px; border-radius: 4px; background: var(--xpc-track); }
.xpc-seats span.is-taken { background: var(--xpc-accent); }

.xpc-open { display: flex; align-items: center; gap: 12px; background: var(--xpc-accent-soft); color: var(--xpc-accent); border-radius: 8px; padding: 12px 14px; }
.xpc-open div { display: flex; flex-direction: column; gap: 2px; }
.xpc-open strong { font-size: 15px; color: var(--xpc-accent-dark); }
.xpc-open span { font-size: 13px; color: var(--xpc-muted); }

.xpc .xpc-btn {
	min-height: 44px; border-radius: 8px; padding: 10px 16px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.2;
	border: 1px solid transparent;
	/* Themes often style buttons (uppercase, spacing, shadows); undo that here. */
	text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; width: auto; margin: 0;
}
.xpc .xpc-btn-wa { background: var(--xpc-wa); color: #fff; }
.xpc .xpc-btn-wa:hover { background: #146637; color: #fff; }
.xpc .xpc-btn-signup { background: var(--xpc-accent); color: #fff; }
.xpc .xpc-btn-signup:hover { background: var(--xpc-accent-dark); color: #fff; }
.xpc .xpc-btn-more, .xpc .xpc-btn-ghost { background: #fff; color: var(--xpc-ink); border-color: var(--xpc-ink); }
.xpc .xpc-btn-more:hover, .xpc .xpc-btn-ghost:hover { background: #f1f1ee; color: var(--xpc-ink); }
.xpc .xpc-btn:focus-visible { outline: 2px solid var(--xpc-accent); outline-offset: 2px; }

.xpc-row strong { overflow-wrap: anywhere; }

.xpc-flash { padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.xpc-flash-ok { background: #e6f4ea; color: #145c33; }
.xpc-flash-bad { background: #fbe9e9; color: #8a1f1f; }
.xpc-empty { color: var(--xpc-muted); }

/* Sign-up dialog */
.xpc-dialog {
	border: 0; border-radius: 12px; padding: 0; width: min(440px, calc(100vw - 32px));
	color: var(--xpc-ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.xpc-dialog::backdrop { background: rgba(20, 22, 26, .55); }
.xpc-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.xpc-form h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.xpc .xpc-dialog-note { margin: 0; font-size: 14px; color: var(--xpc-muted); }
.xpc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.xpc-field input {
	font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px;
	border: 1px solid #b9bcc1; border-radius: 8px; background: #fff; color: var(--xpc-ink); width: 100%;
}
.xpc-field input:focus { outline: 2px solid var(--xpc-accent); outline-offset: 1px; border-color: var(--xpc-accent); }
.xpc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--xpc-muted); line-height: 1.45; }
.xpc-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.xpc .xpc-msg { margin: 0; font-size: 14px; min-height: 0; }
.xpc .xpc-msg.is-ok { color: #145c33; font-weight: 500; }
.xpc .xpc-msg.is-bad { color: #8a1f1f; font-weight: 500; }
.xpc-actions { display: flex; gap: 10px; justify-content: flex-end; }
.xpc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
