.scai-model-picker {
  position: relative;
  color: #f1dfff;
}

.scai-model-picker[open] {
  z-index: 25;
}

.scai-model-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #00e3fd;
  border-radius: 8px;
  background: #2a1740;
  font-weight: 700;
  list-style: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.scai-model-picker > summary::-webkit-details-marker {
  display: none;
}

.scai-model-picker > summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.scai-model-picker[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.scai-model-menu {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  max-height: min(300px, 44vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 4px;
  border: 1px solid #573b6e;
  border-radius: 8px;
  background: #2a1740;
  box-shadow: 0 12px 24px rgb(0 0 0 / 28%);
}

.scai-model-menu > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  overflow-wrap: anywhere;
}

.scai-model-menu small {
  max-width: 112px;
  color: #c6b3d9;
  text-align: right;
  font-size: 12px;
}

.scai-model-menu > button:hover,
.scai-model-menu > button:focus-visible,
.scai-model-menu > button[aria-pressed="true"] {
  background: #1c0832;
}

.scai-model-menu > button[aria-pressed="true"] {
  border-color: #00e3fd;
  color: #00e3fd;
}
