.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%; /* you can adjust */
  font-family: Arial, sans-serif;
}

.custom-select-display {
  width: 100%;
  padding: 8px 30px 8px 10px; /* right padding for the arrow */
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.custom-select-display::after {
  content: "▼"; /* Unicode down arrow */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #555;
  pointer-events: none;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* match parent width */
  /* max-height: 230px; */
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  z-index: 999;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow-y: auto;  /* change this line */
}
.custom-select-options::-webkit-scrollbar {
  width: 1px;
  background: royalblue;  
  display: none;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15);
  border-radius: 10px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.25); /* hover पर थोड़ा ज्यादा visible */
}
.custom-select-search {
  padding: 6px 10px;    
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

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

.custom-select-list {
  max-height: 400px;
  overflow-y: auto;
}

.custom-select-list .selected {
  background: royalblue;
  color: white;
}


.custom-select-list div {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-list div:hover,
.custom-select-list .highlighted {
  background: royalblue;
  color: white;
}