.ib-select {
  position: relative;
  width: 100%;
}

.has-open-select {
  position: relative;
  z-index: 30;
}

.ib-select__native {
  position: absolute;
  inset: auto auto 0 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ib-select__button {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.ib-select__button:disabled {
  cursor: default;
  opacity: .6;
}

.ib-select__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--ib-line, #e4e7ec);
  border-radius: var(--ib-radius, 12px);
  background: var(--ib-bg, #fff);
  color: var(--ib-fg, #0f1115);
  box-shadow: var(--ib-shadow-lift, 0 20px 50px rgba(15, 17, 21, .14));
  outline: none;
}

.ib-select__list[hidden] {
  display: none;
}

.ib-select__option {
  position: relative;
  padding: 10px 36px 10px 12px;
  border-radius: calc(var(--ib-radius, 12px) - 4px);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

.ib-select__option.is-active {
  background: var(--ib-bg-soft, #f5f6f8);
}

.ib-select__option[aria-selected="true"] {
  color: var(--ib-accent-ink, var(--ib-accent, #0f1115));
  font-weight: 600;
}

.ib-select__option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 6px;
  margin-top: -5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.ib-select__option[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}
