/* ==========================================================
   FAQ-SIDE MED SØK
   Brukes av malen testFaq
   ========================================================== */

body .gc-faq-page {
  background: #f3f0ea;
  color: #241f18;
  font-family: var(--font-sans);
}

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

/* Toppfelt med søk */
body .gc-faq-hero {
  background: #030303;
  color: #ffffff;
  padding: 64px 24px 72px;
}

body .gc-faq-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

body .gc-faq-hero__eyebrow {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66) !important;
}

body .gc-faq-hero__title {
  margin: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(2.5rem, 6vw, 3.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-transform: none !important;
}

body .gc-faq-hero__intro {
  margin: 0 !important;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88) !important;
}

body .gc-faq-search {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 20px;
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  cursor: text;
}

body .gc-faq-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  font: inherit;
  font-size: 17px !important;
  color: #000000 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body .gc-faq-search:focus-within {
  box-shadow: 0 0 0 3px #cde8d7, 0 0 0 4px #01843d;
}

body .gc-faq-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body .gc-faq-chip {
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body .gc-faq-chip:hover,
body .gc-faq-chip:focus-visible {
  background: #ffffff;
  color: #000000;
}

/* Søkeresultater */
body .gc-faq-results {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

body .gc-faq-results[hidden] {
  display: none;
}

body .gc-faq-results__count {
  margin: 0;
  font-size: 14px;
  color: #6e665b;
}

body .gc-faq-results__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body .gc-faq-results__title {
  margin: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e665b !important;
}

body .gc-faq-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
}

body a.gc-faq-result:hover .gc-faq-result__title {
  text-decoration: underline;
}

body .gc-faq-result--answer {
  padding: 24px;
}

body .gc-faq-result__title {
  margin: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #000000 !important;
}

body .gc-faq-result__text,
body .gc-faq-result__text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #3a342c;
}

body .gc-faq-result__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8907c;
}

/* Alle spørsmål */
body .gc-faq-list {
  padding: 56px 24px 96px;
}

body .gc-faq-list__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

body .gc-faq-theme__title {
  margin: 0 0 12px !important;
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  line-height: 1.18 !important;
  color: #000000 !important;
  text-transform: none !important;
}

body .gc-faq-item {
  border-top: 1px solid rgba(0, 0, 0, 0.22);
}

body .gc-faq-theme .gc-faq-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

body .gc-faq-item__question {
  list-style: none;
  min-height: 60px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
}

body .gc-faq-item__question::-webkit-details-marker {
  display: none;
}

body .gc-faq-item__icon {
  flex-shrink: 0;
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid #000000;
  border-radius: 999px;
}

body .gc-faq-item__icon::before,
body .gc-faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: #000000;
  transform: translate(-50%, -50%);
}

body .gc-faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

body .gc-faq-item[open] .gc-faq-item__icon::after {
  display: none;
}

body .gc-faq-item__answer {
  padding: 0 48px 20px 0;
  font-size: 15px;
  line-height: 1.6;
}

body .gc-faq-item__answer p {
  margin: 0 0 10px;
}

body .gc-faq-item__answer a,
body .gc-faq-result__text a {
  color: #016b31;
}

/* Kontaktboks */
body .gc-faq-contact {
  background: #000000;
  color: #ffffff;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body .gc-faq-contact p {
  margin: 6px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

body .gc-faq-contact a:not(.gc-faq-contact__button) {
  color: #ffffff;
}

body .gc-faq-contact__title {
  margin: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

body .gc-faq-contact__button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

body .gc-faq-contact__button:hover {
  background: #01843d;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  body .gc-faq-hero {
    padding: 44px 16px 48px;
  }

  body .gc-faq-search {
    height: 54px;
    padding: 0 16px;
  }

  body .gc-faq-search input {
    font-size: 16px !important;
  }

  body .gc-faq-results,
  body .gc-faq-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  body .gc-faq-item__answer {
    padding-right: 0;
  }

  body .gc-faq-theme__title {
    font-size: 26px !important;
  }

  body .gc-faq-contact {
    padding: 24px;
  }
}
