.lv-search-shell {
	position: relative;
	min-width: 0;
}

.lv-search-panel {
	position: absolute;
	inset: calc(100% + 6px) 0 auto;
	z-index: 20;
	max-height: min(460px, 52dvh);
	overflow: auto;
	overscroll-behavior: contain;
	scroll-padding-block-end: 44px;
	scrollbar-width: thin;
	background: white;
	border-radius: var(--lv-radius);
	box-shadow: 0 14px 36px rgb(22 35 74 / .16);
	color: var(--lv-ink);
	font-size: .9rem;
	line-height: 1.4;
}

.lv-search-panel[hidden],
.lv-search-panel .lv-search-message[hidden] { display: none; }

.lv-search-panel .lv-search-message {
	margin: 0;
	padding: 13px 15px;
	color: var(--lv-muted);
}

.lv-search-group {
	display: grid;
	gap: 2px;
	padding: 5px 5px 6px;
}

.lv-search-group + .lv-search-group { margin-block-start: 5px; }

.lv-search-group-title {
	display: block;
	margin: 5px 9px 3px;
	color: var(--lv-muted);
	font-size: .77rem;
	font-weight: 650;
}

.lv-search-panel .lv-search-option {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 44px;
	padding: 7px 9px;
	border-radius: var(--lv-radius-small);
	color: var(--lv-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lv-search-panel .lv-search-option:is(:hover, [aria-selected="true"]) {
	background: var(--lv-fog);
	color: var(--lv-blue);
}

.lv-search-panel .lv-search-option:focus-visible { outline-offset: -3px; }

.lv-search-panel .lv-search-product {
	display: grid;
	grid-template-areas: "image name price" "image sku price";
	grid-template-columns: 44px minmax(0, 1fr) auto;
	column-gap: 10px;
}

.lv-search-option-image {
	grid-area: image;
	display: grid;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--lv-paper);
}

.lv-search-option-image img { width: 100%; height: 100%; object-fit: contain; }
.lv-search-option-name { grid-area: name; font-weight: 610; }
.lv-search-option-sku { grid-area: sku; color: var(--lv-muted); font-size: .75rem; }
.lv-search-option-price { grid-area: price; max-width: 7rem; font-size: .82rem; font-weight: 650; text-align: end; }

.lv-search-panel .lv-search-all {
	position: sticky;
	inset-block-end: 0;
	justify-content: center;
	border-radius: 0;
	background: var(--lv-paper);
	color: var(--lv-blue);
	font-weight: 660;
	text-align: center;
}

@media (max-width: 650px) {
	.lv-search-shell { grid-column: 1 / -1; grid-row: 2; }
	.lv-search-panel .lv-search-product {
		grid-template-areas: "image name name" "image sku price";
		column-gap: 7px;
	}
}
