/* Scoped to the wholesale header; independent of the results-page styles. */
.ahw-search-form {
	position: relative;
	width: 100%;
	margin: 0;
}

.ahw-search-fields {
	display: flex;
	align-items: stretch;
}

.ahw-search-form .ahw-search-input {
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 40px !important;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #a5a5af !important;
	border-right: 0 !important;
	border-radius: 4px 0 0 4px;
	background: #fff;
	color: #000;
	font: normal 14px Arial, sans-serif !important;
	line-height: normal !important;
	-webkit-appearance: none;
}

.ahw-search-form .ahw-search-input::placeholder {
	color: #75757f;
}

.ahw-search-form .ahw-search-submit {
	position: static;
	box-sizing: border-box;
	flex: 0 0 42px;
	width: 42px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid #a5a5af;
	border-left: 0;
	border-radius: 0 4px 4px 0;
	background: #a5a5af;
	color: #fff;
	line-height: normal;
	cursor: pointer;
}

.ahw-search-submit svg {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.ahw-search-form .ahw-search-suggestions {
	box-sizing: border-box;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	max-height: min(520px, 70vh);
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #a5a5af;
	border-radius: 0 0 4px 4px;
	background: #fff;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

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

.ahw-search-suggestions li {
	margin: 0;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	color: #000;
	font: normal 14px Arial, sans-serif;
	text-align: left;
	cursor: pointer;
}

.ahw-search-suggestions li:last-child {
	border-bottom: 0;
}

.ahw-search-suggestions li:hover,
.ahw-search-suggestions li[aria-selected="true"] {
	background: #f0f8ff;
}

.ahw-search-suggestions strong {
	color: #08829a;
}

.ahw-search-history-icon {
	display: inline-block;
	margin-right: 6px;
	color: #75757f;
}

.mobile-search-wrap .ahw-search-input {
	font-size: 16px !important;
}

.ahw-search-suggestions .ahw-search-product {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 62px;
	box-sizing: border-box;
}

.ahw-search-product-image {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	object-fit: contain;
	border-radius: 4px;
	background: #f7f7f7;
}

.ahw-search-product-image[hidden] {
	display: none;
}

.ahw-search-product-content {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ahw-search-product-title-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 3px 7px;
}

.ahw-search-product-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
}

.ahw-search-product-meta {
	display: block;
	margin-top: 3px;
	color: #5c5c5c;
	font-size: 11px;
}

.ahw-search-product-price {
	flex: 0 0 auto;
	color: #08829a;
	font-size: 13px;
	font-weight: bold;
	white-space: nowrap;
}

.ahw-search-product-price:empty {
	display: none;
}
