.falix-select {
  position: relative;
  width: 100%;
  text-align: start;
}
.falix-select > select.falix-select-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.falix-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 16px 14px 18px;
  border: none;
  border-radius: 14px;
  background: rgba(30,41,59,.8);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease;
}
.falix-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: auto;
}
.falix-select-trigger::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.4)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
  transition: transform .35s ease;
}
.falix-select-trigger[aria-expanded="true"]::after { transform: rotateX(180deg); }
.falix-select-trigger:hover, .falix-select-trigger:focus { background: #1e293b; }
.falix-select-trigger:focus { outline: none; }
.falix-select-trigger:focus-visible { box-shadow: 0 0 0 2px rgba(37,99,235,.4); }
.falix-select-trigger:disabled { opacity: .4; cursor: not-allowed; }
.falix-select-menu {
  position: fixed;
  z-index: 10000;
  max-height: 250px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 5px;
  border: none;
  border-radius: 12px;
  background: #1e293b;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  text-align: start;
}
.falix-select-option {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  background: transparent;
  font-size: .88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  transition: background-color .15s ease;
}
.falix-select-option:hover, .falix-select-option.is-active {
  background: #334155;
  color: #fff;
}
.falix-select-option[aria-selected="true"] {
  background: rgba(37,99,235,.2);
  color: #60a5fa;
}
.falix-select-option[aria-disabled="true"] { opacity: .4; cursor: not-allowed; font-style: italic; }
.falix-select-menu::-webkit-scrollbar { width: 6px; }
.falix-select-menu::-webkit-scrollbar-track { background: transparent; }
.falix-select-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 6px; }
@media (pointer: coarse) {
  .falix-select-trigger { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .falix-select-trigger, .falix-select-trigger::after, .falix-select-option { transition: none; }
}
