.ui-autocomplete,
.ui-dialog .ui-autocomplete {
  color: var(--gin-color-text);
  background: var(--gin-bg-input);
  border-radius: 0 0 var(--gin-border-m) var(--gin-border-m);
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-dialog .ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  color: var(--gin-color-primary-hover);
  background-color: var(--gin-bg-item-hover);
}

.ui-state-active, .ui-dialog .ui-state-active,
.ui-widget-content .ui-state-active,
.ui-dialog .ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
.ui-dialog .ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-dialog a.ui-button:active,
.ui-button:active,
.ui-dialog .ui-button:active,
.ui-button.ui-state-active:hover,
.ui-dialog .ui-button.ui-state-active:hover {
  border: none;
}

.ui-autocomplete .ui-menu-item a {
  color: var(--gin-color-text);
}

.ui-autocomplete .ui-menu-item a:hover {
  color: var(--gin-color-primary-hover);
  background-color: var(--gin-bg-item-hover);
}

.ui-widget.ui-widget-content {
  padding: 0;
  border: 1px solid var(--gin-border-color);
}

.js .form-autocomplete {
  transition: var(--gin-transition), background-position none;
}

.js .form-autocomplete.is-autocompleting,
.js input.form-autocomplete.ui-autocomplete-loading,
div.autocomplete-deluxe-container div.autocomplete-deluxe-throbber.autocomplete-deluxe-open {
  background-image: none;
}

.form-autocomplete.is-autocompleting + .claro-autocomplete__message,
div.autocomplete-deluxe-container div.autocomplete-deluxe-throbber.autocomplete-deluxe-open {
  display: block;
}

.form-autocomplete.is-autocompleting + .claro-autocomplete__message::after,
div.autocomplete-deluxe-container div.autocomplete-deluxe-throbber.autocomplete-deluxe-open::after {
  content: "";
  position: absolute;
  top: 35px;
  display: block;
  border: 2px solid var(--gin-bg-input);
  border-radius: 50%;
  border-top: 2px solid var(--gin-color-primary);
  width: 14px;
  height: 14px;
  animation: gin-throbber 1s linear infinite;
}

[dir="ltr"] .form-autocomplete.is-autocompleting + .claro-autocomplete__message::after,
[dir="ltr"] div.autocomplete-deluxe-container div.autocomplete-deluxe-throbber.autocomplete-deluxe-open::after {
  right: 12px;
  text-align: right;
}

[dir="rtl"] .form-autocomplete.is-autocompleting + .claro-autocomplete__message::after,
[dir="rtl"] div.autocomplete-deluxe-container div.autocomplete-deluxe-throbber.autocomplete-deluxe-open::after {
  left: 12px;
  text-align: left;
}

div.autocomplete-deluxe-container div.autocomplete-deluxe-throbber.autocomplete-deluxe-open::after {
  top: 2px;
}

div.autocomplete-deluxe-multiple {
  color: var(--gin-color-text);
  background: var(--gin-bg-input);
  border: 1px solid var(--gin-border-color-form-element);
  border-radius: var(--gin-border-m);
  box-sizing: border-box;
  transition: var(--gin-transition);
}

.autocomplete-deluxe-container input.autocomplete-deluxe-form {
  min-height: 0;
  background: none;
}

.autocomplete-deluxe-item {
  color: var(--gin-color-primary-hover);
  background-color: var(--gin-color-primary-light-hover);
  border-radius: var(--gin-border-l);
  border: 0 none;
  box-shadow: none;
}

[dir="ltr"] .autocomplete-deluxe-item {
  padding: 6px var(--gin-spacing-l) 6px 12px;
}

[dir="rtl"] .autocomplete-deluxe-item {
  padding: 6px 12px 6px var(--gin-spacing-l);
}

.autocomplete-deluxe-item:hover, .autocomplete-deluxe-item:active {
  color: var(--gin-color-button-text);
  background-color: var(--gin-color-primary);
}

.autocomplete-deluxe-item .autocomplete-deluxe-item-delete {
  top: 6px;
  -webkit-mask-image: url("../../media/sprite.svg#close-view");
          mask-image: url("../../media/sprite.svg#close-view");
  -webkit-mask-size: 10px 10px;
          mask-size: 10px 10px;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  background: var(--gin-color-primary);
}

[dir="ltr"] .autocomplete-deluxe-item .autocomplete-deluxe-item-delete {
  right: 6px;
}

[dir="rtl"] .autocomplete-deluxe-item .autocomplete-deluxe-item-delete {
  left: 6px;
}

.autocomplete-deluxe-item:hover .autocomplete-deluxe-item-delete,
.autocomplete-deluxe-item .autocomplete-deluxe-item-delete:hover {
  background: var(--gin-color-button-text);
}

