﻿#comments {
    padding: 10px 0 0px 0;
    margin-bottom: 30px;
}
#comments ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
#comments ul.replies {
  margin-left: 28px;
}
#comments ul li {
  padding: 0;
  list-style: none;
  position: relative;
  margin: 20px auto;
}


#comments h2 {
  text-decoration: none;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .form-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .form-row > * {
    width: 50%;
  }
}

#comments .form-group {
    position: relative;
    margin-bottom: 1rem;
}

#comments .form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-radius: .375rem;
    transition: border-color .5s ease-in-out, box-shadow .5s ease-in-out;
}

#comments .reply-form {
  display: none;
  margin-top: 1rem;
}

#comments .reply-form.active {
  display: block;
}

.comment-heading {
  display: flex;
  align-items: center;
  height: 50px;
  font-size: 14px;
}
.comment-heading p {
  margin: 0;
}
.comment-body p{
  margin:8px 0;
}
.comment-voting {
  display: flex;
  border-radius: 6px;
}

.js-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  font-size: 1rem;
  background-color: #e5e5e6;
  border: none;
  padding: 8px 10px;
}


.js-vote svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.js-vote span {
  line-height: 1;
}


.up-vote {
  padding: 6px 1.5rem;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.down-vote {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.up-vote:hover ,.down-vote:hover {
  cursor: pointer;
  background-color: #bbbbbb;
}

.up-vote.active{
  
  color: var(--color_white);
  background-color: var(--color_info);
}

.down-vote.active{
  color: var(--color_white);
  background-color: var(--color_danger);
}

.comment-info {
  color: rgba(0, 0, 0, 0.5);
  margin-left: 10px;
}
.comment-info p {
  font-size: 12px;
}
.comment-author {
  color: rgba(0, 0, 0, 0.85);
  font-weight: bold;
  text-decoration: none;
}
.comment-author:hover {
  text-decoration: underline;
}

.comment-badge, .button-container{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


.comment-badge, .button-container > button {
  display: inline-block;
  color: #868e96;
  font-size: 12px;
  vertical-align: middle;
  border-radius: 6px;
  transition: all .3s;
}
.button-container > .comment-badge {
  border-radius: 4px;
  padding: 6px 10px;
  border: 2px solid var(--color_secondary);
  color: var(--color_secondary);
}
.button-container > button  {
  background-color: var(--color_white);
  color: var(--color_secondary);
  border: 2px solid var(--color_secondary);
  transition: all .3s;
  padding: 4px 12px;
}
.button-container > button:hover {
  background-color: var(--color_white);
  color: var(--color_secondary);
  transition: all .3s;
}

.comment-badge > svg {
  vertical-align: middle;
  margin-right: 4px;
  width: 14px;
  height: 14px;
}
.button-container .js-reply {
  color: var(--color_secondary);
  border: 2px solid var(--color_secondary);
}

.button-container .js-reply:hover ,.button-container > button:hover {
  cursor: pointer;
  background-color: var(--color_secondary);
  color: white;
  transition: all .3s;
}
.button-container .js-reply span {
  text-transform: capitalize;
}

.comment-wrapper ,#comments ul.replies > li > .comment-wrapper , #comments ul.replies ul.replies > li > .comment-wrapper  {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 8px;
}

.js-toggle-replies.active ,.js-toggle-replies:hover {
    cursor: pointer;
    background-color: var(--color_secondary);
    color: white;
    border: 2px solid var(--color_secondary);
}


