* {
	box-sizing: border-box;
}

:root {
	--ink: #182333;
	--purple: #6f3cc3;
	--purple-dark: #53249f;
	--purple-soft: #f1ebfb;
	--orange: #ff7a18;
	--orange-dark: #e96505;
	--canvas: #f1f4f8;
	--line: #dce2ea;
	--muted: #657181;
	--success: #167a55;
	--surface-soft: #f8fafc;
}

html {
	background: var(--canvas);
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font: 16px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
	font: inherit;
}

.scheduler-shell {
	width: min(1080px, calc(100% - 32px));
	min-height: 620px;
	margin: 28px auto;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(31, 43, 58, .11);
}

.scheduler-brand {
	display: flex;
	height: 64px;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	border-bottom: 1px solid var(--line);
	background: #fff;
	font-size: 19px;
}

.scheduler-brand span {
	color: var(--purple);
}

.scheduler-preview-badge,
.scheduler-duration {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--purple-soft);
	color: var(--purple-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.scheduler-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
	min-height: 520px;
}

.scheduler-calendar-pane {
	padding: 32px 38px 36px;
	border-right: 1px solid var(--line);
}

.scheduler-detail-pane {
	min-width: 0;
	padding: 34px;
	background: var(--surface-soft);
}

.scheduler-host {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.scheduler-host > div strong,
.scheduler-host > div span {
	display: block;
}

.scheduler-host > div strong {
	font-size: 15px;
}

.scheduler-host > div span {
	margin-top: 2px;
	color: var(--muted);
	font-size: 13px;
}

.scheduler-avatar {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 50%;
	object-fit: cover;
}

.scheduler-avatar-fallback {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--purple), var(--orange));
	color: #fff;
	font-size: 18px;
	font-weight: 900;
}

.scheduler-calendar-pane h1 {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.18;
	letter-spacing: -.02em;
}

.scheduler-description,
.scheduler-meta,
.scheduler-help {
	color: var(--muted);
}

.scheduler-description {
	max-width: 620px;
	margin: 0 0 8px;
}

.scheduler-meta {
	margin: 0 0 26px;
	font-size: 14px;
	font-weight: 650;
}

.scheduler-month-header {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.scheduler-month-header strong {
	text-align: center;
	font-size: 16px;
}

.scheduler-month-header button {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 21px;
	cursor: pointer;
}

.scheduler-month-header button:hover {
	border-color: #bca8dc;
	background: var(--purple-soft);
}

.scheduler-weekdays,
.scheduler-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	text-align: center;
}

.scheduler-weekdays span {
	padding: 8px 0 6px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
}

.scheduler-day {
	position: relative;
	width: 44px;
	height: 44px;
	justify-self: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #a7afb9;
	font-weight: 700;
}

.scheduler-day.available {
	color: var(--ink);
	cursor: pointer;
}

.scheduler-day.available:hover {
	background: var(--purple-soft);
	color: var(--purple-dark);
}

.scheduler-day.available::after {
	content: "";
	position: absolute;
	bottom: 5px;
	left: calc(50% - 2px);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--purple);
}

.scheduler-day.selected {
	background: var(--purple);
	color: #fff;
	box-shadow: 0 5px 14px rgba(111, 60, 195, .28);
}

.scheduler-day.selected::after {
	background: #fff;
}

.scheduler-detail-pane h2 {
	margin: 12px 0 6px;
	font-size: 22px;
	line-height: 1.25;
}

.scheduler-help {
	margin-top: 0;
}

.scheduler-timezone {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin: 22px 0;
	font-size: 13px;
	font-weight: 800;
}

.scheduler-timezone select {
	min-width: 0;
	width: 100%;
	padding: 10px 34px 10px 11px;
	border: 1px solid #c5ced8;
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
}

.scheduler-slots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-height: 342px;
	overflow: auto;
	padding: 2px;
}

.scheduler-slot {
	min-height: 48px;
	padding: 8px;
	border: 1px solid #9b75df;
	border-radius: 9px;
	background: #fff;
	color: var(--purple-dark);
	font-weight: 800;
	cursor: pointer;
}

.scheduler-slot:hover {
	border-color: var(--purple-dark);
	background: var(--purple-soft);
}

.scheduler-form label {
	display: block;
	margin: 0 0 14px;
	color: #334152;
	font-size: 13px;
	font-weight: 800;
}

.scheduler-form input {
	display: block;
	width: 100%;
	min-height: 46px;
	margin-top: 6px;
	padding: 11px 12px;
	border: 1px solid #b8c2ce;
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
}

.scheduler-summary {
	margin: 13px 0 20px;
	padding: 13px 14px;
	border: 1px solid #ddd2ef;
	border-radius: 10px;
	background: var(--purple-soft);
	color: #4f327b;
	font-size: 14px;
	font-weight: 700;
}

.scheduler-link {
	min-height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--purple-dark);
	font-weight: 750;
	cursor: pointer;
}

.scheduler-primary {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 13px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--orange);
	color: #241508;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 7px 18px rgba(255, 122, 24, .22);
	cursor: pointer;
}

.scheduler-primary:hover {
	background: var(--orange-dark);
	color: #fff;
}

.scheduler-form .scheduler-primary {
	width: 100%;
}

.scheduler-primary:disabled {
	opacity: .55;
	cursor: wait;
}

.scheduler-status.error {
	margin-bottom: 15px;
	padding: 12px 13px;
	border: 1px solid #e0aaaa;
	border-radius: 9px;
	background: #fff1f1;
	color: #8c1d1d;
}

.scheduler-confirmation {
	padding-top: 26px;
	text-align: center;
}

.scheduler-check {
	display: grid;
	width: 68px;
	height: 68px;
	place-items: center;
	margin: auto;
	border-radius: 50%;
	background: #e3f7ef;
	color: var(--success);
	font-size: 18px;
	font-weight: 900;
}

.scheduler-confirmation dl {
	max-width: 390px;
	margin: 22px auto;
	text-align: left;
}

.scheduler-confirmation dt {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.scheduler-confirmation dd {
	margin: 2px 0 13px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
}

.scheduler-shell footer {
	padding: 17px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
	text-align: center;
}

.scheduler-unavailable {
	max-width: 560px;
	margin: 80px auto;
	padding: 36px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.scheduler-preview {
	background: #e8eaf0;
}

.scheduler-preview .scheduler-shell {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.scheduler-day:focus,
.scheduler-slot:focus,
.scheduler-primary:focus,
.scheduler-link:focus,
input:focus,
select:focus,
button:focus {
	outline: 3px solid rgba(111, 60, 195, .35);
	outline-offset: 2px;
}

@media (max-width: 899px) {
	html,
	body {
		background: #fff;
	}

	.scheduler-shell {
		width: 100%;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.scheduler-grid {
		display: block;
	}

	.scheduler-calendar-pane {
		padding: 24px 22px 28px;
		border-right: 0;
		border-bottom: 8px solid var(--canvas);
	}

	.scheduler-detail-pane {
		padding: 26px 22px 32px;
		background: #fff;
	}

	.scheduler-brand {
		height: 58px;
		padding: 0 22px;
	}

	.scheduler-slots {
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 575px) {
	.scheduler-brand {
		height: 54px;
		padding: 0 16px;
		font-size: 17px;
	}

	.scheduler-calendar-pane {
		padding: 20px 16px 24px;
	}

	.scheduler-detail-pane {
		padding: 24px 16px 30px;
	}

	.scheduler-host {
		margin-bottom: 16px;
	}

	.scheduler-avatar {
		width: 46px;
		height: 46px;
		flex-basis: 46px;
	}

	.scheduler-calendar-pane h1 {
		font-size: 24px;
	}

	.scheduler-description {
		font-size: 14px;
	}

	.scheduler-meta {
		margin-bottom: 20px;
		font-size: 13px;
	}

	.scheduler-weekdays,
	.scheduler-days {
		gap: 1px;
	}

	.scheduler-day {
		width: 42px;
		height: 42px;
	}

	.scheduler-timezone {
		grid-template-columns: 1fr;
		gap: 7px;
	}

	.scheduler-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.scheduler-slot {
		min-height: 48px;
	}

	.scheduler-confirmation {
		padding-top: 12px;
	}

	.scheduler-confirmation .scheduler-primary {
		width: 100%;
	}

	.scheduler-unavailable {
		margin: 32px 16px;
		padding: 28px 20px;
	}
}

@media (max-width: 359px) {
	.scheduler-day {
		width: 38px;
		height: 38px;
	}

	.scheduler-slots {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* Tenant opt-in presentation. The default scheduler above remains unchanged. */
.scheduler-verasol { --ink:#12344b;--purple:#249feb;--purple-dark:#125c88;--purple-soft:#eaf6fe;--canvas:#f4f7fa;--line:#e1e9ef;--muted:#718493;--surface-soft:#fff; }
.scheduler-verasol .scheduler-shell { width:min(860px,calc(100% - 24px));min-height:0;margin:12px auto;border:0;border-radius:16px;box-shadow:0 12px 34px rgba(23,60,80,.10); }
.scheduler-verasol .scheduler-grid { grid-template-columns:minmax(0,1fr) 205px;min-height:0; }
.scheduler-verasol .scheduler-calendar-pane { padding:24px 28px; }
.scheduler-verasol .scheduler-detail-pane { padding:24px;border-left:1px solid #edf1f4; }
.scheduler-verasol .scheduler-host { margin-bottom:16px; }
.scheduler-verasol .scheduler-avatar { width:46px;height:46px;flex-basis:46px; }
.scheduler-verasol .scheduler-avatar-fallback { background:#e6f4fc;color:#1077b8; }
.scheduler-verasol .scheduler-calendar-pane h1 { font-size:26px; }
.scheduler-verasol .scheduler-description { margin-bottom:22px;font-size:14px; }
.scheduler-verasol .scheduler-duration { background:transparent;padding:0;color:#758896;font-size:12px; }
.scheduler-verasol .scheduler-detail-pane h2 { font-size:14px;margin:7px 0; }
.scheduler-verasol .scheduler-help { font-size:12px; }
.scheduler-verasol .scheduler-day { width:39px;height:39px;border-radius:10px; }
.scheduler-verasol .scheduler-day.available { background:#f2f8fc; }
.scheduler-verasol .scheduler-day.selected { background:#249feb;color:#fff; }
.scheduler-verasol .scheduler-slots { grid-template-columns:1fr;max-height:none;overflow:visible;gap:8px; }
.scheduler-verasol .scheduler-slot { min-height:42px;border-color:#cbdfe9;color:#167aaf;font-size:13px; }
.scheduler-verasol .scheduler-slot.selected { border:2px solid #249feb;background:#eaf6fe;color:#125c88; }
.scheduler-slot-continue { border-top:1px solid #edf1f4;margin-top:20px;padding-top:18px;display:grid;gap:12px; }
.scheduler-slot-continue[hidden] { display:none; }
.scheduler-verasol .scheduler-summary { font-size:13px;line-height:1.6; }
.scheduler-verasol .scheduler-primary { background:#269feb; }
@media(max-width:700px){.scheduler-verasol .scheduler-shell{width:calc(100% - 16px);margin:8px}.scheduler-verasol .scheduler-grid{grid-template-columns:1fr}.scheduler-verasol .scheduler-calendar-pane{padding:20px}.scheduler-verasol .scheduler-detail-pane{border-left:0;border-top:1px solid #edf1f4;padding:20px}.scheduler-verasol .scheduler-slots{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}}

.scheduler-verasol .scheduler-day { max-width:100%; }
.scheduler-verasol .scheduler-form input[type=radio] { display:inline-block; width:auto; min-height:0; margin-right:8px; }
