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

a:focus {
  outline: none;
}

a {
  cursor: pointer !important;
}

#favicon {
  display: none;
}

#container {
  position: relative;
}

#container,
table {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
}

#search-container {
  margin: 0 0 0 8px;
}

#search-container-link {
  display: block;
  width: 95px;
  height: 37px;
  margin: 0 15px 6px 0;
  background: url("chrome://yasearch/skin/images/yandex-logo-37.png") 0 0 no-repeat;
}

table {
  border: none;
  border-collapse: collapse;
}

table > tr > td {
  padding: 0;
  vertical-align: middle;
  height: 100%;
  min-height: 100%;
}

a.thumb-holder {
  -moz-binding: url("chrome://yasearch/content/ftab/ftab.xml#thumb");
  display: block;
  position: relative;
  margin: 8px;
  padding: 0;
  text-decoration: none;
}

a.thumb-holder > div.thumb-shadow {
  position: absolute;
  top: -8px;
  left: -8px;
  bottom: -8px;
  right: -8px;
  
  border: 8px solid;
  -moz-border-radius: 8px;
  -moz-border-top-colors:    rgba(200,200,200,0.1)  rgba(180,180,180,0.12) rgba(160,160,160,0.16) rgba(140,140,140,0.24)
                             rgba(120,120,120,0.35) rgba(110,110,110,0.45) rgba(100,100,100,0.5)  rgba(90,90,90,0.55);
  -moz-border-right-colors:  rgba(200,200,200,0.1)  rgba(180,180,180,0.12) rgba(160,160,160,0.16) rgba(140,140,140,0.24)
                             rgba(120,120,120,0.35) rgba(110,110,110,0.45) rgba(100,100,100,0.5)  rgba(90,90,90,0.55);
  -moz-border-bottom-colors: rgba(200,200,200,0.1)  rgba(180,180,180,0.12) rgba(160,160,160,0.16) rgba(140,140,140,0.24)
                             rgba(120,120,120,0.35) rgba(110,110,110,0.45) rgba(100,100,100,0.5)  rgba(90,90,90,0.55);
  -moz-border-left-colors:   rgba(200,200,200,0.1)  rgba(180,180,180,0.12) rgba(160,160,160,0.16) rgba(140,140,140,0.24)
                             rgba(120,120,120,0.35) rgba(110,110,110,0.45) rgba(100,100,100,0.5)  rgba(90,90,90,0.55);
  
  display: none;
}

a.thumb-holder:hover > div.thumb-shadow {
  display: block;
}

a.thumb-holder div.thumb-container {
  outline: 1px solid rgb(193,193,193);
}

svg|svg {
  width: 100%;
  height: 100%;
  display: block;
}

a[yaThumbState="error"] svg|g.error {
  display: block !important;
}

td.thumb > a:hover svg|rect.hover-off {
  display: none;
}

a[yaThumbState="busy"] .throbber {
  position: absolute;
  top: 50%; left: 50%;
  margin: -10px 0 0 -10px;
  width: 20px; height: 20px;
  background: transparent url("chrome://yasearch/skin/browser-icons/throbber/throbber.gif") 50% 50% no-repeat;
  opacity: 0.7;
}

.control-holder {
  display: none;
  position: absolute;
  top: -13px;
  right: -10px;
  background: transparent url("chrome://yasearch/skin/ftab/control.png") 0 0 no-repeat;
  text-align: center;
  padding: 5px 0 0 8px;
  width: 37px;
  height: 21px;
}

td.thumb > a[href]:hover > .thumb-container > .control-holder {
  display: block;
}

.control-holder > a {
  width: 13px;
  height: 13px;
  display: block;
  float: left;
  background: transparent url("chrome://yasearch/skin/ftab/control.png") -9px 0 no-repeat;
}

.control-holder > a.control-prefs {
  background-position: -9px -25px;
}

.control-holder > a:hover.control-prefs {
  background-position: -9px -38px;
}

.control-holder > a.control-remove {
  background-position: -23px -25px;
}

.control-holder > a:hover.control-remove {
  background-position: -23px -52px;
}

.text-holder {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: rgb(175,155,155);
  font-weight: normal;
  font-family: Arial, sans-serif;
  font-size: 13px;
  width: 100%;
  height: 100%;
  white-space: nowrap;
}

.text-holder > div {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
}

.text-holder > div > p {
  margin: 0;
  padding: 0.1em 0.3em 0 0.3em;
}

.thumb-title {
  font-weight: bold;
  color: #000;
  background-color: rgb(242,242,242);
  border-top: 1px solid rgb(224,224,224);
}

a.thumb-holder:hover .thumb-title {
  color: #f00;
}

.text-holder > .thumb-title > p {
  padding: 0.2em 0.4em 0.15em 0.4em;
}

.thumb-title .shade {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  margin-left: -30px;
  background: url("chrome://yasearch/skin/ftab/shade.title.png");
}

a:not([href]) .thumb-title {
  display: none;
}

.thumb-empty {
  height: 4em;
  margin: 0.4em 0.4em 0.6em 0.4em;
  display: none;
}

a:not([href]):hover .thumb-empty {
  display: block;
}

.text-holder > .thumb-number {
  left: auto;
  right: 0;
  width: 40px;
  height: 55px;
}

.text-holder > .thumb-number > .thumb-number-value {
  position: absolute;
  width: 40px;
  height: 165px;
  top: -55px;
  background: transparent url("chrome://yasearch/skin/ftab/num.png") 0 0 no-repeat;
}

td.thumb > a:hover .thumb-number-value {
  top: 0;
}

a[href] .thumb-number-value {
  top: -110px !important;
}

xul|hbox#editor {
  -moz-binding: url("chrome://yasearch/content/ftab/ftab.xml#editor");
  -moz-box-flex: 1;
  display: none;
}

xul|textbox xul|image.autocomplete-icon {
  display: none;
}

xul|textbox {
  padding: 0.1em 0;
}

xul|textbox#ftab-search-box html|input {
  font-size: 1.2em;
  font-family: Arial, 'Lucida Grande', sans-serif;
}

xul|textbox:-moz-system-metric(windows-default-theme) {
  padding: 0.25em 0.1em 0.3em 0.1em;
}

xul|*#treecolAutoCompleteComment {
  text-align: right;
  -moz-box-flex: 0 !important;
  min-width: 5em !important;
}

xul|*.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), 
xul|*.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
  color: GrayText;
  font-size: smaller;
}

xul|*.autocomplete-treebody::-moz-tree-cell(suggesthint) {
  border-top: 1px solid GrayText;
}