.rhpfair-event-search-filter {
	padding: 1rem;
	border: 1px solid #d9dee5;
	border-radius: 0.35rem;
	background: #fff;
}

.rhpfair-filter-title {
	margin: 0 0 1rem;
}

.rhpfair-filter-fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.rhpfair-filter-toggle {
	display: none;
}

.rhpfair-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.rhpfair-exclude-all-day-field {

    flex-direction: row;
    align-items: center;
}

.rhpfair-exclude-all-day-field .rhpfair-filter-control {
    width: auto;
    min-height: auto;
}

.rhpfair-filter-label {
	font-weight: 600;
}

.rhpfair-filter-control {
	width: 100%;
	min-height: 2.5rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid #b8c0ca;
	border-radius: 0.25rem;
	background: #fff;
}

.rhpfair-filter-control:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.rhpfair-filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1rem;
}

.rhpfair-filter-now-button,
.rhpfair-event-now-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	margin-top: 1rem;
	padding: 0.7rem 1rem;
	border: 2px solid #2271b1;
	border-radius: 0.35rem;
	background: #fff;
	color: #2271b1;
	cursor: pointer;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.rhpfair-filter-now-button.is-active {
	background: #2271b1;
	color: #fff;
}

.rhpfair-filter-now-button:focus,
.rhpfair-event-now-button:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.rhpfair-event-now-button {
	width: fit-content;
	margin-bottom: 1rem;
}

.rhpfair-filter-apply,
.rhpfair-filter-reset {
	padding: 0.55rem 1rem;
	border: 1px solid transparent;
	border-radius: 0.25rem;
	cursor: pointer;
	font-weight: 600;
}

.rhpfair-filter-apply {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
}

.rhpfair-filter-reset {
	border-color: #b8c0ca;
	background: #fff;
	color: #263238;
}

.rhpfair-event-listing {
	width: 100%;
}

.rhpfair-all-day {
    font-weight: 600;
}

.rhpfair-event-summary {
	margin-bottom: 1rem;
	font-weight: 600;
}

.rhpfair-event-date-group {
	margin-bottom: 1.5rem;
}

.rhpfair-event-date {
	margin: 0 0 0.65rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid #2271b1;
}

.rhpfair-event-rows {
	display: grid;
	gap: 0.65rem;
}

.rhpfair-event-row {
	padding: 0.9rem 1rem;
	border: 1px solid #d9dee5;
	border-radius: 0.35rem;
	background: #fff;
}

.rhpfair-event-title {
	font-size: 1.1rem;
	font-weight: 700;
}

.rhpfair-event-title a {
	color: inherit;
}

.rhpfair-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin-top: 0.35rem;
	color: #59636e;
	font-size: 0.95rem;
}

.rhpfair-event-description {
	margin-top: 0.65rem;
}

.rhpfair-event-empty {
	padding: 1rem;
	border: 1px dashed #b8c0ca;
	color: #59636e;
}

.rhpfair-event-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1.5rem;
	align-items: center;
}

.rhpfair-event-page {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.55rem;
	border: 1px solid #b8c0ca;
	border-radius: 0.25rem;
	color: inherit;
	text-decoration: none;
}

.rhpfair-event-page[aria-current="page"] {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
}

@media (max-width: 767px) {
	.rhpfair-filter-toggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		padding: 0.7rem 0;
		border: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
		font-size: 1rem;
		font-weight: 700;
		text-align: left;
	}

	.rhpfair-filter-toggle::after {
		content: '+';
		font-size: 1.35rem;
		line-height: 1;
	}

	.rhpfair-event-search-filter.rhpfair-filters-open .rhpfair-filter-toggle::after {
		content: '−';
	}

	.rhpfair-filter-fields {
		display: none;
		grid-template-columns: 1fr;
	}

	.rhpfair-event-search-filter.rhpfair-filters-open .rhpfair-filter-fields {
		display: grid;
	}

	.rhpfair-filter-actions {
		flex-direction: column;
	}

	.rhpfair-filter-apply,
	.rhpfair-filter-reset {
		width: 100%;
	}

	.rhpfair-event-row {
		padding: 0.75rem;
	}
}

.rhpfair-venue-buttons {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	width: 100%;
}

.rhpfair-venue-buttons .rhpfair-venue-button {
	width: 100%;
	margin-top: 0;
	margin-bottom: 0;
	box-sizing: border-box;
}

.rhpfair-venue-buttons--empty {
	padding: 1rem;
	border: 1px dashed #b8c0ca;
	color: #59636e;
}

@media (max-width: 767px) {
	.rhpfair-venue-buttons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}