.enhanced-select {
  position: relative;
}

.enhanced-select__native {
  width: 100%;
}

.enhanced-select__trigger {
  display: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.enhanced-select__value.is-placeholder {
  color: var(--text-muted);
}

.enhanced-select__icon {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.enhanced-select__icon::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-right: 1.4px solid var(--color-primary);
  border-bottom: 1.4px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.enhanced-select.is-open .enhanced-select__icon::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.enhanced-select__menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  gap: 2px;
  background: var(--color-white);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 35;
  max-height: 260px;
  overflow: auto;
}

.enhanced-select__menu[hidden] {
  display: none;
}

.is-enhanced .enhanced-select__native {
  display: none;
}

.is-enhanced .enhanced-select__trigger {
  display: block;
}

.is-enhanced .enhanced-select__menu {
  display: grid;
}

.is-enhanced .enhanced-select__menu[hidden] {
  display: none;
}

.enhanced-select__option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.enhanced-select__option:hover,
.enhanced-select__option:focus-visible {
  outline: none;
  background: rgba(159, 184, 184, 0.2);
  color: var(--text-primary);
}

.enhanced-select__option.is-selected {
  background: rgba(159, 184, 184, 0.24);
  color: var(--color-dark);
  font-weight: 600;
}
