* { box-sizing: border-box; }

body {
	margin: 0;
	background: #fff;
	color: #333;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, h1, h2, p { margin: 0; font: inherit; }

.embed { padding: 12px; }

.embed__header h1 {
	color: var(--accent, #830025);
	font-size: 16px;
	font-weight: 650;
}

.embed__header p {
	margin-top: 2px;
	color: #616161;
	font-size: 13px;
}

.embed__notice {
	margin-top: 10px;
	color: #616161;
	font-size: 13px;
}

.embed-empty { padding: 16px 12px; color: #616161; }

.embed__filters {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 13px;
}

.embed__filters select {
	padding: 4px 8px;
	border: 1px solid #e4e4e4;
	border-radius: 0;
	background: #fff;
	color: #333;
	font: inherit;
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	color: #616161;
	font-size: 12px;
}

.legend li { display: flex; align-items: center; gap: 6px; }

.legend__swatch {
	width: 12px;
	height: 12px;
	border: 1px solid #e9e9e9;
	background: #fff;
}

.legend__swatch--available { background: #32B752; border-color: #32B752; }
.legend__swatch--unbooked { background: rgba(50, 184, 83, 0.3); border-color: transparent; }

.calendar {
	container-type: inline-size;
	display: grid;
	grid-template-columns: 1fr auto auto 1fr;
	column-gap: 8px;
	row-gap: 8px;
	align-items: center;
	margin-top: 12px;
}

.months { grid-row: 1; grid-column: 1 / -1; }
.cal-nav--prev { grid-row: 2; grid-column: 2; }
.cal-nav--next { grid-row: 2; grid-column: 3; }

.cal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent, #830025);
	cursor: pointer;
}

.cal-nav svg { width: 14px; height: 14px; }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.months {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.month {
	flex: 0 0 44%;
	min-width: 0;
	scroll-snap-align: start;
}

.month h2 {
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 650;
	text-align: center;
	text-transform: capitalize;
}

.month table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

.month th {
	padding: 0 0 4px;
	color: #616161;
	font-size: 10px;
	font-weight: 600;
	text-align: center;
}

.month td { padding: 2px; }

.day {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	border: 1px solid #e9e9e9;
	background: #fff;
	font-size: 11px;
}

.day--available { background: #32B752; border-color: #32B752; color: #fff; }
.day--unbooked { background: rgba(50, 184, 83, 0.3); }
.day--unavailable { color: #616161; text-decoration: line-through; }
.day--past { color: #c8c8c8; background: #fff; }

.embed__footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	color: #616161;
	font-size: 12px;
}

.embed__footer a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent, #830025);
	font-weight: 650;
	text-decoration: none;
}

.embed__footer img { width: 22px; height: 22px; }

@container (min-width: 640px) {
	.month { flex-basis: calc(50% - 4px); }

	.month h2 {
		margin-bottom: 6px;
		font-size: 15px;
	}

	.month th {
		padding-bottom: 6px;
		font-size: 12px;
	}

	.month td { padding: 3px; }

	.day {
		min-height: 36px;
		font-size: 14px;
	}
}

@container (min-width: 1000px) {
	.month td { padding: 4px; }

	.day {
		min-height: 44px;
		font-size: 15px;
	}
}

