/**
 * @file
 * Stylesheet for the Linkit module.
 */
.js input.form-linkit-autocomplete {
  background-image: url(/core/misc/throbber-inactive.png);
  background-position: 100% center; /* LTR */
  background-repeat: no-repeat;
}
.js[dir="rtl"] input.form-linkit-autocomplete {
  background-position: 0% center;
}
.js input.form-linkit-autocomplete.ui-autocomplete-loading {
  background-image: url(/core/misc/throbber-active.gif);
  background-position: 100% center; /* LTR */
}
.js[dir="rtl"] input.form-linkit-autocomplete.ui-autocomplete-loading {
  background-position: 0% center;
}

/* Override the default jQuery UI theme */
.linkit-ui-autocomplete {
  max-height: 330px;
  overflow: auto;
}
.linkit-ui-autocomplete.ui-widget  {
  font-size: .9em;
}

.linkit-ui-autocomplete.ui-menu .ui-menu-item {
  list-style: none;
  padding: 5px 7px;
}

.linkit-ui-autocomplete .ui-menu-item.ui-state-focus {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  background: #0075ba;
  color: #fff;
}

.linkit-result:not(:last-of-type) {
  border-bottom: 1px solid #bfbfbf;
}

.linkit-result--group {
  padding: 3px;
  background-color: #e7e7e7;
  border-bottom: 1px solid #bfbfbf;
  text-align: center;
  font-size: 0.9em;
  font-weight: 600;
  color: #555;
}

.linkit-result--title {
  font-weight: 600;
}

.linkit-result--description {
  display: block;
  font-size: 0.9em;
  line-height: 1.3;
}

.linkit-result--description img {
  display: block;
}
