/**
 * Typesense autocomplete dropdown — baseline skin.
 *
 * Replaces the Algolia plugin's bundled algolia-autocomplete.css (which no
 * longer loads in typesense mode). Class names deliberately reuse the old
 * markup vocabulary (.aa-dropdown-menu, .autocomplete-header,
 * .suggestion-link, .suggestion-post-*) so the child theme's planned
 * CSS-pass port (woocommerce.css TODO block) lands on both eras of markup.
 * Theme overrides win: keep specificity low here.
 */

.gvbf-ac-panel {
	background: #fff;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 0.25rem 0;
	z-index: 100000; /* above the theme's .search__modal (z-index 99999) */
	font-size: 0.9375rem;
}

.gvbf-ac-panel .autocomplete-header {
	padding: 0.625rem 0.875rem 0.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	margin: 0 0 0.25rem;
}

/* Breathing room above each section after the first */
.gvbf-ac-panel .suggestion-link + .autocomplete-header {
	margin-top: 0.375rem;
}

.gvbf-ac-panel .autocomplete-header-title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.6;
}

.gvbf-ac-panel .suggestion-link {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.375rem 0.875rem;
	color: inherit;
	text-decoration: none;
}

.gvbf-ac-panel .suggestion-link:hover,
.gvbf-ac-panel .suggestion-link.gvbf-ac-cursor {
	background: rgba(0, 0, 0, 0.05);
}

.gvbf-ac-panel .suggestion-post-thumbnail {
	width: 40px;
	height: auto;
	flex-shrink: 0;
	border-radius: 3px;
}

.gvbf-ac-panel .suggestion-post-attributes {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gvbf-ac-panel .suggestion-post-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gvbf-ac-panel .suggestion-post-title em,
.gvbf-ac-panel .suggestion-post-content em {
	font-style: normal;
	font-weight: 700;
}

.gvbf-ac-panel .suggestion-post-content {
	font-size: 0.8125rem;
	opacity: 0.65;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gvbf-ac-panel .autocomplete-empty {
	padding: 0.75rem 0.875rem;
	opacity: 0.7;
}

@media (max-width: 767px) {
	.gvbf-ac-panel {
		max-height: 60vh;
	}
}
