/* The suggestion list and its status line. The input stays the page's own.
   Set the variables on the element: colours come from the business. */
address-search { display: block; }
/* Zero specificity, so a concept's own colours win even when this file loads later. */
:where(address-search) {
  --as-bg: #fff;
  --as-ink: inherit;
  --as-line: #d8d5cd;
  --as-shadow: #00000014;
  --as-hover: #f4f1ea;
  --as-hover-ink: inherit;
  --as-muted: #6b6a66;
}
.as-field { position: relative; }
/* Room left above the field when it is lifted on a phone: set --as-scroll-top to the sticky header's height. */
.as-field input { scroll-margin-top: var(--as-scroll-top, 16px); }
.as-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 100%;
  overscroll-behavior: contain;
  max-height: 300px;
  overflow: auto;
  list-style: none;
  margin: 5px 0 0;
  padding: 5px;
  background: var(--as-bg);
  color: var(--as-ink);
  border: 1px solid var(--as-line);
  border-radius: 12px;
  box-shadow: 0 12px 24px var(--as-shadow);
}
.as-list[hidden] { display: none; }
.as-list li {
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.as-list li:hover, .as-list li[aria-selected="true"] {
  background: var(--as-hover);
  color: var(--as-hover-ink);
}
.as-status { font-size: 14px; line-height: 1.4; margin: 8px 0; color: var(--as-muted); }
.as-status:empty { display: none; }
