/* Approved Bosun #4046 calendar mock-up, page 4. Booking controls belong to ES. */
* {
	box-sizing: border-box;
}
body.booking-page {
	margin: 0;
	background: #f5f6f8;
	color: #0e1b2d;
	font:
		14px / 1.45 system-ui,
		sans-serif;
}
.booking-header {
	height: 70px;
	padding: 0 48px;
	border-bottom: 1px solid #dfe4ec;
	background: #fff;
	display: flex;
	align-items: center;
}
.booking-header a {
	display: flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
.booking-mark {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: #0d294b;
	color: #fff;
	font-size: 14px;
}
.booking-main {
	max-width: 1088px;
	margin: 48px auto;
}
.booking-card {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	min-height: 640px;
	border: 1px solid #dfe4ec;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.booking-about {
	padding: 26px 27px;
	border-right: 1px solid #dfe4ec;
}
.booking-about h1 {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.6px;
}
.booking-about p {
	margin: 0;
	color: #52627a;
}
.booking-facts {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}
.booking-facts li {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
}
.booking-facts svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #52627a;
	stroke-width: 1.4;
}
.booking-service {
	min-width: 0;
	padding: 26px 27px;
}
.booking-service iframe {
	max-width: 100%;
}
.booking-caption {
	margin: 16px 0;
	text-align: center;
	color: #52627a;
	font-size: 12px;
}
.booking-page .booking-service .booking-picker {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 24px 38px;
}
.booking-page .booking-service .booking-picker h2 {
	font-size: 14px;
	margin: 0 0 16px;
}
.booking-page .booking-service .booking-picker p {
	color: #52627a;
	font-size: 12px;
	margin: 0 0 16px;
}
.booking-page .booking-service .booking-picker button,
.booking-page .booking-service .booking-picker input,
.booking-page .booking-service .booking-picker select {
	font: inherit;
	border: 1px solid #8893a5;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	min-height: 40px;
}
.booking-page .booking-service .booking-picker button {
	cursor: pointer;
	color: #0063a3;
}
.booking-page .booking-service .booking-picker button:disabled {
	cursor: default;
	color: #98a2b3;
}
.booking-page .booking-service .booking-picker :focus-visible {
	outline: 3px solid #0063a3;
	outline-offset: 2px;
}
.booking-page .booking-service .booking-month {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 16px 0 12px;
	font-weight: 600;
}
.booking-page .booking-service .booking-month button {
	border: 0;
	min-width: 32px;
	font-size: 24px;
	line-height: 1;
	min-height: 32px;
}
.booking-page .booking-service .booking-week,
.booking-page .booking-service .booking-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	text-align: center;
}
.booking-page .booking-service .booking-week {
	color: #52627a;
	font-size: 11px;
	margin-bottom: 10px;
}
.booking-page .booking-service .booking-days button {
	border: 0;
	background: #e7f1f7;
	min-width: 0;
	min-height: 36px;
	padding: 0;
}
.booking-page .booking-service .booking-days button:disabled {
	background: transparent;
}
.booking-page .booking-service .booking-days button[aria-pressed="true"] {
	background: #0063a3;
	color: #fff;
	font-weight: 600;
}
.booking-page .booking-service .booking-zone {
	margin-top: 16px;
	color: #52627a;
	font-size: 12px;
}
.booking-page .booking-service .booking-time-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 0 16px;
}
.booking-page .booking-service .booking-time-grid button[aria-pressed="true"] {
	border: 2px solid #0063a3;
	background: #e7f1f7;
	color: #0d294b;
	font-weight: 600;
}
.booking-page .booking-service .booking-details {
	grid-column: 1 / -1;
	border-top: 1px solid #dfe4ec;
	padding-top: 16px;
}
.booking-page .booking-service .booking-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 16px 0 14px;
}
.booking-page .booking-service .booking-contact label {
	display: block;
	margin-bottom: 6px;
}
.booking-page .booking-service .booking-contact input {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
}
.booking-page .booking-service .booking-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.booking-page .booking-service .booking-actions p {
	margin: 0;
}
.booking-page .booking-service .booking-actions button {
	background: #f9c522;
	border-color: #f9c522;
	color: #0d294b;
	padding: 8px 20px;
	font-weight: 600;
}
/* Legacy service UI still works until ES adopts the supplied presentation template. */
.booking-service .cc-root.cc-root {
	max-width: none;
	padding: 0;
	margin: 0;
	font: inherit;
}
@media (max-width: 760px) {
	.booking-header {
		padding: 0 20px;
		height: 60px;
	}
	.booking-main {
		margin: 24px 16px;
	}
	.booking-card {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
	.booking-about {
		padding: 24px;
		border-right: 0;
		border-bottom: 1px solid #dfe4ec;
	}
	.booking-service {
		padding: 24px;
	}
	.booking-page .booking-service .booking-picker {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.booking-page .booking-service .booking-details {
		grid-column: 1;
	}
	.booking-page .booking-service .booking-contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.booking-page .booking-service .booking-actions {
		align-items: stretch;
		flex-direction: column;
	}
}

/* Loading spinner over a booking calendar until the widget has drawn (calendar.js). */
.calendar-frame-box {
	position: relative;
}
.calendar-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	padding-top: 160px;
	background: #ffffff;
	font-size: 14px;
	color: #64748b;
	/* Never in the way of a click: nothing here is a control. */
	pointer-events: none;
}
.calendar-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #dbe5f0;
	border-top-color: #0063a3;
	border-radius: 50%;
	animation: calendar-spin 0.8s linear infinite;
}
@keyframes calendar-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.calendar-spinner {
		animation-duration: 2.4s;
	}
}
