/*
 * CrewTech Connect: calm, neutral styles that sit inside any theme.
 *
 * Every rule is scoped under .ctc and wrapped in , so it has zero
 * specificity and any theme rule wins. Colours derive from the theme's text colour
 * (currentColor) and its primary colour, so light and dark themes both work. No
 * fonts are loaded.
 *
 * Override in the theme, e.g.:
 *   .ctc { --ctc-accent: #00489f; --ctc-accent-text: #fff; --ctc-radius: 8px; }
 * --ctc-accent and --ctc-accent-text are used together on buttons and the date
 * tile: keep their contrast at 4.5:1 or more.
 */

.ctc {
	--ctc-accent: var(--wp--preset--color--primary, #0b5cad);
	--ctc-accent-text: #fff;
	--ctc-radius: 12px;
	--ctc-gap: 1rem;
	--ctc-card-bg: transparent;
	--ctc-success: #1e7a34;
	--ctc-urgent: #b42318;
	--ctc-danger: #b3261e;
	--ctc-shadow: 0 1px 2px color-mix(in srgb, currentColor 6%, transparent), 0 10px 30px -18px color-mix(in srgb, currentColor 30%, transparent);
	--ctc-shadow-raised: 0 2px 4px color-mix(in srgb, currentColor 8%, transparent), 0 18px 40px -20px color-mix(in srgb, currentColor 40%, transparent);
	--ctc-border: color-mix(in srgb, currentColor 16%, transparent);
	--ctc-border-strong: color-mix(in srgb, currentColor 38%, transparent);
	--ctc-surface: color-mix(in srgb, currentColor 4%, transparent);
	--ctc-surface-strong: color-mix(in srgb, currentColor 8%, transparent);
	--ctc-muted: color-mix(in srgb, currentColor 70%, transparent);
	font: inherit;
	color: inherit;
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	container: ctc / inline-size;
}

.ctc *,
.ctc *::before,
.ctc *::after {
	box-sizing: inherit;
}

/* Hidden must stay hidden, whatever display a theme or the plugin's own layout rules give the element (the one
   place this stylesheet uses !important: [hidden] means not shown, always). */
.ctc [hidden] {
	display: none !important;
}

.ctc p {
	margin: 0 0 0.5em;
}

.ctc .ctc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ctc :focus-visible {
	outline: 3px solid var(--ctc-accent);
	outline-offset: 2px;
}

/* Step headings and result headings take focus from script (so screen readers start there); they are not controls. */
.ctc [tabindex="-1"]:focus {
	outline: none;
}

.ctc .ctc-icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- filters ---------- */

.ctc .ctc-filters {
	display: grid;
	gap: 0.5rem;
	margin-bottom: calc(var(--ctc-gap) * 1.25);
}

.ctc .ctc-chipset {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px;
}

.ctc .ctc-chip {
	box-shadow: none;
	background-image: none;
	text-transform: none;
	letter-spacing: normal;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 1px solid var(--ctc-border-strong);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9375em;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.ctc .ctc-chip:hover {
	background: var(--ctc-surface-strong);
}

.ctc .ctc-chip[aria-pressed="true"] {
	border-color: var(--ctc-accent);
	background: var(--ctc-accent);
	color: var(--ctc-accent-text);
}

/* ---------- list and cards ---------- */

.ctc .ctc-list {
	display: grid;
	gap: calc(var(--ctc-gap) * 1.75);
}

.ctc .ctc-month {
	margin: 0 0 0.75rem;
	font-size: 0.8125em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ctc-muted);
}

.ctc .ctc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ctc-gap);
	align-items: stretch;
}

@container ctc (min-width: 46rem) {
	.ctc .ctc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: calc(var(--ctc-gap) * 1.25);
	}
}

.ctc .ctc-card {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--ctc-border);
	border-radius: var(--ctc-radius);
	background: var(--ctc-card-bg);
	box-shadow: var(--ctc-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ctc .ctc-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ctc-shadow-raised);
	border-color: var(--ctc-border-strong);
}

.ctc .ctc-card-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.ctc .ctc-date-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	margin: 0;
	padding: 0.5rem 0.25rem;
	border-radius: calc(var(--ctc-radius) - 2px);
	background: var(--ctc-accent);
	color: var(--ctc-accent-text);
	line-height: 1.1;
	text-align: center;
}

.ctc .ctc-date-tile-month, .ctc .ctc-date-tile-weekday {
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ctc .ctc-date-tile-day {
	font-size: 1.75em;
	font-weight: 700;
	line-height: 1.1;
}

.ctc .ctc-date-tile-weekday {
	opacity: 0.85;
}

.ctc .ctc-card-title {
	margin: 0 0 0.25rem;
	font-size: 1.1875em;
	line-height: 1.3;
}

.ctc .ctc-card-when {
	margin: 0 0 0.125rem;
	font-weight: 600;
}

.ctc .ctc-card-meta {
	margin: 0;
	font-size: 0.9375em;
	color: var(--ctc-muted);
}

.ctc .ctc-dot {
	opacity: 0.7;
}

.ctc .ctc-card-summary {
	margin: 0;
	color: var(--ctc-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Badges: tinted, with text mixed from the tone and the theme's text colour so
   contrast holds on light and dark backgrounds. */
.ctc .ctc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ctc .ctc-badge {
	--ctc-tone: currentColor;
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	border: 1px solid color-mix(in srgb, var(--ctc-tone) 28%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--ctc-tone) 10%, transparent);
	color: color-mix(in srgb, var(--ctc-tone) 60%, currentColor);
	font-size: 0.8125em;
	font-weight: 600;
	line-height: 1.35;
}

.ctc .ctc-badge-neutral {
	border-color: var(--ctc-border);
	background: var(--ctc-surface);
	color: inherit;
}

.ctc .ctc-badge-urgent {
	--ctc-tone: var(--ctc-urgent);
}

.ctc .ctc-badge-success {
	--ctc-tone: var(--ctc-success);
}

.ctc .ctc-card-foot {
	display: grid;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.875rem;
	border-top: 1px solid var(--ctc-border);
}

.ctc .ctc-card-price {
	display: grid;
	gap: 0.125rem;
}

.ctc .ctc-price-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.ctc .ctc-price-now {
	font-size: 1.75em;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.ctc .ctc-price-was {
	color: var(--ctc-muted);
	font-size: 1.0625em;
}

.ctc .ctc-price-note, .ctc .ctc-price-vat {
	margin: 0;
	font-size: 0.875em;
	color: var(--ctc-muted);
}

.ctc .ctc-card-seats {
	margin: 0;
	font-size: 0.9375em;
	font-weight: 600;
}

.ctc .ctc-seats-full, .ctc .ctc-seats-closed, .ctc .ctc-seats-offline {
	color: var(--ctc-muted);
}

.ctc .ctc-card-cta {
	width: 100%;
}

@container ctc (min-width: 30rem) {
	.ctc .ctc-card-foot {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}

	.ctc .ctc-card-seats {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.ctc .ctc-card-cta {
		width: auto;
		grid-column: 2;
		grid-row: 1;
	}
}

/* ---------- buttons ---------- */

.ctc .ctc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	min-width: 44px;
	padding: 0.75em 1.375em;
	border: 2px solid var(--ctc-accent);
	border-radius: calc(var(--ctc-radius) - 4px);
	background: var(--ctc-accent);
	color: var(--ctc-accent-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease;
}

.ctc .ctc-button:hover {
	filter: brightness(1.08);
}

.ctc .ctc-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.ctc .ctc-button-secondary {
	box-shadow: none;
	background-image: none;
	text-transform: none;
	letter-spacing: normal;
	background: transparent;
	color: inherit;
	border-color: var(--ctc-border-strong);
}

.ctc .ctc-button-secondary:hover {
	filter: none;
	background: var(--ctc-surface-strong);
}

.ctc .ctc-link-button {
	box-shadow: none;
	background-image: none;
	text-transform: none;
	letter-spacing: normal;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-left: 0.5rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.875em;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

/* ---------- forms ---------- */

.ctc .ctc-heading {
	margin: 0 0 0.5em;
	font-size: 1.25em;
	line-height: 1.3;
}

.ctc .ctc-form {
	display: grid;
	gap: var(--ctc-gap);
}

.ctc .ctc-fieldset {
	display: grid;
	gap: var(--ctc-gap);
	margin: 0;
	padding: var(--ctc-gap);
	border: 1px solid var(--ctc-border);
	border-radius: calc(var(--ctc-radius) - 4px);
	min-width: 0;
}

.ctc .ctc-fieldset-plain {
	border: 0;
	border-radius: 0;
}

.ctc .ctc-fieldset > legend {
	padding: 0 0.25em;
	font-weight: 700;
}

.ctc .ctc-subheading {
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.ctc .ctc-field {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.ctc .ctc-label {
	font-weight: 600;
}

.ctc .ctc-req {
	color: var(--ctc-danger);
}

.ctc .ctc-hint {
	margin: 0;
	font-size: 0.875em;
	color: var(--ctc-muted);
}

.ctc .ctc-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.625em 0.875em;
	border: 1px solid var(--ctc-border-strong);
	border-radius: calc(var(--ctc-radius) - 4px);
	background: transparent;
	color: inherit;
	font: inherit;
}

.ctc .ctc-input:focus-visible {
	border-color: var(--ctc-accent);
}

.ctc textarea.ctc-input {
	min-height: 8em;
	resize: vertical;
}

.ctc select.ctc-input {
	background-color: var(--ctc-surface);
}

.ctc select.ctc-input option {
	color: initial;
	background: initial;
}

.ctc .ctc-input[aria-invalid="true"] {
	border-color: var(--ctc-danger);
	border-width: 2px;
}

.ctc .ctc-error {
	margin: 0;
	color: color-mix(in srgb, var(--ctc-danger) 75%, currentColor);
	font-weight: 600;
	font-size: 0.9375em;
}

.ctc .ctc-check {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: start;
	column-gap: 0.25rem;
}

.ctc .ctc-check > label {
	min-height: 44px;
	padding-top: 0.6em;
	cursor: pointer;
}

.ctc .ctc-check > .ctc-error {
	grid-column: 1 / -1;
}

.ctc .ctc-checkbox, .ctc .ctc-radio {
	width: 1.375rem;
	height: 1.375rem;
	margin: 0.6875rem;
	accent-color: var(--ctc-accent);
	cursor: pointer;
}

.ctc .ctc-paycard .ctc-radio {
	margin-top: 0.875rem;
}

.ctc .ctc-stepper {
	display: flex;
	align-items: stretch;
	max-width: 13rem;
}

.ctc .ctc-stepper .ctc-input {
	width: 5rem;
	border-radius: 0;
	text-align: center;
	font-size: 1.125em;
	font-weight: 700;
	-moz-appearance: textfield;
	appearance: textfield;
}

.ctc .ctc-stepper .ctc-input::-webkit-inner-spin-button, .ctc .ctc-stepper .ctc-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ctc .ctc-step-btn {
	box-shadow: none;
	background-image: none;
	text-transform: none;
	letter-spacing: normal;
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	border: 1px solid var(--ctc-border-strong);
	background: var(--ctc-surface);
	color: inherit;
	font: inherit;
	font-size: 1.375em;
	line-height: 1;
	cursor: pointer;
}

.ctc .ctc-step-btn:first-child {
	border-radius: calc(var(--ctc-radius) - 4px) 0 0 calc(var(--ctc-radius) - 4px);
	border-right: 0;
}

.ctc .ctc-step-btn:last-child {
	border-radius: 0 calc(var(--ctc-radius) - 4px) calc(var(--ctc-radius) - 4px) 0;
	border-left: 0;
}

.ctc .ctc-step-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.ctc .ctc-terms {
	border: 1px solid var(--ctc-border);
	border-radius: calc(var(--ctc-radius) - 4px);
}

.ctc .ctc-terms > summary {
	min-height: 44px;
	padding: 0.65em 1rem;
	cursor: pointer;
	font-weight: 600;
}

.ctc .ctc-terms-text {
	max-height: 16rem;
	overflow: auto;
	padding: 0 1rem 1rem;
	white-space: pre-line;
	font-size: 0.9375em;
}

.ctc .ctc-privacy a {
	color: inherit;
	text-decoration: underline;
}

.ctc .ctc-privacy {
	margin: 0;
	font-size: 0.9375em;
}

.ctc .ctc-turnstile {
	min-height: 65px;
}

.ctc .ctc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---------- checkout sheet ---------- */

.ctc .ctc-sheet {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--ctc-sheet-bg, Canvas);
	font: inherit;
	overflow: hidden;
	animation: ctc-sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ctc .ctc-sheet::backdrop {
	background: rgba(10, 12, 16, 0.5);
}

.ctc .ctc-sheet-fallback {
	z-index: 100000;
	box-shadow: 0 0 0 100vmax rgba(10, 12, 16, 0.5);
}

@keyframes ctc-sheet-up {
	from { transform: translateY(100%); }
	to { transform: none; }
}

@keyframes ctc-sheet-left {
	from { transform: translateX(100%); }
	to { transform: none; }
}

@media (min-width: 48em) {
	.ctc .ctc-sheet {
		inset: 0 0 0 auto;
		width: min(60rem, 100%);
		border-radius: 18px 0 0 18px;
		box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.45);
		animation-name: ctc-sheet-left;
	}
}

.ctc .ctc-sheet-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ctc .ctc-sheet-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem 0.75rem;
}

.ctc .ctc-sheet-eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.8125em;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ctc-muted);
}

.ctc .ctc-sheet-eyebrow:empty {
	display: none;
}

.ctc .ctc-sheet-title {
	margin: 0;
	font-size: 1.25em;
	line-height: 1.25;
}

.ctc .ctc-sheet-sub {
	margin: 0.25rem 0 0;
	font-size: 0.9375em;
	color: var(--ctc-muted);
}

.ctc .ctc-sheet-close {
	box-shadow: none;
	background-image: none;
	text-transform: none;
	letter-spacing: normal;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ctc-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ctc .ctc-sheet-close:hover {
	background: var(--ctc-surface-strong);
}

.ctc .ctc-progress {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0.375rem;
	margin: 0;
	padding: 0 1.25rem 0.75rem;
	list-style: none;
	border-bottom: 1px solid var(--ctc-border);
}

.ctc .ctc-progress-step {
	padding-top: 0.5rem;
	border-top: 4px solid var(--ctc-border);
	font-size: 0.75em;
	color: var(--ctc-muted);
	line-height: 1.25;
}

.ctc .ctc-progress-done, .ctc .ctc-progress-step[aria-current="step"] {
	border-top-color: var(--ctc-accent);
}

.ctc .ctc-progress-step[aria-current="step"] {
	color: inherit;
	font-weight: 700;
}

.ctc .ctc-sheet-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: grid;
	gap: 1.5rem;
	align-content: start;
	padding: 1.25rem;
}

.ctc .ctc-checkout {
	display: grid;
	gap: 1.25rem;
	align-content: start;
	min-width: 0;
}

.ctc .ctc-step {
	display: grid;
	gap: 1.125rem;
	min-width: 0;
}

.ctc .ctc-step-heading {
	margin: 0;
	font-size: 1.125em;
	line-height: 1.3;
}

.ctc .ctc-lead {
	margin: 0;
}

.ctc .ctc-rating-box {
	display: grid;
	gap: 0.25rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--ctc-border);
	border-radius: calc(var(--ctc-radius) - 4px);
	background: var(--ctc-surface);
}

.ctc .ctc-rating-recommend {
	margin: 0;
	color: var(--ctc-muted);
	font-size: 0.875em;
}

.ctc .ctc-star {
	color: color-mix(in srgb, #b7791f 70%, currentColor);
}

.ctc .ctc-sheet-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ctc-border);
	background: var(--ctc-sheet-bg, Canvas);
	box-shadow: 0 -10px 24px -20px rgba(0, 0, 0, 0.5);
}

.ctc .ctc-foot-total {
	display: grid;
	line-height: 1.25;
	min-width: 0;
}

.ctc .ctc-foot-label {
	font-size: 0.8125em;
	color: var(--ctc-muted);
}

.ctc .ctc-foot-amount {
	font-size: 1.25em;
}

.ctc .ctc-foot-nav {
	display: flex;
	gap: 0.5rem;
	margin-left: auto;
}

/* Summary */

.ctc .ctc-summary {
	align-self: start;
	padding: 1.25rem;
	border: 1px solid var(--ctc-border);
	border-radius: var(--ctc-radius);
	background: var(--ctc-surface);
}

.ctc .ctc-summary-title {
	margin: 0 0 0.75rem;
	font-size: 1em;
}

.ctc .ctc-summary-course {
	margin: 0 0 1rem;
	font-size: 0.875em;
	color: var(--ctc-muted);
}

.ctc .ctc-summary-course strong {
	color: initial;
	color: inherit;
}

.ctc .ctc-sum-list {
	display: grid;
	gap: 0.375rem;
	margin: 0;
}

.ctc .ctc-sum-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9375em;
}

.ctc .ctc-sum-row dt, .ctc .ctc-sum-row dd {
	margin: 0;
}

.ctc .ctc-sum-row dd {
	text-align: end;
	white-space: nowrap;
}

.ctc .ctc-sum-discount {
	color: color-mix(in srgb, var(--ctc-success) 65%, currentColor);
}

.ctc .ctc-sum-total {
	margin-top: 0.5rem;
	padding-top: 0.625rem;
	border-top: 1px solid var(--ctc-border);
	font-size: 1.0625em;
	font-weight: 700;
}

.ctc .ctc-save {
	margin: 0.75rem 0 0;
	color: color-mix(in srgb, var(--ctc-success) 65%, currentColor);
	font-weight: 700;
	font-size: 0.9375em;
}

.ctc .ctc-foot-total .ctc-save {
	margin: 0;
	font-size: 0.8125em;
}

/* Offers and nudges */

.ctc .ctc-offers-box {
	display: grid;
	gap: 0.5rem;
}

.ctc .ctc-offers {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ctc .ctc-offer {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.75rem 0.875rem;
	border: 1px dashed var(--ctc-border-strong);
	border-radius: calc(var(--ctc-radius) - 4px);
	font-size: 0.9375em;
}

.ctc .ctc-offer-text {
	display: grid;
}

.ctc .ctc-offer-text span {
	font-size: 0.875em;
	color: var(--ctc-muted);
}

.ctc .ctc-offer-applied {
	border-style: solid;
	border-color: color-mix(in srgb, var(--ctc-success) 40%, transparent);
	background: color-mix(in srgb, var(--ctc-success) 7%, transparent);
}

.ctc .ctc-offer-applied > .ctc-icon {
	color: color-mix(in srgb, var(--ctc-success) 65%, currentColor);
}

.ctc .ctc-offer-state {
	font-size: 0.8125em;
	font-weight: 700;
	color: color-mix(in srgb, var(--ctc-success) 65%, currentColor);
}

.ctc .ctc-nudge {
	margin: 0;
	font-weight: 600;
	color: color-mix(in srgb, var(--ctc-success) 65%, currentColor);
}

.ctc .ctc-nudge:empty {
	display: none;
}

/* Attendees */

.ctc .ctc-attendees {
	display: grid;
	gap: 0.75rem;
}

.ctc .ctc-attendee {
	border: 1px solid var(--ctc-border);
	border-radius: calc(var(--ctc-radius) - 4px);
}

.ctc .ctc-attendee > summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 52px;
	padding: 0.5rem 1rem;
	list-style: none;
	cursor: pointer;
}

.ctc .ctc-attendee > summary::-webkit-details-marker {
	display: none;
}

.ctc .ctc-attendee > summary::after {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.ctc .ctc-attendee[open] > summary::after {
	transform: rotate(-135deg);
}

.ctc .ctc-attendee-name {
	font-weight: 700;
}

.ctc .ctc-attendee-preview {
	color: var(--ctc-muted);
	font-size: 0.9375em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ctc .ctc-attendee-empty .ctc-attendee-preview {
	font-style: italic;
}

.ctc .ctc-attendee > .ctc-fieldset {
	padding-top: 0;
}

/* Review, payment and trust */

.ctc .ctc-review-box {
	padding: 1rem 1.125rem;
	border-radius: calc(var(--ctc-radius) - 4px);
	background: var(--ctc-surface);
}

.ctc .ctc-review {
	display: grid;
	gap: 0.25rem;
	margin: 0;
}

.ctc .ctc-review-row {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: center;
	font-size: 0.9375em;
}

.ctc .ctc-review-row dt {
	color: var(--ctc-muted);
}

.ctc .ctc-review-row dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.ctc .ctc-paycards {
	gap: 0.625rem;
	padding: 0;
	border: 0;
}

.ctc .ctc-paycards > legend {
	margin-bottom: 0.625rem;
	padding: 0;
}

.ctc .ctc-paycard {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: start;
	border: 1px solid var(--ctc-border-strong);
	border-radius: calc(var(--ctc-radius) - 4px);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ctc .ctc-paycard:has(input:checked) {
	border-color: var(--ctc-accent);
	box-shadow: inset 0 0 0 1px var(--ctc-accent);
	background: color-mix(in srgb, var(--ctc-accent) 6%, transparent);
}

.ctc .ctc-paycard-label {
	display: grid;
	gap: 0.125rem;
	padding: 0.75rem 1rem 0.75rem 0;
	cursor: pointer;
}

/* The whole card is clickable. */
.ctc .ctc-paycard-label::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ctc .ctc-paycard-title {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
}

.ctc .ctc-paycard-desc {
	font-size: 0.875em;
	color: var(--ctc-muted);
}

.ctc .ctc-trust {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0.875rem 1rem;
	border-radius: calc(var(--ctc-radius) - 4px);
	background: var(--ctc-surface);
	list-style: none;
	font-size: 0.875em;
}

.ctc .ctc-trust li {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.ctc .ctc-trust .ctc-icon {
	color: var(--ctc-muted);
	margin-top: 0.05em;
}

/* ---------- confirmation ---------- */

.ctc .ctc-done {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: 1.5rem 0;
	text-align: center;
}

.ctc .ctc-done > p {
	margin: 0;
	max-width: 34rem;
}

.ctc .ctc-done-icon {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ctc-success) 14%, transparent);
	color: color-mix(in srgb, var(--ctc-success) 70%, currentColor);
	font-size: 1.5rem;
}

.ctc .ctc-done-icon .ctc-icon {
	stroke-width: 2.5;
}

.ctc .ctc-done-warning .ctc-done-icon {
	background: color-mix(in srgb, var(--ctc-urgent) 12%, transparent);
	color: color-mix(in srgb, var(--ctc-urgent) 65%, currentColor);
}

.ctc .ctc-done-heading {
	margin: 0;
	font-size: 1.75em;
	font-weight: 700;
	line-height: 1.2;
}

.ctc .ctc-done-ref {
	font-size: 1.0625em;
}

.ctc .ctc-done-ref strong {
	letter-spacing: 0.03em;
}

.ctc .ctc-done-next-title {
	margin-top: 1rem;
	font-weight: 700;
}

.ctc .ctc-done-next {
	display: grid;
	gap: 0.375rem;
	max-width: 30rem;
	margin: 0;
	padding-left: 1.25rem;
	text-align: left;
}

.ctc .ctc-done-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.ctc .ctc-done-actions .ctc-status {
	flex-basis: 100%;
}

.ctc .ctc-banner {
	justify-items: start;
	padding: 1.25rem;
	margin-bottom: var(--ctc-gap);
	border: 1px solid color-mix(in srgb, var(--ctc-success) 35%, transparent);
	border-radius: var(--ctc-radius);
	background: color-mix(in srgb, var(--ctc-success) 6%, transparent);
	text-align: left;
}

.ctc .ctc-banner.ctc-done-warning {
	border-color: color-mix(in srgb, var(--ctc-urgent) 35%, transparent);
	background: color-mix(in srgb, var(--ctc-urgent) 5%, transparent);
}

.ctc .ctc-banner .ctc-done-icon {
	width: 3rem;
	height: 3rem;
}

.ctc .ctc-banner .ctc-done-heading {
	font-size: 1.25em;
}

.ctc .ctc-banner .ctc-done-actions {
	justify-content: flex-start;
}

/* ---------- messages ---------- */

.ctc .ctc-status-error {
	padding: 0.75em 1rem;
	border-left: 4px solid var(--ctc-danger);
	border-radius: 4px;
	background: color-mix(in srgb, var(--ctc-danger) 8%, transparent);
	font-weight: 600;
}

.ctc .ctc-status-info, .ctc .ctc-status-success {
	padding: 0.75em 1rem;
	border-left: 4px solid var(--ctc-accent);
	border-radius: 4px;
	background: var(--ctc-surface);
}

.ctc .ctc-status-success {
	border-left-color: var(--ctc-success);
}

.ctc .ctc-notice {
	padding: 1rem 1.125rem;
	border: 1px solid var(--ctc-border);
	border-left: 4px solid var(--ctc-accent);
	border-radius: var(--ctc-radius);
}

.ctc .ctc-notice-title {
	font-weight: 600;
}

.ctc .ctc-notice > :last-child {
	margin-bottom: 0;
}

.ctc .ctc-stale {
	font-size: 0.9375em;
	color: var(--ctc-muted);
}

/* ---------- wide checkout (after the base rules so it wins) ---------- */

@media (min-width: 56em) {
	.ctc .ctc-sheet-body {
		grid-template-columns: minmax(0, 1fr) 19rem;
		padding: 1.5rem 1.75rem;
		gap: 2rem;
	}

	.ctc .ctc-sheet-body-single {
		grid-template-columns: minmax(0, 40rem);
		justify-content: center;
	}

	.ctc .ctc-summary {
		position: sticky;
		top: 0;
	}

	.ctc .ctc-foot-total {
		display: none;
	}
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.ctc *, .ctc *::before, .ctc *::after {
		transition: none;
		animation: none;
		scroll-behavior: auto;
	}

	.ctc .ctc-card:hover {
		transform: none;
	}

	.ctc .ctc-sheet {
		animation: none;
	}
}

/* Star rating: five stars filled to the average (--ctc-fill), then the number and the review count. */
.ctc {
	--ctc-star: #e3a008;
}

.ctc .ctc-stars {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.375rem;
	margin: 0.375rem 0 0;
	line-height: 1.2;
}

.ctc .ctc-stars-bar {
	background: linear-gradient(90deg, var(--ctc-star) var(--ctc-fill, 100%), color-mix(in srgb, currentColor 22%, transparent) var(--ctc-fill, 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 1.125em;
	letter-spacing: 0.08em;
}

.ctc .ctc-stars-value {
	font-weight: 700;
}

.ctc .ctc-stars-count {
	color: var(--ctc-muted);
	font-size: 0.875em;
}

.ctc .ctc-stars-large .ctc-stars-bar {
	font-size: 1.5em;
}

.ctc .ctc-stars-large .ctc-stars-value {
	font-size: 1.25em;
}

/* Theme-proofing: themes often space every p, li and heading (often as ".kit p", which this matches and, loading
   later, beats). The plugin's own class rules (two classes) still set the spacing it wants; .ctc p is set above. */
.ctc li,
.ctc dd,
.ctc h2,
.ctc h3,
.ctc h4 {
	margin-top: 0;
	margin-bottom: 0;
}
