/* -----------------------------------------------------------------------------
   Groups Filters
   ----------------------------------------------------------------------------- */

.subnav-filters {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;

	/* Remove clearfix pseudo-elements from the filters wrapper. */
	&::before,
	&::after {
		content: none !important;
		display: none !important;
	}

	/* Grid/list icons are not in the design for groups directory. */
	& .grid-filters {
		display: none;
	}

	& .subnav-search {
		flex: 1 1 280px;
		max-width: 420px;
		margin-right: auto !important;

		& .dir-search {
			margin: 0;
		}

		& .bp-dir-search-form {
			position: relative;
			display: flex;
			align-items: center;
			width: 100%;
			margin: 0;

			&::before {
				display: none !important;
			}
		}

		& input[type="search"] {
			width: 100%;
			height: 40px;
			min-height: 40px;
			background: var(--color-background-body);
			border: 2px solid var(--color-border);
			border-radius: 3px;
			padding: 0.625rem 2.5rem 0.625rem 0.75rem !important;
		}

		& .nouveau-search-submit {
			position: absolute;
			top: 50%;
			right: 0.5rem;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 1.25rem;
			height: 1.25rem;
			padding: 0;
			margin: 0;
			background: transparent;
			border: 0;
			color: var(--color-bond-grey);
			transform: translateY(-50%);
			opacity: 1;

			&:hover {
				color: var(--color-bond-black);
			}
		}

		& .search-form_reset {
			display: none;
		}
	}

	& .component-filters {
		flex: 0 0 auto;
		margin: 0;

		& .last.filter {
			margin: 0;
		}

		& .select-wrap {
			position: relative;

			& select {
				-webkit-appearance: none;
				appearance: none;
				min-width: 170px;
				height: 40px;
				padding: 0 2rem 0 0.75rem;
				background-color: var(--color-bond-grey-light);
				background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23545246' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
				background-repeat: no-repeat;
				background-position: right 0.75rem center;
				background-size: 12px 8px;
				border: 1px solid var(--color-border);
				border-radius: 3px;
				color: var(--color-bond-black);
			}

			& .select-arrow {
				display: none;
			}
		}
	}
}

form.bp-dir-search-form button[type="submit"] {
	opacity: 1;
}