/*
 * Tour picker (tcc-tour-picker.js, TourScheduler): what it needs to work
 * under any theme — layout, tap targets, the chosen and focused states. The
 * theme adds its own look on top (docs/tour-scheduler.md). Colours use the
 * lead form's tokens with the same fallbacks.
 */
.tcc-picker {
	max-width: 40rem;
}
.tcc-picker [hidden] {
	display: none !important;
}
.tcc-picker__status {
	margin: 0 0 0.75rem;
	color: var(--color-text-muted, #4a4e46);
	line-height: 1.5;
}
.tcc-picker__status:empty {
	margin: 0;
}
.tcc-picker__meta {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	color: var(--color-text-muted, #4a4e46);
}
.tcc-picker fieldset {
	min-width: 0;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}
.tcc-picker__legend {
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text, #1b1b18);
}

/* Days: one row that scrolls sideways on a phone. Width 0 with a 100% floor
   keeps the row out of its host's min-content size, so a host grid track
   cannot grow to fit every day and push the card off a phone's screen. */
.tcc-picker__strip {
	width: 0;
	min-width: 100%;
	display: flex;
	gap: 0.5rem;
	margin: 0 -0.25rem;
	padding: 0.25rem 0.25rem 0.5rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}
.tcc-picker__day {
	position: relative;
	flex: 0 0 auto;
	scroll-snap-align: start;
}
.tcc-picker__time {
	position: relative;
}
.tcc-picker__day input,
.tcc-picker__time input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.tcc-picker__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border-strong, #858b7c);
	border-radius: 10px;
	background: #fff;
	color: var(--color-text, #1b1b18);
	cursor: pointer;
	text-align: center;
	transition: border-color 120ms ease, background-color 120ms ease;
}
.tcc-picker__day .tcc-picker__chip {
	flex-direction: column;
	min-width: 4rem; /* the fifth day peeks in on a phone: there is more to scroll */
	min-height: 4.75rem;
	padding: 0.4rem 0.5rem;
	line-height: 1.15;
}
.tcc-picker__dow,
.tcc-picker__mon {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.tcc-picker__num {
	font-size: 1.3rem;
	font-weight: 700;
}

/* Times: a grid, three or four across on a phone. */
.tcc-picker__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
	gap: 0.5rem;
}
.tcc-picker__time .tcc-picker__chip {
	min-height: 2.875rem;
	padding: 0.4rem 0.25rem;
	font-weight: 600;
	white-space: nowrap;
}

/* What the visitor is looking for, when the calendar needs it: stacked. */
.tcc-picker__choices {
	display: grid;
	gap: 0.5rem;
}
.tcc-picker__choice {
	position: relative;
}
.tcc-picker__choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.tcc-picker__choice .tcc-picker__chip {
	justify-content: flex-start;
	min-height: 2.875rem;
	padding: 0.55rem 0.9rem;
	font-weight: 600;
	text-align: left;
}

.tcc-picker__chip:hover {
	border-color: var(--color-accent, #4a6e16);
}
.tcc-picker input:checked + .tcc-picker__chip {
	border-color: var(--color-accent, #4a6e16);
	background: var(--color-accent, #4a6e16);
	color: #fff;
}
.tcc-picker input:focus-visible + .tcc-picker__chip {
	outline: 3px solid var(--color-accent, #4a6e16);
	outline-offset: 2px;
}

.tcc-picker__book {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 10px;
	background: var(--color-accent, #4a6e16);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.tcc-picker__book:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.tcc-picker__book:focus-visible {
	outline: 3px solid var(--color-accent, #4a6e16);
	outline-offset: 3px;
}

.tcc-picker__fallback {
	margin: 0.25rem 0 0;
}
.tcc-picker__fallback a,
.tcc-picker__change a {
	color: var(--color-accent, #4a6e16);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Booked. */
.tcc-picker__done:focus {
	outline: none;
}
.tcc-picker__done p {
	margin: 0 0 0.5rem;
	line-height: 1.5;
}
.tcc-picker__done-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.125rem;
	font-weight: 700;
}
.tcc-picker__done .ty-check {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--color-accent-soft, #e1f0cf);
	color: var(--color-accent, #4a6e16);
	font-size: 1rem;
	font-weight: 700;
}
.tcc-picker__when {
	font-size: 1.125rem;
	font-weight: 600;
}

/* Once booked, the card's "pick a time" heading has done its job. */
.tcc-scheduler[data-scheduler="booked"] .tcc-scheduler__confirm,
.tcc-scheduler[data-scheduler="booked"] .tcc-scheduler__title,
.tcc-scheduler[data-scheduler="booked"] .tcc-scheduler__intro,
.tcc-scheduler[data-scheduler="booked"] .tcc-scheduler__note {
	display: none;
}

.tcc-picker__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.tcc-picker__chip {
		transition: none;
	}
}
