/* Themes can restyle the panel by overriding these custom properties. */
.wss-ac {
	--wss-bg: #fff;
	--wss-fg: #1e1e1e;
	--wss-muted: #6b6b6b;
	--wss-border: #dcdcde;
	--wss-active: #f0f0f1;
	--wss-danger: #b32d2e;
	--wss-radius: 8px;

	position: absolute;
	z-index: 99999;
	box-sizing: border-box;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	background: var(--wss-bg);
	color: var(--wss-fg);
	border: 1px solid var(--wss-border);
	border-radius: var(--wss-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
}

.wss-ac[hidden] {
	display: none;
}

.wss-ac__list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
}

.wss-ac__link {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px 12px;
	color: inherit;
	text-decoration: none;
}

.wss-ac__item[aria-selected="true"] .wss-ac__link {
	background: var(--wss-active);
}

.wss-ac__img {
	flex: none;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: var(--wss-active);
}

.wss-ac__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wss-ac__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.wss-ac__meta {
	display: flex;
	gap: 8px;
	color: var(--wss-muted);
	font-size: 0.9em;
}

.wss-ac__stock {
	color: var(--wss-danger);
}

.wss-ac__empty {
	padding: 12px;
	color: var(--wss-muted);
}

.wss-ac__all {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-top: 1px solid var(--wss-border);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.wss-ac__all:hover,
.wss-ac__all:focus-visible {
	background: var(--wss-active);
}

.wss-ac__all[hidden] {
	display: none;
}

.wss-ac__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
