.search-control {
	display: block;
	width: 100%;
	height: 2.25rem;
	margin: 0;
	padding: 0 0.75rem;
	border: 1px solid #bdbdbd;
	border-radius: 0.25rem;
	background-color: #FFF;
	color: #212529;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.search-control::placeholder {
	color: rgba(0, 0, 0, 0.55);
	opacity: 1;
}

.search-control::-webkit-search-cancel-button {
	-webkit-appearance: none;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 -0.25rem 0 0.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23757575' stroke-width='1.75' stroke-linecap='round' d='M4.5 4.5l7 7m0-7l-7 7'/%3E%3C/svg%3E") no-repeat center / 1rem;
	cursor: pointer;
}

.search-control:focus,
.search-control:focus-within {
	outline: 0;
	border-color: #f57c00;
	box-shadow: 0 0 0 1px #f57c00;
}

select.search-control {
	padding-right: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 0.9rem;
	text-overflow: ellipsis;
	cursor: pointer;
}

label.search-control {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: text;
}

label.search-control > span {
	flex: 0 0 auto;
	color: rgba(0, 0, 0, 0.55);
}

label.search-control > input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	outline: 0;
}

.search-field {
	position: relative;
	min-width: 0;
}

.search-suggest {
	position: absolute;
	z-index: 1050;
	top: calc(100% + 0.375rem);
	left: 0;
	right: 0;
	max-height: 60vh;
	margin: 0;
	padding: 0.375rem 0;
	overflow-y: auto;
	list-style: none;
	border: 1px solid #ddd;
	border-radius: 0.5rem;
	background-color: #FFF;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	color: #212529;
	text-align: left;
}

.search-suggest[hidden] {
	display: none;
}

.search-suggest-item {
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	cursor: pointer;
}

.search-suggest-item.active,
.search-suggest-item:hover {
	background-color: #f2f2f2;
}

/* Main search box: large field with its button attached */
.search-box {
	display: flex;
	max-width: 46rem;
	margin: 0 auto;
	border-radius: 0.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box > .search-field {
	flex: 1 1 auto;
}

.search-box .search-control {
	height: 3rem;
	padding-left: 2.75rem;
	border-right: 0;
	border-radius: 0.5rem 0 0 0.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23757575' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.75'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 0.9rem center;
	background-size: 1.125rem;
	font-size: 1.125rem;
}

.search-box > .btn {
	flex: 0 0 auto;
	padding: 0 1.5rem;
	border-radius: 0 0.5rem 0.5rem 0;
	box-shadow: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.search-box .search-suggest-item {
	padding-left: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%239e9e9e' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.75'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 0.9rem center;
	background-size: 1rem;
}

@media (max-width: 575.98px) {
	.search-box > .btn {
		padding: 0 1rem;
	}
}
