.np-combobox {
  position: relative;
  z-index: 1;
}

.np-combobox:focus-within,
.np-combobox.is-open {
  z-index: 4;
}

.np-combobox__control {
  position: relative;
}

.np-combobox__control .checkout-field__input,
.np-combobox__control input {
  width: 100%;
  padding-right: 2.75rem;
  font-size: 16px;
}

.np-combobox__toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  min-height: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.np-combobox__toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}

.np-combobox.is-open .np-combobox__toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.np-combobox__list {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: min(16rem, 50vh);
  max-height: min(16rem, 50dvh);
  margin: 0;
  padding: var(--sp-1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  list-style: none;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.np-combobox__option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: var(--lh-snug);
  text-align: left;
  cursor: pointer;
}

.np-combobox__option.is-active,
.np-combobox__option:hover {
  background: var(--c-accent-bg);
}

.np-combobox__status {
  margin: 0;
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

@media (max-width: 599px) {
    .np-combobox__list {
        max-height: min(14rem, 42vh);
        max-height: min(14rem, 42dvh);
    }
}

@media (min-width: 768px) {
  .np-combobox__list {
    max-height: min(18rem, 48vh);
  }
}

@supports (-webkit-touch-callout: none) {
  .np-combobox__option,
  .np-combobox__control input {
    font-size: 16px;
  }
}
