.chip-select {
  position: relative;
  font-family: sans-serif;
  /* max-width: 400px; */
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 2.5em;
  padding: 0.25em 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: text;
}
.chip-container:focus-within {
  border-color: #66afe9;
  box-shadow: 0 0 5px rgba(102,175,233,.6);
}

.chip {
  background: #e0f0ff;
  color: #0366d6;
  border-radius: 16px;
  padding: 0.2em 0.6em;
  margin: 0.2em;
  display: flex;
  align-items: center;
  font-size: 0.9em;
}
.chip-close {
  display: inline-block;
  margin-left: 0.4em;
  cursor: pointer;
  font-weight: bold;
}

.chip-input {
  flex: 1;
  border: none;
  outline: none;
  min-width: 6em;
  padding: 0.3em;
  font-size: 1em;
}

.suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
}

.suggestions li {
  padding: 0.6em 1em;
  cursor: pointer;
  font-size: 0.95em;
}
.suggestions li:hover {
  background: #f5f5f5;
}
