[data-gds-search-wrap] {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

[data-gds-search-row] {
	display: flex;
	align-items: center;
	gap: 10px;
}

[data-gds-search-row] input {
	font-size: 16px;
	border-radius: 999px !important;
	height: 40px;
	padding: 0 14px !important;
	border: 1px solid var(--global-palette6) !important;
	background-color: var(--gds-search-input-bg, #fefefe) !important;
	color: var(--global-palette3) !important;
}

[data-gds-search-row] input::placeholder {
	color: var(--global-palette5);
}
[data-gds-search-row] input:hover,
[data-gds-search-row] input:focus {
	border: 1px solid var(--global-palette5) !important;
}

[data-gds-search] {
	flex: 1;
	min-width: 0;
}

[data-gds-spinner] {
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 999px;
	animation: gdsSpin 0.8s linear infinite;
	opacity: 0.65;
}

[data-gds-spinner][data-hidden="1"] {
	display: none;
}

#archive-container[data-gds-loading="1"] {
	opacity: 0.55;
	pointer-events: none;
}

[data-gds-filters-row] {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

[data-gds-filter] {
	position: relative;
}

[data-gds-filter] summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}

[data-gds-filter] summary::-webkit-details-marker {
	display: none;
}

[data-gds-filter-summary] {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--global-palette6);
	border-radius: 999px;
	background: var(--gds-search-input-bg, #fefefe);
	font-size: 16px;
	line-height: 1;
}
[data-gds-filter-summary]:hover {
	background: color-mix(
		in srgb,
		var(--gds-search-input-bg, #fefefe),
		var(--global-palette3) 10%
	);
}

[data-gds-filter-count] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 999px;
	background: var(--global-palette3);
	color: var(--global-palette9);
	font-size: 14px;
	line-height: 1;
}

[data-gds-filter-panel] {
	position: absolute;
	z-index: 50;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	max-height: 320px;
	overflow: auto;
	background: var(--global-palette9);
	border: 1px solid
		color-mix(in srgb, var(--global-palette3) 12%, transparent);
	border-radius: 12px;
	padding: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	font-size: 14px;
}

[data-gds-filter-opt] {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
}

[data-gds-filter-opt]:hover {
	background: color-mix(in srgb, var(--global-palette3) 10%, transparent);
}

[data-gds-pills] {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

[data-gds-pill] {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 32px;
	padding: 0 0 0 12px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	border: 1px solid var(--gds-search-pill-border);
}

[data-gds-pill] button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 2px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	opacity: 0.9;
}

[data-gds-pill] button:hover {
	opacity: 1;
	background: transparent;
}

[data-gds-clear],
[data-gds-clear]:hover {
	font-size: 14px;
	color: var(--global-palette3);
	text-decoration: underline;
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 0;
}

[data-gds-pagination-wrap] {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 0;
}

[data-gds-pagination-wrap] .navigation.pagination {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 0;
	margin-bottom: 12px;
}

[data-gds-more] {
	margin-top: 40px;
	margin-bottom: 40px;
}

[data-gds-more][disabled] {
	opacity: 0.5;
	cursor: default;
}

[data-gds-result-meta] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 6px;
}

[data-gds-result-count] {
	opacity: 0.75;
	font-size: 14px;
}

[data-gds-empty] {
	display: none;
	padding: 18px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	margin-top: 12px;
}

[data-gds-empty][data-show="1"] {
	display: block;
}

[data-gds-sort] {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

[data-gds-sort] label {
	position: relative;
	width: 16px;
	height: 16px;
	overflow: hidden;
	white-space: nowrap;
	text-indent: -9999px;
}

[data-gds-sort] label::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--global-palette3);

	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 12h12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 12h12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: 16px 16px;
	mask-size: 16px 16px;
}

[data-gds-sort] select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 40px;
	margin-left: -44px;
	padding: 0 44px 0 44px;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	border-radius: 999px;
	background-color: transparent;
	border: 0;
	/*
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
  */
}

[data-gds-sort] label::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--global-palette3);

	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: right 24px center;
	mask-position: right 14px center;

	-webkit-mask-size: 18px 18px;
	mask-size: 18px 18px;
}

[data-gds-sort] select:hover {
	background-color: var(--gds-global-dark-gray, #fff);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

[data-gds-sort] select:focus {
	background-color: transparent;
	box-shadow: none;
	border: 0;
}

[data-gds-sort] select:focus:hover {
	background-color: var(--gds-global-dark-gray, #fff);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

@keyframes gdsSpin {
	to {
		transform: rotate(360deg);
	}
}
