/*
 * HubSpot Scheduler picker.
 * Matches the Vinteum form: navy fields, 10px corners, inherited font.
 * To re-theme, override these variables on .gsha in the theme / Elementor custom CSS.
 */
.gsha-wrap.elementor-field-group {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.gsha {
	--gsha-ink: #374259;          /* text + selected fill (same navy as the form inputs) */
	--gsha-ink-soft: #69727d;
	--gsha-surface: #ffffff;
	--gsha-line: rgba(55, 66, 89, 0.16);
	--gsha-hover: rgba(55, 66, 89, 0.06);
	--gsha-focus: #ff7000;        /* brand orange, used only for keyboard focus */
	--gsha-error: #c62828;
	--gsha-radius: 10px;

	display: block;
	width: 100%;
	min-width: 0;
	margin: 4px 0 8px;
	padding: 16px;
	border: 0;
	border-radius: var(--gsha-radius);
	background: var(--gsha-surface);
	box-shadow: 0 1px 2px rgba(55, 66, 89, 0.08), 0 4px 16px rgba(55, 66, 89, 0.06);
	color: var(--gsha-ink);
	font-family: inherit;
	box-sizing: border-box;
}

.gsha *,
.gsha *::before,
.gsha *::after { box-sizing: border-box; }

/* ---------- header ---------- */
.gsha__head { margin-bottom: 12px; }

.gsha__title {
	float: left; /* lets the legend sit inside the fieldset padding like normal text */
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.gsha__tz {
	clear: both;
	margin: 0;
	padding-top: 2px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--gsha-ink-soft);
}

.gsha__status {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--gsha-ink-soft);
}

.gsha--loading .gsha__status::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	vertical-align: -1px;
	border: 2px solid var(--gsha-line);
	border-top-color: var(--gsha-ink);
	border-radius: 50%;
	animation: gsha-spin 0.8s linear infinite;
}

@keyframes gsha-spin { to { transform: rotate(360deg); } }

/* ---------- day strip ---------- */
.gsha__daybar {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gsha__daybar[hidden] { display: none; }

.gsha__days {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
	padding: 2px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.gsha__days::-webkit-scrollbar { display: none; }

.gsha__nav {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--gsha-ink);
	cursor: pointer;
}

.gsha__nav:hover:not(:disabled) { background: var(--gsha-hover); }
.gsha__nav:disabled { opacity: 0.25; cursor: default; }
.gsha__daybar--static .gsha__nav { display: none; }

/* ---------- shared chip styles ---------- */
.gsha__day,
.gsha__time,
.gsha__more {
	appearance: none;
	margin: 0;
	border: 1px solid var(--gsha-line);
	border-radius: var(--gsha-radius);
	background: var(--gsha-surface);
	color: var(--gsha-ink);
	font: inherit;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.gsha__day:hover,
.gsha__time:hover,
.gsha__more:hover {
	border-color: var(--gsha-ink);
	background: var(--gsha-hover);
	color: var(--gsha-ink);
}

.gsha__day:focus-visible,
.gsha__time:focus-visible,
.gsha__more:focus-visible,
.gsha__nav:focus-visible {
	outline: 2px solid var(--gsha-focus);
	outline-offset: 2px;
}

.gsha__day[aria-pressed="true"],
.gsha__time[aria-pressed="true"] {
	border-color: var(--gsha-ink);
	background: var(--gsha-ink);
	color: #fff;
}

/* ---------- day chip ---------- */
.gsha__day {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 58px;
	padding: 8px 4px;
	scroll-snap-align: start;
}

.gsha__weekday,
.gsha__month {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.gsha__daynum {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

.gsha__day[aria-pressed="true"] .gsha__weekday,
.gsha__day[aria-pressed="true"] .gsha__month { opacity: 0.85; }

/* ---------- times ---------- */
.gsha__daylabel {
	margin: 14px 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gsha-ink-soft);
}

.gsha__daylabel:empty { display: none; }

.gsha__times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
	gap: 8px;
}

.gsha__time {
	padding: 10px 4px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.gsha__more {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 8px;
	border-style: dashed;
	font-size: 13px;
	font-weight: 600;
}

.gsha__more[hidden] { display: none; }

/* ---------- summary / validation ---------- */
.gsha__summary {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: var(--gsha-radius);
	background: var(--gsha-hover);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.gsha__summary:empty { display: none; }

.gsha--chosen .gsha__summary::before {
	content: "✓ ";
	font-weight: 700;
}

.gsha--invalid {
	box-shadow: 0 0 0 2px var(--gsha-error);
}

.gsha--invalid .gsha__summary {
	background: rgba(198, 40, 40, 0.08);
	color: var(--gsha-error);
}

@media (prefers-reduced-motion: reduce) {
	.gsha__day, .gsha__time, .gsha__more { transition: none; }
	.gsha--loading .gsha__status::before { animation: none; }
	.gsha__days { scroll-behavior: auto; }
}
