.tech-product-search {
	--tech-search-accent: #fe6614;
	--tech-search-text: #111;
	--tech-search-muted: #6f6f6f;
	--tech-search-border: #dedede;
	--tech-search-bg: #fff;
	box-sizing: border-box;
	font-family: inherit;
	position: relative;
	width: 100%;
	z-index: 99990;
}

.tech-product-search *,
.tech-product-search *::before,
.tech-product-search *::after {
	box-sizing: border-box;
}

.tech-product-search__form {
	align-items: stretch;
	background: var(--tech-search-bg);
	border: 1px solid var(--tech-search-border);
	border-radius: 3px;
	display: flex;
	min-height: 54px;
	position: relative;
}

.tech-product-search__form:focus-within {
	border-color: var(--tech-search-accent);
	box-shadow: 0 0 0 2px rgb(254 102 20 / 14%);
}

.tech-product-search__input {
	appearance: none;
	background: transparent;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--tech-search-text);
	font: inherit;
	font-size: 16px;
	min-width: 0;
	outline: 0;
	padding: 0 58px 0 20px;
	width: 100%;
}

.tech-product-search__input::placeholder {
	color: var(--tech-search-muted);
	opacity: 1;
}

.tech-product-search__input::-webkit-search-cancel-button {
	display: none;
}

.tech-product-search__submit {
	align-items: center;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--tech-search-text) !important;
	cursor: pointer;
	display: inline-flex;
	height: 100%;
	justify-content: center;
	padding: 0 !important;
	position: absolute;
	right: 0;
	top: 0;
	width: 54px;
}

.tech-product-search__submit:hover,
.tech-product-search__submit:focus-visible {
	color: var(--tech-search-accent) !important;
	outline: 0;
}

.tech-product-search__dropdown {
	background: var(--tech-search-bg);
	border: 1px solid var(--tech-search-border);
	box-shadow: 0 16px 38px rgb(0 0 0 / 14%);
	left: 0;
	margin-top: 6px;
	max-height: min(520px, 70vh);
	overflow: auto;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 99991;
}

.tech-product-search__dropdown[hidden],
.tech-product-search__status[hidden] {
	display: none;
}

.tech-product-search__status {
	color: var(--tech-search-muted);
	font-size: 14px;
	padding: 18px;
	text-align: center;
}

.tech-product-search__section-title {
	background: #f7f7f7;
	border-bottom: 1px solid #eee;
	color: var(--tech-search-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	padding: 8px 16px;
	text-transform: uppercase;
}

.tech-product-search__category {
	border-bottom: 1px solid #eee;
	color: var(--tech-search-text) !important;
	display: block;
	padding: 11px 16px;
	text-decoration: none !important;
}

.tech-product-search__category:hover,
.tech-product-search__category:focus-visible,
.tech-product-search__category.is-active {
	background: #fff7f2;
	box-shadow: inset 3px 0 0 var(--tech-search-accent);
	outline: 0;
}

.tech-product-search__category-body,
.tech-product-search__category-title,
.tech-product-search__category-meta {
	display: block;
}

.tech-product-search__category-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.tech-product-search__category-meta {
	color: var(--tech-search-muted);
	font-size: 11px;
	margin-top: 2px;
}

.tech-product-search__result {
	align-items: center;
	border-bottom: 1px solid #eee;
	color: var(--tech-search-text) !important;
	display: grid;
	gap: 14px;
	grid-template-columns: 64px minmax(0, 1fr);
	min-height: 84px;
	padding: 10px 16px;
	text-decoration: none !important;
}

.tech-product-search__result:hover,
.tech-product-search__result:focus-visible,
.tech-product-search__result.is-active {
	background: #fafafa;
	box-shadow: inset 3px 0 0 var(--tech-search-accent);
	outline: 0;
}

.tech-product-search__image {
	display: block;
	height: 64px;
	object-fit: contain;
	width: 64px;
}

.tech-product-search__result-body,
.tech-product-search__title,
.tech-product-search__meta,
.tech-product-search__price {
	display: block;
}

.tech-product-search__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.tech-product-search__meta {
	color: var(--tech-search-muted);
	font-size: 11px;
	margin-top: 3px;
}

.tech-product-search__price {
	color: var(--tech-search-accent);
	font-size: 14px;
	font-weight: 600;
	margin-top: 4px;
}

.tech-product-search__price del {
	color: var(--tech-search-muted);
	font-weight: 400;
}

.tech-product-search__all {
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--tech-search-accent) !important;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 14px 18px !important;
	text-align: center;
	width: 100%;
}

.tech-product-search__all:hover,
.tech-product-search__all:focus-visible {
	background: #fff7f2 !important;
	outline: 0;
}

@media (prefers-color-scheme: dark) {
	.tech-product-search {
		--tech-search-text: #f5f5f5;
		--tech-search-muted: #b8b8b8;
		--tech-search-border: #444;
		--tech-search-bg: #202020;
	}

	.tech-product-search__result {
		border-bottom-color: #383838;
	}

	.tech-product-search__section-title {
		background: #252525;
		border-bottom-color: #383838;
	}

	.tech-product-search__category {
		border-bottom-color: #383838;
	}

	.tech-product-search__category:hover,
	.tech-product-search__category:focus-visible,
	.tech-product-search__category.is-active {
		background: #2b241f;
	}

	.tech-product-search__result:hover,
	.tech-product-search__result:focus-visible,
	.tech-product-search__result.is-active {
		background: #292929;
	}

	.tech-product-search__all {
		background: #202020 !important;
	}

	.tech-product-search__all:hover,
	.tech-product-search__all:focus-visible {
		background: #2b241f !important;
	}
}

@media (max-width: 600px) {
	.tech-product-search__form {
		min-height: 50px;
	}

	.tech-product-search__dropdown {
		max-height: 66vh;
	}

	.tech-product-search__result {
		gap: 11px;
		grid-template-columns: 56px minmax(0, 1fr);
		padding-inline: 12px;
	}

	.tech-product-search__image {
		height: 56px;
		width: 56px;
	}
}

