xpi/content/css/alt_autocompl_items2.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

@-moz-document url(chrome://browser/content/browser.xul) {
	
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="visiturl"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="visiturl"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="visiturl"][originaltype="action keyword heuristic"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="visiturl"][originaltype="action visiturl heuristic"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="searchengine"][originaltype="action searchengine heuristic"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="searchengine"][originaltype="action searchengine heuristic"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="searchengine"][originaltype="action searchengine"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="searchengine"][originaltype="action searchengine"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[type="autofill heuristic"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[type="autofill heuristic"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="keyword"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="keyword"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="keyword"][originaltype="action keyword heuristic"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="keyword"][originaltype="action keyword heuristic"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="visiturl"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="visiturl"] *,
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="visiturl"][originaltype="action visiturl heuristic"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="visiturl"][originaltype="action visiturl heuristic"] *,
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="searchengine"][originaltype="action searchengine heuristic"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="searchengine"][originaltype="action searchengine heuristic"] *,
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="searchengine"][originaltype="action searchengine"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="searchengine"][originaltype="action searchengine"] *,
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[type="autofill heuristic"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[type="autofill heuristic"] *,
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="keyword"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="keyword"] *,
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="keyword"][originaltype="action keyword heuristic"] *,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="keyword"][originaltype="action keyword heuristic"] * {
	  min-height: 0 !important;
	  height: 0 !important;
	  max-height: 0 !important;
	  visibility: collapse !important;
	  /*display:none !important;*/
	}
	
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="visiturl"] + richlistitem:not([collapse="true"]),
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="visiturl"] + richlistitem:not([collapse="true"]),
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="visiturl"][originaltype="action visiturl heuristic"] + richlistitem:not([collapse="true"]),
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="visiturl"][originaltype="action visiturl heuristic"] + richlistitem:not([collapse="true"]),
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="searchengine"][originaltype="action searchengine heuristic"] + richlistitem:not([collapse="true"]),
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="searchengine"][originaltype="action searchengine heuristic"] + richlistitem:not([collapse="true"]),
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="searchengine"][originaltype="action searchengine"] + richlistitem:not([collapse="true"]),
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="searchengine"][originaltype="action searchengine"] + richlistitem:not([collapse="true"]),
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[type="autofill heuristic"] + richlistitem:not([collapse="true"]),
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[type="autofill heuristic"] + richlistitem:not([collapse="true"]),
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) richlistitem[actiontype="keyword"] + richlistitem:not([collapse="true"]),
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] richlistitem[actiontype="keyword"] + richlistitem:not([collapse="true"])	{
	  border-top: 1px solid transparent !important;
	  border-bottom: 1px solid transparent !important;
	}
	
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete) .autocomplete-richlistbox,
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"] .autocomplete-richlistbox {
	  transition: unset !important;
	}

	/* this will remove the tiny popup lines visible after the "search with..." and "visit" items get hidden */
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete)[ctrsubboxstyle="height: 0px;"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"][ctrsubboxstyle="height: 0px;"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete)[ctrsubboxstyle="height: 2px;"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"][ctrsubboxstyle="height: 2px;"],
	panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete)[ctrsubboxstyle="height: 8px;"],
	#PopupAutoCompleteRichResult[autocompleteinput="urlbar"][ctrsubboxstyle="height: 8px;"],
	#main-window[fx52plus="true"] panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete)[ctrsubboxstyle="height: 42px;"],
	#main-window[fx52plus="true"] #PopupAutoCompleteRichResult[autocompleteinput="urlbar"][ctrsubboxstyle="height: 42px;"],
	#main-window[fx52plus="true"] panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete)[ctrsubboxstyle="height: 45px;"],
	#main-window[fx52plus="true"] #PopupAutoCompleteRichResult[autocompleteinput="urlbar"][ctrsubboxstyle="height: 45px;"],
	#main-window[fx52plus="true"] panel[type="autocomplete-richlistbox"]:not(#PopupAutoComplete)[ctrsubboxstyle="height: 49px;"],
	#main-window[fx52plus="true"] #PopupAutoCompleteRichResult[autocompleteinput="urlbar"][ctrsubboxstyle="height: 49px;"] {
      margin-left: -10000000000px !important;
	}
}