.choices__list--multiple .choices__item .choices__button {
  color: transparent !important;
  font-size: 0 !important;
  position: relative !important;
}
.choices__list--multiple .choices__item .choices__button::after {
  content: '\00d7' !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: bold !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 3 !important;
}
.choices__item.choices__item--selectable.is-selected {
  background: #ff9c41 !important;
  color: #fff !important;
  border-radius: 18px !important;
  padding: 6px 16px 6px 12px !important;
  margin: 0 6px 0 0 !important;
  font-size: 15px !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  min-height: 36px !important;
  height: 36px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  transition: background 0.2s, box-shadow 0.2s;
}
.choices__item.choices__item--selectable.is-selected .choices__button {
  color: #fff !important;
  /* background: #ff6f40 !important; */
  border-radius: 50% !important;
  margin-left: 10px !important;
  font-size: 18px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  transition: background 0.2s, box-shadow 0.2s;
}
.choices__item.choices__item--selectable.is-selected .choices__button:hover {
  /* background: #ff9c41 !important; */
  box-shadow: 0 2px 8px rgba(0,0,0,0.16) !important;
}
.choices__item.choices__item--selectable.is-selected .choices__button svg {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Add down arrow to Choices.js multi-select input when empty (placeholder visible) */
.choices__inner {
  position: relative;
}
input.choices__input--cloned:placeholder-shown {
  background: none !important;
}
/* Show arrow only when placeholder is visible */
.choices__inner::after {
  content: '';
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23999" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548a.625.625 0 0 1 .884-.032L10 11.01l3.6-3.494a.625.625 0 1 1 .852.916l-4.025 3.91a.625.625 0 0 1-.852 0l-4.025-3.91a.625.625 0 0 1-.032-.884z"/></svg>') no-repeat center/contain;
  opacity: 0;
  transition: opacity 0.2s;
}
.choices__inner:has(input.choices__input--cloned:placeholder-shown)::after {
  opacity: 1;
}
/* Match select input box color to other input fields */
.choices__inner,
input.choices__input--cloned {
  background-color: #f8f8f8 !important; /* Use the same color as your input boxes, adjust if needed */
}
/* Remove underline and border from Choices.js input placeholder */
input.choices__input--cloned::placeholder {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  color: #a89d9f !important;
}

input.choices__input--cloned {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}
/* Force remove underline and border from Choices.js placeholder, even if theme applies it */
.choices[data-type*="select-multiple"] .choices__inner .choices__placeholder,
.choices[data-type*="select-multiple"] .choices__item.choices__placeholder,
.choices__inner .choices__placeholder,
.choices__item.choices__placeholder {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  color: #a89d9f !important;
}
.choices__inner .choices__placeholder,
.choices__item.choices__placeholder {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
/* Custom Choices.js theme for KhorbanCare */
.choices__inner {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  min-height: 48px;
  font-size: 16px;
  color: #363635;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow-y: auto;
  max-height: 65px;
}
.choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  padding: 6px 0 0 0;
}
.choices__list--multiple .choices__item {
  background-color: #ff9c41;
  color: #fff;
  border-radius: 18px;
  padding: 6px 16px 6px 12px;
  margin: 0;
  font-size: 15px;
  border: none;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: 32px;
  transition: background 0.2s, box-shadow 0.2s;
}
.choices__list--multiple .choices__item:hover {
  background-color: #ff7f41;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.choices__list--multiple .choices__item .choices__button {
  color: #fff !important;
  /* background: #ff6f40 !important; */
  border-radius: 50% !important;
  margin-left: 10px !important;
  font-size: 18px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.choices__list--multiple .choices__item .choices__button:hover {
  /* background: #ff9c41 !important; */
  box-shadow: 0 2px 8px rgba(0,0,0,0.16) !important;
}
  
.choices__list--multiple .choices__item .choices__button::before {
  content: '\00d7' !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: bold !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 3 !important;
}
.choices__list--dropdown .choices__item--selectable {
  padding: 10px 16px;
  font-size: 16px;
  color: #363635;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: #f9f9f9;
  color: #ff9c41;
}
/* .choices__placeholder {
  color: #a89d9f;
  opacity: 1;
  text-decoration: none !important;
} */
