.chat_support {
  position: fixed;
  right: 0;
  bottom: 30px;
  background-color: #4d91d9;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  cursor: pointer;
  z-index: 10;
  animation: close_animation_online 0.3s 1 ease-out 5s both;
}

.chat_support.offline {
  animation: close_animation_offline 0.3s 1 ease-out 5s both;
}

.chat_support.close_animation {
  animation: close_animation_online 0.3s 1 ease-out 0s both;
}

.chat_support.open_animation {
  animation: open_animation_online 0.3s 1 ease-out 0s both;
}

.chat_support.close_animation.offline {
  animation: close_animation_offline 0.3s 1 ease-out 0s both;
}

.chat_support.open_animation.offline {
  animation: open_animation_offline 0.3s 1 ease-out 0s both;
}

@keyframes close_animation_online {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(140px);
  }
}

@keyframes open_animation_online {
  from {
    transform: translateX(140px);
  }
  to {
    transform: translateX(0px);
  }
}

@keyframes close_animation_offline {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(189px);
  }
}

@keyframes open_animation_offline {
  from {
    transform: translateX(189px);
  }
  to {
    transform: translateX(0px);
  }
}

.chat_support .text_offline {
  display: none;
}

.chat_support.hide_chat_button {
  display: none;
}

.chat_support .chat_icon {
  padding: 10px;
  float: left;
}

.chat_support .icon_chat {
  display: block;
  float: left;
}

.chat_support .unread_count {
  font-size: 12px;
  font-style: normal;
  background-color: red;
  color: white;
  border-radius: 0.75em;
  height: 1.5em;
  width: auto;
  padding: 0 0.5em;
  vertical-align: middle;
  text-align: center;
  display: block;
  margin-left: 2px;
  margin-top: 5px;
  float: right;
  display: none;
}

.chat_support .text {
  color: white;
  float: left;
  background-color: #5f9cdd;
}

.text_online {
  width: 140px;
  padding: 15px 25px 15px 15px;
}

.text_offline {
  padding: 5px 15px;
}

@media only screen and (max-width: 779px) {
  .zopim {
    right: 0px!important;
    /*width: 100%!important;*/
  }

  .chat_support {
    right: 0;
    bottom: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 0;
    z-index: 10;
  }

  .text_online {
    padding: 10px;
    font-size: 12px;
  }

  .chat_support .chat_icon {
    padding: 5px;
  }

  .chat_support .chat_icon img {
    height: 24px;
  }

  .chat_support {
    animation: none;
  }

  .chat_support.offline {
    animation: none;
  }

  .chat_support.close_animation {
    animation: none;
  }

  .chat_support.open_animation {
    animation: none;
  }

  .chat_support.close_animation.offline {
    animation: none;
  }

  .chat_support.open_animation.offline {
    animation: none;
  }
}