@media(max-width:600px){
  .open-button{
    right: 8px;
  }
}

.chat {
  border:1px solid #333;
  margin:15px;
  width:40%;
  height:70%;
  background:#555;
  color:#fff;
}

.chat-messages {
  min-height:93%;
  max-height:93%;
  overflow:auto;
}

.chat-messages__content {
  padding:1px;
}

.chat__message {
  border-left:3px solid #333;
  margin-top:2px;
  padding:2px;
}

.chat__message_black {
  border-color:#000;
}

.chat__message_blue {
  border-color:#00ad64;
}

.chat__message_green {
  border-color:green;
}

.chat__message_red {
  border-color:red;
}

.chat-input {
  min-height:6%;
}


.chat-form__input {
  width:78%;
}

.chat-form__submit {
  width:18%;
}

/* Кнопка, используемая для открытия контактной формы - фиксируется в нижней части страницы */
.open-button {
  background-color: #0033CC;
  margin-bottom: 1rem;
  font-size: 1em;
  font-weight: 1000;
  color: white;
  padding: 0.90rem 2rem 1rem;
  border-radius: 10rem;
  border-color: #0033CC;
  cursor: pointer;
  opacity: 0.9;
  position: fixed;
  bottom: 0px;
  right: 15px;
  width: 65px;
  float: right;
  z-index: 1;
}

/* Всплывающая форма-скрыта по умолчанию */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 15px;
  border: 3px solid #f1f1f1;
  z-index: 100;
  min-width: 300px;
}

.form-content {
  display: block;
  height: 400px;
  margin-top: 10px;
  padding: 0 5px;
  overflow-y: scroll;
}
.form-content p {
    position: relative;
    border: 2px solid #dedede;
    background-color: #f1f1f1;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
}
.clearfix {
    display:block;
}
.clearfix:after {
    content: ""; 
    display: block; 
    clear: both; 
    visibility: hidden; 
    line-height: 0; 
    height: 0; 
    margin: 0; 
    padding: 0;
}
.avatar {
    float:left;
    max-width: 60px;
    width: 100%;
    margin-top: 10px;
    padding: 0 5px;
    overflow-y: scroll;
}
.mestime {
    position: absolute;
    right: 5px;
    bottom: 0;
    float: right;
}
.mestext {
    padding: 5px;
    font-size: 16px;
    font-weight: 400;
}
/* Добавить стили для контейнера формы */
.form-chat-container {
  max-width: 300px;
  min-height: 400px;
  padding: 10px;
  background-color: white;
}
.chat-header {
  background: #0033CC;
  color: white;
  border-radius: 5px;
  padding: 5px;
}
.chat-title, .chat-close {
  margin-left: 10px;
  display: inline;
  font-weight: 400;
  font-size: 20px;
  font-family: "Open Sans", -apple-system, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.4;
  color: #fff;
}
.chat-close {
  float: right;
} 
.chat-footer {
  display: inline-block;
}
/* Поля ввода полной ширины */
.form-chat-container input[type=text], .form-chat-container input[type=password] {
  width: 78%;
  color: black;
  padding-left: 5px;
  margin-bottom: 2px;
  height: 45px;
  border: none;
  background: #f1f1f1;
  display: inline;
}

/* Когда входы получают фокус, сделайте что-нибудь */
.form-chat-container input[type=text]:focus, .form-chat-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Установите стиль для кнопки отправить/войти */
.form-chat-container .chat-btn {
  border: 0px;
  color: white;
  padding: 20px;
  height: 45px;
  cursor: pointer;
  width: 15%;
  margin-top: 15px;
  opacity: 0.8;
  border-radius: 5px;
  margin-left: 1%;
  display: inline;
  background-color: #fff;
  background-image: url('https://cdn.nowork.su/chat/img/send_btn1.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Добавить красный цвет фона для кнопки "Отмена" */
.form-chat-container .cancel {
  background-color: red;
}

/* Добавить некоторые эффекты наведения на кнопки */
.form-chat-container .chat-btn:hover, .open-button:hover {
  opacity: 1;
}

/* Chat containers */
.container_message {
    position: relative;
    /*border: 2px solid #dedede;*/
    background-color: #f1f1f1;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
}

/* Darker chat container */
.darker {
    border-color: #ccc;
    background-color: #ddd;
}

/* Clear floats */
.container_message::after {
    content: "";
    clear: both;
    display: table;
}

/* Style images */
.container_message img {
    max-width: 50px;    
    float: left;
    max-width: 60px;
    width: 100%;
    margin-right: 20px;
    border-radius: 50%;
}

/* Style the right image */
.container_message img.right {
    float: right;
    max-width: 50px;    
    margin-left: 20px;
    margin-right:0;
}

/* Style time text */
.container_message .time-right {
    position: absolute;
    right: 5px;
    bottom: 0;
    float: right;
    color: #aaa;
}

/* Style time text */
.container_message .time-left {
    position: absolute;
    left: 5px;
    bottom: 0;
    float: left;
    color: #999;
} 
.close {
  float: right;
  margin-top: 7px;
  width: 16px;
  height: 16px;
  opacity: 0.3;
}
.close:hover {
  opacity: 1;
}
.close:before, .close:after {
  position: absolute;
  content: ' ';
  height: 16px;
  width: 2px;
  background-color: #fff;
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}

.accent-color-bg {background-color: #4467E8 !important;}
.accent-color-border {border-color: #4467E8 !important;}
.accent-color-border-b {border-color: #4467E8 !important;}
.accent-color-text {color: #4467E8 !important;}
.accent-color-fill {fill: #4467E8 !important;}