/* Live search dropdown on /sitemap/ and 404. Plugin: SearchWP Live Ajax Search. */

.searchwp-live-search-results {
	z-index: 9999996;
	margin-top: 8px;
	padding: 8px;
	border-radius: 20px;
	max-height: min(56vh, calc(100dvh - 200px));
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(16, 52, 120, 0.12);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 22px 44px -24px rgba(0, 40, 120, 0.45),
		0 8px 20px -10px rgba(0, 40, 120, 0.18);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: var(--wp--preset--color--ink, #0a1633);
	overflow: hidden;
}

.searchwp-live-search-result {
	margin: 0;
	border-radius: 12px;
	border: 0;
}

.searchwp-live-search-result--title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.searchwp-live-search-result--title a {
	display: block;
	padding: 10px 14px;
	color: var(--wp--preset--color--ink, #0a1633);
	text-decoration: none;
	border-radius: 12px;
}

.searchwp-live-search-result--title a:hover,
.searchwp-live-search-result--title a:focus-visible,
.searchwp-live-search-result--focused .searchwp-live-search-result--title a {
	background: #f3f7ff;
	color: var(--wp--preset--color--primary, #0A5FE6);
	outline: none;
}

.searchwp-live-search-result--focused {
	background: transparent;
}

.searchwp-live-search-no-results {
	margin: 0;
	padding: 14px 16px;
	color: #44506a;
	font-size: 0.95rem;
}

/* Keep the spinner readable on the light glass pane. */
.searchwp-live-search-results .spinner {
	filter: none;
}

@media (prefers-reduced-motion: reduce) {
	.searchwp-live-search-results,
	.searchwp-live-search-result--title a {
		transition: none;
	}
}
