/**
 * Places autocomplete suggestion menu — storefront port of POS delivery-place UI.
 */

.suggest-menu {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 2px;
  max-height: 14rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--color-stroke, #e5e5e5);
  border-radius: var(--radius-md, 0.5rem);
  background: var(--color-white, #fff);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  z-index: 20;
}

.suggest-menu.open {
  display: flex;
}

.suggest-row {
  flex-shrink: 0;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-sm, 0.35rem);
  cursor: pointer;
  font: inherit;
  color: var(--color-black, #212121);
  font-size: var(--text-sm, 0.875rem);
  padding: 0.65rem 0.75rem;
  line-height: 1.35;
  transition: background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.suggest-row:hover,
.suggest-row:focus-visible {
  outline: none;
  background: var(--color-natural-white-25, #f5f4f1);
}

.suggest-empty {
  padding: 0.65rem 0.75rem;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-light-charcoal, #575757);
}

.client-match {
  background: none;
  color: var(--color-black, #212121);
  font-weight: var(--font-weight-semibold, 600);
  padding: 0;
}

.delivery-place-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.delivery-place-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-light-charcoal, #575757);
}

.delivery-place-row-text {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.delivery-place-row-secondary {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--color-light-charcoal, #575757);
  line-height: 1.35;
}

.delivery-place-loading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.delivery-place-loading-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  opacity: 0;
  animation: deliveryPlaceSkIn 0.28s ease forwards;
}

.delivery-place-loading-pin {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--color-natural-white-60, #ebe8e2);
  animation: placesSkPulse 1.8s ease-in-out infinite;
}

.delivery-place-loading-lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.delivery-place-loading-lines .sk-line {
  height: 0.625rem;
  border-radius: 0.35rem;
  background: var(--color-natural-white-60, #ebe8e2);
  animation: placesSkPulse 1.8s ease-in-out infinite;
}

.delivery-place-loading-lines .sk-line.wide {
  width: 100%;
}

.delivery-place-loading-lines .sk-line.short {
  width: 42%;
}

@keyframes deliveryPlaceSkIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes placesSkPulse {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.7;
  }
}
