/**
 * Autosuggest Styles
 *
 * Minimal styling that adapts to TT4 and most block themes
 * via WordPress CSS custom properties.
 */

.autosuggest-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99999;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var( --wp--preset--color--base, #fff );
	border: 1px solid var( --wp--preset--color--contrast, #000 );
	border-top: none;
	max-height: 240px;
	overflow-y: auto;
	box-sizing: border-box;
}

.autosuggest-item {
	padding: 0.5em 0.75em;
	cursor: pointer;
	font-size: inherit;
	color: var( --wp--preset--color--contrast, #1d1d1f );
	line-height: 1.4;
}

.autosuggest-item:hover,
.autosuggest-item.is-active {
	background: var( --wp--preset--color--contrast, #000 );
	color: var( --wp--preset--color--base, #fff );
}

/* Screen reader only – visually hidden, accessible to assistive tech */
.autosuggest-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
}
