.rw18-select-root {
  position: relative;
  width: 100%;
}

.rw18-select-root > select.rw18-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
}

.rw18-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  background-color: #212121;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--text-light, #eee);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.rw18-select-trigger:hover {
  border-color: #444;
}

.rw18-select-trigger:focus {
  outline: none;
  border-color: var(--color-red, #d71f2c);
}

.rw18-select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rw18-select-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") center / contain no-repeat;
}

.rw18-select-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.rw18-select-panel {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 2000;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.rw18-select-panel[aria-hidden="true"] {
  display: none;
}

.rw18-select-option {
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-muted, #bbb);
  cursor: pointer;
  line-height: 1.35;
}

.rw18-select-option:hover,
.rw18-select-option:focus {
  background: #2a2a2a;
  color: var(--text-light, #eee);
  outline: none;
}

.rw18-select-option.is-selected {
  color: var(--color-red-light, #e85c66);
  background: rgba(215, 31, 44, 0.08);
}