/* Delivery address Places suggestions (select or type manually) */
.delivery-addr-suggest {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Prevent iOS/mobile focus zoom on address inputs */
.delivery-addr-suggest input,
.delivery-addr-suggest textarea {
  font-size: 16px !important;
}

.delivery-addr-suggest__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 2050;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(12, 31, 74, 0.12);
  /* Overlay only — never push page / images */
  transform: translateZ(0);
}

.delivery-addr-suggest__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.25;
}

.delivery-addr-suggest__item:hover,
.delivery-addr-suggest__item:focus {
  background: #eef3f9;
  outline: none;
}

.delivery-addr-suggest__main {
  font-size: 13px;
  font-weight: 600;
  color: #0c1f4a;
}

.delivery-addr-suggest__secondary {
  font-size: 11.5px;
  color: #6b7293;
}

/* Absolute hint — no layout jump while typing */
.delivery-addr-suggest__hint {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 2049;
  margin: 0;
  padding: 0 2px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #6b7293;
  pointer-events: none;
}

.delivery-addr-suggest__hint.is-error {
  color: #b91c1c;
}

/* Open upward when the address field sits at the bottom of a modal */
.delivery-addr-suggest.is-drop-up .delivery-addr-suggest__list,
.delivery-addr-suggest.is-drop-up .delivery-addr-suggest__hint {
  top: auto;
  bottom: calc(100% + 4px);
}

/* POS Add Customer: do not clip the absolute suggestion list */
#add_customer_modal,
#add_customer_modal .modal-content,
#add_customer_modal .customer_add_modal_info_holder,
#add_customer_modal .customer_section {
  overflow: visible;
}

.position-relative > .delivery-addr-suggest {
  width: 100%;
}
