.csgs-results-sort {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#resultsDetails {
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hidden {
	display: none !important;
}

/* Results page styles */

.csgs-facet-heading {
	font-weight: bold;
	margin-right: 1em;
}

.csgs-facet-link {
	font-weight: bold;
	padding: 0 1em;
}

.csgs-search-result-item {
	display: block;
	float: left;
	clear: both;
	position: relative;
	width: 100%;
}

.csgs-result-thumbnail {
	float: left;
	left: 0;
	position: absolute;
	width: 70px;
	z-index: 1;
}

.csgs-result-title {
	margin-bottom: 0.5em;
}

.csgs-result-title > a {
	color: #333;
	font-weight: bold;
}

.csgs-pages {
	clear: both;
	display: block;
	font-weight: bold;
}

.csgs-numbers {
	float: none;
	display: inline-block;
	width: 90%;
}

.csgs-facet-filter > li,
.csgs-numbers > li {
	display: inline-block;
}

.csgs-html-snippet br {
	display: none;
}

.csgs-html-formatted-url {
	color: #006621;
}
.selected a {
	font-weight: bold;
}

.csgs-numbers > li {
	float: left;
	text-align: center;
	width: 10%;
}

.csgs-prev,
.csgs-next {
	display: inline-block;
	float: none;
	width: 5%;
}

.csgs-prev {
	text-align: left;
}

.csgs-next {
	text-align: right;
}

.csgs-page {
	padding: 0.3em 20%;
	margin: auto 0;
}

.csgs-page.current {
	background-color: #f0f0f0;
	border-radius: 3px;
	font-weight: bold;
}

.csgs-facet-filter {
	float: right;
	list-style-type: none;
	margin-top: 0.6em;
	margin-bottom: 0.6em;
	padding: 0;
}

.csgs-facet-filter > li > a {
	background-color: #eee;
	font-weight: bold;
	cursor: pointer;
}

.csgs-facet-filter > li.selected > a {
	background-color: #555;
	color: #fff;
}

.csgs-facet-filter,
.csgs-pagination {
	list-style: none;
	display: flex;
	justify-content: center;
}

.csgs-facet-filter > li > a,
.csgs-facet-filter > li > span,
.csgs-pagination > li > a,
.csgs-pagination > li > span {
	display: inline-block;
	padding: 5px;
	margin: 5px;
}

.csgs-result-list {
	float: left;
	padding: 0;
	width: 100%;
	list-style: none;
}

/* .csgs-results-info {
	margin-bottom: 1.5em;
} */

/* Overlay */
.csgs-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	overflow: auto;
}

.csgs-overlay.active {
	display: flex;
}

.csgs-overlay-content {
	background-color: white;
	padding: 2rem;
	border-radius: 8px;
	position: relative;
	width: 90%;
	min-height: 90vh;
	max-height: 90vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #888 #f1f1f1;
}

@media screen and (min-width: 1200px) {
	.csgs-overlay-content {
		width: 1000px;
	}
}

.csgs-overlay-content::-webkit-scrollbar {
	width: 12px;
}

.csgs-overlay-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 8px;
}

.csgs-overlay-content::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 8px;
	border: 3px solid #f1f1f1;
}

.csgs-overlay-content::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.csgs-close-button {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
}

.fade-in {
	animation: fadeIn 0.3s ease-in;
}

.fade-out {
	animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* spinner */
.csgs-loading {
	text-align: center;
	padding: 2rem;
}

.csgs-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
