.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
}

.toggle-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.custom-options {
  position: absolute;
  top: calc(100% + 10px);
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  opacity: 0;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  z-index: 1000;
  min-width: 100%; /* fallback to trigger width */
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  max-height: 300px;
}

.custom-select-search {
  width: 100% !important;
  padding: 8px;
  outline: none !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.custom-options-list {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-options-list::-webkit-scrollbar {
  display: none;
}

.custom-option {
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-option:hover {
  background-color: #f1f1f1;
}

/* Wider custom select for 'All cases' dropdowns */
.custom-select-wrapper.wide-select {
  min-width: 150px;
}