/* Wspolny pasek wyszukiwania produktow. */
.imsf-search-bar {
	box-sizing: border-box;
	display: flex;
	position: relative;
	z-index: 900;
	width: 100%;
	max-width: 100%;
	height: 42px;
	margin: 20px 0 18px;
	border: 1px solid #be0225;
	background: #fff;
}

.imsf-search-bar--home {
	width: 96%;
	max-width: 1600px;
	margin-right: auto;
	margin-left: auto;
}

.imsf-search-bar__input {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #1a1a1a;
	font-size: 16px;
}

.imsf-search-bar__input::placeholder {
	color: #595959;
	opacity: 1;
}

.imsf-search-bar__button {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 96px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: #be0225;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.imsf-search-bar__button svg {
	flex: 0 0 20px;
}

.imsf-search-bar__button:hover {
	background: #93001c;
	color: #fff;
}

.imsf-search-bar__input:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: -4px;
}

.imsf-search-bar__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.imsf-search-bar__suggestions {
	box-sizing: border-box;
	position: absolute;
	top: 100%;
	left: -1px;
	right: -1px;
	z-index: 1;
	max-height: min(420px, 65vh);
	overflow-y: auto;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.imsf-search-bar__option {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 6px 12px;
	border-bottom: 1px solid #eee;
	color: #1a1a1a;
	font-size: 14px;
	text-decoration: none;
}

.imsf-search-bar__option:last-child {
	border-bottom: 0;
}

.imsf-search-bar__option:hover,
.imsf-search-bar__option.is-active {
	background: #f6f6f6;
	color: #1a1a1a;
}

.imsf-search-bar__option--all {
	color: #a0001f;
	font-weight: 600;
}

.imsf-search-bar__option--all:hover,
.imsf-search-bar__option--all.is-active {
	color: #a0001f;
}

.imsf-search-bar__thumbnail {
	box-sizing: border-box;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: #f5f5f5;
}

.imsf-search-bar__details {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.imsf-search-bar__name {
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.imsf-search-bar__sku {
	color: #595959;
	font-size: 12px;
}

.imsf-search-bar__price {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
}

.imsf-search-bar__empty {
	padding: 14px 12px;
	color: #595959;
	font-size: 14px;
}

.imsf-search-bar__live {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.imsf-search-bar {
		height: 46px;
	}

	.imsf-search-bar--home {
		width: 100%;
	}

	/* poza strona glowna (tam rodzic ma juz margines 16 px) pasek odsuniety od krawedzi ekranu jak slider */
	body:not(.home) .imsf-search-bar--home {
		width: calc(100% - 32px);
	}

	.imsf-search-bar__input,
	.imsf-search-bar__button {
		height: 44px;
	}

	.imsf-search-bar__button {
		min-width: 44px;
		min-height: 44px;
		padding: 0;
	}

	.imsf-search-bar__button-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.imsf-search-bar__option {
		min-height: 48px;
		gap: 8px;
		padding: 6px 8px;
	}

	.imsf-search-bar__price {
		font-size: 12px;
	}
}
