[data-scope="select"][data-part="control"] {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  align-items: flex-start;
}

[data-scope="select"][data-part="label"] {
  font-size: 14px;
}

[data-scope="select"][data-part="label"][data-disabled] {
  cursor: default;
  color: gray;
}

[data-scope="select"][data-part="label"][data-invalid] {
  color: red;
}

[data-scope="select"][data-part="trigger"] {
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 6px;
  cursor: default;
  background: #eeeeee;
  font-size: 14px;
  border: 1px solid slategray;

  & svg {
    width: 14px;
    height: 14px;
  }
}

.select svg {
  position: relative;
  top: 1px;
}

[data-scope="select"][data-part="trigger"]:disabled {
  cursor: default;
}

[data-scope="select"][data-part="trigger"][data-invalid] {
  border: 2px solid red;
}

[data-scope="select"][data-part="positioner"] {
  width: max-content;
}

[data-scope="select"][data-part="content"] {
  padding: 0px;
  list-style: none;
  width: 240px;
  margin: 0;
  margin-top: 4px;
  padding: 4px;
  background: #efefef;
  max-height: min(var(--available-height), 400px);
  overflow-y: auto;
  position: relative;
  overscroll-behavior: contain;
  z-index: var(--layer-index);
}

.select input {
  position: sticky;
  top: 0;
}

[data-scope="select"][data-part="item"] {
  padding: 4px 8px;
  cursor: default;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

[data-scope="select"][data-part="item"][data-disabled] {
  color: #777;
}

[data-scope="select"][data-part="item-text"] {
  flex: 1;
  width: 100%;
}

[data-scope="select"][data-part="item"][data-state="checked"] {
  background: blue;
  color: white;
}

[data-scope="select"][data-part="item"][data-highlighted] {
  background: rgb(0, 0, 195);
  color: white;
}
