@namespace url("http://www.w3.org/1999/xhtml");
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.ya-status {
  position: relative;
  display: block;
  vertical-align: top;
  margin-left: 8px;
}

.ya-status[mode="edit"] {
  -moz-box-flex: 1;
}

.ya-status-arrow {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: url("chrome://yasearch/skin/dialogs/images/status/arrow.png") 0 0 no-repeat;
  z-index: 1000;
}

.ya-status-border {
  -moz-border-radius: 8px;
  padding: 4px;
  background: #ffffff;
}

.ya-status-content > *|* {
  display: none;
}

.ya-status[mode="text"] .ya-status-content > .ya-status-text {
  display: block;
  cursor: pointer;
  min-width: 30px;
  max-width: 150px;
  max-height: 30px!important;
  overflow: hidden;
  word-wrap: break-word;
  color: #e44d14;
  font-size: 15px;
  line-height: 15px;
  padding: 1px;
  margin: 3px 4px 3px 4px;
  position: relative;
}

.ya-status[mode="text"] .ya-status-content > .ya-status-text > span {
  max-width: 100%;
}

.ya-status .ya-status-text .ya-status-text-empty {
  font-style: italic;
}

.ya-status .ya-status-text[empty="false"] .ya-status-text-empty {
  display: none;
}

.ya-status:not([mode="text"]) .ya-status-text * {
  display: none;
}

.ya-status[mode="text"] .ya-status-content > .ya-status-text > div {
  display: none;
}

.ya-status[mode="text"] .ya-status-content > .ya-status-text[overflow] > div {
  display: block;
  position: absolute;
  right: 0px;
  bottom: 0px;
  height: 15px;
  width: 20px;
  background: url("chrome://yasearch/skin/dialogs/images/status/fade-white.png");
}

.ya-status[mode="edit"] .ya-status-content > .ya-status-edit {
  vertical-align: top;
  display: -moz-box;
  -moz-box-orient: horizontal;
  height: 38px;
  width: 160px;
}

.ya-status[mode="edit"] .ya-status-content > .ya-status-edit textarea {
  display: -moz-box;
  -moz-box-flex: 1;
  height: 100%;
  width: 100%;
  border: 0px solid red !important;
  font-size: 12px !important;
  line-height: 12px;
  font-family: sans-serif !important;
  margin: 0 -10px 0px 2px;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: scroll;
  word-wrap: break-word;
}

.ya-status[mode="edit"] .ya-status-content .left {
  overflow: hidden;
  display: -moz-box;
  -moz-box-flex: 1;
}

.ya-status[mode="edit"] .ya-status-content .right {
  display: -moz-box;
  -moz-box-pack: end;
  -moz-box-orient: vertical;
}

.ya-status-edit xul|scrollbar {
  -moz-binding: url("chrome://yasearch/content/dialogs/scrollbar.xbl#scrollbar") !important;
  -moz-box-flex: 1;
}

.ya-status[mode="edit"] .ya-status-content .ya-status-ok {
  display: -moz-box;
  margin-top: 2px;
  width: 13px;
  height: 13px;
  background: url("chrome://yasearch/skin/dialogs/images/status/ok.png");
  cursor: pointer;
}

.ya-status[request="wait"][mode="text"] .ya-status-text {
  max-width: 134px;
  margin-right: 20px;
}

.ya-status[request="wait"][mode="text"] .ya-status-throbber {
  opacity: 0.3;
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: block;
  width: 16px;
  height: 16px;
  background: url("chrome://yasearch/skin/browser-icons/throbber/throbber-small.gif");
}

.ya-status-error {
  position: absolute;
  z-index: 10;
  padding: 5px;
  height: 32px;
  width: 152px;
  background: url("chrome://yasearch/skin/dialogs/images/status/error.png");
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  margin: -5px;
}

.ya-status-error span {
  text-decoration: underline;
  cursor: pointer;
}

.ya-status[request="error"] .ya-status-error {
  display: block;
}

.ya-status[request="error"] .ya-status-content {
	min-height: 32px;
	min-width: 152px;
}
