.wls {
	--wls-accent: #8a1f2b;
	--wls-border: #d6d6d6;
	--wls-bg: #fff;
	--wls-text: #1d1d1d;
	--wls-muted: #6b6b6b;
	--wls-hover: #f4f1ee;
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0;
}

.wls__box {
	position: relative;
}

.wls__input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 40px 12px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--wls-text);
	background: var(--wls-bg);
	border: 1px solid var(--wls-border);
	border-radius: 8px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, box-shadow .15s;
}

.wls__input:focus {
	border-color: var(--wls-accent);
	box-shadow: 0 0 0 3px rgba(138, 31, 43, .15);
}

.wls__spinner {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--wls-border);
	border-top-color: var(--wls-accent);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.wls__box.is-loading .wls__spinner {
	opacity: 1;
	animation: wls-spin .7s linear infinite;
}

@keyframes wls-spin {
	to { transform: rotate(360deg); }
}

.wls__list {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 70vh;
	margin: 0;
	padding: 4px 0;
	overflow-y: auto;
	list-style: none;
	background: var(--wls-bg);
	border: 1px solid var(--wls-border);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.wls__list[hidden] {
	display: none;
}

.wls__item {
	margin: 0;
	padding: 0;
}

.wls__item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	color: var(--wls-text);
	text-decoration: none;
	box-shadow: none;
	border: 0;
}

.wls__item.is-active a,
.wls__item a:hover {
	background: var(--wls-hover);
}

.wls__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 56px;
	object-fit: cover;
	border-radius: 3px;
	background: #eee;
}

.wls__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.wls__title {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
}

.wls__title mark {
	background: none;
	color: var(--wls-accent);
	padding: 0;
}

.wls__excerpt {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--wls-muted);
}

.wls__meta {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-size: 12px;
	color: var(--wls-muted);
}

.wls__price {
	font-weight: 600;
	color: var(--wls-text);
	white-space: nowrap;
}

.wls__type {
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 11px;
}

.wls__empty {
	padding: 14px;
	font-size: 14px;
	color: var(--wls-muted);
}

.wls__all {
	margin: 4px 0 0;
	padding: 0;
	border-top: 1px solid var(--wls-border);
}

.wls__all button {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font: inherit;
	font-size: 13px;
	text-align: left;
	color: var(--wls-accent);
	background: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.wls__all button:hover {
	background: var(--wls-hover);
}

@media (max-width: 480px) {
	.wls__excerpt { display: none; }
}

/* --- grupy: autorzy / kategorie / wyniki --- */
.wls__group {
	margin: 0;
	padding: 10px 14px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wls-muted);
}

.wls__group:not(:first-child) {
	margin-top: 4px;
	border-top: 1px solid var(--wls-border);
}

.wls__item--authors a,
.wls__item--terms a {
	padding-top: 6px;
	padding-bottom: 6px;
}

.wls__item--authors .wls__title,
.wls__item--terms .wls__title {
	font-weight: 500;
}

.wls__meta {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.wls__count {
	min-width: 20px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	color: var(--wls-text);
	background: var(--wls-hover);
	border-radius: 10px;
}
