/* KOELL – podpowiedzi w wyszukiwarce produktów */

.koell-ls-form {
	position: relative;
}

.koell-ls {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 99999;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e6e1da;
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.koell-ls[hidden] {
	display: none;
}

/* Okno wyszukiwania (lupa w nagłówku) ma overflow:auto, więc lista idzie w normalny przepływ
   pod polem i okno rośnie razem z nią. */
.popup-drawer .koell-ls-form {
	flex-wrap: wrap;
}

.popup-drawer .koell-ls {
	position: static;
	flex: 0 0 100%;
	width: 100%;
	order: 99;
	margin-top: 8px;
	max-height: 60vh;
}

.koell-ls__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	color: #222;
	text-decoration: none !important;
}

.koell-ls__item + .koell-ls__item {
	border-top: 1px solid #f1eee9;
}

.koell-ls__item:hover,
.koell-ls__item.is-active {
	background: #f7f4ef;
	color: #222;
}

.koell-ls__img {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: #f4f1ec;
}

.koell-ls__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.koell-ls__cat {
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.koell-ls__title {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
}

.koell-ls__title mark {
	padding: 0;
	background: none;
	color: inherit;
	font-weight: 700;
}

.koell-ls__price {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
}

.koell-ls__price del {
	margin-right: 4px;
	font-weight: 400;
	color: #999;
}

.koell-ls__out {
	margin-left: 8px;
	font-size: 11px;
	font-weight: 400;
	color: #a0522d;
}

.koell-ls__all {
	position: sticky;
	bottom: 0;
	display: block;
	padding: 10px 12px;
	border-top: 1px solid #e6e1da;
	background: #faf8f5;
	color: #222;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}

.koell-ls__all:hover {
	background: #f2eee8;
	color: #222;
}

.koell-ls__none,
.koell-ls__loading {
	padding: 14px 12px;
	font-size: 13px;
	color: #666;
}

@media (max-width: 767px) {
	.koell-ls {
		max-height: 60vh;
	}

	.koell-ls__title {
		font-size: 13px;
	}
}
