/*--------------------------------------------------------------
	## Comments
--------------------------------------------------------------*/

.comment-content {
  a {
    word-wrap: break-word;
  }
}

.bypostauthor {
  display: block;
}

.comments-area {
  margin-top: 30px;

  .comments-title {
    font-size: 24px;
    line-height: 1.7;
    font-weight: 600;
    margin-bottom: 30px;
  }

  .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 20px;

    .comment-respond {
      margin-bottom: 30px;
    }

    li {
      +li {
        border-top: 1px dashed #cdcdcd;
        margin-top: 30px;
        padding-top: 30px;
      }

      &:last-child {
        margin-bottom: 0;

        .single-comment-wrap {
          .thumb {
            .date {
              margin-bottom: 0;
            }
          }
        }
      }

      ul.children {
        margin: 0;
        padding: 0;
        list-style: none;
        margin-top: 30px;

        li {
          margin-left: 50px;
          list-style: none;
        }
      }

      .single-comment-wrap {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        --ms-flex-item-align: start;
        align-self: flex-start;

        .thumb {
          width: 70px;
          height: 70px;
          line-height: 70px;
          text-align: center;
          background: var(--heading-color);
          margin-right: 20px;
          border-radius: 50%;
          color: $white;
          font-size: 16px;
          font-weight: 600;
          font-family: var(--body-font);
          text-transform: uppercase;

          img {
            margin-bottom: 10px;
            border-radius: 50%;
            border: 2px solid #fafafa;
            box-shadow: 0 0 50px 0 rgba(0, 0, 0, .02);
          }
        }

        .date {
          display: block;
          font-size: 16px;
          font-weight: 400;
          color: var(--paragraph-color);
          line-height: 20px;
          margin-bottom: 10px;
        }

        .content {
          -webkit-box-flex: 1;
          -ms-flex: 1;
          flex: 1;
          position: relative;
          max-width: 670px;

          .title {
            font-size: 18px;
            line-height: 28px;
            font-weight: 600;
            padding-right: 70px;
            color: #111;
            font-family: var(--heading-font);
          }

          .comment-content {
            max-width: 670px;
          }

          p {
            word-break: break-word;
            font-size: 16px;
            font-weight: 400;
            color: var(--paragraph-color);
            margin-bottom: 20px;

            &:last-child {
              margin-bottom: 0;
            }
          }

          .reply {
            color: var(--main-color-one);
            background: #CDCDCD;
            padding: 10px 15px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            color: #fff;
            display: inline-block;
            transition: .3s all ease;

            &:hover {
              color: var(--heading-color);
            }
          }

          .comment-reply-link {
            &:after {
              position: static;
              content: "\f3e5";
              font-family: "Font Awesome 5 Free";
              font-size: 14px;
              line-height: 1;
              margin-left: 5px;
              font-weight: 900;
            }

            position: absolute;
            top: 0;
            right: 0;
            -webkit-transition: all 0.3s ease-in;
            -moz-transition: all 0.3s ease-in;
            -o-transition: all 0.3s ease-in;
            transition: all 0.3s ease-in;
            color: var(--main-color-one);
            font-size: 14px;

            &:hover {
              color: var(--main-color-one);
            }
          }
        }
      }
    }

    li.comment {
      margin-bottom: 30px;
    }

    .has-children {
      padding-left: 80px;
    }

    ol {
      &:not([class]) {
        li {
          ol {
            margin-bottom: 0;
          }
        }

        margin-bottom: 20px;
      }
    }

    .children {
      li {
        &:last-child {
          margin-bottom: 30px;
        }
      }
    }

    ul {
      &:not([class]) {
        margin-bottom: 20px;

        ul {
          margin-bottom: 0px;
        }
      }
    }
  }

  .reply-title {
    font-size: 24px;
    line-height: 1.7;
    font-weight: 600;
    margin-bottom: 10px;
  }

  .comment-reply-title {
    font-size: 26px;
    line-height: 34px;
    font-weight: 600;
    margin-bottom: 25px;

    small {
      font-size: 26px;
      line-height: 34px;
      font-weight: 600;
      color: var(--secondary-color);
      margin-left: 10px;
      display: inline-block;
      position: relative;
      top: 4px;
      margin-bottom: 0;
    }
  }

  .comment-form-wrap {

    // padding: 65px 95px 70px;
    p {
      font-size: 16px;
      font-weight: 400;
      line-height: 1.75;
      margin-bottom: 0px;
    }
  }

  .form-submit {
    margin-bottom: 0;
  }
}

.blog-content-page-content-area {
  .comments-area {
    .comment-list {
      li {
        .single-comment-wrap {
          .time {
            display: block;
            font-size: 14px;
            line-height: 20px;
            margin-bottom: 10px;
          }
        }
      }
    }
  }
}

.comment-form {
  .form-group.textarea {
    .form-control {
      min-height: 180px;
      resize: none;
      line-height: 26px;

      &:focus {
        outline: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
      }
    }
  }

  .form-group {
    margin-bottom: 30px;
    position: relative;

    .form-control {
      height: 75px;
      line-height: 50px;
      border-radius: 20px;
      border: 1px solid $stock;
      background-color: #fff;
      padding: 20px 30px;
      padding-right: 35px;
      font-size: 16px;
      font-weight: 600;
      color: var(--heading-color);

      &::placeholder {
        font-weight: 400;
        color: var(--paragraph-color);
      }
    }
  }

  .btn-wrap {
    .btn-common {
      font-size: 18px;
      border-radius: 15px;
      text-transform: capitalize;
    }
  }

  .submit-btn {
    &:hover {
      background-color: var(--secondary-color);
      color: #fff;
    }

    height: 50px;
    width: auto;
    border-radius: 40px;
    font-weight: 600;
    background-color: var(--main-color-one);
    border: none;
    cursor: pointer;
    -webkit-transition: .3s ease-in;
    -o-transition: .3s ease-in;
    transition: .3s ease-in;
    color: #fff;
    padding: 0 30px;
  }
}

.comment-form-cookies-consent {
  input[type=checkbox] {
    margin-right: 5px;
  }
}

label[for="wp-comment-cookies-consent"] {
  font-size: 14px;
}

.comment-respond {
  margin-top: 42px;
}

.form-group.textarea {
  width: 100% ! important;
  margin-left: 0 !important;
}

.full-width-content {
  .comments-area {
    .comment-list li .single-comment-wrap .content {
      max-width: 100%;
    }
  }
}

@media only screen and (max-width: 991px) {
  .comments-area {
    .comment-list {
      li {
        .single-comment-wrap {
          .content {
            max-width: calc(100% - 100px);
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 384px) {
  .comments-area {
    .comment-list {
      li {
        .single-comment-wrap {
          display: block;

          .content {
            max-width: 100%;
          }
        }
      }
    }
  }
}