.mbs-product-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 12px;
	column-gap: 0;
	position: relative;
	--mbs-results-max-height: 260px;
	--mbs-scrollbar-width: 8px;
	--mbs-scrollbar-thumb: #9aa0a6;
	--mbs-scrollbar-thumb-hover: #6f7780;
	--mbs-scrollbar-track: #edf0f2;
	--mbs-switch-width: 44px;
	--mbs-switch-height: 24px;
}

.mbs-product-search__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mbs-product-search__input {
	flex: 1 1 220px;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
}

.mbs-product-search--no-status .mbs-product-search__status {
	display: none !important;
}

.mbs-product-search__button {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #2271b1;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
}

.mbs-product-search__button-icon {
	line-height: 1;
}

.mbs-product-search__switch-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.mbs-product-search__switch-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mbs-product-search__switch-slider {
	position: relative;
	display: inline-block;
	width: var(--mbs-switch-width);
	height: var(--mbs-switch-height);
	border-radius: 999px;
	background: #ccd0d4;
	transition: background-color 0.2s ease;
}

.mbs-product-search__switch-slider:before {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: calc(var(--mbs-switch-height) - 6px);
	height: calc(var(--mbs-switch-height) - 6px);
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.mbs-product-search__switch-input:checked + .mbs-product-search__switch-slider {
	background: #2271b1;
}

.mbs-product-search__switch-input:checked + .mbs-product-search__switch-slider:before {
	transform: translateX(calc(var(--mbs-switch-width) - var(--mbs-switch-height)));
}

.mbs-product-search__switch-input:focus + .mbs-product-search__switch-slider {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.mbs-switch-pos-left-inline .mbs-product-search__switch-wrap {
	order: -1;
}

.mbs-switch-pos-top .mbs-product-search__switch-wrap,
.mbs-switch-pos-bottom .mbs-product-search__switch-wrap {
	width: fit-content;
}

.mbs-product-search__dropdown {
	position: relative;
	min-height: 0;
}

.mbs-product-search__panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 30;
	flex-direction: column;
	max-width: 100%;
	border: 1px solid #ccd0d4;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.mbs-product-search.is-open .mbs-product-search__panel {
	display: flex;
}

.mbs-product-search__status {
	flex: 0 0 auto;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1.35;
	opacity: 0.95;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mbs-product-search__status:empty {
	display: none;
	padding: 0;
	border-bottom: none;
}

.mbs-product-search__results-scroll {
	flex: 1 1 auto;
	min-height: 0;
	max-height: var(--mbs-results-max-height);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--mbs-scrollbar-thumb) var(--mbs-scrollbar-track);
}

.mbs-product-search__results-scroll::-webkit-scrollbar {
	width: var(--mbs-scrollbar-width);
}

.mbs-product-search__results-scroll::-webkit-scrollbar-track {
	background: var(--mbs-scrollbar-track);
}

.mbs-product-search__results-scroll::-webkit-scrollbar-thumb {
	background: var(--mbs-scrollbar-thumb);
	border-radius: 999px;
}

.mbs-product-search__results-scroll::-webkit-scrollbar-thumb:hover {
	background: var(--mbs-scrollbar-thumb-hover);
}

.mbs-product-search__results {
	min-height: 0;
}

.mbs-product-search.is-loading .mbs-product-search__results-scroll {
	opacity: 0.65;
}

.mbs-product-search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.mbs-product-search-results__item {
	margin: 0;
	padding: 0;
}

.mbs-product-search-results__link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 8px 10px;
}

.mbs-product-search-results__link:hover,
.mbs-product-search-results__link.is-active {
	background: rgba(34, 113, 177, 0.08);
}

.mbs-product-search-results__thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 2px;
}
