.ui-autocomplete {
  z-index: 10000;
  min-width: 0;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  border: 1px solid #1e2882;
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(207, 72, 11, 0.18);
  font-family: inherit;
}

.ui-autocomplete .ui-menu-item {
  margin: 0;
  padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
  padding: 7px 10px;
  border: 0;
  color: #1e2882;
  font-size: 16px;
  line-height: 1.25;
}

.ui-autocomplete .ui-menu-item-wrapper:hover {
  margin: 0;
  border: 0;
  background: #fff3ed;
  color: #1e2882;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  margin: 0;
  border: 0;
  background: #1e2882;
  color: #fff;
}

/* RO address autocomplete — postal code results from addresses API. */
.ui-autocomplete .np-ro-address-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 2px 0;
}

.ui-autocomplete .np-ro-address-item__main {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.25;
}

.ui-autocomplete .np-ro-address-item__details {
  display: block;
  overflow-wrap: anywhere;
  color: #555;
  font-size: 14px;
  line-height: 1.3;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active .np-ro-address-item__details {
  color: #fff;
}

@media (max-width: 575.98px) {
  .ui-autocomplete {
    max-width: calc(100vw - 20px);
    max-height: 260px;
  }

  .ui-autocomplete .ui-menu-item-wrapper {
    padding: 10px 12px;
  }
}
