@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

stack[anonid="yawintitle-stack"] {
  color: #272727;
  min-height: 26px;
  background-color: #ececec;
}

stack[anonid="yawintitle-stack"] > image[anonid="yawintitle-stack-bg"] {
  list-style-image: url("chrome://yasearch/skin/dialogs/images/title/bg.png");
  -moz-image-region: rect(0px, 1px, 26px, 0px);
}

stack[anonid="yawintitle-stack"] > hbox > label {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

hbox[anonid="buttons-box"] {
  min-height: 18px;
}

hbox[anonid="buttons-box"] > toolbarbutton {
  -moz-appearance: none;
  -moz-image-region: rect(0px, 15px, 15px, 0px);
  width: 15px;
  height: 15px;
  padding: 0;
  margin: 0;
  border: none !important;
  cursor: default;
  list-style-image: url("chrome://yasearch/skin/dialogs/images/button/close.png");
  background-color: transparent;
}

hbox[anonid="buttons-box"] > toolbarbutton:hover {
  -moz-image-region: rect(0px, 30px, 15px, 15px);
}

hbox[anonid="buttons-box"] > toolbarbutton:active {
  -moz-image-region: rect(0px, 45px, 15px, 30px);
}

hbox[anonid="buttons-box"] > toolbarbutton.title-button-top {
  list-style-image: url("chrome://yasearch/skin/dialogs/images/button/win-top-bottom.png");
  -moz-image-region: rect(15px, 15px, 30px, 0px);
}

hbox[anonid="buttons-box"] > toolbarbutton.title-button-bottom {
  list-style-image: url("chrome://yasearch/skin/dialogs/images/button/win-top-bottom.png");
  -moz-image-region: rect(0px, 15px, 15px, 0px);
}

hbox[anonid="buttons-box"] > toolbarbutton.title-button-top:hover {
  -moz-image-region: rect(15px, 30px, 30px, 15px);
}

hbox[anonid="buttons-box"] > toolbarbutton.title-button-bottom:hover {
  -moz-image-region: rect(0px, 30px, 15px, 15px);
}

hbox[anonid="buttons-box"] toolbarbutton[class] {
  display: none;
}

stack[anonid="yawintitle-stack"][mode~="top"] .title-button-bottom,
stack[anonid="yawintitle-stack"][mode~="bottom"] .title-button-top {
  display: -moz-box !important;
}