/**
 * /doctors/ and /services/ — live search box above the filter pills
 * (FacetWP `search` facets `doctor_search` / `service_search`).
 * Same pill outline as the filter buttons. Markup: template-parts/elements/
 * doctor-filters.php, service-filters.php + inc/facetwp-customizations.php.
 * Plain CSS, no build.
 */
.zd-archive-search {
  width: 100%;
  margin-bottom: 1.5rem;
}

.zd-archive-search .facetwp-facet {
  width: 100%;
  margin-bottom: 0 !important;
}

.zd-archive-search .facetwp-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.zd-archive-search .facetwp-search {
  display: block;
  width: 100%;
  height: 3.125rem;
  min-width: 0;
  margin: 0;
  padding: 0 1.5rem 0 3.5rem;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--footer-border-light);
  border-radius: 6.1875rem;
  color: var(--wp--preset--color--primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.25rem;
  transition: border-color 0.3s ease;
}

.zd-archive-search .facetwp-search::placeholder {
  color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
  opacity: 1;
}

.zd-archive-search .facetwp-search:hover,
.zd-archive-search .facetwp-search:focus {
  border-color: var(--wp--preset--color--primary);
}

.zd-archive-search .facetwp-search:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* FacetWP draws its magnifier as a background on the right — ours sits left. */
.zd-archive-search .facetwp-icon.zd-facet-search__icon {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  right: auto;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  background: none;
  opacity: 1;
  transform: translateY(-50%);
  color: var(--wp--preset--color--primary);
  pointer-events: none;
}

.zd-archive-search .facetwp-icon.zd-facet-search__icon::before {
  display: none;
}

.zd-archive-search .zd-facet-search__icon svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.zd-archive-search .zd-facet-search__icon svg path {
  fill: currentColor;
}

/* FacetWP's spinner while the results load (it swaps the icon class). */
.zd-archive-search .facetwp-icon.zd-facet-search__icon.f-loading {
  background: none;
}

@media (min-width: 768px) {
  .zd-archive-search {
    max-width: 30rem;
  }
}
