.pps-search {
  --pps-accent: #2563eb;
  --pps-border: #d8dee8;
  --pps-bg: #fff;
  --pps-text: #172033;
  position: relative;
  width: min(100%, 620px);
  color: var(--pps-text);
  font-family: inherit;
}

.pps-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--pps-border);
  border-radius: 12px;
  background: var(--pps-bg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20, 30, 50, .07);
}

.pps-search__form:focus-within {
  border-color: var(--pps-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pps-accent) 16%, transparent);
}

.pps-search__input {
  flex: 1 1 auto;
  min-width: 80px;
  height: 46px;
  padding: 0 14px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
}

.pps-search__input::-webkit-search-cancel-button { cursor: pointer; }

.pps-search__button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background: var(--pps-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pps-search__button:hover { filter: brightness(.93); }

.pps-search__results {
  position: absolute;
  z-index: 99999;
  inset-inline: 0;
  top: calc(100% + 8px);
  max-height: min(65vh, 430px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--pps-border);
  border-radius: 12px;
  background: var(--pps-bg);
  box-shadow: 0 14px 36px rgba(20, 30, 50, .16);
}

.pps-search__result {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: inherit !important;
  text-decoration: none !important;
  text-align: right;
}

.pps-search__result:hover,
.pps-search__result:focus,
.pps-search__result.is-active {
  background: #f1f5ff;
  outline: none;
}

.pps-search__result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.pps-search__result-head strong { font-size: 15px; }
.pps-search__result-head small { color: #667085; white-space: nowrap; }

.pps-search__excerpt {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  line-height: 1.75;
}

.pps-search__message {
  margin: 0;
  padding: 14px;
  color: #667085;
  text-align: center;
}

@media (max-width: 520px) {
  .pps-search__button { padding-inline: 13px; }
  .pps-search__excerpt { display: none; }
}

