@import 'variables';
@import 'mixins';
@import 'functions';
@import 'config/import';

%kbd {
  display: inline-block;
  padding: 3px 5px;
  font-size: 11px;
  line-height: 10px;
  color: #444d56;
  vertical-align: middle;
  background-color: #fafbfc;
  border: solid 1px #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #959da5;
}

$indent-distance: calc(1.1vw + 13px);

@keyframes fade-out {
  0% {
    background-color: rgb(208, 255, 235);
  }
  100% {
    background-color: white;
  }
}

a.header-link {
  color: var(--body-color);
  display: block;
  &:hover {
    color: var(--body-color);
  }
}

.comments {
  .picture {
    height: 180px;
    max-width: 900px;
    margin: auto;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    @media screen and (min-width: 390px) {
      height: 240px;
    }
    @media screen and (min-width: 820px) {
      height: 280px;
    }
    background-color: #ecf0f2;
    background: #ecf0f2 no-repeat top center;
    background-size: cover;
    position: relative;
    z-index: 1;
  }
  .blank-comment-space {
    height: 3px;
    @media screen and (min-width: 820px) {
      height: 0px;
    }
  }
  .article-header {
    width: 820px;
    max-width: 100%;
    margin: 50px auto 10px;
    padding: 0px 0px 90px;
    background: var(--card-bg);
    z-index: 3;
    position: relative;
    @media screen and (min-width: 820px) {
      margin: 72px auto 10px;
      border-radius: 5px;
      @include themeable(
        border,
        theme-container-border,
        1px solid darken($lightest-gray, 4%)
      );
    }
    h3 {
      width: 94%;
      margin: 12px 0 5px;
      margin-left: 1.8%;
      font-weight: 500;
      font-size: calc(1.5vw + 22px);
    }
    h4 {
      margin: 0;
      font-weight: 300;
      color: rgb(195, 195, 195);
      font-size: 17px;
      width: 96%;
      margin: auto;
      margin-bottom: -40px;
      a {
        color: rgb(105, 103, 103);
      }
    }
    .body {
      padding: 60px 0px 0px;
      width: 96%;
      margin: auto;
      margin-bottom: -35px;
      .read-more {
        color: var(--link-brand-color);
        display: inline-block;
        &:hover {
          opacity: 0.96;
        }
      }
      img {
        max-width: 100%;
        max-height: 350px;
      }
      kbd {
        @extend %kbd;
      }
    }
  }
  .single-comment-header {
    height: 10px;
  }
}

.comments-container {
  width: 800px;
  max-width: 98%;
  padding-top: 10px;
  margin: auto;
  margin-bottom: 100px;
  text-align: left;
  &.comments-dedicated-page-container {
    min-height: calc(97vh - 200px);
  }

  img.icon-image {
    height: 21px;
    opacity: 0.7;
    &:hover {
      opacity: 1;
    }
  }
  .markdown-guide {
    position: absolute;
    left: 22px;
    bottom: 3px;
  }
  .editor-image-upload {
    display: flex;
    align-items: center;
    font-size: 0.8em;
    position: absolute;
    left: calc(0.2vw + 70px);
    bottom: 0px;
    width: initial;
    text-align: left;

    .uploaded-image {
      border: 1px dashed #888;
      padding: 0.2vw 0.4vw;
      font-size: 1em;
      width: 8.125rem;
      display: none;

      @media screen and (min-width: 500px) {
        & {
          width: calc(94% - 2.25rem);
        }
      }

      &.showing {
        display: inline-block;
      }
    }

    .image-upload-file-label {
      font-size: 0.9em;
      color: #888;
      display: none;
      vertical-align: 4px;
      @media screen and (min-width: 500px) {
        display: inline-block;
      }
    }

    .image-upload-button {
      padding: 2px 4px;
      text-align: left;
      font-size: 0.8em;
      margin: 4px 0px;
      border-radius: 3px;
      border: 0;
      cursor: pointer;
      display: inline-block;
      background: transparent;
      max-width: 29px;
      @media screen and (max-width: 900px) {
        padding: 5px 6px 1px;
      }
    }
  }
  .editor-response-templates {
    position: absolute;
    left: 52px;
    bottom: 4px;
    button {
      background: none;
      border: none;
      padding: 0;
    }
    &.in-reply {
      z-index: 6;
      bottom: 3px;
    }
  }

  .top-level-actions {
    margin: 0px 0px 85px;
    padding: 3px 0px;
    z-index: 4;
    position: relative;
    border-radius: 3px;
    font-size: calc(0.35vw + 16px);
    h3 {
      margin: 5px 0px;
      a {
        font-size: 0.62em;
        background: $black;
        color: white;
        margin: 2px 0px 2px;
        margin-right: 5px;
        vertical-align: 2px;
      }
    }
    .comment-action-buttons,
    .comment-action-text {
      display: inline-block;
      color: $medium-gray;
      font-weight: 300;
    }
    a {
      display: inline-block;
      background: $purple;
      border-radius: 3px;
      color: $black;
      font-family: $helvetica-condensed;
      font-stretch: condensed;
      padding: 4px 8px;
      font-size: 0.77em;
      vertical-align: 1px;
      margin: 8px 0px 2px;
    }
    .commentable-title {
      font-size: calc(0.3vw + 16px);
      color: $medium-gray;
    }
  }
  form {
    width: 104%;
    @include themeable(
      background,
      theme-container-accent-background,
      $light-gray
    );
    overflow: auto;
    position: relative;
    margin-bottom: 4px;
    z-index: 4;
    margin-left: -2%;
    @include themeable(
      border-top,
      theme-container-border,
      1px solid $light-medium-gray
    );
    @media screen and (min-width: 820px) {
      width: calc(100% - 2px);
      margin-left: 0%;
      @include themeable(
        border,
        theme-container-border,
        1px solid $light-medium-gray
      );
    }

    .field {
      margin-bottom: 0px;
    }
    .response-templates-container {
      &.hidden {
        display: none;
      }
      display: flex;
      width: calc(100% - 52px);
      max-height: calc(40vh + 80px);
      margin: 15px auto 2px;
      flex-direction: column;
      overflow-y: auto;
      font-size: 16px;
      font-family: $helvetica;
      @include themeable(background, theme-container-accent-background, $light-gray);
      @include themeable(color, theme-color, $black);

      .loading-img {
        display: inline-block;
        margin: 0 auto;
        width: 75px;
        &.hidden {
          display: none;
        }
      }

      header > button {
        font-family: $helvetica-condensed;
        font-stretch: condensed;
        color: $bold-blue;
        border: 1px solid $bold-blue;
        font-size: 13px;
        font-weight: 500;
        padding: 5px 0px;
        border-radius: 3px;
        background: none;
        width: 125px;
        margin: 5px;
        float: left;
        &.active {
          background: $bold-blue;
          color: white;
        }
        &.hidden {
          display: none;
        }
      }

      .mod-response-wrapper {
        text-align: left;
        padding: 10px;
        position: relative;
        @include themeable(background, theme-container-background, white);
        margin: 5px auto;
        border-radius: 8px;
        width: calc(100% - 20px);
        box-sizing: border-box;
        span {
          font-weight: bold;
          display: block;
          width: calc(100% - 140px);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;  
        }

        p {
          font-weight: normal;
          display: block;
          width: calc(100% - 140px);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          margin: 0.5em 0;
          @include themeable(color, theme-secondary-color, $medium-gray);
        }
        &.mod-response-wrapper-empty {
          text-align: center;
          p {
            width: 100%;
            font-size: 1.05em;
            font-weight: bold;
            margin: 1.5em 0;
            @include themeable(color, theme-color, $black);
          }
        }

        button {
          font-family: $helvetica-condensed;
          font-stretch: condensed;
          color: white;
          border: 0px;
          font-size: 13px;
          font-weight: 500;
          margin-top: 3px;
          padding: 5px 0px;
          border-radius: 3px;
          cursor: pointer;
          margin-right: 10px;
          background: $bold-blue;
          position: absolute;
          top: 5px;
          right: 0px;
          width: 125px;
        }
        .moderator-submit-button {
          background: $green;
          color: $black;
          top: 36px;
        }
      }

      a {
        text-align: left;
        padding: $su-3;
        font-weight: bold;
        svg {
          width: 20px;
          height: 20px;
          position: relative;
          top: 4px;
          left: 3px;
          @include themeable(fill, link-branded-color, #3b49df)
        }
      }
      p {
        align-self: flex-start;
        padding: 0 $su-3;
      }
    }
    .article-comment-form-preamble {
      font-size: 0.7em;
      margin-left: 20px;
      margin-top: 8px;
      margin-bottom: -5px;
    }
    textarea {
      width: calc(100% - 52px);
      margin: 15px auto 2px;
      display: block;
      resize: vertical;
      border-radius: 3px;
      border: 1px solid var(--form-border);
      height: 125px;
      font-size: 16px;
      padding: 6px;
      cursor: text;
      background: var(--form-bg);
      color: var(--body-color);
      &::placeholder {
        color: var(--form-placeholder);
      }
      &.embiggened {
        height: calc(2vw + 115px);
      }
      &.embiggened-more {
        height: calc(5vw + 118px);
      }
      &.embiggened-max {
        height: calc(10vw + 118px);
      }
      &.preview-loading {
        background: white url(image-src('loading-ellipsis.svg')) no-repeat
          center center;
        background-color: var(--card-bg);
        color: var(--body-color-inverted);
        background-size: 50px;
      }
    }
    .preview-toggle {
      display: none;
    }
    .comment-preview-div {
      padding: 10px 20px 2px;
      min-height: calc(13vw + 6px);
      text-align: left;
      font-size: 19px;
      font-family: $helvetica;
      background: var(--card-bg);
      box-shadow: $shadow;
      width: calc(100% - 80px);
      margin: 19px auto 8px;
      border: 1px solid #dbdbdb;
      > * {
        margin: 4px 0px calc(1.1vw + 10px); // ok, i'm not a big fan of doing this weird math calc() but this is what we do for real comments sooo 🤷‍♂️
      }

      p.loading-message {
        opacity: 0.6;
      }

      pre {
        overflow-x: auto;
      }

      kbd {
        @extend %kbd;
      }

      code {
        word-wrap: break-word;
      }

      .article-body-image-wrapper img {
        max-width: 100%;
      }
    }
    .actions {
      text-align: right;

      .comment-action-button {
        font-family: $helvetica-condensed;
        font-stretch: condensed;
        color: white;
        border: 0px;
        font-size: 13px;
        font-weight: 500;
        margin-top: 3px;
        padding: 5px 12px;
        border-radius: 3px;
        cursor: pointer;
        appearance: none;
      }

      .comment-action-cancel {
        background: $red;
        display: none;
      }

      .comment-action-preview {
        background: $dark-gray;
        z-index: 10;
      }
    }
    .reply-actions {
      margin-bottom: 0;
      padding-bottom: 0;
    }
    .code-of-conduct {
      display: block;
      margin-right: 19px;
      margin-top: 5px;
      text-align: right;
      font-size: 0.9em;
      font-weight: 500;
      color: var(--link-brand-color);
      &.sub-comment-code-of-conduct {
        font-size: 1em;
      }
      .checkbox {
        vertical-align: 1px;
        font-size: 1.2em;
        margin: 5px 0px;
      }
      a {
        color: var(--link-brand-color);
      }
    }
    input[type='submit'] {
      margin-right: 19px;
      background: $bold-blue;
    }
    &.submitting {
      input[type='submit'] {
        background: #00bbff;
      }
      textarea {
        color: lighten($dark-gray, 25%);
        border: 1px solid $light-green;
        background: white url(image-src('loading-ellipsis.svg')) no-repeat
          center center;
        background-size: 50px;
      }
    }
  }

  details {
    details {
      .comment-deep-1,
      .comment-deep-2 {
        margin-top: -123px;
      }
      // this ms-lang hack (which behaves like a media query) is going to be ignored by all browsers
      // except IE and 11 and it fixes indentation on the unsupported <details> tags
      _:-ms-lang(x),
      .comment-deep-1,
      .comment-deep-2 {
        margin-top: 0px;
      }
      summary {
        z-index: 15;
        position: relative;
      }
      &[open] {
        > summary {
          width: calc(1.1vw + 12px); //slightly smaller than indent distance
          padding-bottom: 100px;
        }
      }
    }
    summary {
      cursor: pointer;
      color: lighten($medium-gray, 8%);
      font-size: 14.5px;
      font-style: oblique;
      padding: 4px 0px;
      padding-left: 4px;
      user-select: none;
      &:active {
        outline: 0;
        box-shadow: 0px 0px 0px $light-medium-gray !important;
      }
      &:focus-visible {
        outline: 0;
        &:not(:active) {
          box-shadow: 0px 0px 6px $light-medium-gray !important;
        }
      }
      span {
        display: inline-block;
        width: calc(100% - 50px);
        line-height: 20px;
      }
    }
  }

  .comment-trees {
    .comment-hash-marker {
      margin-top: -45px;
      margin-bottom: 45px;
      border: 1px solid transparent;
      z-index: -10;
      position: relative;
      &:target + .single-comment-node {
        animation-name: fade-out;
        animation-duration: 5s;
        animation-timing-function: ease-out;
      }
    }
    .root-comment {
      margin-top: -80px;
      .comment-parent-link {
        background: var(--card-bg);
        @include themeable(
          border,
          theme-container-border,
          1px solid $medium-gray
        );
        display: block;
        padding: 9px 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8em;
        @include themeable(
          background,
          theme-container-accent-background,
          lighten($lightest-gray, 1%)
        );
      }
    }
  }
  .comment-view-parent {
    margin-bottom: 7px;
    text-align: left;
    font-family: $helvetica-condensed;
    font-size: 0.8em;
    background: $purple;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: top;
    &.comment-view-commentable {
      background: transparent;
      max-width: calc(100% - 100px);
      white-space: nowrap;
      overflow-x: hidden;
      text-overflow: ellipsis;
    }
  }

  .alert-error {
    background: $red;
    max-width: 730px;
    font-family: $helvetica;
    color: white;
    border-radius: 5px;
    margin: 20px auto;
    padding: 20px;
  }
}

.single-comment-node {
  padding: 2px 0px 0px $indent-distance;
  text-align: left;
  &.root {
    padding: 0px 0px 2px 0;
  }
  margin-top: 15px;
  font-size: 17px;
  position: relative;
  @media screen and (min-width: 390px) {
    font-size: 20px;
  }
  &.flat-node {
    padding: 0px;
    margin-top: -3px;
    margin-bottom: -3px;
    &.root {
      padding: 2px 0px;
      margin-top: 0px;
    }
    .inner-comment {
      border-top-left-radius: 0px;
      border-top-right-radius: 0px;
    }
    button {
      margin-bottom: 3px;
      z-index: 7;
      position: relative;
    }
  }
  .comment-deep-3 {
    margin-top: -5px;
    padding: 2px 0px 2px calc(0.9vw + 7px);
    button {
      margin-bottom: 3px;
      z-index: 8;
      position: relative;
    }
  }
  .permalink {
    width: 40px;
    position: absolute;
    right: 2px;
    margin-top: calc(0.4vw + 12px);
    text-align: center;
    opacity: 0.9;
    img {
      width: 14px;
    }
    &:hover {
      opacity: 1;
    }
  }
  .low-quality-comment-marker {
    font-size: 0.66em;
    padding: 6px 13px;
    @include themeable(
      background,
      theme-container-accent-background,
      $light-gray
    );
    font-weight: bold;
    border-bottom: 1px solid $light-medium-gray;
    a {
      background: lighten($green, 14%);
      color: $black;
      padding: 1px 5px 3px;
      border-radius: 3px;
      vertical-align: -1px;
      margin-left: 3px;
    }
    img {
      height: 22px;
      width: 22px;
      border-radius: 100px;
      border: 2px solid $medium-gray;
      vertical-align: -0.6em;
      margin-right: 2px;
    }
  }
  .low-quality-comment > *:not(.dropdown) {
    opacity: 0.5;
  }

  .body {
    padding: 1px;
    padding-left: 1.5%;
    padding-right: 1.5%;
    padding-bottom: 5px;
    margin: 0;
    width: 96%;
    font-size: 0.95em;
    line-height: 1.35em;
    overflow: hidden;
    margin-bottom: -28px;
    word-wrap: break-word;
    font-family: $helvetica;
    position: relative;
    margin-left: 1px;
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      padding: 0px;
      margin: 4px 0px calc(1.1vw + 10px);
      font-size: 1em;
      font-weight: 600;
    }
    h1 {
      font-size: 1.3em;
    }
    p {
      padding: 0px;
      margin: 4px 0px calc(1.1vw + 10px);
    }
    ul,
    ol {
      padding-left: 6px;
      margin: 0.8em 0.7em 0.8em 1em;
    }
    ul {
      list-style-type: square;
    }
    li {
      margin: 3px 0px calc(0.5vw + 5px);
    }
    blockquote {
      border-left: calc(0.2vw + 2px) solid $dark-gray;
      padding: 0.1% 3% 0.1% 2%;
      margin: 1.6em 1vw;
      font-size: 0.92em;
      line-height: 1.4em;
      p {
        padding: 0;
        margin: 0.95em 0 0.95em;
      }
      &.twitter-tweet {
        background: white;
        max-width: 480px;
        min-height: 135px;
        border: 1px solid #e9eef2;
        font-size: 17px;
        line-height: 20px;
        border-radius: 5px;
        margin-top: 10px;
        padding: 10px;
      }
    }
    .edited-notification {
      color: lighten($medium-gray, 20%);
      font-size: 0.7em;
      padding: 3px 0px 0px;
      position: relative;
      z-index: 1;
    }
    code {
      margin: auto;
      padding: 1px 5px 0px;
      border-radius: 2px;
      font-size: 0.8em;
      display: inline-block;
      vertical-align: 0.1em;
      max-width: 100%;
      line-height: 1.4em;
    }
    pre {
      width: 88%;
      margin-left: -3%;
      margin-left: 0px;
      padding-left: 4%;
      padding-right: 7%;
      padding-top: 6%;
      padding-bottom: 6%;
      overflow-wrap: normal;
      overflow-x: auto;
      code {
        background: #29292e;
        color: #eff0f9;
        white-space: pre;
        font-size: 1em;
      }
    }
    img {
      max-width: 100%;
    }
    .table-wrapper-paragraph {
      width: 100%;
      margin-left: 0%;
      overflow-x: auto;
    }
    a {
      &.anchor {
        padding-top: 50px;
        margin-top: -50px;
        -webkit-background-clip: content-box;
        background-clip: content-box;
      }
    }
    kbd {
      @extend %kbd;
    }
    .liquid-comment {
      .details {
        .comment-date {
          top: calc(14px - 0.25vw);
        }
      }
    }
    &.hidden-comment {
      padding: 5px 0;
      margin-bottom: 0;
    }
  }
  .icon-img {
    height: 16px;
    width: 16px;
    margin-right: 0px;
    opacity: 0.7;
  }
  .details {
    padding: 0px;
    border-top-left-radius: 3px;
    color: var(--link-brand-color);
    position: relative;
    .comment-date {
      border: none;
      position: absolute;
      top: calc(14px - 0.25vw);
      right: calc(35px + 0.2vw);
      font-size: 12px;
      text-align: right;
      a {
        color: var(--card-color-tertiary);
      }
    }
    .dropbtn {
      border: none;
      cursor: pointer;
      position: absolute;
      top: calc(0.3vw + 13px);
      right: 10px;
      &.commentable-hidden {
        top: calc(0.3vw + 8px);
      }
    }

    .dropdown {
      position: absolute;
      top: 40px;
      right: 10px;
      display: inline-block;

      .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        border: 1px solid $light-medium-gray;
        border-radius: 3px;
        background: white;
        z-index: 20;
        width: 130px;
        box-shadow: $shadow;
        &.showing {
          display: block;
        }
      }

      .dropdown-content a {
        color: black;
        padding: 12px 16px;
        width: 98px;
        height: 14px;
        font-weight: bold;
        display: block;
        font-size: 14px;
        white-space: nowrap;
      }

      .dropdown-content button {
        display: inline-block;
        color: black;
        border: none;
        background: none;
        padding: 12px 16px;
        width: 100%;
        height: 38px;
        font-size: 14px;
        font-weight: bold;
        text-align: left;
        &:hover {
          background-color: #f1f1f1;
        }
      }

      .dropdown-content .comment-actions .async-hide {
        display: none;
      }

      .dropdown-content a:hover {
        background-color: #f1f1f1;
      }

      .dropdown-icon {
        position: absolute;
        left: 10px;
        top: 7px;
        padding: 4px;
        max-width: 15px;
        max-height: 15px;
      }
    }

    &.hidden-comment {
      .dropbtn {
        top: calc(0.3vw + 8px);
      }
    }

    img.profile-pic {
      height: 33px;
      width: 33px;
      border-radius: 50px;
      margin: 1.5% 0.2% 1.5% 1.5%;
    }
    .comment-username {
      vertical-align: calc(0.62vw + 13px);
    }
    .comment-username-inner {
      vertical-align: middle;
      display: inline-block;
      white-space: nowrap;
      overflow-x: hidden;
      text-overflow: ellipsis;
      max-width: calc(60% - 20px);
    }
    .icon-img {
      vertical-align: calc(0.7vw + 9px);
      margin-left: 2px;
    }
    .op-marker {
      display: none;
      @media screen and (min-width: 580px) {
        display: inline-block;
        vertical-align: calc(0.7vw + 12px);
        background: $purple;
        color: $black;
        padding: 2px 6px 2px;
        margin-left: 0.3vw;
        font-family: $helvetica-condensed;
        font-stretch: condensed;
        font-size: 0.78em;
        border-radius: 3px;
      }
    }
    a {
      @include themeable(color, theme-secondary-color, lighten($dark-gray, 3%));
    }
  }
  .reaction-button,
  .dropbtn {
    border: 0px;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    height: 32px;
    display: block;
    padding: 0px;
    margin-left: 2px;
    position: relative;
    margin-top: calc(-0.6vw - 4px);
    z-index: 8;
    position: relative;
    &.reaction-button {
      padding-right: 25px;
      padding-top: 4px;
      margin-top: 0px;
      height: 25px;
    }
    .reactions-count {
      font-size: 0.7em;
      background: $light-gray;
      padding: 1px 5px;
      border-radius: 3px;
      border: 1px solid darken($light-gray, 10%);
      margin-left: 1px;
      position: absolute;
      top: 4px;
      left: 24px;
    }
    img {
      height: 21px;
      width: 21px;
      opacity: 0.62;
      left: 0px;
      &.dropdown-icon {
        height: 18px;
        width: 18px;
      }
    }
    &:hover {
      img {
        opacity: 1;
      }
    }
    .voted-heart {
      display: none;
      vertical-align: 0px;
      margin-left: 0px;
      height: 22px;
      width: 22px;
      opacity: 0.9;
      &:hover {
        opacity: 1;
      }
    }
    @media screen and (min-width: 390px) {
      vertical-align: -7px;
    }
    &.reacted {
      color: $green;
      img {
        display: none;
      }
      .voted-heart {
        display: inline-block;
      }
      .reactions-count {
        color: $black;
        font-weight: 500;
      }
    }
  }
  img.icon-image {
    height: 20px;
  }
  .editor-image-upload {
    width: initial;
    text-align: left;
    z-index: 6;

    .uploaded-image {
      width: calc(93% - 3.375rem);

      @media screen and (min-width: 500px) {
        & {
          width: calc(94% - 3.875rem);
        }
      }
    }

    .image-upload-button {
      padding: 5px 2px 0px;
      margin-left: 3px;
    }
  }
  .actions {
    font-size: 0.8em;
    padding: 0.3em 0.6em 0.3em 0.4em;
    text-align: right;
    position: relative;
    min-height: 1.2em;
    z-index: 5;
    font-family: $helvetica-condensed;
    font-stretch: condensed;
    width: calc(100% - 74px);
    margin-left: 58px;
    a.thread-indication {
      color: lighten($medium-gray, 22%);
      font-size: 0.8em;
      cursor: default;
      &:hover {
        opacity: 1;
      }
    }
    a.register-now-cta {
      font-size: 1.4em;
      background: lighten($yellow, 12%);
      border: 1px solid darken($yellow, 15%);
      box-shadow: 5px 6px 0px darken($yellow, 15%);
      color: $black;
      padding: 5px 10px;
      margin-right: 8px;
      vertical-align: 20px;
      line-height: 1.8em;
    }
    .current-user-actions {
      .hidden {
        display: none;
      }
      a {
        margin-right: 10px;
        display: inline-block;
        color: $medium-gray;
      }
    }
    form {
      margin-bottom: -5px;
      margin-top: -7px;
      z-index: 29;
      position: relative;
      width: calc(100% + 60px);
      margin-left: -58px;
      font-family: $helvetica;
      &.submitting {
        input[type='submit'] {
          background: $bold-blue;
        }
        textarea {
          color: lighten($dark-gray, 25%);
        }
      }
      input[type='submit'] {
        padding: 5px 8px;
        margin-bottom: 5px;
        margin-right: 7px;
      }

      .cancel {
        margin-right: 5px;
        color: $red;
        opacity: 0.5;
        vertical-align: -1px;
        font-size: 0.9em;
        &:hover {
          opacity: 0.8;
        }
      }
    }
  }
  .inner-comment {
    padding: 0px;
    border: 1px solid $light-medium-gray;
    background: var(--card-bg);
    &.comment-created-via-fetch {
      animation: comment-create 1.2s;
      .body {
        background-color: transparent;
      }
    }
  }
  .comment-read-more {
    background: $green !important;
    padding: 3px 6px;
    display: block;
    width: 250px;
    text-align: center;
    margin: auto;
    border-radius: 3px;
    margin-bottom: 20px;
    font-weight: bold;
    &:hover {
      opacity: 1;
      background: lighten($green, 5%) !important;
    }
  }
}

@keyframes fadein {
  0% {
    opacity: 0.5;
    height: 21px;
    width: 18px;
  }
  100% {
    opacity: 1;
    height: 25px;
    width: 22px;
  }
}
@keyframes comment-create {
  from {
    background-color: $light-green;
  }
  to {
    @include themeable(background-color, theme-container-background, #fff);
  }
}

.comments-hidden-message {
  p {
    font-style: italic;
  }
}
#response-templates-data {
  display: none;
}
