.main{
  position: fixed;
  z-index: 1;
  width: auto !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("//dadbab.info/content/zzC9wE3xiKL7Ung/chat_img/amulet_black_yellow.jpg") top center no-repeat;
  background-size: cover;
}

.chat-feedback,
.chat-feedback *,
.chat-feedback :before,
.chat-feedback :after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
  font-size: 16px;
}

.chat-feedback {
  position: fixed;
  bottom: 40px;
  right: 20px;
  font-family: "Roboto", sans-serif !important;
  line-height: 1 !important;
  background: #f24941;
  z-index: 9999;
  width: 300px;
  -webkit-border-radius: 18px 18px 5px 5px;
     -moz-border-radius: 18px 18px 5px 5px;
          border-radius: 18px 18px 5px 5px;
  -webkit-box-shadow: inset -5px -5px 10px 0 rgba(0, 0, 0, 0.25), inset 5px 5px 10px 0 rgba(255, 255, 255, 0.5);
     -moz-box-shadow: inset -5px -5px 10px 0 rgba(0, 0, 0, 0.25), inset 5px 5px 10px 0 rgba(255, 255, 255, 0.5);
          box-shadow: inset -5px -5px 10px 0 rgba(0, 0, 0, 0.25), inset 5px 5px 10px 0 rgba(255, 255, 255, 0.5);
  padding: 10px;
}
.chat-feedback:not(.open) {
  height: 76px;
}
.chat-feedback__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  z-index: 2;
  -webkit-border-radius: 30px;
     -moz-border-radius: 30px;
          border-radius: 30px;
  display: block;
  cursor: pointer;
}
.chat-feedback__close:before, .chat-feedback__close:after {
  position: absolute;
  content: "";
  width: 16px;
  height: 2px;
  background: #fff;
  top: 50%;
  left: 50%;
  margin: -1px 0 0 -8px;
}
.chat-feedback__close:before {
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
       -o-transform: rotate(45deg);
          transform: rotate(45deg);
}
.chat-feedback__close:after {
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
       -o-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.chat-feedback__open {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  cursor: pointer;
  display: none;
}
.chat-feedback__form {
  position: relative;
}
.chat-feedback__form textarea {
  display: none !important;
}
.chat-feedback__form textarea.visible {
  display: block !important;
}

.consultant {
  position: relative;
  display: table;
  width: 100%;
  height: 56px;
  padding: 0 0 0 56px;
  z-index: 1;
}
.open .consultant {
  margin-bottom: 5px;
}
.consultant__cell {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}
.consultant:before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  background: url("//dadbab.info/content/zzC9wE3xiKL7Ung/chat_img/consultant.jpg") center no-repeat;
  top: 50%;
  left: 0;
  margin-top: -22px;
  border: 2px solid #fff;
  -webkit-border-radius: 50px;
     -moz-border-radius: 50px;
          border-radius: 50px;
  z-index: 0;
}
.consultant:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;
  top: 50%;
  left: 32px;
  margin-top: 10px;
  z-index: 1;
  background: #a6d429;
}
.consultant__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 5px;
}
.consultant__position {
  display: block;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  opacity: 0.6;
}
.consultant__not {
  display: none;
}
.consultant__text {
  display: block;
}
.consultant__status {
  color: #fff;
  display: none;
}
.consultant__status:not([data-not="0"]) .consultant__not {
  display: block;
  -webkit-animation: not_read 1.5s linear infinite;
     -moz-animation: not_read 1.5s linear infinite;
       -o-animation: not_read 1.5s linear infinite;
          animation: not_read 1.5s linear infinite;
}
.consultant__status:not([data-not="0"]) .consultant__text {
  display: none;
}

.messages {
  background: #fff;
}
.messages__list {
  list-style: none;
  overflow: auto;
  max-height: 250px;
  min-height: 52px;
  padding: 10px 10px 0;
  font-size: 0;
}
.messages__clear {
  clear: both;
}
.messages__item {
  display: block;
  position: relative;
}
.messages__item:before, .messages__item:after {
  content: "";
  display: block;
  clear: both;
}
.messages__text {
  display: inline-block;
  position: relative;
  padding: 7px 10px;
  line-height: 1.2;
  max-width: 206px;
  word-wrap: break-word;
  float: left;
  opacity: 1;
  background: #f7d766;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
  -webkit-transition: opacity 0.5s, left 0.5s, right 0.5s;
  -o-transition: opacity 0.5s, left 0.5s, right 0.5s;
  -moz-transition: opacity 0.5s, left 0.5s, right 0.5s;
  transition: opacity 0.5s, left 0.5s, right 0.5s;
}
.messages__text:first-letter {
  text-transform: uppercase;
}
.messages__text:before {
  position: absolute;
  content: "";
  top: 10px;
}
.messages__item:not(.user) .messages__text {
  color: #000;
  margin: 0 auto 10px 10px;
  background: #f7d766;
  left: 0;
  -webkit-animation: mes 0.3s;
     -moz-animation: mes 0.3s;
       -o-animation: mes 0.3s;
          animation: mes 0.3s;
}
.messages__item:not(.user) .messages__text:before {
  right: 100%;
  border-right: 7px solid #f7d766;
  border-bottom: 7px solid transparent;
  border-top: 7px solid transparent;
}
.user .messages__text {
  color: #505050;
  margin: 0 10px 10px auto;
  background: #e8e8e8;
  right: 0;
  float: right;
  -webkit-animation: mes_user 0.3s;
     -moz-animation: mes_user 0.3s;
       -o-animation: mes_user 0.3s;
          animation: mes_user 0.3s;
}
.user .messages__text:before {
  left: 100%;
  border-left: 7px solid #e8e8e8;
  border-bottom: 7px solid transparent;
  border-top: 7px solid transparent;
}
.messages__time {
  position: absolute;
  font-size: 12px;
  line-height: 1;
  bottom: 0;
  right: 100%;
  margin-right: 5px;
  color: #b3b3b3;
}
.messages__item:not(.user) .messages__time {
  right: auto;
  left: 100%;
  margin-right: auto;
  margin-left: 5px;
}
.messages__input {
  position: relative;
  padding: 10px;
  border-top: 1px solid #f24941;
}
.messages__input textarea {
  display: block;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  min-height: 42px;
  max-height: 42px;
  height: 42px;
  font-family: "Roboto", sans-serif !important;
  line-height: 1;
  border: 5px solid #f1f1f1;
  padding: 0;
  margin-bottom: 5px;
  background: #f1f1f1;
  -webkit-border-radius: 5px;
     -moz-border-radius: 5px;
          border-radius: 5px;
}
.messages__button {
  margin-top: 5px;
  display: table;
  padding: 5px 10px;
  color: #fff;
  background: #f24941;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;
  cursor: pointer;
}
.messages__typing {
  display: block;
  margin-bottom: 10px;
}
.messages__error {
  position: absolute;
  bottom: 100%;
  left: 10px;
  right: 10px;
  background: red;
  padding: 5px 10px;
  opacity: 0;
  -webkit-border-radius: 5px;
     -moz-border-radius: 5px;
          border-radius: 5px;
  color: #fff;
  font-size: 14px;
  margin-bottom: -10px;
  z-index: 1;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.messages__error.on {
  opacity: 1;
}
.messages__error.hint {
  background: green;
}

.typing__wrap {
  display: table;
  background-color: rgba(206, 206, 206, 0.5);
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;
  font-size: 0;
  padding: 12px 10px;
}
.typing__item {
  display: inline-block;
  width: 8px;
  height: 8px;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;
  background: #919292;
  margin: 0 2px;
  -webkit-animation: typing 0.6s linear infinite;
     -moz-animation: typing 0.6s linear infinite;
       -o-animation: typing 0.6s linear infinite;
          animation: typing 0.6s linear infinite;
}
.typing__item:nth-child(1) {
  -webkit-animation-delay: 0.1s;
     -moz-animation-delay: 0.1s;
       -o-animation-delay: 0.1s;
          animation-delay: 0.1s;
}
.typing__item:nth-child(2) {
  -webkit-animation-delay: 0.2s;
     -moz-animation-delay: 0.2s;
       -o-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
.typing__item:nth-child(3) {
  -webkit-animation-delay: 0.3s;
     -moz-animation-delay: 0.3s;
       -o-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

@-webkit-keyframes mes {
  0% {
    opacity: 0;
    left: -10px;
  }
}

@-moz-keyframes mes {
  0% {
    opacity: 0;
    left: -10px;
  }
}

@-o-keyframes mes {
  0% {
    opacity: 0;
    left: -10px;
  }
}

@keyframes mes {
  0% {
    opacity: 0;
    left: -10px;
  }
}
@-webkit-keyframes mes_user {
  0% {
    opacity: 0;
    right: -10px;
  }
}
@-moz-keyframes mes_user {
  0% {
    opacity: 0;
    right: -10px;
  }
}
@-o-keyframes mes_user {
  0% {
    opacity: 0;
    right: -10px;
  }
}
@keyframes mes_user {
  0% {
    opacity: 0;
    right: -10px;
  }
}
@-webkit-keyframes typing {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    background-color: #ababab;
  }
  25% {
    -webkit-transform: translate(0, -3px);
            transform: translate(0, -3px);
  }
  50% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    background-color: #ababab;
  }
  75% {
    -webkit-transform: translate(0, 3px);
            transform: translate(0, 3px);
  }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
}
@-moz-keyframes typing {
  0% {
    -moz-transform: translate(0, 0);
         transform: translate(0, 0);
    background-color: #ababab;
  }
  25% {
    -moz-transform: translate(0, -3px);
         transform: translate(0, -3px);
  }
  50% {
    -moz-transform: translate(0, 0);
         transform: translate(0, 0);
    background-color: #ababab;
  }
  75% {
    -moz-transform: translate(0, 3px);
         transform: translate(0, 3px);
  }
  100% {
    -moz-transform: translate(0, 0);
         transform: translate(0, 0);
  }
}
@-o-keyframes typing {
  0% {
    -o-transform: translate(0, 0);
       transform: translate(0, 0);
    background-color: #ababab;
  }
  25% {
    -o-transform: translate(0, -3px);
       transform: translate(0, -3px);
  }
  50% {
    -o-transform: translate(0, 0);
       transform: translate(0, 0);
    background-color: #ababab;
  }
  75% {
    -o-transform: translate(0, 3px);
       transform: translate(0, 3px);
  }
  100% {
    -o-transform: translate(0, 0);
       transform: translate(0, 0);
  }
}
@keyframes typing {
  0% {
    -webkit-transform: translate(0, 0);
       -moz-transform: translate(0, 0);
         -o-transform: translate(0, 0);
            transform: translate(0, 0);
    background-color: #ababab;
  }
  25% {
    -webkit-transform: translate(0, -3px);
       -moz-transform: translate(0, -3px);
         -o-transform: translate(0, -3px);
            transform: translate(0, -3px);
  }
  50% {
    -webkit-transform: translate(0, 0);
       -moz-transform: translate(0, 0);
         -o-transform: translate(0, 0);
            transform: translate(0, 0);
    background-color: #ababab;
  }
  75% {
    -webkit-transform: translate(0, 3px);
       -moz-transform: translate(0, 3px);
         -o-transform: translate(0, 3px);
            transform: translate(0, 3px);
  }
  100% {
    -webkit-transform: translate(0, 0);
       -moz-transform: translate(0, 0);
         -o-transform: translate(0, 0);
            transform: translate(0, 0);
  }
}
@-webkit-keyframes not_read {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@-moz-keyframes not_read {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@-o-keyframes not_read {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes not_read {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.chat-text {
  display: none !important;
}

.chat-feedback:not(.open) .chat-feedback__close, .chat-feedback:not(.open) .consultant__name, .chat-feedback:not(.open) .consultant__position, .chat-feedback:not(.open) .messages {
  display: none;
}

.chat-feedback:not(.open) .chat-feedback__open, .chat-feedback:not(.open) .consultant__status {
  display: block;
}

@media screen and (max-width: 425px) {
  .chat-feedback {
    right: 50%;
    bottom: 50px;
    margin-right: -150px;
  }
}