.uc-autocomplete {
  position: relative;
  width: 100%;
}

.uc-autocomplete .uc-input-wrapper {
  position: relative;
}

.uc-autocomplete .uc-text-input {
  width: 100%;
  min-height: 38px;
  padding: .375rem .75rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  color: #212529;
  outline: none;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.uc-autocomplete .uc-text-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.uc-autocomplete .uc-clear-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  display: none;
}

.uc-autocomplete .uc-clear-btn:hover { color: #333; }
.uc-autocomplete .uc-clear-btn.show { display: block; }

.uc-autocomplete .uc-badges-area {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0;
}

.uc-autocomplete .uc-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #e7f1ff;
  color: #0d6efd;
  border: 1px solid #b6d4fe;
  border-radius: .375rem;
  padding: 2px 8px;
  font-size: .875rem;
  font-weight: 500;
}

.uc-autocomplete .uc-badge-item .uc-badge-remove {
  background: none;
  border: none;
  color: #0d6efd;
  cursor: pointer;
  padding: 0 0 0 4px;
  font-size: .875rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.uc-autocomplete .uc-badge-item .uc-badge-remove:hover { color: #0a58ca; }

.uc-autocomplete .uc-dropdown {
  position: absolute;
  z-index: 1050;
  width: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.uc-autocomplete .dropdown-visible { display: block; }

.uc-autocomplete .uc-list { list-style: none; margin: 0; padding: 0; }

.uc-autocomplete .uc-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: .9375rem;
}

.uc-autocomplete .uc-list-item:last-child { border-bottom: none; }

.uc-autocomplete .uc-list-item:hover,
.uc-autocomplete .uc-list-item.highlighted {
  background: #e7f1ff;
}

.uc-autocomplete .uc-list-item .uc-item-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e9ecef;
}

.uc-autocomplete .uc-list-item .uc-item-label { flex: 1; }

.uc-autocomplete .uc-load-more {
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  border-top: 1px solid #f0f0f0;
  color: #0d6efd;
  cursor: pointer;
  font-size: .875rem;
  text-align: center;
}

.uc-autocomplete .uc-load-more:hover { background: #f8f9fa; }

.uc-autocomplete .uc-loading-bar {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: #e9ecef;
}

.uc-autocomplete .uc-loading-bar .uc-progress {
  height: 100%;
  background: #0d6efd;
  animation: uc-indeterminate 1.4s ease-in-out infinite;
  transform-origin: left;
}

@keyframes uc-indeterminate {
  0%   { transform: scaleX(0); }
  50%  { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.uc-autocomplete .uc-empty {
  padding: 16px 12px;
  text-align: center;
  color: #6c757d;
  font-size: .875rem;
}
