.wpwysz, .wpwysz * { box-sizing: border-box; }
.wpwysz {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 1680px;
  border-radius: 14px;
  margin: 0 auto;
  font-family: inherit;
  color: #202738;
  text-align: left;
}
/* Keeps live results just below the search field, independently of the tags. */
.wpwysz__input-area { position: relative; }
.wpwysz__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.wpwysz__form {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border: 0 solid #e1e6ef;
  border-radius: 43px;
  box-shadow: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.wpwysz__form:focus-within {
  border-color: #6b94e3;
  box-shadow: 0 6px 26px rgba(19, 34, 54, .12), 0 0 0 3px rgba(39, 100, 215, .11);
}
.wpwysz__input,
.wpwysz__input:focus {
  min-width: 0;
  width: 100%;
  height: 58px;
  flex: 1 1 auto;
  padding: 13px 14px 13px 21px;
  margin: 0;
  border: 0;
  outline: none;
  background: #fff;
  color: #202738;
  box-shadow: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}
.wpwysz__input::placeholder { color: #7b8493; opacity: 1; }
/* Prevent a duplicate native X: use our consistent clear control instead. */
.wpwysz__input::-webkit-search-cancel-button,
.wpwysz__input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.wpwysz__clear[hidden] { display: none !important; }
.wpwysz .wpwysz__clear,
.wpwysz .wpwysz__clear:hover,
.wpwysz .wpwysz__clear:focus {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #657185;
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.wpwysz .wpwysz__clear:hover { background: #edf3fe; color: #1e57b1; }
.wpwysz .wpwysz__clear:focus-visible { outline: 2px solid #2764d7; outline-offset: -2px; }
.wpwysz__clear svg { width: 16px; height: 16px; pointer-events: none; }
.wpwysz__search-button,
.wpwysz__search-button:hover,
.wpwysz__search-button:focus {
  align-self: stretch;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #515c6b;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
}
.wpwysz__search-button:hover { color: #205fca; }
.wpwysz__search-button:focus-visible { outline: 2px solid #205fca; outline-offset: -4px; }
.wpwysz__search-button svg { width: 24px; height: 24px; }
.wpwysz__dropdown {
  position: absolute;
  z-index: 99999;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 7px 0;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  box-shadow: 0 16px 46px rgba(16, 31, 52, .21);
  color: #222b39;
}
.wpwysz__dropdown[hidden],
.wpwysz__all-results[hidden],
.wpwysz__status[hidden] { display: none !important; }
.wpwysz__status {
  margin: 0;
  padding: 18px 21px;
  color: #647084;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.wpwysz__results {
  max-height: min(65vh, 530px);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  overscroll-behavior: contain;
}
.wpwysz__item { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #eff1f4; }
.wpwysz__item:last-child { border-bottom: 0; }
.wpwysz__link,
.wpwysz__link:visited {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 11px 17px;
  color: #202738;
  background: #fff;
  text-decoration: none;
  font-weight: normal;
  line-height: 1.4;
}
.wpwysz__link:hover,
.wpwysz__link.is-active,
.wpwysz__link:focus-visible {
  background: #f3f7fd;
  color: #1758b5;
  text-decoration: none;
  outline: 0;
}
.wpwysz__thumbnail {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 9px;
  background: #f1f3f6;
  object-fit: cover;
}
.wpwysz__details { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wpwysz__title { color: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; }
.wpwysz__excerpt {
  display: -webkit-box;
  color: #748095;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wpwysz__all-results,
.wpwysz__all-results:visited {
  display: block;
  padding: 13px 18px;
  color: #1b5fc6;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-top: 1px solid #ecedf0;
}
.wpwysz__all-results:hover { color: #124998; background: #f8faff; text-decoration: none; }
/* Seven clickable example searches below the field. */
.wpwysz__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin: 12px 0 0;
  padding: 0;
  line-height: 1.4;
}
.wpwysz__suggestions-label {
  margin-right: 2px;
  color: #5c6b7c;
  font-size: 13px;
  font-weight: 600;
}
.wpwysz .wpwysz__suggestion,
.wpwysz .wpwysz__suggestion:hover,
.wpwysz .wpwysz__suggestion:focus {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 5px 12px;
  background: #edf3fe;
  border: 0 solid #d8e3f9;
  border-radius: 999px;
  color: #0e0e0e;
  box-shadow: none;
  text-decoration: none;
  text-transform: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.wpwysz .wpwysz__suggestion:hover { background: #dce9fc; border-color: #aec8ed; }
.wpwysz .wpwysz__suggestion:focus-visible { outline: 2px solid #2764d7; outline-offset: 2px; }
/* Legible label above the hero background; pills keep the requested light-blue style. */
.home-page-hero__wrapper .wpwysz__suggestions-label { color: #fff; }
@media (max-width: 600px) {
  .wpwysz__suggestions { gap: 7px; margin-top: 10px; }
  .wpwysz .wpwysz__suggestion { font-size: 12px; padding: 5px 10px; }
}
@media (max-width: 600px) {
  .wpwysz__input, .wpwysz__input:focus { height: 52px; font-size: 16px; padding-left: 15px; }
  .wpwysz__search-button { flex-basis: 50px; width: 50px; }
  .wpwysz__dropdown { border-radius: 12px; }
  .wpwysz__link { gap: 11px; padding: 10px 12px; }
  .wpwysz__thumbnail { flex-basis: 50px; width: 50px; height: 50px; }
  .wpwysz__title { font-size: 14px; }
  .wpwysz__excerpt { font-size: 12px; }
}
/* Integration with hero layouts that style .search-form as a separate box. */
.home-page-hero__wrapper .search-form:has(> .wpwysz) {
  margin-inline: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page-hero__wrapper .search-form .wpwysz__input,
.home-page-hero__wrapper .search-form .wpwysz__input:focus {
  width: 100%;
  height: 58px;
  padding: 13px 14px 13px 21px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #202738;
  box-shadow: none;
}
@media (max-width: 600px) {
  .home-page-hero__wrapper .search-form .wpwysz__input,
  .home-page-hero__wrapper .search-form .wpwysz__input:focus {
    height: 52px;
    padding-left: 15px;
  }
}

/* Search form in the footer: bordered, without example phrases. */
.footer-widget-col .wpwysz__form {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border: 2px solid #e1e6ef;
  margin-top: 20px;
}
.footer-widget-col .wpwysz__suggestions {
  display: none;
}

/* Compact presentation on phones, as requested. */
@media (max-width: 640px) {
  .wpwysz {
    max-width: 92% !important;
    display: table;
  }
  .wpwysz__form {
    margin-bottom: 20px !important;
  }
  .wpwysz__suggestions {
    display: none;
  }
}
