/**
* Autocomplete Styles - Pure CSS
* Version 4.1
* 
* @package ThemeSearch
* @author hybrid.
*/

/**************************/
/**************************/
/********** VARS **********/
/**************************/
/**************************/

:root {
	--autocomplete-border-radius: 0;
	--autocomplete-maxheight: 20em; /*400px*/
	--autocomplete-title-background: var(--light-color);
	--autocomplete-item-hover: var(--light-color);
	--autocomplete-mark-color: var(--yellow-color);
}

/********************************/
/********************************/
/********** ANIMATIONS **********/
/********************************/
/********************************/

.search-autocomplete {
	transition: all var(--transition-fast) var(--easeInOutQuint);
}
.autocomplete-item {
	transition: all var(--transition-fast) var(--ease);
}

/**********************************/
/**********************************/
/********** AUTOCOMPLETE **********/
/**********************************/
/**********************************/

/*******************************/
/********** CONTAINER **********/
/*******************************/

.search-autocomplete {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-radius: var(--autocomplete-border-radius);
	/*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
	max-height: var(--autocomplete-maxheight);
	overflow-y: auto;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
}
.search-autocomplete.is-open {
	opacity: 1;
	visibility: visible;
}

/*******************************/
/********** SCROLLBAR **********/
/*******************************/

.search-autocomplete::-webkit-scrollbar {
	width: 8px;
}
.search-autocomplete::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 0 8px 8px 0;
}
.search-autocomplete::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}
.search-autocomplete::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/****************************/
/********** GROUPS **********/
/****************************/

.autocomplete-group {
	padding: 0;
}
/*
.autocomplete-group + .autocomplete-group {
	border-top: 1px solid #f0f0f0;
}
*/
.autocomplete-group-label {
	position: sticky;
	z-index: 10;
	top: 0;
	padding: 1em 1.5em;
	background: var(--autocomplete-title-background);
}

/***************************/
/********** ITEMS **********/
/***************************/

.autocomplete-item {
	display: block;
	/*padding: 12px 16px;
	color: #333;*/
	font-size: .75em;
	line-height: 1;
	padding: 1em 1.5em;
	text-decoration: none;
	cursor: pointer;
	border-left: 3px solid transparent;
}
.autocomplete-item:hover,
.autocomplete-item.is-active {
	background: var(--autocomplete-item-hover);
	border-left-color: currentcolor;/*#4a90e2;*/
}

/***************************/
/********** TITLE **********/
/***************************/
/*
.autocomplete-title {
	display: block;
	font-size: 14px;
	line-height: 1.4;
}
*/
.autocomplete-title mark {
	/*background: #fff3cd;
	color: #856404;
	font-weight: 600;
	padding: 0 2px;
	border-radius: 2px;
	*/
	color: var(--autocomplete-mark-color);

}

/*********************************/
/********** EMPTY STATE **********/
/*********************************/

.autocomplete-empty {
	padding: 24px 16px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/********************************/
/********** RESPONSIVE **********/
/********************************/
/*
@media (max-width: 768px) {
	.search-autocomplete {
		max-height: 60vh;
	}
	
	.autocomplete-item {
		padding: 14px 16px;
	}
	
	.autocomplete-title {
		font-size: 15px;
	}
}
*/