/*
 * [vn_merger_lookup] — scoped under .vnp-lookup; inherits fonts and colours from the theme.
 * Works on its own (any post or page), not only inside the .vnp views.
 */
.vnp-lookup {
	--vnpl-accent: var(--wp--preset--color--accent-3, #2b59c3);
	--vnpl-line: color-mix(in srgb, currentColor 14%, transparent);
	--vnpl-soft: color-mix(in srgb, currentColor 4%, transparent);
	--vnpl-muted: color-mix(in srgb, currentColor 65%, transparent);
	box-sizing: border-box;
	margin: 1.5rem 0;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--vnpl-line);
	border-radius: 12px;
	background: var(--vnpl-soft);
}
.vnp-lookup *,
.vnp-lookup *::before,
.vnp-lookup *::after {
	box-sizing: inherit;
}
.vnp-lookup__title {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--large, 1.35rem);
	line-height: 1.25;
}
.vnp-lookup__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.vnp-lookup__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.vnp-lookup__field {
	flex: 1 1 260px;
}
.vnp-lookup__field input {
	width: 100%;
	padding: 0.75rem 0.9rem 0.75rem 2.4rem;
	border: 1px solid var(--vnpl-line);
	border-radius: 8px;
	background: var(--wp--preset--color--base, #fff) no-repeat 0.8rem center / 1.05rem
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	color: inherit;
	font: inherit;
}
.vnp-lookup__submit {
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
	font: inherit;
	cursor: pointer;
}
.vnp-lookup :focus-visible {
	outline: 2px solid var(--vnpl-accent);
	outline-offset: 2px;
}
.vnp-lookup__hint,
.vnp-lookup__status {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: var(--vnpl-muted);
}
.vnp-lookup__status:empty {
	display: none;
}
.vnp-lookup[aria-busy="true"] .vnp-lookup__results {
	opacity: 0.5;
	transition: opacity 0.15s;
}
.vnp-lookup__group {
	margin: 1.25rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--medium, 1.05rem);
}
.vnp-lookup__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--vnpl-line);
	border-radius: 8px;
	background: var(--wp--preset--color--base, #fff);
}
.vnp-lookup__table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
}
.vnp-lookup__table th,
.vnp-lookup__table td {
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--vnpl-line);
	text-align: left;
	vertical-align: top;
}
.vnp-lookup__table td:first-child,
.vnp-lookup__table td:last-child {
	width: 48%;
}
.vnp-lookup__arrow {
	width: 2rem;
	text-align: center !important;
	font-size: 1.2rem;
	color: var(--vnpl-muted);
}
.vnp-lookup small {
	display: block;
	color: var(--vnpl-muted);
	font-size: 0.82rem;
}
.vnp-lookup__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.vnp-lookup__list > li + li {
	margin-top: 0.45rem;
}
.vnp-lookup__ward {
	font-weight: 600;
}
.vnp-lookup__badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: 0.2rem;
}
.vnp-lookup__badge {
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	white-space: nowrap;
}
.vnp-lookup__badge--high {
	background: color-mix(in srgb, #1a7f37 16%, transparent);
}
.vnp-lookup__badge--mid {
	background: color-mix(in srgb, #9a6700 18%, transparent);
}
.vnp-lookup__badge--low {
	background: color-mix(in srgb, #cf222e 16%, transparent);
}
.vnp-lookup__badge--partial {
	background: color-mix(in srgb, var(--vnpl-accent) 14%, transparent);
}
.vnp-lookup__muted,
.vnp-lookup__empty {
	color: var(--vnpl-muted);
}
.vnp-lookup__empty {
	margin: 1rem 0 0;
}
