.comments {
  padding: 20px 0 50px 0;
 }

.commentbox{
position:relative;
  max-height:500px;
  overflow-y:auto;
}
div.commentbox::-webkit-scrollbar {
    width: 0.9em;
}

div.commentbox::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

div.commentbox::-webkit-scrollbar-thumb {
  background: linear-gradient(#eee, #aaa);
  border: 1px solid #999;
}

.modcomms{
    position:sticky;
    top:0;
    right:0;
    display:block;
    text-align:right;
    padding:0;
    margin:0;
    background:#fff;
    opacity:0.65;
    border-radius:12px 0 0 12px;
}
.modcomms img{
    height:24px;
    width:24px;
}
.modcomms:hover, .modcomms:active{
    opacity:1;
}

.comments .comment_header {
  /*display: flex;
  justify-content: space-between;*/
  padding: 15px 0;
  margin-bottom: 10px;
  align-items: center;
}
.comments .comment_header .total {
  color: #555761;
  font-size: 1.1rem;
  padding-left: 3rem;
  font-weight: 500;
}
.comments .comment_header .write_comment_btn {
  margin: 0;
}
.comments .write_comment_btn, .comments .write_comment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #3b3c3f;
  color: #ffffff;
  text-decoration: none;
  margin: 5px 6px 0 0;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  height: 35px;
  border: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px 1px rgba(20, 24, 31, 0.05);
}
.comments .write_comment_btn:hover, .comments .write_comment button:hover {
  background-color: rgb(46.6680327869, 47.4590163934, 49.8319672131);
}
.comments .write_comment {
  display: none;
  padding: 10px 0;
}
.comments .write_comment textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #B9C4E7;
  border-radius: 5px;
  height: 150px;
  margin: 20px 0 10px 0;
}
.comments .con .write_comment textarea{
  width: 90%;
}
.comments .write_comment textarea::placeholder {
  color: #95979e;
}
.comments .write_comment input {
  display: block;
  width: 250px;
  padding: 10px;
  border: 1px solid #B9C4E7;
  border-radius: 5px;
  margin-top: 10px;
}
.comments .write_comment input::placeholder {
  color: #95979e;
}
.comments .write_comment button {
  cursor: pointer;
}
.comments .comment {
  display: flex;
  flex-flow: row;
  width: 100%;
  max-width: 100%;
  padding-top: 10px;
}
.comments .comment .avatar {
  width: 55px;
  padding-right: 12px;
}
.comments .comment .avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background-color: #777;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
}
.comments .comment .con {
  display: flex;
  flex-flow: column;
  width: calc(100% - 55px);
  max-width: calc(100% - 55px);
}
.comments .comment .name {
  display: inline;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 5px;
  color: #45464d;
}
.comments .comment .date {
  color: #8a8a92;
  font-size: 0.9rem;
}
.comments .comment .comm-content {
  margin: 0;
  padding: 10px 15px 10px 0;
  color: #1c1c1c;
}
.comm-content{

}
.comments .comment .reply_comment_btn {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #8a8a92;
}
.comments .comment .reply_comment_btn:hover {
  text-decoration: underline;
}
.comments .comment .replies .comment {
    border-bottom: 1px solid #eee;
}
#com_message {
    border-radius:8px;
    position: fixed; /* stays in place on the viewport */
    top: 100px; /* distance from top of viewport */
    left: 50%; /* center horizontally */
    transform: translateX(-50%); /* exact horizontal centering */
    width: 80%; /* or any width you prefer */
    padding: 10px;
    text-align: center;
    font-weight: bold;
    background-color: #fff; /* background color for visibility */
    z-index: 9999; /* on top of everything */
    opacity: 1;
    transition: opacity 1s ease-in-out;
    display: none; /* start hidden */
}
#com_message.fade-out {
    opacity: 0;
}
#com_message span{
    display:block;
    padding:5px;
    margin:0 auto;
    width:60%;
}
#com_message .success{
	border:1px solid #0a0;
    border-radius:8px;
	background: #efe;
	color:#060;
}
#com_message .moderating{
	border:1px solid #900;
    border-radius:8px;
	background: #fee;
	color:#600;
}