/* ------- Mini-chat-box template ------- */

.chat {
  width: 285px;
  margin: 0 auto;
}
.chat header {
  cursor: move;
}
.chat header:before,
.chat header:after {
  display: block;
  content: '';
  clear: both;
}
.chat header h2,
.chat .body ul li .content h3 {
  margin: 0;
  padding: 0;
  font-size: 14px;
  float: left;
}
.chat header h2 a {
  color: #ffffff;
  text-decoration: none;
}

.chat .body {
  position: relative;
  max-height: 360px;
  overflow-y: auto;
}

.chat .body::-webkit-scrollbar {
    width: .5em;
}
.chat .body::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 4px solid #d8d8d8;
}
.chat .body::-webkit-scrollbar-track {
    background: #d8d8d8;
}

.chat footer a {
  background: #bd6982;
  display: block;
  width: 100%;
  padding: 10px 15px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.chat footer a:hover {
  background: #cd8ca0;
  -webkit-transition: background 0.3s linear 0s;
  -moz-transition: background 0.3s linear 0s;
  -ms-transition: background 0.3s linear 0s;
  -o-transition: background 0.3s linear 0s;
  transition: background 0.3s linear 0s;
}

/* ------- The main content ------- */

.shoutbox {
    max-width: 474px;
    margin: 0 auto;
    overflow: hidden;
}

h1 {
    background-color:  #87bfef;
    box-shadow: 0px 1px 1px 0.00px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    height: 36px;
    text-align: left;
    margin: 0;
    color:  #ffffff;
    border-radius: 7px 7px 0 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 36px;
}

h1 img {
    position: absolute;
    top: 9px;
    right: 35px;
    width: 17px;
    height: 18px;
    float:right;
    cursor: pointer;
}

.left-icon {
    position: relative;
    top: 9px;
    padding-right: 20px;
    left: 10px;
    width: 17px;
    height: 18px;
    float: left;
    z-index: 1;
}

/* ------- The comments content ------- */

.shoutbox-content {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color:  #df377a;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.shoutbox-content li {
    padding: 11px;
    border-bottom: 1px solid #d5dbe1;
}

.shoutbox-content li:nth-child(odd) {
    background: #f7f7f7;
}

.shoutbox-username {
    display: inline;
    color:  #87bfef;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin-right: 5px;
}

.shoutbox-comment {
    display: inline;
    color:  #717c87;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: left;
    word-break: break-word;
}

.shoutbox-comment-details {
    width: 100%;
    margin: 5px auto;
    height: 11px;
}

.shoutbox-comment-reply {
    display: inline-block;
    float: left;
    color:  #5896cb;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    text-align: left;
    height: 9px;
    cursor: pointer;
}

.shoutbox-comment-ago {
    display: inline-block;
    float: right;
    color: #d5dbe1;
    font-size: 11px;
    font-weight: normal;
    line-height: 20px;
    text-align: right;
    height: 11px;
}


/* ------- Writing a new comment form ------- */

h2 {
    position: relative;
    background-color:  #f9fafb;
    border-bottom: 2px solid #e2e8eb;
    max-width: 100%;
    height: 35px;
    margin: 0;
    text-align: center;
    color:  #5896d3;
    font-size: 14px;
    font-weight: bold;
    line-height: 35px;
    cursor: pointer;
}

h2 span {
    display: none;
    position: absolute;
    float: right;
    right: 13px;
    font-size: 22px;
    top: 0;
    width: 20px;
    height: 20px;
    z-index: 20px;
}

.shoutbox-form form {
    display: block;
    background-color:  #f9fafb;
    box-shadow: 0px 2px 0px 0.00px #e2e8eb;
    max-width: 100%;
    text-align: left;
    padding: 0;
}

.shoutbox-form form label {
    display: inline-block;
    color:  #df377a;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    width: 80px;
    height: 11px;
    line-height: 11px;
    margin-bottom: 15px;
}

.shoutbox-form form .shoutbox-comment-label {
    position: relative;
    top: -75px;
}

.shoutbox-form form #shoutbox-name {
    display: inline-block;
    background: transparent;
    box-shadow: none;
    outline: none;
    border: 0;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    max-width: 95px;
    width: 100%;
    color: #fff;
    left: 130px;
    height: 26px;
    font-size: 14px;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    top: 6px;
}

.shoutbox-form form #shoutbox-comment {
    background-color: #f9fafb;
    border: 0;
    border-top: 1px solid #87bfef;
    border-radius: 0;
    outline: none;
    max-width: 225px;
    width: 100%;
    resize: none;
    font-weight: normal;
    font: inherit;
    font-size: 14px;
    padding: 10px 51px 10px 10px;
    box-sizing: padding-box;
    color:inherit;
    overflow: hidden;
}

.shoutbox-form form input[type=submit] {
    background: #f9fafb url(https://celans.ru/files/send.svg) center center no-repeat;
    background-size: 31px;
    border: 0;
    width: 41px;
    height: 41px;
    position: absolute;
    right: 0;
    margin-top: 9px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    line-height: 38px;
    outline: none;
    cursor: pointer;
}

/* ------- Make the page responsive ------- */

@media(max-width: 445px) {
    .shoutbox-form form .shoutbox-comment-label {
        top: 0;
    }
    .shoutbox-form form input[type=submit] {
        margin-left: 0;
    }
}

/* ------- Additional ------- */

#shoutbox-name::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #51718c;
  text-align: center;
}
#shoutbox-name::-moz-placeholder { /* Firefox 19+ */
  color: #51718c;
  text-align: center;
}
#shoutbox-name:-ms-input-placeholder { /* IE 10+ */
  color: #51718c;
  text-align: center;
}
#shoutbox-name:-moz-placeholder { /* Firefox 18- */
  color: #51718c;
  text-align: center;
}

#chat_area {
    width: 100%;
    height:97vh;
    position: fixed;
}