@import url("chrome://yasearch/skin/yasearch.css");
@import url("chrome://yasearch/skin/dialogs/tabbox.css");
@import url("chrome://yasearch/skin/dialogs/button.css");
@import url("chrome://yasearch/skin/dialogs/checkbox.css");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace ya url("http://bar.yandex.ru/firefox");

dialog,
.dialog-content-box,
ya|dialogcontent,
ya|dialogcontent label,
.autocomplete-textbox-container,
.textbox-input-box,
.autocomplete-history-dropmarker {
  margin: 0 !important;
  padding: 0 !important;
}

dialog {
  font-size: 19px;
  font-weight: normal;
  font-family: Arial, 'Lucida Grande', sans-serif;
  
  color: #272727;
  
  border: none;
  cursor: default;
  
  -moz-appearance: none !important;
  background-image: none !important;
}

dialog[yatransparent="true"] {
  background-color: transparent !important;
}

ya|dialogcontent {
  border: 3px solid;
  
  -moz-border-top-colors: #f0f3f0 #e6e6e4 #dad9db;
  -moz-border-left-colors: #f0f3f0 #e6e6e4 #dad9db;
  -moz-border-bottom-colors: #e6e6e6 #dadada #c4c4c4;
  -moz-border-right-colors: #e6e6e6 #dadada #c4c4c4;
  
  -moz-border-radius: 1px;
  
  background-color: rgb(248,217,152);
}

dialog[yashadow="window"] ya|dialogcontent {
  -moz-box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
  border: none !important;
  margin: 0 16px 24px 16px !important;
}

.dialog-button-box {
  display: none !important;
}

vbox[yahref],
hbox[yahref] {
  cursor: pointer;
  -moz-user-focus: none;
}

description[yahref],
label[yahref],
label[onclick] {
  text-decoration: underline;
  cursor: pointer;
  -moz-user-focus: none;
}

textbox {
  margin: 0.2em 0.25em !important;
  padding: 0.1em 0.1em 0.15em 0.2em !important;
  
  color: #272727 !important;
  background-color: #fff !important;
  background-image: none !important;
  
  border: 1px solid !important;
  -moz-border-top-colors: #d8d8d8 !important;
  -moz-border-right-colors: #d8d8d8 !important;
  -moz-border-bottom-colors: #d8d8d8 !important;
  -moz-border-left-colors: #d8d8d8 !important;
  -moz-border-radius: 0 !important;
}

textbox,
textbox > * {
  -moz-appearance: none !important;
}

textbox[type="autocomplete"] {
  -moz-border-top-colors: #aaa294 !important;
}

textbox[disabled="true"] {
  background-color: #edecee !important;
}

textbox > hbox,
textbox > hbox > hbox,
textbox html|input {
  outline: none !important;
  color: #272727 !important;
  border: none !important;
  background-color: #fff !important;
  background-image: none !important;
}

.autocomplete-history-dropmarker {
  -moz-appearance: none !important;
  border: none !important;
  list-style-image: none !important;
  opacity: 0.8;
  width: 9px;
  background: #fff url("") center center no-repeat !important;
  max-height: none !important;
}

textbox:not([yaHasSavedLogins="false"]) .autocomplete-history-dropmarker {
  background-image: url("chrome://yasearch/skin/browser-icons/arrows/arrow-dn.gif") !important;
}

.autocomplete-history-dropmarker image {
  display: none;
}

.autocomplete-treebody::-moz-tree-cell-text {
  color: #272727;
}
