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

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

.bypostauthor {
  display: block;
}

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

  .comments-title {
    font-size: 26px;
    line-height: 34px;
    font-weight: 600;
    margin-bottom: 38px;
  }

  .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
    .comment-respond {
        margin-bottom: 57px;
    }
    .comment-respond {
        margin-top: 37px;
    }

    .comment-reply-title {
        font-size: 17px;
        margin-bottom: 15px;
    }
    .comment-reply-title small {
        font-size: 16px;
        line-height: 1;
        top: 1px;
        margin-bottom: 0;
    }

    li {
      &: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 {
          margin-right: 20px;
          min-width: 80px;
          border-radius: 50%;

          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: 14px;
          line-height: 20px;
          margin-bottom: 10px;
        }

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

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

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

          p {
            word-break: break-word;

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

          .reply {
            color: var(--main-color-one);

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

          .comment-reply-link {
            font-weight: 600;
            &: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: 26px;
    line-height: 34px;
    font-weight: 600;
    margin-bottom: 25px;
  }

  .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;
  }

  .form-submit {
    margin-bottom: 0;
    margin-top: 20px;
  }
}

.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: 150px;
      resize: none;
      line-height: 26px;

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

  .form-group {
    margin-bottom: 12px;
    .form-control {
      height: 50px;
      line-height: 50px;
      border-radius: 0;
      border: 0;
      padding: 10px 20px;
      padding-right: 35px;
      background: #fff;
      border: 1px solid var(--border-color1);
      &::placeholder {
        color: #3F517E;
      }
    }
    position: relative;
  }

  .btn-wrap {
    .boxed-btn {
      font-size: 14px;
    }
  }

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

    height: 55px;
    line-height: 55px;
    width: auto;
    border-radius: 0;
    font-weight: 500;
    background-color: var(--main-color-one);
    border: none;
    cursor: pochakra petch;
    -webkit-transition: .3s ease-in;
    -o-transition: .3s ease-in;
    transition: .3s ease-in;
    color: var(--heading-color);
    padding: 0 30px;
    cursor: pointer;
  }
}

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

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

.comment-respond {
  margin-top: 42px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
}

.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%;
          }
        }
      }
    }
  }
}
