﻿// Algolia InstantSearch and Autocomplete


// AutoComplete

	 div.aa-Panel {
	  z-index: 10000 !important;
	  max-height: 800px !important; /* Restrict max height */
	  overflow-y: auto !important; /* Enable vertical scrolling */
	  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
	}

	div.aa-PanelLayout {
	  z-index: 10000 !important;
	  max-height: 800px !important; /* Restrict max height */
	  overflow-y: auto !important; /* Enable vertical scrolling */
	  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
	}

	/* Optional: Improve styling of the scrollable area */
	div.aa-Panel::-webkit-scrollbar {
	  width: 8px; /* Width of the scrollbar */
	}

	div.aa-Panel::-webkit-scrollbar-thumb {
	  background: #ccc; /* Scrollbar color */
	  border-radius: 4px; /* Rounded edges */
	}

	div.aa-Panel::-webkit-scrollbar-thumb:hover {
	  background: #aaa; /* Darker scrollbar on hover */
	}

	.aa-ItemContentBody {
	    font-size: .90em;
	}

	.aa-ItemContentTitle {
	     white-space: wrap; 
	     letter-spacing: -0.4px;
	     font-weight: 500;
	}

	 .aa-ItemIcon, .aa-ItemIcon img{
	    width:70px !important;
	    max-width:70px !important;
	    height: 70px !important;
	}

	.searchTitle {
	    font: 14px sans-serif;
	    margin-top: 30px;
	    position: relative;
	    text-align: left;
	    text-transform: uppercase;
	    font-weight: 500;
	    z-index: 1;    
	}

	.searchTitle:before {
	    border-top: 2px solid #dfdfdf;
	    content:"";
	    margin: 0 auto;
	    position: absolute;
	    top: 7px; left: 0; right: 0; bottom: 0;
	    width: 95%;
	    z-index: -1;
	}

	/* category links */
		.category-link {
			font-size: .85em;
			margin:-5px 0;
		}

		[data-autocomplete-source-id="categories"] li {
			line-height: 16px !important;
		}

		[data-autocomplete-source-id="categories"] li.aa-Item {
			min-height:16px !important;
		}

		/*li > div > a.category-link {
			line-height: 12px !important;
		}*/


	.aa-Footer {
	  text-align: center;
	  padding: 10px 0;
	}

	a.articleLink {
	    padding: 5px; font-size: 0.95em;
	}

	#search-button img {
	  transition: transform 0.2s ease;
	}

	#search-button:hover img {
	  transform: scale(1.1); /* Slight zoom on hover */
	}

	.autocomplete-wrapper {
	  position: relative;
	  display: flex;
	  align-items: center;
	  width: 100%; /* Adjust to match your layout */
	}

	.searchTitle span { background: #fff; padding-right: 10px; }

	[id*="recentSearchesPlugin"] li.aa-Item:hover, [id*="querySuggestionsPlugin"] li.aa-Item:hover {
	    height: 30px !important;
	}
	[id*="recentSearchesPlugin"] li.aa-Item, [id*="recentSearchesPlugin"] a div.aa-ItemContent, [id*="recentSearchesPlugin"] a div.aa-ItemContent div.aa-ItemIcon, 
	[id*="querySuggestionsPlugin"] li.aa-Item, [id*="querySuggestionsPlugin"] a div.aa-ItemContent, [id*="querySuggestionsPlugin"] a div.aa-ItemContent div.aa-ItemIcon
	{
	    padding-top: 0px !important;
	    margin-top: 0px !important;
	    height: 26px !important;
	}


// Instant Search


