.Dropdown-root {
  position: relative;
}

.Dropdown-control {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 8px 52px 8px 10px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.Dropdown-control:hover:not(:disabled) {
  border-color: #999;
}

.Dropdown-control:focus-visible {
  border-color: #2563eb;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 25%);
}

.Dropdown-disabled {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}

.Dropdown-placeholder {
  display: block;
  overflow: hidden;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Dropdown-placeholder.is-selected {
  color: #222;
}

.Dropdown-arrow-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 40px;
  height: 100%;
  place-items: center;
  pointer-events: none;
}

.Dropdown-arrow {
  width: 0;
  height: 0;
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #777 transparent transparent;
  transition: transform 150ms ease;
}

.is-open .Dropdown-arrow {
  transform: rotate(180deg);
}

.Dropdown-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 240px;
  box-sizing: border-box;
  padding: 4px 0;
  margin: 0;
  overflow-y: auto;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.Dropdown-group,
.Dropdown-group > ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.Dropdown-title {
  padding: 8px 10px 4px;
  color: #555;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.Dropdown-option {
  display: block;
  box-sizing: border-box;
  padding: 8px 10px;
  color: #333;
  cursor: pointer;
}

.Dropdown-option.is-active {
  background: #eff6ff;
}

.Dropdown-option.is-selected {
  color: #1d4ed8;
  font-weight: 600;
}

.Dropdown-option.is-disabled {
  color: #aaa;
  cursor: not-allowed;
}

.Dropdown-noresults {
  box-sizing: border-box;
  padding: 8px 10px;
  color: #777;
}

@media (prefers-reduced-motion: reduce) {
  .Dropdown-control,
  .Dropdown-arrow {
    transition: none;
  }
}
