/* Custom overrides for Choices.js multi-select */

/* Allow inner container to grow for multiple badges */
.choices[data-type*="select-multiple"] .choices__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  height: auto;
  min-height: 2.75rem;
  padding: 0.375rem 0.5rem;
  overflow: visible;
}

/* Badge styling for selected items */
.choices__list--multiple .choices__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Remove button styling for multi-select - show text × instead of background image */
.choices__list--multiple .choices__item .choices__button {
  text-indent: 0;
  padding-left: 0.5rem;
  margin-left: 0.25rem;
  border-left: 1px solid oklch(var(--pc, 1 0 0) / 0.3);
  background: none;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
}

.choices__list--multiple .choices__item .choices__button:hover,
.choices__list--multiple .choices__item .choices__button:focus {
  opacity: 1;
}
