:root{
  --comment-left-width: 50px;
  --comment-left-padding: 80px;
  --comment-left-minus: -55px;
  --border-h: var(--border-header, rgba(60, 60, 60, 0.2));
  --border-c: var(--border-header-hover, rgba(60, 60, 60, 0.5));
  --border-a: var(--border-drunk, #444);
  --border-uh: var(--bg-user-box-hover, #444);
  --border-odd: var(--bg-table-row-odd, #666);
  --border-even: var(--bg-table-row-even, #222);
  --border-b: var(--bg-table-status-svg, rgb(27, 27, 27));
  --border-l: var(--border-light, #437fa5);
}

/* comments */
.comments-all {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.comments-container::before{
  content: '';
  width: 100%;
  height: 10px;
  display: block;
  margin-left: -2%;
  border-top: 1px solid var(--border-c);
}
  
  .comments-container {
    margin-top: 50px;
    font-family: 'Roboto', Arial, Helvetica, Sans-serif, Verdana;
    width: 90%;
    padding-left: 4%;
    padding-right: 4%;
    margin-left: 2%;
    overflow: auto;
  
    /* customize the comment box here */
    /*height: 500px;*/
    /* max-width: 786px; */
  }
  
  .comments-container h1 {
    font-size: 36px;
    color: #283035;
    font-weight: 400;
  }
  
  .comments-container h1 a {
    font-size: 18px;
    font-weight: 700;
  }
  
  .comments-list {
    list-style-type: none;
    /*margin-top: 30px;*/
    margin-top: 2em;
    position: relative;
  }
  
  .comments-total{
    margin-left: -15px;
  }

  /**
   * Lineas / Detalles
   -----------------------*/
  .comments-list::before {
    content: '';
    width: 2px;
    height: 100%;
    background-color: var(--border-c);
    position: absolute;
    left: 22px;
  }
  
  .comments-list::after {
    content: '';
    position: absolute;
    background: #c7cacb;
    bottom: 0;
    left: 16.5px;
    width: 7px;
    height: 7px;
    border: 3px solid #dee1e3;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
  }
  
  .reply-list::before,
  .reply-list::after {
    display: none;
  }
  
  .reply-list li::before {
    content: '';
    width: var(--comment-left-width);
    height: 2px;
    background-color: var(--border-c);
    position: absolute;
    top: 25px;
    left: var(--comment-left-minus);
  }
  
  .comments-list li {
    margin-bottom: 15px;
    display: block;
    position: relative;
  }
  
  .comments-list li::after {
    content: '';
    display: block;
    clear: both;
    height: 0;
    width: 0;
  }
  
  .reply-list {
    padding-left: var(--comment-left-padding);
    clear: both;
    margin-top: 15px;
  }
  
  /**
   * Avatar
   ---------------------------*/
  .comments-list .comment-avatar {
    text-indent: 0;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 99;
    float: left;
    border: 3px solid #FFF;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .comments-list .comment-avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    padding: 0;
  }
  
  .reply-list .comment-avatar {
    width: 40px;
    height: 40px;
  }
  
  .comment-main-level::after {
    content: '';
    width: 0;
    height: 0;
    display: block;
    clear: both;
  }
  
  /**
   * Caja del Comentario
   ---------------------------*/
  .comments-list .comment-box {
    /* width: 85%; */
    width: calc(100% - 75px);
    float: right;
    position: relative;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  }
  
  .comments-list .comment-box::before,
  .comments-list .comment-box::after {
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    display: block;
    border-width: 10px 12px 10px 0;
    border-style: solid;
    /* border-color: transparent #FCFCFC; */
    border-color: transparent var(--border-b);
    top: 8px;
    left: -11px;
  }
  
  .comments-list .comment-box::before {
    border-width: 11px 13px 11px 0;
    border-color: transparent rgba(0, 0, 0, 0.05);
    left: -12px;
  }
  
  /* .reply-list .comment-box {
      width: 85%;
  } */
  
  .comment-box .comment-head {
    width: 100% !important;
    white-space: nowrap;
    background: var(--border-b);
    padding: 10px 12px;
    border-bottom: 1px solid #E5E5E5;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow-y: hidden;
    overflow-x: auto;
  }

  .comment-box .comment-head::-webkit-scrollbar{
    display: none;
  }

  .hot .comment-box .comment-head {
    background: var(--border-a);
  }
  
  .comment-box .comment-head i {
    float: right;
    margin-left: 14px;
    position: relative;
    top: 2px;
    color: #A6A6A6;
    cursor: pointer;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
  }
  
  .comment-box .comment-head .comment-likes {
    font-style: normal;
    color: #A6A6A6;
  }
  
  .comment-box .comment-head i:hover {
    color: #03658c;
  }
  
  .comment-checked {
    color: #03658c !important;
  }
  
  .comment-box .comment-name {
    color: #1c95e0;
    font-size: 14px;
    font-weight: 700;
    float: left;
    margin-right: 10px;
    min-width: 100px;
  }
  
  .comment-box .comment-name a {
    margin-left: 5px;
    color: var(--border-l);
  }
  
  .comment-box .comment-head span {
    margin-left: 3px;
    margin-right: 3px;
    float: left;
    color: #fff !important;
    font-size: 13px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    top: 1px;
  }
  
  .comment-box .comment-content {
    width: 100%;
    background-color: var(--border-even);
    padding: 12px;
    font-size: 15px;
    /* color: #595959; */
    /* color: inherit; */
    color: #eee;
    border: none;
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    border-radius: 0 0 4px 4px;
  }

  .hot .comment-box .comment-content {
    background: var(--border-uh);
  }
  
  /* .comment-active {
    background: #EEE !important;
  } */
  
  .comment-delete {
    background: #fc4f30 !important;
  }
  
  .comment-edit {
    background: #9a2cd6 !important;
  }
  
  .comment-update {
    background: #00bfd5 !important;
  }
  
  .comment-cancel {
    background: #e5ae37 !important;
  }
  
  .comment-sent {
    background: #32cd32 !important;
  }
  
  .comment-button {
    font-weight: bold !important;
    color: #FFF !important;
    padding: 1.5px 3px !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    font-style: normal !important;
  }
  
  .comment-button:hover {
    color: #000 !important;
    background: #fff !important;
  }

  .comment-box .by-someone{
    margin-left: 3px; 
    margin-right: 8px; 
    /* background-color: #03658c; */
    background-color: var(--border-c);
    color: #FFF;
    font-size: 12px;
    padding: 1px 2px;
    font-weight: 700;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  } 
  /*   
  .comment-box .comment-name.by-author,
  .comment-box .comment-name.by-author a {
    color: #2e99c4;
  }
  
  .comment-box .comment-name.by-author::after {
    content: '作者';
    background: #03658c;
    color: #FFF;
    font-size: 12px;
    padding: 3px 5px;
    font-weight: 700;
    margin-left: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  } 
  */
  
  /* responsive */
  /* @media only screen and (max-width: 766px) {
    .comments-container {
      width: 480px;
    }
  
    .comments-list .comment-box {
      width: 390px;
    }
  
    .reply-list .comment-box {
      width: 320px;
    }
  } */
  /* end of comments */
.comments-container{
  width: 100%;
}

.comments-list{
  width: 100%;
}

.comment-control-text{
  margin: 5px;
  border: 1px solid var(--border-c);
    cursor: pointer;
    font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* color: #222; */
  color: var(--border-h);
}

.comment-control-text:hover{
    color: #fff;
}

div.comments-all.comment-box textarea{
  background-color: var(--border-odd);
  font-size: 20px;
}

@media screen and (max-width: 850px) {
  :root{
    --comment-left-width: 20px;
    --comment-left-padding: 50px;
    --comment-left-minus: -25px;
  }  
}

@media screen and (max-width: 550px) {
  .comment-avatar{
    width: 32.5px !important;
    height: 32.5px !important;
  }
  .reply-list .comment-avatar{
    width: 25px;
    height: 25px;
  }
  .md-auto-format ol, .md-auto-format ul{
    padding-left: 5px !important;
    margin: 5px 0 !important;
  }
  .comments-list .comment-box{
    width: calc(100% - 55px) !important;
  }
  .comment-box .comment-head i {
    font-size: 13px;
    margin-left: 3px;
  }
  .comment-button {
    padding: 0px 2px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    margin-left: 5px !important;
    font-weight: normal !important;
  }
}

