/* Suggestions are portalled below the text input, outside clipped form panels. */
.hb-autocomplete-popup {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 180;
  box-sizing: border-box;
  overflow: hidden;
  padding: 5px;
  border: 2px solid var(--ink, #36214f);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 9px 25px rgba(54, 33, 79, .18);
  font-family: inherit;
}
.hb-autocomplete-popup[hidden] { display: none !important; }
.hb-autocomplete-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.hb-autocomplete-popup .hb-autocomplete-option {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  color: var(--ink, #36214f);
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transform: none;
}
.hb-autocomplete-option:hover,
.hb-autocomplete-option[aria-selected="true"],
.hb-autocomplete-option:focus-visible { background: #fff0b5; outline: 0; }
.hb-autocomplete-name { display: block; font-weight: 700; overflow-wrap: anywhere; }
.hb-autocomplete-detail { display: block; margin-top: 2px; color: #75634f; font-size: 12px; overflow-wrap: anywhere; }
.hb-autocomplete-hint { flex-shrink: 0; padding: 8px 10px 4px; border-top: 1px solid #eadfcf; color: #75634f; font-size: 11px; line-height: 1.4; }
.hb-autocomplete-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hb-autocomplete-status.is-unavailable {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 7px 0 0;
  padding: 9px 11px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 1px solid #e6c795;
  border-radius: 10px;
  background: #fff6e4;
  color: #765320;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .hb-autocomplete-popup .hb-autocomplete-option { font-size: 16px; min-height: 46px; }
}

.hb-autocomplete-popup .hb-autocomplete-option.has-breed-photo { display: flex; align-items: center; gap: 11px; }
.hb-autocomplete-breed-photo { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; background: #fff8eb; border: 1px solid #e5d7c8; border-radius: 10px; }
.hb-autocomplete-option.has-breed-photo .hb-autocomplete-name { min-width: 0; }
