.questions-answers {
  margin-top: 20px;
}

.questions-answer {
  display: flex;
  margin: 0 -5px;
  padding: 20px 5px;
  border-top: 1px solid var(--background3);
  transition: border, background 2s ease;
  .questions-answer-header {
    padding-bottom: 10px;
    .nav.preferences {
      top: -15px;
      right: 0;
    }
  }
  &.questions-best-answer {
    border-radius: 4px;
    margin: 20px -10px;
    padding: 20px 10px;
    border: 1px solid var(--info);
    background: var(--background-color-highlight-soft);
    .questions-best-answer-button {
      display: block;
    }
    &.questions-deleted-answer {
      border-color: var(--danger);
    }
    .questions-answer-voting button {
      background: #fff;
      &.active, &:active, &:hover {
        background: #bce3e8;
      }
      &.active:hover {
        background: #fff;
      }
    }
  }
  &.questions-highlight-answer {
    background: #FFF8E0;
  }
  &.questions-deleted-answer {
    transition: none;
    background: var(--background-color-danger);
  }
}

.questions-answer-voting {
  width: 32px;
  button {
    width: 32px;
    height: 32px;
    background: #f3f3f3;
    border-radius: 8px;
    box-shadow: none;
    &.active, &:active, &:hover {
      background: #bce3e8;
      box-shadow: none;
    }
    &.active:hover {
      background: #f3f3f3;
    }
    .fa {
      font-size: 24px;
      color: #333;
      position: relative;
      top: -5px;
      left: -7px;
      &.fa-caret-down {
        margin-top: 2px;
      }
    }
  }
  div {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 5px 0;
    .loader .sk-spinner-three-bounce.sk-spinner {
      width: auto;
      padding: 0;
    }
  }
}
.questions-answer-content {
  width: 100%;
  padding-left: 10px;
  position: relative;
  &:hover {
    .questions-best-answer-button {
      display: block;
    }
  }
  .questions-best-answer-button {
    position: absolute;
    top: -14px;
    right: 25px;
    display: none;
    span {
      font-size: 13px;
      font-weight: normal;
    }
  }
}

.questions-answer-form {
  .ProsemirrorEditor .ProseMirror {
    min-height: 200px;
  }
}

.questions-toggle-btn {
  margin-bottom: 20px;
}

.questions-anchor {
  position: relative;
  top: -120px;
}
