.commentstitle {

  margin-top: 3rem;
  margin-bottom: 1rem;
  &::before {
    content: "";
    display: block;
    width: 24rem;
    max-width: 100%;
    height: 3px;
    background-color: var(--orange);
    margin-bottom: 2rem;
  }
}

#kommentform {
  max-width: 53rem;
  margin-bottom: 5rem;
  display: flex !important;
  flex-direction: column;
  & .line {
    width: 100%;
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    @media (max-width: 500px) {
      flex-direction: column;
      gap: 1rem;
    }
    & > * {
      width: 100%;
    }
  }

  & label {
    display: flex;
    line-height: 1.2;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    &.newsletter-optin {
     flex-direction: row;
    }
  }
  & textarea,
  & input[type="text"],
  & input[type="email"] {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    width: 100%;
    font-weight: 400;
  }
  input[type="submit"] {
    width: fit-content;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--orange);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
      text-decoration-thickness: 1px;
      background-color: #000;
    }
  }
  input[tabindex="-1"] {
    position: absolute;
  }
}

.komment-privacy {
  margin-top: -2rem;
  text-wrap: balance;
}

.commentlist {
  max-width: 53rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  .comment {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 2rem 0 2rem 1.5em;
    position: relative;
    &::before {
      position: absolute;
      left: -1.5em;
      top: 0.5em;
      content: "";
      background: url('/assets/icons/arrow-up.svg') no-repeat center center;
      background-size: contain;
      width: 0.75em;
      height: 0.75em;
      transform: rotate(90deg);
    }
  }
  header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}
