/* ==========================================================
   SØK PÅ FORSIDEN (under overskriften i toppbanneret)
   Brukes av malen testHome
   ========================================================== */

body .gc-home-search-wrap {
  margin-top: 22px;
  position: relative;
  z-index: 20;
}

body .gc-home-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

body .gc-home-search__label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body .gc-home-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 5px 0 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.4);
}

body .gc-home-search__field:focus-within {
  box-shadow: 0 0 0 3px #cde8d7, 0 0 0 4px #01843d, 0 12px 30px -10px rgba(0, 0, 0, 0.45);
}

body .gc-home-search__field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: var(--font-sans);
  font-size: 15px !important;
  color: #000000 !important;
}

body .gc-home-search__button {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

body .gc-home-search__button:hover {
  background: #01843d;
}

body .gc-home-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, 0.55);
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
}

body .gc-home-search__results[hidden] {
  display: none;
}

body .gc-home-search__hit,
body .gc-home-search__all {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  color: #000000 !important;
  text-decoration: none !important;
}

body .gc-home-search__hit:hover,
body .gc-home-search__hit:focus,
body .gc-home-search__all:hover,
body .gc-home-search__all:focus {
  background: #f3f0ea;
  outline: none;
}

body .gc-home-search__hit-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

body .gc-home-search__hit-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #6e665b;
}

body .gc-home-search__all {
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body .gc-home-search__empty {
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #6e665b;
}

@media (max-width: 600px) {
  body .gc-home-search-wrap {
    margin-top: 20px;
  }

  body .gc-home-search__field {
    height: 46px;
    padding-left: 14px;
  }

  body .gc-home-search__field input {
    font-size: 16px !important;
  }

  body .gc-home-search__button {
    height: 36px;
    padding: 0 14px;
  }
}
