.custom-select {
  position: relative;
  width: 100%;
  color: var(--color-secondary-ink);
  font-family: var(--font-family-body);
  font-size: var(--font-size-form-control);
  line-height: var(--line-height-form-control);
}

.custom-select__trigger {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(26, 26, 26, 0.3);
  border-radius: 6px;
  color: var(--color-secondary-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.custom-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__value.is-placeholder {
  color: rgba(26, 26, 26, 0.62);
}

.custom-select__arrow {
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  color: rgba(26, 26, 26, 0.55);
  transition: transform 220ms ease;
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__trigger:focus-visible,
.custom-select.is-open .custom-select__trigger {
  border-color: var(--color-primary-green);
  outline: 2px solid var(--color-primary-green);
  outline-offset: 2px;
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: var(--z-cta);
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(26, 26, 26, 0.14);
}

.custom-select__options[hidden] {
  display: none;
}

.custom-select__option {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 2px;
  color: var(--color-secondary-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.custom-select__option:is(:hover, :focus-visible),
.custom-select__option[aria-selected="true"] {
  color: #fff;
  background: var(--color-primary-orange);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .custom-select__arrow {
    transition: none;
  }
}
