.searchbar-textbox {
  min-height: 22px;
  width: 6em;
  min-width: 6em;
}

.searchbar-textbox:-moz-system-metric(windows-default-theme) {
  -moz-appearance: none;
  border-width: 1px;
  -moz-border-top-colors: ThreeDShadow;
  -moz-border-bottom-colors: ThreeDShadow;
  -moz-border-right-colors: ThreeDShadow;
  -moz-border-left-colors: ThreeDShadow;
}

.textbox-input-box {
  margin: 0;
}

/* ::::: searchbar-engine-button ::::: */

.searchbar-engine-image {
  height: 16px;
  width: 16px;
  list-style-image: url("chrome://global/skin/icons/folder-item.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
  -moz-margin-start: 3px;
}

.searchbar-engine-button {
  -moz-appearance: none;
  min-width: 0;
  margin: 0;
  -moz-margin-end: 3px;
  padding: 0;
  height: 1.23em;
  min-height: 20px;
  -moz-box-align: center;
  background: -moz-dialog url(navbar-textbox-buttons.png) repeat-x;
  border: 0 solid;
  -moz-border-end-width: 1px;
  -moz-border-right-colors: ThreeDShadow;
  -moz-border-left-colors: ThreeDShadow;
  -moz-box-shadow: 1px 1px 0 rgba(255,255,255,.4) inset,
                   0 -1px 0 rgba(255,255,255,.4) inset;
}

.searchbar-engine-button:-moz-system-metric(windows-default-theme):-moz-locale-dir(ltr) {
  -moz-border-right-colors: rgba(0,0,0,.05);
}

.searchbar-engine-button:hover {
  background-position: 0 -60px;
}

.searchbar-engine-button[open="true"] {
  background-position: 0 -120px;
  -moz-box-shadow: 0 -1px 0 rgba(255,255,255,.2) inset;
}

.searchbar-engine-button > .button-box {
  -moz-appearance: none;
  padding: 0;
  border: 0;
}

.searchbar-engine-button[addengines="true"]:not([open="true"]) > .button-box {
  background: transparent url(chrome://browser/skin/Search-addengines.png) no-repeat right center;
}

.searchbar-engine-button[addengines="true"]:-moz-locale-dir(rtl) > .button-box {
  background-position: left center;
}

.searchbar-dropmarker-image {
  list-style-image: url(mainwindow-dropdown-arrow.png);
  -moz-image-region: rect(0, 13px, 11px, 0);
}

.searchbar-engine-button[open="true"] > .searchbar-dropmarker-image {
  -moz-image-region: rect(0, 26px, 11px, 13px);
}


/* ::::: search-go-button ::::: */

.search-go-container {
  -moz-box-align: center;
}

.search-go-button {
  padding: 2px;
  list-style-image: url("chrome://global/skin/icons/Search-glass.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}

.search-go-button:-moz-system-metric(touch-enabled) {
  -moz-padding-start: 5px;
  -moz-padding-end: 3px;
}

.search-go-button:-moz-locale-dir(rtl) {
  -moz-transform: scaleX(-1);
}

.search-go-button:hover {
  -moz-image-region: rect(0px 32px 16px 16px);
}

.search-go-button:hover:active {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

.searchbar-engine-menuitem[selected="true"] > .menu-iconic-text {
  font-weight: bold;
}
