/* Container styles */
.bb-custom-select-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Opener button styles */
.bb-custom-select-opener {
  display: none;
}

/* Disabled state styles */
.bb-custom-select-container.bb-is-disabled .bb-custom-select-opener {
  background-color: #e9ecef;
  border-color: #505050;
  color: #6c757d;
  cursor: not-allowed;
}

/* Add not-allowed cursor to the entire container when disabled */
.bb-custom-select-container.bb-is-disabled {
  cursor: not-allowed;
}

/* Also ensure the select element shows not-allowed cursor when disabled */
.bb-custom-select-container.bb-is-disabled select {
  cursor: not-allowed;
}

.bb-custom-select-container.bb-is-disabled .bb-custom-select-opener::after {
  border-top-color: #6c757d;
}

/* Add dropdown arrow */
.bb-custom-select-opener::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #666;
}

/* Rotate arrow when open */
.bb-custom-select-opener.bb-is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Keep native select visible */
.bb-customSelect select {
  position: relative;
  width: 100%;
}

/* Dropdown panel */
.bb-custom-select-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999999;
  margin-top: 4px;
  width: max-content;
  min-width: 100%;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
}

/* Show panel when container has bb-is-open class */
.bb-custom-select-container.bb-is-open .bb-custom-select-panel {
  display: block;
}

/* Option styles */
.bb-custom-select-option {
  padding: 6px 12px;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
}

.bb-custom-select-option:hover,
.bb-custom-select-option.bb-has-focus {
  background-color: #f0f9fa;
}

.bb-custom-select-option.bb-is-selected {
  background-color: #e9ecef;
}
