.teacher-picker {
  position: relative;
}

.teacher-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background: #fffefb;
  border: 1px solid #dfe1d5;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}

.teacher-picker-trigger:focus-visible,
.teacher-picker-filter:focus-visible,
.teacher-picker-options [role="option"]:focus-visible {
  outline: 2px solid #657e57;
  outline-offset: 2px;
}

.teacher-picker-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.teacher-picker-arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.teacher-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  padding: 9px;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px #344c3018;
}

.teacher-picker-menu[hidden] {
  display: none;
}

.teacher-picker-filter {
  margin-bottom: 7px;
}

.teacher-picker-options {
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacher-picker-options [role="option"] {
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.teacher-picker-options [role="option"]:hover,
.teacher-picker-options [role="option"]:focus {
  background: #ecf0e3;
}

#teacher-picker-empty {
  margin: 8px 4px;
  color: var(--muted);
  font-size: 12px;
}

#teacher-picker-empty[hidden] {
  display: none;
}
