@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.autocomplete-history-popup {
  min-width: 15em !important;
  max-height: none !important;
}

.autocomplete-history-popup[yaEmptyResultList="true"] .autocomplete-tree {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  visibility: hidden !important;
}

checkbox[anonid="site-search-checkbox"] {
  color: GrayText;
}

.autocomplete-history-popup:not([yaEmptyResultList="true"])[yaSiteSearchEnabled="true"] > hbox[anonid="popup-appendix"] {
  border-top: 1px solid GrayText;
}

.autocomplete-history-popup:not([yaSiteSearchEnabled="true"]) checkbox[anonid="site-search-checkbox"] {
  display: none;
}

.autocomplete-history-popup[yaEmptyResultList="true"]:not([yaSiteSearchEnabled="true"]) > hbox[anonid="popup-appendix"] {
  display: none;
}

.autocomplete-history-popup[yaEmptyResultList="true"]:not([yaSiteSearchEnabled="true"]) {
  max-width: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  visibility: hidden !important;
}

.autocomplete-history-popup image[anonid="popup-resizer"] {
  list-style-image: url("chrome://yasearch/skin/browser-icons/resizer-bottom-right.png");
  width: 15px;
  height: 15px;
  cursor: se-resize;
  -moz-binding: url("chrome://yasearch/content/searchbox/searchbox.xml#searchbox-popup-autocomplete-resizer");
}

.autocomplete-treecol:last-child {
  text-align: right;
  -moz-box-flex: 0 !important;
  min-width: 5em !important;
}