/*
 * Liberty Vape — Live Search dropdown.
 *
 * The panel anchors to the search FORM (.lv-ls-anchor), which works in the
 * Kadence header modal, the 404 page and any sidebar widget without knowing
 * their markup. Colours stay neutral; the brand accent (#00d4ff) is used the
 * way the collection chips use it — as a highlight, not a wash.
 */

.lv-ls-anchor {
	position: relative;
}

.lv-ls-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 100000;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
	overflow: hidden auto;
	max-height: min(70vh, 520px);
	text-align: left;
}

.lv-ls-note {
	padding: 8px 14px;
	font-size: 0.8em;
	color: #5b6572;
	background: #f6f8fa;
	border-bottom: 1px solid #eef0f3;
}

.lv-ls-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f1f3f5;
}

.lv-ls-item:last-child {
	border-bottom: 0;
}

.lv-ls-item:hover,
.lv-ls-item.lv-ls-active {
	background: rgba(0, 212, 255, 0.1);
}

.lv-ls-thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 6px;
	background: #f6f8fa;
}

.lv-ls-body {
	min-width: 0;
}

.lv-ls-title {
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.lv-ls-meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 2px;
	font-size: 0.85em;
}

.lv-ls-price del {
	opacity: 0.55;
	margin-right: 6px;
}

.lv-ls-price ins {
	text-decoration: none;
}

.lv-ls-oos {
	font-size: 0.85em;
	color: #b42318;
}

.lv-ls-viewall {
	justify-content: center;
	font-weight: 600;
	font-size: 0.88em;
	color: #067c9e;
	background: #f6fdff;
}

.lv-ls-viewall:hover,
.lv-ls-viewall.lv-ls-active {
	background: rgba(0, 212, 255, 0.16);
}

.lv-ls-empty {
	padding: 18px 16px;
	text-align: center;
}

.lv-ls-empty-title {
	font-weight: 600;
	font-size: 0.92em;
}

.lv-ls-empty-hint {
	margin-top: 4px;
	font-size: 0.82em;
	color: #5b6572;
}

.lv-ls-browse {
	display: inline-block;
	margin-top: 10px;
	font-weight: 600;
	font-size: 0.88em;
	color: #067c9e;
	text-decoration: none;
	border: 1px solid rgba(0, 212, 255, 0.5);
	border-radius: 999px;
	padding: 6px 16px;
}

.lv-ls-browse:hover {
	background: rgba(0, 212, 255, 0.1);
}

/* Inside narrow containers (mobile modal), let the panel use the full width. */
@media (max-width: 480px) {
	.lv-ls-panel {
		max-height: 60vh;
	}
}
