.frog-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

body.frog-public .frog-public__dock-search,
body.frog-public .frog-home__command {
  overflow: visible;
}

/* The shell's rounded form must not clip the anchored suggestion panel. */
body form.frog-catalog-shell__search { overflow: visible !important; }

.frog-search-input-wrap > input[name="q"] {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  padding-right: 42px !important;
}

.frog-search-input-wrap input[type="search"]::-webkit-search-cancel-button { display: none; }

body .frog-search-input-wrap > button.frog-search-clear {
  position: absolute !important;
  top: 50%;
  right: 8px !important;
  z-index: 3 !important;
  width: 28px;
  height: 28px;
  min-width: 0;
  margin: 0 !important;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #48685a;
  font-size: 24px;
  line-height: 28px;
}

body .frog-search-input-wrap > button.frog-search-clear:not([hidden]) { display: block !important; }
body .frog-search-input-wrap > button.frog-search-clear[hidden] { display: none !important; }

.frog-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 3;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6f8179;
  font-size: 22px;
  line-height: 22px;
  cursor: pointer;
}

body .frog-search-input-wrap > button.frog-search-clear:hover,
body .frog-search-input-wrap > button.frog-search-clear:focus-visible {
  background: #edf6f1;
  color: #007b51;
}

.frog-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 1000;
  overflow: auto;
  max-height: min(420px, 55vh);
  min-width: min(340px, 100%);
  border: 1px solid #cfe3d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 73, 51, .16);
}

.frog-search-suggestions[hidden] {
  display: none;
}

.frog-search-suggestions__group + .frog-search-suggestions__group {
  border-top: 1px solid #edf3f0;
}

.frog-search-suggestions__title {
  padding: 8px 12px 5px;
  color: #6a8176;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body .frog-search-suggestions .frog-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  min-width: 0;
  height: auto;
  margin: 0;
  background: transparent;
  color: #16372a;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body .frog-search-suggestions .frog-search-suggestion--all {
  color: #007b51;
  border-top: 1px solid #edf3f0;
  font-weight: 700;
}

.frog-search-suggestions__empty { padding: 14px; color: #577265; }
.frog-search-suggestions__loading { padding: 14px; color: #577265; }

body .frog-search-suggestions mark.frog-search-match {
  padding: 0;
  background: transparent;
  color: #007b51;
  font: inherit;
}

body .frog-search-suggestions .frog-search-suggestion:focus-visible,
body .frog-search-suggestions .frog-search-suggestion.is-active {
  outline: 0;
  background: #edf9f3;
  color: #007b51;
}

body .frog-search-suggestions .frog-search-suggestion--correction {
  justify-content: flex-start;
  color: #007b51;
  font-weight: 700;
}

.frog-search-suggestion__label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.frog-search-suggestion__meta {
  flex: 0 0 auto;
  color: #71877d;
  font-size: 12px;
}

.frog-search-correction,
.frog-search-entities {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid #00a866;
  border-radius: 0 12px 12px 0;
  background: #f1faf5;
  color: #28483b;
}

.frog-search-correction {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.frog-search-correction a,
.frog-search-entities a {
  color: #007b51;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.frog-search-entities h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.frog-search-entities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frog-search-entities li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}

.frog-search-entities li span {
  color: #6a8176;
  font-size: 12px;
}

@media (max-width: 640px) {
  .frog-search-suggestions {
    right: 0;
    left: 0;
    max-height: 45vh;
    overflow-y: auto;
  }

  .frog-search-correction {
    align-items: flex-start;
    flex-direction: column;
  }
}
