/* Autocomplete dropdown for wizard form fields (passport issuer, address). */

.ac-wrap { position: relative; }

.ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(29, 52, 97, 0.12);
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.ac-dropdown.is-open { display: block; }

.ac-item {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--c-navy);
  border-bottom: 1px solid #f1f4f9;
  cursor: pointer;
  line-height: 1.35;
  user-select: none;
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover,
.ac-item.is-active { background: var(--c-bg-blue); }

.ac-item__primary {
  display: block;
  color: var(--c-navy);
}
.ac-item__secondary {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 2px;
}

.ac-loading,
.ac-empty {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--c-muted);
  font-style: italic;
}
