/* ==========================================================================
   CCR Elementor — exhibitor & sponsor elements
   Tier Explorer · Goal Picker
   Built on the core tokens and color worlds in ccrx.css. Every interactive
   part is added by script; without it, all content is listed in full.
   ========================================================================== */

/* ---------- Tier Explorer ---------- */
.ccrx-tierx__ui[hidden] { display: none; }
.ccrx-tierx.is-enhanced .ccrx-tierx__ui { display: block; }

.ccrx-tierx__rail {
	position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
	margin: 8px 0 28px; padding: 6px; border-radius: 999px;
	background: var(--ccrx-card, #fff); border: 1px solid var(--ccrx-rule, var(--ccrx-line));
	touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ccrx-tierx__thumb {
	position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--ccrx-ink);
	box-shadow: 0 8px 18px -10px rgba(11, 31, 51, .6);
	transition: transform .5s cubic-bezier(.22, .8, .24, 1), width .5s cubic-bezier(.22, .8, .24, 1);
}
.ccrx .ccrx-tierx__stop {
	position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	min-height: 58px; margin: 0; padding: 8px 6px; border: 0; border-radius: 999px; background: transparent;
	color: var(--ccrx-on, var(--ccrx-ink)); font-family: var(--ccrx-sans); line-height: 1.1; cursor: pointer;
	transition: color .3s ease; -webkit-tap-highlight-color: transparent;
}
.ccrx .ccrx-tierx__stop:hover { background: transparent; color: var(--ccrx-accent); }
.ccrx .ccrx-tierx__stop[aria-checked="true"], .ccrx .ccrx-tierx__stop[aria-checked="true"]:hover { color: #fff; }
.ccrx .ccrx-tierx__stop:focus-visible { outline: 2px solid var(--ccrx-accent); outline-offset: 3px; }
.ccrx-tierx__stop-name { font-size: 15px; font-weight: 600; }
.ccrx-tierx__stop-price { font-size: 12px; font-weight: 500; opacity: .72; font-variant-numeric: tabular-nums; }
.ccrx-tierx.is-dragging .ccrx-tierx__rail { cursor: grabbing; }

.ccrx-tierx__panels { display: grid; gap: 24px; }
.ccrx-tierx.is-enhanced .ccrx-tierx__panels { grid-template-areas: "stage"; gap: 0; }
.ccrx-tierx.is-enhanced .ccrx-tierx__stage { grid-area: stage; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .35s; }
.ccrx-tierx.is-enhanced .ccrx-tierx__stage.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

.ccrx-tierx__stage {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center;
	padding: 48px; border-radius: 28px; background: var(--ccrx-card, #fff); border: 1px solid var(--ccrx-rule, var(--ccrx-line));
	box-shadow: 0 30px 60px -48px rgba(11, 31, 51, .45);
}
.ccrx-tierx__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ccrx .ccrx-tierx__name { margin: 0; font-family: var(--ccrx-serif); font-size: 40px; font-weight: 400; line-height: 1; color: var(--ccrx-on, var(--ccrx-ink)); }
.ccrx-tierx__badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--ccrx-yellow); color: var(--ccrx-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ccrx .ccrx-tierx__price { margin: 14px 0 0; font-family: var(--ccrx-serif); font-size: 76px; line-height: 1; letter-spacing: -.01em; color: var(--ccrx-on, var(--ccrx-ink)); font-variant-numeric: tabular-nums; }
.ccrx .ccrx-tierx__blurb { margin: 16px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ccrx-on-soft, var(--ccrx-body)); }
.ccrx .ccrx-tierx__list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ccrx-tierx__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ccrx-on, var(--ccrx-ink)); }
.ccrx-tierx__list .ccrx-icon { flex: none; width: 20px; height: 20px; color: var(--ccrx-cyan); margin-top: 1px; }
.ccrx-tierx__stage .ccrx-btns { margin-top: 32px; }

/* The floor plan: a 24′ × 10′ grid in 2-foot squares, with the booth drawn to scale. */
.ccrx-tierx__floor {
	position: relative; aspect-ratio: 24 / 10; border-radius: 16px; overflow: hidden;
	background-color: #fff;
	background-image: linear-gradient(rgba(11, 31, 51, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 51, .07) 1px, transparent 1px);
	background-size: calc(100% / 12) calc(100% / 5); background-position: -1px -1px;
	border: 1px solid var(--ccrx-line);
}
.ccrx-tierx__booth {
	position: absolute; left: 0; bottom: 0; width: var(--w, 25%); height: var(--d, 80%);
	border-radius: 0 12px 0 0; background: linear-gradient(135deg, var(--ccrx-pink), var(--ccrx-accent));
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .7) inset, 0 18px 30px -18px rgba(196, 40, 106, .8);
	transition: width .8s cubic-bezier(.22, .8, .24, 1), height .8s cubic-bezier(.22, .8, .24, 1);
}
.ccrx-tierx__booth-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90%; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrx-tierx__booth.is-table .ccrx-tierx__booth-label { top: auto; bottom: calc(100% + 10px); left: 12px; transform: none; max-width: none; color: var(--ccrx-ink); }
.ccrx .ccrx-tierx__caption { margin: 10px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--ccrx-muted); }

.ccrx-tierx__regs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.ccrx-tierx__badges { display: inline-flex; gap: 6px; }
.ccrx-tierx__pass { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(11, 31, 51, .05); color: rgba(11, 31, 51, .18); transition: background-color .3s, color .3s; }
.ccrx-tierx__pass .ccrx-icon { width: 20px; height: 20px; }
.ccrx-tierx__pass.is-on { background: rgba(34, 184, 216, .14); color: var(--ccrx-cyan); }
.ccrx-tierx__regs-text { font-size: 14px; font-weight: 600; color: var(--ccrx-on, var(--ccrx-ink)); }

.ccrx .ccrx-tierx__note { margin: 24px auto 0; max-width: 64ch; text-align: center; text-wrap: balance; font-size: 14px; color: var(--ccrx-on-muted, var(--ccrx-muted)); }
.ccrx .ccrx-tierx__note a { color: var(--ccrx-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Goal Picker ---------- */
.ccrx-goals__chips[hidden], .ccrx-goals__add[hidden], .ccrx-goals__bar[hidden] { display: none; }
.ccrx-goals__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.ccrx .ccrx-goals__chip {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; margin: 0; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--ccrx-rule, var(--ccrx-line)); background: var(--ccrx-card, #fff); color: var(--ccrx-on, var(--ccrx-ink));
	font-family: var(--ccrx-sans); font-size: 15px; font-weight: 600; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s ease;
}
.ccrx .ccrx-goals__chip .ccrx-icon { width: 18px; height: 18px; color: var(--ccrx-accent); transition: color .2s; }
.ccrx .ccrx-goals__chip:hover { border-color: var(--ccrx-ink); background: var(--ccrx-card, #fff); color: var(--ccrx-ink); }
.ccrx .ccrx-goals__chip:active { transform: scale(.97); }
.ccrx .ccrx-goals__chip[aria-pressed="true"] { background: var(--ccrx-ink); border-color: var(--ccrx-ink); color: #fff; }
.ccrx .ccrx-goals__chip[aria-pressed="true"] .ccrx-icon { color: var(--ccrx-yellow); }
.ccrx .ccrx-goals__chip:focus-visible { outline: 2px solid var(--ccrx-accent); outline-offset: 3px; }
.ccrx .ccrx-goals__chip--all { border-style: dashed; }

.ccrx .ccrx-goals__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.ccrx-goals__card {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px;
	background: var(--ccrx-card, #fff); border: 1px solid var(--ccrx-rule, var(--ccrx-line));
	transition: opacity .35s ease, filter .35s ease, box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.ccrx-goals__card:hover { box-shadow: 0 18px 36px -24px rgba(11, 31, 51, .35); }
.ccrx-goals__card.is-dim { opacity: .38; filter: saturate(.3); }
.ccrx-goals__card.is-dim:hover { opacity: .7; }
.ccrx-goals__card.is-picked { border-color: var(--ccrx-accent); box-shadow: 0 0 0 1px var(--ccrx-accent), 0 18px 36px -24px rgba(196, 40, 106, .45); }
.ccrx-goals__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ccrx .ccrx-goals__title { margin: 0; font-family: var(--ccrx-sans); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ccrx-on, var(--ccrx-ink)); }
.ccrx-goals__price { flex: none; font-family: var(--ccrx-serif); font-size: 24px; line-height: 1; color: var(--ccrx-on, var(--ccrx-ink)); font-variant-numeric: tabular-nums; }
.ccrx .ccrx-goals__blurb { margin: 0; flex: 1; font-size: 14px; line-height: 1.55; color: var(--ccrx-on-soft, var(--ccrx-body)); }
.ccrx-goals__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ccrx .ccrx-goals__add {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 16px 0 12px; border-radius: 999px;
	border: 1px solid var(--ccrx-line); background: transparent; color: var(--ccrx-ink); font-family: var(--ccrx-sans); font-size: 14px; font-weight: 600; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s ease;
}
.ccrx .ccrx-goals__add:hover { border-color: var(--ccrx-ink); background: transparent; color: var(--ccrx-ink); }
.ccrx .ccrx-goals__add:active { transform: scale(.96); }
.ccrx .ccrx-goals__add:focus-visible { outline: 2px solid var(--ccrx-accent); outline-offset: 2px; }
.ccrx-goals__add-icon { position: relative; display: inline-flex; width: 18px; height: 18px; }
.ccrx-goals__add-icon .ccrx-icon { position: absolute; inset: 0; width: 18px; height: 18px; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.ccrx-goals__add-icon .ccrx-icon--check { opacity: 0; transform: scale(.4) rotate(-30deg); }
.ccrx .ccrx-goals__add[aria-pressed="true"] { background: var(--ccrx-accent); border-color: var(--ccrx-accent); color: #fff; }
.ccrx .ccrx-goals__add[aria-pressed="true"] .ccrx-icon--plus { opacity: 0; transform: scale(.4) rotate(90deg); }
.ccrx .ccrx-goals__add[aria-pressed="true"] .ccrx-icon--check { opacity: 1; transform: none; }
.ccrx .ccrx-goals__view { font-size: 14px; font-weight: 600; color: var(--ccrx-accent); text-decoration: none; }
.ccrx .ccrx-goals__view:hover { text-decoration: underline; text-underline-offset: 3px; }

.ccrx-goals__bar {
	position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 28px; padding: 12px 12px 12px 24px; border-radius: 999px; background: var(--ccrx-ink); color: #fff;
	box-shadow: 0 24px 48px -20px rgba(11, 31, 51, .6);
	opacity: 0; transform: translateY(24px); pointer-events: none;
	transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
.ccrx-goals.has-picks .ccrx-goals__bar { opacity: 1; transform: none; pointer-events: auto; }
.ccrx-goals__bar-info { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ccrx-goals__bar-label { font-size: 14px; font-weight: 600; color: #C9D3DE; }
.ccrx-goals__count { display: inline-flex; min-width: 24px; height: 24px; margin-left: 6px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 999px; background: var(--ccrx-yellow); color: var(--ccrx-ink); font-size: 13px; }
.ccrx-goals__total { font-family: var(--ccrx-serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.ccrx-goals__total.is-bump { animation: ccrx-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ccrx-bump { 40% { transform: scale(1.12); } }
.ccrx-goals__note { font-size: 12px; color: #9FB0C2; }
.ccrx-goals__bar-actions { display: flex; align-items: center; gap: 8px; }
.ccrx .ccrx-goals__clear { margin: 0; padding: 0 14px; height: 44px; border: 0; background: transparent; color: #C9D3DE; font-family: var(--ccrx-sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.ccrx .ccrx-goals__clear:hover { background: transparent; color: #fff; }

/* ---------- Motion, only when wanted ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ccrx-tierx__stage.is-active .ccrx-tierx__list li { animation: ccrx-rise .5s cubic-bezier(.22, .8, .24, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
	.ccrx-tierx__stage.is-active .ccrx-tierx__pass.is-on { animation: ccrx-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--k, 0) * 60ms + 200ms); }
	@keyframes ccrx-rise { from { opacity: 0; transform: translateY(8px); } }
	@keyframes ccrx-pop { from { transform: scale(.4); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
	.ccrx-tierx__thumb, .ccrx-tierx__booth, .ccrx-tierx.is-enhanced .ccrx-tierx__stage, .ccrx-goals__card, .ccrx-goals__bar, .ccrx-goals__add-icon .ccrx-icon { transition: none !important; }
	.ccrx-goals__total.is-bump { animation: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
	.ccrx-tierx__rail { grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; border-radius: 20px; scrollbar-width: none; scroll-snap-type: x proximity; }
	.ccrx-tierx__rail::-webkit-scrollbar { display: none; }
	.ccrx-tierx__ui { position: relative; }
	.ccrx-tierx__ui::before, .ccrx-tierx__ui::after { content: ""; position: absolute; top: 9px; bottom: 37px; width: 22px; z-index: 2; pointer-events: none; }
	.ccrx-tierx__ui::before { left: 1px; border-radius: 20px 0 0 20px; background: linear-gradient(90deg, var(--ccrx-card, #fff), transparent); }
	.ccrx-tierx__ui::after { right: 1px; border-radius: 0 20px 20px 0; background: linear-gradient(-90deg, var(--ccrx-card, #fff), transparent); }
	.ccrx .ccrx-tierx__stop { scroll-snap-align: center; border-radius: 16px; }
	.ccrx-tierx__thumb { border-radius: 16px; }
	.ccrx-tierx__stage { grid-template-columns: 1fr; gap: 32px; padding: 28px 24px; border-radius: 22px; }
	.ccrx .ccrx-tierx__name { font-size: 32px; }
	.ccrx .ccrx-tierx__price { font-size: 56px; }
	.ccrx-goals__bar { border-radius: 20px; flex-direction: column; align-items: stretch; padding: 16px; }
	.ccrx-goals__bar-actions { justify-content: space-between; }
	.ccrx-goals__bar-actions .ccrx-btn { flex: 1; }
}
@media (max-width: 560px) {
	.ccrx .ccrx-goals__chip { height: 42px; padding: 0 14px; font-size: 14px; }
	.ccrx-tierx__pass { width: 28px; height: 28px; }
}
