.a5e-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  color: #111827;
  font-family: inherit;
}

.a5e-select,
.a5e-select * {
  box-sizing: border-box;
}

.a5e-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.a5e-select__trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 2.75rem !important;
  padding: 0.625rem 0.75rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  color: #374151 !important;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04) !important;
  font: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.25rem !important;
  text-align: left !important;
  cursor: pointer !important;
}

.a5e-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a5e-select__chevron {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  transition: transform 150ms ease;
}

.a5e-select[data-open="true"] .a5e-select__trigger {
  border-color: #635bff !important;
  box-shadow: 0 0 0 3px rgb(99 91 255 / 0.14) !important;
}

.a5e-select[data-open="true"] .a5e-select__chevron {
  transform: rotate(180deg);
}

.a5e-select__trigger:focus-visible {
  border-color: #635bff !important;
  outline: 2px solid #635bff !important;
  outline-offset: 2px !important;
}

.a5e-select__trigger:disabled {
  background: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.75;
}

.a5e-select__menu {
  box-sizing: border-box;
  position: fixed;
  top: auto;
  left: auto;
  z-index: 70;
  width: auto;
  min-width: 0;
  max-width: min(30rem, calc(100vw - 2rem));
  max-height: min(20rem, 55vh);
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 12px 35px rgb(15 23 42 / 0.12);
}

.a5e-select__menu[hidden] { display: none !important; }

.a5e-select__option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 2.5rem !important;
  padding: 0.65rem 0.75rem !important;
  border: 0 !important;
  border-radius: 0.5625rem !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.25rem !important;
  text-align: left !important;
  white-space: normal !important;
  cursor: pointer !important;
}

.a5e-select__option:hover,
.a5e-select__option:focus-visible {
  background: #f8fafc !important;
  outline: none !important;
}

.a5e-select__option[aria-selected="true"] {
  background: #f0edff !important;
  color: #5145cd !important;
  font-weight: 600 !important;
}

.a5e-select__option:disabled {
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

.a5e-select__option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.a5e-select__check {
  flex: 0 0 auto;
  width: 1rem;
  color: #635bff;
  font-weight: 700;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .a5e-select__chevron { transition: none; }
}
