@import url("chrome://global/skin/");
@import url("bindings/chevron/chevron.css");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

toolbar toolbaritem[xb-widget][xb-app="yasearch"] {
  -moz-binding: url("bindings/ui/widget.xml#widget");
}

toolbaritem[xb-widget][xb-app="yasearch"] > toolbarbutton,
toolbaritem[xb-widget][xb-app="yasearch"] > toolbarbutton > toolbarbutton {
  min-width: 16px !important;
  -moz-box-orient: horizontal !important;
  -moz-binding: url("bindings/ui/button.xml#button-toolbar") !important;
}
toolbaritem[xb-widget][xb-app="yasearch"] > toolbarbutton[type="menu-button"] {
  -moz-binding: url("bindings/ui/button.xml#button-toolbar-with-menu") !important;
}

toolbaritem[xb-widget][xb-app="yasearch"] menu {
  -moz-binding: url("bindings/ui/menu.xml#menu") !important;
}

toolbaritem[xb-widget][xb-app="yasearch"] menuitem {
  -moz-binding: url("bindings/ui/menu.xml#menu-item") !important;
}

toolbaritem[xb-widget][xb-app="yasearch"] menuitem.menuitem-iconic,
toolbaritem[xb-widget][xb-app="yasearch"] menuitem[type="checkbox"],
toolbaritem[xb-widget][xb-app="yasearch"] menuitem[type="radio"] {
  -moz-binding: url("bindings/ui/menu.xml#menu-item-iconic") !important;
}

toolbaritem[xb-widget][xb-app="yasearch"] image[xb-name="image"] {
  margin-right: 2px;
}

toolbaritem[xb-widget][xb-app="yasearch"] html|span[xb-name="style"] {
  display: inline-block;
}
toolbaritem[xb-widget][xb-app="yasearch"] html|span[xb-name="style"]:empty {
  display: none;
}

toolbaritem[xb-widget][xb-app="yasearch"] html|table {
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: black;
  border-collapse: collapse;
}

toolbaritem[xb-widget][xb-app="yasearch"] html|td {
  padding: 1px 3px;
  border-width: 0;
  border-style: solid;
  border-color: black;
}

toolbaritem[xb-customize="removed"],
toolbarseparator[xb-customize="removed"],
toolbarspacer[xb-customize="removed"],
toolbarspring[xb-customize="removed"] {
  display: none !important;
}