.wpd-events-list {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.wpd-event-card {
	border: 1px solid #e0e0e0;
	border-color: color-mix( in srgb, currentColor 12%, transparent );
	border-radius: 6px;
	padding: 0.75em 1em;
}

.wpd-event-card.wpd-cancelled {
	opacity: 0.6;
}

.wpd-cancelled-badge {
	color: #a00;
	font-weight: bold;
	margin: 0.25em 0;
}

.wpd-event-date {
	font-size: 0.85em;
	opacity: 0.7;
}

.wpd-event-title {
	margin: 0.2em 0;
}

.wpd-calendar-table {
	width: 100%;
	border-collapse: collapse;
}

.wpd-calendar-table th,
.wpd-calendar-table td {
	border: 1px solid #e0e0e0;
	border-color: color-mix( in srgb, currentColor 12%, transparent );
	vertical-align: top;
	padding: 4px;
	width: 14.28%;
	height: 90px;
}

.wpd-calendar-table td.wpd-has-events {
	background: #f7fbff;
	background: color-mix( in srgb, var( --wp--preset--color--primary, #2271b1 ) 6%, transparent );
}

.wpd-day-number {
	font-weight: bold;
	font-size: 0.85em;
}

.wpd-day-events {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	font-size: 0.8em;
}

.wpd-day-event {
	display: block;
	border-radius: 3px;
	padding: 1px 4px;
	margin-bottom: 1px;
}

.wpd-day-event-ball {
	background: color-mix( in srgb, #d9534f 18%, transparent );
}

.wpd-day-event-workshop {
	background: color-mix( in srgb, #5bc0de 18%, transparent );
}

.wpd-day-event-festival {
	background: color-mix( in srgb, #f1c40f 22%, transparent );
}

.wpd-day-event-other {
	background: color-mix( in srgb, currentColor 6%, transparent );
}

.wpd-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0.5em 0 1em;
	font-size: 0.85em;
}

.wpd-calendar-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.wpd-locations {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
}

.wpd-locations-map {
	flex: 2 1 480px;
	min-height: 400px;
	border-radius: 6px;
}

.wpd-locations-list {
	flex: 1 1 240px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpd-location-item {
	border-bottom: 1px solid #eee;
	border-bottom-color: color-mix( in srgb, currentColor 12%, transparent );
	padding: 0.5em 0;
}

.wpd-location-meta {
	font-size: 0.85em;
	opacity: 0.7;
}

.wpd-single-location .wpd-meta-row {
	margin: 0.4em 0;
}

.wpd-event-info {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5em;
	margin: 1em 0;
}

.wpd-event-table {
	flex: 2 1 320px;
	border-collapse: collapse;
}

.wpd-event-table th,
.wpd-event-table td {
	text-align: left;
	vertical-align: top;
	padding: 0.3em 0.75em 0.3em 0;
	font-weight: normal;
}

.wpd-event-table th {
	white-space: nowrap;
	font-weight: bold;
}

.wpd-event-map {
	flex: 1 1 220px;
	max-width: 320px;
	min-height: 220px;
	border-radius: 6px;
}

.wpd-single-location,
.wpd-single-event,
.wpd-locations-archive,
.wpd-events-archive {
	max-width: var( --wp--style--global--content-size, 800px );
	margin-inline: auto;
	padding-inline: 1rem;
}

.wpd-single-event .wpd-booking-cta {
	display: inline-block;
	margin-top: 1em;
}

.wpd-single-location .wpd-single-map {
	min-height: 320px;
	margin: 1em 0;
	border-radius: 6px;
}

.wpd-view-toggle,
.wpd-month-nav {
	margin: 0.5em 0 1em;
}

.wpd-view-toggle a.wpd-active {
	font-weight: bold;
	text-decoration: none;
}

.wpd-mini-calendar {
	max-width: 260px;
	font-size: 0.8em;
}

.wpd-mini-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.4em;
	font-weight: bold;
}

.wpd-mini-nav a {
	text-decoration: none;
	padding: 0 0.4em;
}

.wpd-mini-grid {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 2px;
}

.wpd-mini-dow {
	text-align: center;
	font-weight: bold;
	opacity: 0.7;
	padding-bottom: 2px;
}

.wpd-mini-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 28px;
	padding: 2px 0;
	border-radius: 3px;
}

.wpd-mini-day:not( .wpd-mini-empty ) {
	background: color-mix( in srgb, currentColor 5%, transparent );
}

.wpd-mini-daynum {
	line-height: 1;
}

.wpd-mini-markers {
	display: flex;
	gap: 2px;
	margin-top: 2px;
}

.wpd-mini-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.wpd-mini-dot-ball {
	background: #d9534f;
}

.wpd-mini-dot-workshop {
	background: #5bc0de;
}

.wpd-mini-dot-festival {
	background: #f1c40f;
}

.wpd-mini-dot-other {
	background: #999;
}

.wpd-events-simple {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpd-events-simple .wpd-event-simple {
	padding: 4px 0;
	border-bottom: 1px solid #eee;
	line-height: 1.5;
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	column-gap: 1em;
	align-items: baseline;
}

.wpd-events-simple .wpd-event-simple-date {
	font-weight: bold;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wpd-events-simple .wpd-event-simple-sep,
.wpd-events-simple .wpd-event-simple-at {
	display: none;
}

.wpd-events-simple-with-types .wpd-event-simple {
	grid-template-columns: max-content max-content 1fr max-content;
}

.wpd-events-simple .wpd-event-simple-types {
	display: inline-flex;
	gap: 2px;
	align-items: center;
}

.wpd-events-simple .wpd-event-simple-venue {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.wpd-events-simple .wpd-event-simple,
	.wpd-events-simple-with-types .wpd-event-simple {
		grid-template-columns: 1fr;
		row-gap: 2px;
	}
	.wpd-events-simple .wpd-event-simple-venue {
		white-space: normal;
	}
}

.wpd-events-simple .wpd-cancelled {
	text-decoration: line-through;
	opacity: 0.6;
}

.wpd-events-simple .wpd-event-simple-cancelled {
	text-decoration: none;
	font-weight: bold;
	color: #d9534f;
}
