.autocomplete-wrapper {
	position: relative;
	display: block;
	width: 100%;
}

.autocomplete-input {
	padding-right: 35px !important; /* Space for the X button */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%; 
}

.autocomplete-input:focus {
	border-color: #007bff;
	outline: none;
}

.autocomplete-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #b0b0b0;
	font-size: 24px;
	line-height: 1;
	display: none;
	z-index: 10;
	user-select: none;
}

.autocomplete-no-results {
	padding: 10px;      /* Adjust this to match your .autocomplete-item padding */
	cursor: default;
	color: #aaa;        /* Optional: grey out the text */
	user-select: none;
}

.autocomplete-results {
	position: absolute;
	left: 0;
	right: 0;
	background: white;
	border: none;
	border-radius: 8px;
	box-shadow: 0px 1px 5px 0 rgba(1,1,1,0.3);
	max-height: 300px; /* Fallback height */
	overflow-y: auto;
	z-index: 1000;
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.autocomplete-results.visible {
	display: block;
}

.autocomplete-results:not(.open-up) {
	top: 100%;
	margin-top: 0px;
}

.autocomplete-results.open-up {
	bottom: 100%;
	top: auto;
	margin-bottom: 0px;
	box-shadow: 0px -1px 5px 0 rgba(1,1,1,0.3);
}

.autocomplete-item {
	padding: 6px 12px;
	cursor: pointer;
	color: #384755;
	font-size: 16px;
}

.autocomplete-item:last-child {
	border-bottom: none;
}

.autocomplete-item:hover, 
.autocomplete-item[aria-selected="true"] {
	background-color: #4579b2;
	color: #ffffff;
}

/* Visually hidden status element for screen readers */
.autocomplete-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}