select.cl-through-autocomplete {
  min-width: 420px;
}

/* Make multi-select container expand to show all selected chips */
.select2-container--default .select2-selection--multiple {
  min-height: 34px;
  height: auto !important;
}

/* Let the chips area wrap naturally */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 8px;
}

select.m2m-saving {
  opacity: .6;
}

select.m2m-error {
  outline: 2px solid #d93025;
}

/* chip layout */
.select2-selection__choice .sel-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* star button default (non-primary) */
.select2-selection__choice .star-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 14px;
  color: #666; /* grey ☆ */
}

/* primary styles — note the selector targets the inner span with is-primary */
.sel-chip.is-primary .chip-label {
  font-weight: 600; /* bold label for primary */
}

.sel-chip.is-primary .star-btn {
  color: #f4c542; /* gold ★ */
}

/* (optional) hover affordance for the star */
.select2-selection__choice .star-btn:hover {
  opacity: .85;
}
