/**************************
 * Egendefinert statusside-CSS
 **************************/

footer {
  --ds-color-accent-background-tinted: #f2f4f5;

  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 2rem;
  background-color: var(--ds-color-accent-background-tinted);
  box-sizing: border-box;
}

a {
  text-decoration: none;
  max-width: 25rem;
  word-break: break-word;
  white-space: normal;
  text-align: center;
  flex: 1 1 2rem;
  cursor: pointer;
  color: #006772;

  &:hover {
    text-decoration: underline;
  }
}

.information-links {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: 100%;
}

.contact-links {
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 899px) {

  .informationLinks,
  .contactLinks {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  a {
    max-width: 100%;
    width: 100%;
  }
}


header {
  --ds-color-neutral-border-subtle: #7a818c;
  height: 5rem;
  border-bottom: 1px solid var(--ds-color-neutral-border-subtle);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;

  @media (min-width: 1280px) {
    padding: 0 4px;
  }
}

.logo {
  /* Skal egt være 0.5rem*/
  margin-bottom: 1rem;
  margin-top: 1rem;
  fill: var(--ds-color-text-default);
}

.button-with-consent {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: min(46rem, 100%);
}

@media (max-width: 899px) {
  .header-content {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .button-with-consent {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

.updates-dropdown-container {
  --dsc-button-background--active: #c0ccd0;
  --dsc-button-background--hover: #d3dbde;
  --dsc-button-background: transparent;
  --dsc-button-border-color: #2a5361;
  --dsc-button-border-radius: 0.25rem;
  --dsc-button-border-style: solid;
  --dsc-button-border-width: 1px;
  --dsc-button-color--active: var(--dsc-button-color--hover);
  --dsc-button-color--hover: var(--dsc-button-color);
  --dsc-button-color: #3d636f;
  --dsc-button-gap: 8px;
  --dsc-button-padding: 8px 16px;

  position: relative;
  display: inline-block;
}

.show-updates-dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  background: var(--dsc-button-background);
  border-color: var(--dsc-button-border-color);
  border-radius: var(--dsc-button-border-radius);
  border-style: var(--dsc-button-border-style);
  border-width: var(--dsc-button-border-width);
  box-sizing: border-box;
  color: var(--dsc-button-color);
  cursor: pointer;
  flex-shrink: 0;
  /* If button placed inside display: flex */
  font-family: inherit;
  font-weight: var(--ds-font-weight-medium);
  gap: var(--dsc-button-gap);
  height: fit-content;
  /* If placed in flex container */
  justify-content: center;
  line-height: var(--ds-line-height-sm);
  min-height: var(--dsc-button-size);
  min-width: var(--dsc-button-size);
  outline: none;
  padding: var(--dsc-button-padding);
  text-align: inherit;
  text-decoration: none;
  width: fit-content;
  /* If button placed inside display: flex */


  @media (hover: hover) and (pointer: fine) {
    &:where(:not(:disabled, [aria-disabled='true'], [aria-busy='true'])):hover {
      background: var(--dsc-button-background--hover);
      color: var(--dsc-button-color--hover);
      text-decoration: none;
      /* kills the underline on hover */
    }
  }
}