.wrapper {
  position: relative;
}

.trigger {
  width: 100%;
  min-height: var(--field-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: var(--field-padding-y) var(--field-padding-x);
  font-size: var(--field-font-size);
  font-family: inherit;
  color: var(--text-primary);
  text-align: left;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trigger:hover:not(:disabled) {
  border-color: rgba(var(--primary-dark-rgb) / 0.35);
}

.triggerOpen,
.trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-dark-rgb) / 0.12);
  outline: none;
}

.trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.triggerPlaceholder .triggerText {
  color: var(--text-muted);
}

.triggerText {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.chevronOpen {
  transform: rotate(180deg);
}

.triggerSearchIcon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}

.searchWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
}

.searchIcon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.searchInput {
  width: 100%;
  min-width: 0;
  padding: 0;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

.searchInput::placeholder {
  color: var(--text-muted);
}

.optionsList {
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-primary);
  text-align: left;
  border-radius: 8px;
  transition: background 0.15s;
}

.option:hover {
  background: rgba(var(--primary-dark-rgb) / 0.08);
}

.optionSelected {
  color: var(--primary);
  font-weight: 500;
}

.check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(148, 163, 184, 0.55);
  border-radius: 4px;
  color: white;
  background: white;
}

.checkSelected {
  border-color: var(--primary);
  background: var(--primary);
}

.empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.measureText {
  position: absolute;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
