/* Tara's Pharmacy autocomplete: positioned under existing WordPress search, no header restyling. */
form.taras-search-form { position: relative !important; }
.taras-search-suggestions[hidden] { display: none !important; }
.taras-search-suggestions {
  position: absolute; left: 0; top: calc(100% + 7px); z-index: 10050;
  width: max(100%, 330px); max-width: min(92vw, 480px);
  max-height: min(65vh, 470px); overflow-y: auto;
  background: #fff; color: #123b68; text-align: left;
  border: 1px solid #dce5f0; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(5, 34, 74, .18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px; line-height: 1.4;
}
.taras-search-heading {
  padding: 11px 14px 8px; font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em; color: #54709b;
}
.taras-search-suggestion {
  display: flex !important; flex-direction: column; align-items: flex-start;
  padding: 10px 14px; gap: 2px;
  color: #123b68 !important; text-decoration: none !important;
  border-bottom: 1px solid #edf2f8;
}
.taras-search-suggestion:hover, .taras-search-suggestion:focus-visible {
  background: #f0f6ff; outline: none; box-shadow: inset 3px 0 #f47824;
}
.taras-search-suggestion-title { font-weight: 700; font-size: 13px; line-height: 1.35; }
.taras-search-suggestion-kind { font-weight: 400; font-size: 11px; color: #54709b; }
.taras-search-footer { padding: 10px 14px; color: #54709b; font-size: 11px; background: #f8fafc; }
@media (max-width: 600px) {
  .taras-search-suggestions { max-width: min(90vw, 380px); width: max(100%, 250px); }
}

/* Directly rendered search results — shared with existing WordPress site styling */
.taras-smart-results .taras-search-count { font-size: 13px; color: #54709b; margin: 0 0 14px; }
.taras-smart-results .taras-search-kind { display: block; color: #e8671f; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; margin-bottom: 7px; }
.taras-smart-results .taras-search-pagination { display: flex; gap: 10px; justify-content: center; }
.taras-smart-results .taras-search-pagination a { min-width: 32px; padding: 6px 9px; border-radius: 6px; background: #f2f6fc; color: #0754a7; text-align: center; text-decoration: none; }
.taras-smart-results .taras-search-pagination a[aria-current="page"] { background: #0754a7; color: #fff; }
.taras-search-empty { padding: 18px 0; color: #415675; }

/* Spelling suggestions supplement exact matches rather than replacing them. */
.taras-search-correction { color: #54709b; font-size: 12px; margin: 4px 0 12px; }
.taras-search-suggestions .taras-search-correction { margin: 0; padding: 0 14px 9px; font-size: 11px; }
