.ui-select {
  --ui-select-surface: rgba(255, 255, 255, .92);
  --ui-select-border: rgba(111, 125, 119, .24);
  --ui-select-ink: var(--ink, #14201d);
  --ui-select-muted: var(--muted, var(--outline, #65736d));
  --ui-select-green: var(--emerald, var(--green, #064e3b));
  --ui-select-accent: var(--lime, #afff00);
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.ui-select-button {
  width: 100%;
  min-height: 42px;
  padding: 0 13px 0 14px;
  border: 1px solid var(--ui-select-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ui-select-ink);
  background: var(--ui-select-surface);
  box-shadow: 0 2px 6px rgba(6, 78, 59, .04);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.ui-select-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--ui-select-green) 38%, var(--ui-select-border));
  background: white;
}

.ui-select-button:focus-visible,
.ui-select-button.is-open {
  outline: 0;
  border-color: var(--ui-select-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-select-accent) 22%, transparent), 0 8px 20px rgba(6, 78, 59, .1);
}

.ui-select-button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.ui-select-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ui-select-button.is-placeholder .ui-select-label { color: var(--ui-select-muted); }
.ui-select-chevron { flex: 0 0 auto; color: var(--ui-select-green); font-family: "Material Symbols Outlined", sans-serif; font-size: 20px; line-height: 1; transition: transform .18s ease; }
.ui-select-button.is-open .ui-select-chevron { transform: rotate(180deg); }

.ui-select-menu {
  position: fixed;
  z-index: 10000;
  min-width: 160px;
  max-height: min(280px, calc(100vh - 24px));
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 14px;
  color: var(--ink, #14201d);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 44px rgba(6, 78, 59, .2), 0 4px 10px rgba(6, 78, 59, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-4px) scale(.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.ui-select-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ui-select-option {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink, #14201d);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.ui-select-option:hover:not(:disabled),
.ui-select-option:focus-visible {
  outline: 0;
  color: var(--emerald, var(--green, #064e3b));
  background: rgba(231, 255, 179, .54);
}

.ui-select-option.is-selected { color: var(--emerald, var(--green, #064e3b)); font-weight: 800; background: rgba(175, 255, 0, .2); }
.ui-select-option.is-selected::after { content: "check"; color: var(--emerald, var(--green, #064e3b)); font-family: "Material Symbols Outlined", sans-serif; font-size: 18px; }
.ui-select-option:disabled { opacity: .42; cursor: not-allowed; }

@media (max-width: 640px) {
  .ui-select-menu { max-height: min(240px, calc(100vh - 20px)); }
}
