/**************************/
/*COMMERNT */
/**************************/

#review_form_wrapper form,
#commentform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  -moz-column-gap: 2.8rem;
  column-gap: 1.5rem;
  row-gap: min(1rem, 5vw);
}

.comment-notes,
#reviews > #review_form_wrapper #reply-title {
  display: none;
}

.comment-notes {
  display: none;
}

.form-submit,
.comment-form-comment,
.comment-form-mobile {
  grid-column: 1/-1;
}

.form-submit {
  justify-self: center;
}

.cat-parent {
  position: relative;
}

.cat-parent li {
  list-style: none !important;
}

.comment_container,
.commentlist li:not(:last-child) {
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.commentlist .comment_container {
  margin: 20px 0;
  position: relative;
  padding: 16px 48px !important;
}

.editor-content ul:not(.acf-checkbox-list, .acf-radio-list, .acf-bl) li {
  text-indent: unset !important;
}

.byadmin.comment_container::before {
  background: #fff;
}

.head-comment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  border-bottom: 2px solid rgba(19, 9, 17, 1);
  padding: 22px 13px;
  position: relative;
}

.head-comment:after {
  content: "";
  background: rgba(188, 145, 44, 1);
  position: absolute;
  width: 24%;
  height: 2px;
  bottom: -2px;
  left: 0;
}

.logo {
  display: flex;
}

.logo:before {
  content: "";
  background: url(../img/logo.svg) no-repeat;
  width: 36px;
  height: 36px;
  background-size: contain;
  line-height: 1;
  display: inline-block;
}

.author_comment img {
  width: 52px;
  -o-object-fit: contain;
  object-fit: contain;
  background: var(--color3);
  border-radius: 0 0 4px 4px;
  padding: 0 5px;
  height: 52px;
}

.author_comment .icon-account {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-primary);
  border-radius: 100vw;
  color: var(--c-neutral-000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.byadmin > .comment_container .meta_comment {
  background-color: var(--c-primary);
}

.name_comment img {
  width: 132px;
  height: max-content;
}

.name_comment {
  font-size: 18px;
  color: #000000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: 6px;
}

.author_comment span {
  display: inline-block;
  margin-top: 1rem;
}

.woocommerce-noreviews {
  display: none;
}

.text-comment {
  line-height: 2.5;
  padding-top: min(1rem, 3vw);
}

.time_comment {
  font-weight: 500;
  font-size: 14px;
  line-height: 34px;
  color: rgba(19, 9, 17, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.time_comment i {
  color: rgba(188, 145, 44, 1) !important;
  font-size: 18px;
}

.time_comment i::before {
  color: rgba(188, 145, 44, 1);
}

.commentlist > ul.children {
  padding-left: min(10rem, 8vw);
  position: relative;
  margin-bottom: 2rem;
  display: block !important;
}

.commentlist .children li::before {
  content: "\e91a";
  position: absolute;
  z-index: 2;
  left: -50px;
  font-family: "icomoon" !important;
  color: rgba(13, 56, 83, 1);
  font-size: 21px;
  top: 40%;
  border: 2px solid rgba(188, 145, 44, 1);
  width: 44px;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.commentlist .children li {
  position: relative;
}
.comment-respond {
  margin-top: 3rem;
  background: rgba(255, 255, 255, 1);
}

.comment-respond * {
  font-family: "YekanBakhFaNum", Arial, sans-serif;
}

.byadmin.comment_container > .head-comment .name_comment {
  background: transparent;
  padding: 0;
}

.byadmin.comment_container > .head-comment .name_comment i {
  background: transparent;
}

.item-comment.byadmin > .comment_container {
  border-color: var(--c-primary);
}

.comment-awaiting-moderation {
  color: #dc3545;
  text-align: center;
  display: block;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-family: "YekanBakhFaNum", Arial, sans-serif;
}

.text_comment.editor-content.main-content p {
  font-size: 14px;
  line-height: 32px;
  text-align: justify;
  color: rgba(99, 100, 102, 1);
}

.text_comment.editor-content.main-content > * + * {
  margin-top: 0.5rem;
}

.comment-reply-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 18px;
  transition: 0.3s;
  margin-left: auto;
  margin-right: 26px;
  width: max-content;
  transform: translateY(16px);
  margin-bottom: 18px;
  text-decoration: none !important;
  color: rgba(42, 45, 48, 1) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  font-weight: 500;
}
#comments .text_comment {
  padding: 0 26px;
  font-weight: 500;
  font-size: 14px;
  line-height: 32px;
  text-align: justify;
  color: rgba(99, 100, 102, 1);
}
.comment-reply-link::after {
  content: "\e917";
  color: rgba(42, 45, 48, 1);
  font-family: "icomoon" !important;
  font-size: 31px;
  margin-left: auto;
  transform: rotate(0deg);
  display: flex;
  align-items: center;
  transition: 0.3s;
  justify-content: center;
}

a.comment-reply-link:hover {
  text-decoration: none !important;
}

.comment-rate {
  display: flex;
  min-width: 4.8rem;
  border-radius: 12px;
  color: var(--text-primary);
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  font-size: var(--fs-13);
  border: 1px solid var(--br2-300);
}

.comment-rate i {
  vertical-align: baseline;
  font-size: 20px;
}

.comment-rate b {
  font-size: var(--fs-15);
}

.footer--comment {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.comment-reply-title {
  display: flex;
  gap: min(2rem, 3vw);
  border: 1px dashed rgba(188, 145, 44, 0.3);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 18px;
  font-weight: 600;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: rgba(19, 9, 17, 1);
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
}

.comment-reply-title small {
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
}

#cancel-comment-reply-link {
  background: rgba(19, 9, 17, 1);
  padding: 0.6rem 1.5rem;
  color: #ffffff;
  border-radius: 0;
  border: 1px solid rgba(19, 9, 17, 1);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

#cancel-comment-reply-link:hover {
  background: rgba(188, 145, 44, 1);
  color: #ffffff !important;
  border-color: rgba(188, 145, 44, 1);
  text-decoration: none;
}

.isreply {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  color: var(--color1);
  background-color: #e8e2dd;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  transform: rotate(90deg);
}

.must-log-in,
.woocommerce-verification-required {
  border: 1px solid var(--danger);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 6rem;
  color: var(--danger);
}

.comment-form-comment,
.comment-form-email,
.comment-form-author {
  position: relative;
}

/* load more */

.editor-content.main-content.text-comment > * + * {
  margin: 0;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
  display: flex;
  flex-direction: column;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-comment label {
  display: inline-block;
  width: max-content;
  padding: 0;
  background: #fff;
  z-index: 2;
  font-weight: 600;
  font-size: 16px;
  color: #130911;
  line-height: 100%;
  margin-bottom: 8px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-comment textarea {
  border: 1px solid #11111333;
  padding: 19px 16px;
  border-radius: 4px;
  transition: 0.3s;
  font-weight: 400;
  font-size: 14px;
  color: #111113;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-comment textarea:focus {
  border: 1px solid rgba(188, 145, 44, 0.16);
}

.comment-form-author input::placeholder,
.comment-form-email input::placeholder,
.comment-form-comment textarea::placeholder {
  color: #11111399;
}

.comment-respond .websima-button {
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  color: rgba(255, 255, 255, 1);
  background: rgba(19, 9, 17, 1);
  padding: 12px 20px;
  border: none;
  transition: 0.3s;
  min-width: 180px;
  text-align: center;
}

.comment-respond .websima-button:hover {
  background: rgba(188, 145, 44, 1);
  color: #fff;
}

.error-msg {
  color: red;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.form-submit .button {
  display: none;
}

.form-submit .websima-cta {
  font-family: "YekanBakhFaNum", Arial, sans-serif;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/**************************/
/* ABOVE 768px */
/**************************/
@media (min-width: 48em) {
  .commentlist .children li .isreply {
    right: -52px;
  }
}

/**************************/
/* ABOVE 992px */
/**************************/
@media (min-width: 62em) {
  .author-post-text {
    flex: 1;
  }

  .commentlist > .cat-parent > ul.children {
    padding-right: 110px;
  }

  .commentlist .children li .isreply {
    left: 24px;
  }

  .commentlist .comment_container {
    margin: 62px 0;
  }

  .comment_container::before {
    width: calc(100% - 80px);
  }
}

/**************************/
/* BELOW 576px */
/**************************/
@media (max-width: 35.99em) {
  .commentlist .comment_container {
    padding-top: 40px;
  }

  .comment_container::before {
    top: 19px;
  }

  .commentlist > ul.children {
    padding-left: 3.2rem;
  }

  #review_form_wrapper form,
  #commentform {
    grid-template-columns: minmax(0, 1fr);
  }

  .isreply {
    right: -42px;
  }
}

@media (max-width: 991px) {
  .commentlist .comment_container {
    padding: 20px 16px !important;
  }

  .time_comment {
    font-size: 12px;
  }

  .name_comment {
    font-size: 16px;
    padding: 0;
  }

  .name_comment img {
    width: 71px;
  }
  .head-comment:after {
    width: 38%;
  }
  .head-comment {
    margin-bottom: 13px;
    padding-bottom: 13px;
  }
  .text_comment.editor-content.main-content p {
    font-size: 14px;
  }
  .comment-reply-link {
    font-size: 16px;
    margin-right: 0;
  }
  .commentlist .comment_container {
    padding: 0 !important;
    margin-bottom: 32px !important;
  }

  .commentlist .children li::before {
    transform: translateY(-50%);
    top: 50%;
    left: -3.2rem;
    width: 33px;
    height: 42px;
    font-size: 14px;
  }

  .commentlist > ul.children {
    margin: 0 !important;
  }
}
