section.comments {
  padding: 2.5vw 0;
  width: 100%;
  min-height: 15vw;
  position: relative;
  overflow: hidden;
  gap: 0.75vw;
  justify-content: start !important;
  align-items: start !important;
}

section.comments > h2 {
  width: 100%;
  padding-right: 1.2vw;
  position: relative;
  font-size: 1.1vw;
  color: var(--dark-font);
  font-weight: 600;
  justify-content: space-between !important;
}

section.comments > h2::before {
  content: "";
  width: 0.35vw;
  height: 2vw;
  border-radius: 0.5vw;
  position: absolute;
  right: 0;
  background-color: var(--green);
}

section.comments > h4 {
  font-size: 0.9vw;
  font-weight: normal;
  padding-right: 0.75vw;
}

section.comments > h4 a {
  color: var(--red);
  transition: all 0.5s ease-in-out;
  font-weight: 600;
}

section.comments > h4 a:hover {
  filter: brightness(0.85);
}

.svg-container {
  margin-bottom: 2vw;
  font-weight: normal;
  opacity: 1;
  transform: translateY(4vw);
  transition: all 0.3s;
}

.comments-container {
  width: 100%;
  border-top: 2px solid rgba(154, 154, 154, 0.5);
  transition: all 0.3s;
  opacity: 1;
}

section.comments svg {
  width: 12vw;
  height: 12vw;
}

section.comments svg {
  width: 12vw;
  height: 12vw;
}

.comment-card-container {
  margin-top: 2vw;
  transition: all 0.3s;
}

.comment-card {
  margin-top: 0.5vw;
  padding: 1vw;
  min-height: 4vw;
  position: relative;
  color: var(--dark-box-bg);
  align-items: stretch;
  margin-bottom: 2px;
  transition: all 0.3s;
  border-radius: 0.85vw;
  background-color: var(--light-bg);
}

.comment-card.child {
  padding: 1vw 1.5vw 0.25vw 0;
}

.comment-card-container > .comment-card {
  border: 0.125vw solid #edf1f6;
}

.comment-card-info {
  padding-bottom: 1vw;
  gap: 1vw;
  justify-content: space-between !important;
  position: relative;
  border-bottom: 0.1vw solid #edf1f6;
}

.comment-card.child .comment-card-info {
  padding-top: 1vw;
  border-top: 0.1vw solid #edf1f6;
  border-bottom: none !important;
}

.comment-card .comment-card-info .vote-comment {
  min-width: 27%;
  padding: 1vw 0;
  position: relative;
  justify-content: space-between !important;
}

.comment-card.child .comment-card-info .vote-comment {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.comment-card .comment-card-info .vote-comment > div {
  margin-right: 1.25vw;
  color: #b7bfc5;
}

.comment-card .comment-card-info .vote-comment h4 {
  font-weight: normal;
  color: #b7bfc5;
  font-size: 0.9vw;
}

.comment-card .comment-card-info .vote-comment .btn {
  transition: all 0.25s ease-in-out;
  color: #b7bfc5;
  font-family: IRANSansX, sans-serif;
}

.comment-card .comment-card-info .vote-comment .btn.like:hover {
  color: var(--green);
}

.comment-card .comment-card-info .vote-comment .btn.dislike:hover {
  color: var(--red);
}

.comment-card .comment-card-info .vote-comment .btn svg {
  width: 1.5vw;
  height: 1.5vw;
}

.comment-card .comment-card-info .vote-comment .btn.like svg {
  transform: translateY(-0.1vw);
  transition: all 0.25s ease-in-out;
}

.comment-card .comment-card-info .vote-comment .btn svg path {
  transform: translateY(-0.1vw);
  transition: all 0.25s ease-in-out;
  fill: #b7bfc5;
}

.comment-card .comment-card-info .vote-comment .btn.dislike:hover svg path {
  fill: var(--red);
}

.comment-card .comment-card-info .vote-comment .btn.like:hover svg path {
  fill: var(--green);
}

.comment-card-info .comment-card-info-right-div {
  width: 50%;
  gap: 1vw;
  justify-content: start !important;
  position: relative;
}

.comment-card-info .comment-card-info-right-div figure {
  padding: 0.7vw;
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  border: 0.1vw solid #f1f4f9;
  position: relative;
}

.comment-card-info .comment-card-info-right-div figure svg {
  width: 100%;
}

/*.comment-card-container > .comment-card .comment-card-info-right-div figure {*/
/*    display: none;*/
/*    opacity: 0;*/
/*    visibility: hidden;*/
/*}*/

.comment-card-text-info {
  justify-content: start !important;
  align-items: start !important;
  gap: 0.5vw;
  position: relative;
}

.comment-card.child .comment-card-text-info {
  padding-right: 1vw;
}

.comment-card.child .comment-card-text-info::before {
  content: "";
  width: 0.2vw;
  height: 100%;
  background-color: #b7bfc5;
  border-radius: 0.25vw;
  position: absolute;
  right: 0;
}

.comment-card-text-info > h5 {
  font-size: 0.85vw;
  font-weight: normal;
  color: #b7bfc5;
  font-family: IRANSansX, sans-serif;
}

.comment-card-info .comment-card-info-right-div h2 {
  gap: 0.2vw;
  font-size: 1vw;
  justify-content: start !important;
  align-items: start !important;
  font-weight: 600;
}

.comment-card.child .comment-card-info .comment-card-info-right-div h2 {
  flex-direction: row !important;
  gap: 1vw;
}

.comment-card-info .comment-card-info-right-div h2 > i {
  font-style: normal;
}

.comment-card-info .comment-card-info-right-div h2 span {
  font-size: 0.85vw;
  font-weight: normal;
  color: #b7bfc5;
  font-family: Kalameh, sans-serif;
}

.comment-card p {
  padding: 1vw;
  font-size: 0.9vw;
  font-weight: 500;
  line-height: 1.4vw;
  /*border: 1px solid red;*/
}

.comment-card p span {
  font-size: 0.9vw;
  font-weight: 500;
}

.comment-card .feedbacks {
  width: 100%;
  padding: 0 0.5vw;
  justify-content: start !important;
  align-items: start !important;
  gap: 0.5vw;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
  /*border: 1px solid red;*/
}

.comment-card .btn {
  background-color: transparent;
  color: var(--dark-font);
  gap: 0.35vw;
  display: flex;
  font-size: 1vw;
  font-family: IRANSansX, sans-serif;
}

.feedbacks-buttons {
  width: 100%;
  justify-content: start;
  gap: 2vw;
}

.feedbacks-buttons .btn {
  font-family: Kalameh, sans-serif;
  font-size: 0.95vw;
}

.comment-card .btn.like:hover {
  color: #00b600;
}

.comment-card .btn.dislike:hover {
  color: var(--red);
}

.comment-card .btn.reply:hover {
  color: var(--red);
}

.comment-card .btn.like i {
  margin-top: 0.1vw;
}

.comment-card .btn.dislike i {
  margin-top: 0.3vw;
}

.comment-card .btn.reply {
  font-family: Kalameh, sans-serif;
  color: #00b0b0;
  position: relative;
  gap: 0.5vw;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
}

.comment-card .btn.reply svg {
  width: 1.32vw;
  height: 1.32vw;
}

.comment-card .btn.reply svg path {
  transition: all 0.25s ease-in-out;
  stroke: #00b0b0;
}

.comment-card .btn.reply:hover svg path {
  transition: all 0.25s ease-in-out;
  stroke: var(--red);
}

.comment-card span {
  font-weight: normal;
  font-size: 1.3vw;
}

.comment-card figure {
  width: 2.7vw;
  height: 2.7vw;
  border-radius: 100%;
  position: relative;
  overflow: hidden;
}
.comment-card figure.guest {
  border: 0.15vw solid #1e1e1e;
  background-color: var(--light-bg);
}

.comment-card figure.guest i {
  font-size: 1.5vw;
}

.comment-card figure img {
  width: 100%;
  height: 100%;
}

div.sub-comment-textarea-container {
  /*margin: 0 0 1vw 0.2vw;*/
  padding: 0.5vw 0.5vw 1vw 0.5vw;
  width: 100% !important;
  position: relative;
  transition: all 0.3s;
  visibility: hidden;
  opacity: 1;
  height: 0;
  overflow: hidden;
  align-items: start !important;
  gap: 0.5vw;
  display: none;
}

div.sub-comment-textarea-container.active {
  margin: 0 0 1vw 0.2vw;
  visibility: visible;
  opacity: 1;
  /* height: 20vw; */
  display: flex;
  animation: animate-sub-comment-textarea-container 0.25s linear forwards;
}

@keyframes animate-sub-comment-textarea-container {
  0% {
    height: 0;
  }
  100% {
    height: 15.5vw;
  }
}

.sub-comment-textarea-container .input-group input {
  width: 20vw;
  font-family: IRANSansX, sans-serif;
  background-color: #d2d2d2;
  color: var(--dark-box-bg);
  font-size: 0.9vw;
  cursor: auto;
  border-radius: 0.75vw;
}

.sub-comment-textarea-container textarea {
  padding: 1vw;
  width: 100%;
  resize: none;
  height: 7vw;
  font-family: IRANSansX, sans-serif;
  font-weight: normal;
  font-size: 1vw;
  border-radius: 0.8vw;
  border: 0.1vw solid #e6eaf1;
  color: var(--dark-box-bg);
  caret-color: var(--red);
}

.sub-comment-textarea-container textarea::placeholder {
  color: rgba(100, 116, 139, 0.7);
  font-size: 0.95vw;
}

.sub-comment-textarea-container textarea:focus {
  outline: none;
}

.sub-comment-textarea-container .submit-reply-button-container {
  transform: translateY(1vw);
  gap: 0.5vw;
  position: relative;
}

.sub-comment-textarea-container .submit-reply-button-container .tiny-loader {
  position: absolute !important;
  right: 103% !important;
  bottom: 0 !important;
}

.sub-comment-textarea-container button.submit-reply {
  margin-bottom: 0.3vw;
  padding: 0.6vw 1vw;
  border-radius: 0.8vw;
  min-width: 6vw;
  background-color: var(--green) !important;
  font-family: Kalameh, sans-serif;
  font-weight: 500;
  font-size: 0.9vw;
  color: var(--light-font);
}

.sub-comment-textarea-container button.submit-reply:hover {
  filter: brightness(1.25);
  color: var(--light-green2);
}

.sub-comment-textarea-container button.submit-reply:disabled {
  filter: brightness(1);
  opacity: 0.5;
}

.no-comment-msg {
  margin-top: 2vw;
  padding: 1vw;
  width: 100%;
  min-height: 10vw;
  position: relative;
  gap: 1vw;
}

.no-comment-msg svg {
  width: 10vw;
}

.no-comment-msg h3 {
  font-size: 1vw;
  gap: 0.7vw;
  font-weight: bold;
}

.no-comment-msg h3 span {
  font-weight: 300;
}

@media (max-width: 450px) {
  section.comments > h4 {
    font-size: 2.5vw;
    font-weight: normal;
    padding-right: 0.75vw;
  }
  section.comments {
    padding: 2.5vw 0;
    width: 100%;
    min-height: 15vw;
    position: relative;
    overflow: hidden;
    gap: 2.75vw;
    justify-content: start !important;
    align-items: start !important;
  }
  .main-text-input > h3 {
    font-size: 2.95vw !important;
    font-weight: 600;
    margin-bottom: 0.5vw;
  }
  .comment-card {
    margin-top: 0.5vw;
    padding: 1vw;
    min-height: 4vw;
    position: relative;
    color: var(--dark-box-bg);
    align-items: stretch;
    margin-bottom: 2px;
    transition: all 0.3s;
    border-radius: 2vw;
    background-color: var(--light-bg);
  }

  .comment-card-info .comment-card-info-right-div {
    width: 50%;

    gap: 1vw;

    justify-content: start !important;
    align-items: center !important;
    position: relative;
  }
  .comment-card-info .comment-card-info-right-div h2 {
    gap: 2vw;
    font-size: 3vw;
    justify-content: start !important;
    align-items: start !important;
    font-weight: 600;
  }
  .comment-card-info .comment-card-info-right-div figure {
    padding: 0.7vw;
    width: 7vw;
    height: 7vw;
    border-radius: 50%;
    border: 0.1vw solid #f1f4f9;
    position: relative;
  }
  .comment-card-info .comment-card-info-right-div h2 span {
    font-size: 2.6vw;
    font-weight: normal;
    white-space: nowrap;
    color: #b7bfc5;
    font-family: Kalameh, sans-serif;
  }
  .comment-card-info .comment-card-info-right-div h2 > i {
    font-style: normal;
    white-space: nowrap;
  }
  .comment-card.child .comment-card-info .comment-card-info-right-div h2 {
    flex-direction: row !important;
    gap: 3vw;
  }
  .comment-card .comment-card-info .vote-comment h4 {
    font-weight: 500;

    color: #b7bfc5;

    font-size: 2.2vw;
  }
  .comment-card .btn {
    background-color: transparent;
    color: var(--dark-font);
    gap: 0.35vw;
    display: flex;
    font-size: 3vw;
    font-family: IRANSansX, sans-serif;
  }
  .comment-card .comment-card-info .vote-comment .btn svg {
    width: 4vw;
    height: 4vw;
  }
  .vote-comment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vw;
  }
  .comment-card .comment-card-info .vote-comment > div {
    margin-right: 1.25vw;
    color: #b7bfc5;
    justify-content: space-around !important;
    width: 100%;
    font-size: 2.6vw;
  }
  .comment-card p span {
    font-size: 2.9vw;
    font-weight: 500;
    line-height: 7vw;
  }
  .comment-card-text-info > h5 {
    font-size: 2.85vw;
    font-weight: normal;
    color: #b7bfc5;
    font-family: IRANSansX, sans-serif;
  }
  .comment-card-text-info {
    justify-content: start !important;
    align-items: start !important;
    gap: 2.5vw;
    position: relative;
  }
  .comment-card.child .comment-card-text-info::before {
    content: "";
    width: 0.6vw;
    height: 100%;
    background-color: #b7bfc5;
    border-radius: 0.75vw;
    position: absolute;
    right: 0;
  }
  .comment-card.child .comment-card-text-info {
    padding-right: 3vw;
  }

  .comment-card-info {
    margin-top: 2vw;
  }
  .comment-card .btn.reply svg {
    width: 3.32vw;
    height: 3.32vw;
  }
  .sub-comment-textarea-container textarea {
    padding: 4vw 1vw;
    width: 100%;
    resize: none;
    height: 23vw;
    font-family: IRANSansX, sans-serif;
    font-weight: normal;
    font-size: 2.8vw;
    border-radius: 2vw;
    border: 0.1vw solid #e6eaf1;
    color: var(--dark-box-bg);
    caret-color: var(--red);
  }
  div.sub-comment-textarea-container.active {
    margin: 0 0 1vw 0.2vw;
    visibility: visible;
    opacity: 1;
    height: 100% !important;
    overflow: visible;
    display: flex;
    animation: animate-sub-comment-textarea-container 0.25s linear forwards;
  }
  .sub-comment-textarea-container textarea::placeholder {
    color: rgba(100, 116, 139, 0.618);
    font-size: 2.85vw;
    padding-bottom: 4vw;
  }
  .sub-comment-textarea-container button.submit-reply {
    margin-bottom: 1.7vw;
    padding: 1.2vw 2.9vw;
    border-radius: 1.8vw;
    min-width: 11vw;
    background-color: var(--green) !important;
    font-family: Kalameh, sans-serif;
    font-weight: 500;
    font-size: 2.9vw;
    color: var(--light-font);
  }
  .comment-card .feedbacks {
    gap: 2.5vw;
  }
}
