.cec-calendar {
	--cec-event-color: #2271b1;
}

.cec-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5em;
}

.cec-month-title {
	margin: 0;
	font-size: 1.25em;
}

.cec-month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: #ddd;
	border: 1px solid #ddd;
}

.cec-weekday {
	background: #f6f7f7;
	padding: 0.5em;
	font-weight: 600;
	text-align: center;
	font-size: 0.85em;
}

.cec-day {
	background: #fff;
	min-height: 6em;
	padding: 0.25em;
	display: flex;
	flex-direction: column;
	gap: 0.15em;
}

.cec-day-outside-month {
	background: #fafafa;
	color: #999;
}

.cec-day-today .cec-day-number {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	border-radius: 50%;
	min-width: 1.5em;
	text-align: center;
}

.cec-day-number {
	font-size: 0.85em;
	margin-bottom: 0.15em;
}

.cec-event {
	display: block;
	font-size: 0.8em;
	line-height: 1.3;
	padding: 0.1em 0.3em;
	border-left: 3px solid var(--cec-event-color);
	background: color-mix(in srgb, var(--cec-event-color) 12%, #fff);
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cec-event:hover {
	text-decoration: underline;
}

.cec-event-time {
	font-weight: 600;
}

.cec-event-cancelled .cec-event-title {
	text-decoration: line-through;
}

.cec-event-cancelled-badge {
	font-weight: 600;
	color: #b32d2e;
	text-decoration: none;
}

.cec-event-overridden-badge {
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
}
