.customer-autocomplete {
  position: relative;
  width: 100%;
  min-width: 0;
}

.customer-autocomplete > input {
  width: 100%;
}

.customer-autocomplete__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(280px, 40vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid var(--line, #30362f);
  border-radius: 12px;
  background: var(--panel, #191c19);
  color: var(--text, #eef0e9);
  box-shadow: 0 16px 40px #0008, 0 2px 8px #0004;
  scrollbar-width: thin;
  scrollbar-color: var(--line, #30362f) transparent;
}

.customer-autocomplete__list[hidden] {
  display: none;
}

.customer-autocomplete__option {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.customer-autocomplete__option + .customer-autocomplete__option {
  margin-top: 2px;
}

.customer-autocomplete__option:hover,
.customer-autocomplete__option[aria-selected="true"] {
  background: var(--surface, #202420);
  border-color: var(--gold, #dfbc73);
}

.customer-autocomplete__name,
.customer-autocomplete__contact {
  display: block;
  line-height: 1.45;
}

.customer-autocomplete__name {
  font-size: 13px;
  font-weight: 600;
}

.customer-autocomplete__contact {
  margin-top: 3px;
  color: var(--muted, #9ca698);
  font-size: 11px;
}
