.chatbox {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
    -webkit-transition: all 600ms cubic-bezier(0.19, 1, 0.22, 1);
    transition: all 600ms cubic-bezier(0.19, 1, 0.22, 1);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    z-index: 1000;
  }
  
  .chatbox--tray {
    bottom: -250px;
  }
  
  .chatbox--closed {
    bottom: -300px;
  }
  
  .chatbox .form-control:focus {
    border-color: #1f2836;
  }
  
  .chatbox__body,
  .chatbox__title {
    border-bottom: none;
  }
  
  .chatbox__title {
    color: #fdc42e;
    min-height: 50px;
    padding-right: 10px;
    background-color: #1f2836;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
  }
  
  .chatbox__title h5 {
    height: 50px;
    margin: 0 0 0 15px;
    line-height: 50px;
    position: relative;
    padding-left: 20px;
    -webkit-flex-grow: 1;
    flex-grow: 1;
  }
  
  .chatbox__title h5 a {
    color: #fdc42e;
    max-width: 195px;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .chatbox__title h5:before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 6px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  
  .chatbox__title__close,
  .chatbox__title__tray {
    width: 24px;
    height: 24px;
    outline: 0;
    border: 0;
    background-color: transparent;
    opacity: 0.5;
    cursor: pointer;
    -webkit-transition: opacity 200ms;
    transition: opacity 200ms;
  }
  
  .chatbox__title__close:hover,
  .chatbox__title__tray:hover {
    opacity: 1;
  }
  
  .chatbox__title__tray span {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-bottom: 2px solid #fff;
  }
  
  .chatbox__title__close svg {
    vertical-align: middle;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.2px;
  }
  
  .chatbox__body,
  .chatbox__credentials {
    padding: 15px;
    border-top: 0;
    background-color: #fff;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    -webkit-flex-grow: 1;
    flex-grow: 1;
  }
  
  .chatbox__credentials {
    display: none;
  }
  
  .chatbox__credentials .form-control {
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  
  .chatbox__body {
    overflow-y: auto;
  }
  
  .chatbox__body__message {
    position: relative;
  }
  
  .chatbox__body__message p {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    -webkit-box-shadow: 1px 1px rgba(100, 100, 100, 0.1);
    box-shadow: 1px 1px rgba(100, 100, 100, 0.1);
  }
  
  .chatbox .chatbox__body .operatorText:before {
    border-right: 15px solid #7caa2d;
    left: -15px;
  }
  
  .operatorText {
    background-color: #7caa2d;
    float: left;
    border-top-left-radius: 0;
    word-wrap: break-word;
  }
  
  .operatorText,
  .suggestions,
  .userText {
    clear: both;
    color: #fff;
    padding: 10px;
    border-radius: 3px;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.16), 0 0 10px 0 rgba(0, 0, 0, 0.12);
    position: relative;
  }
  
  .userText {
    border-top-right-radius: 0;
    word-wrap: break-word;
    background-color: #9c27b0;
    float: right;
  }
  
  .chatbox .chatbox__body .operatorText:before,
  .chatbox .chatbox__body .suggestions:before,
  .chatbox .chatbox__body .userText:before {
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    border-top: 0 solid transparent;
    border-bottom: 15px solid transparent;
    margin-top: -10px;
  }
  
  .chatbox .chatbox__body .userText:before {
    border-left: 15px solid #9c27b0;
    right: -15px;
  }
  
  .chatbox .chatbox__body .suggestions:before {
    border-right: 15px solid #7caa2d;
    left: -15px;
  }
  
  .suggestions {
    background-color: #7caa2d;
    float: left;
    border-top-left-radius: 0;
  }
  
  .sugg-options {
    display: block;
    background-color: #9c27b0;
    color: #fff;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
  }
  
  .chatbox__message {
    padding: 15px;
    min-height: 50px;
    outline: 0;
    resize: none;
    font-size: 16px;
    border: 1px solid #ddd;
    border-bottom: none;
    background-color: #fefefe;
  }
  
  .chatbox--empty {
    height: 300px;
  }
  
  .chatbox.chatbox--tray {
    bottom: -450px;
  }
  
  .chatbox.chatbox--closed {
    bottom: -450px;
    right: -250px;
  }
  
  .chatbox--empty.chatbox--tray {
    bottom: -250px;
  }
  
  .chatbox--empty.chatbox--closed {
    bottom: -250px;
    right: -250px;
  }
  
  .chatbox--empty .chatbox__body,
  .chatbox--empty .chatbox__message {
    display: none;
  }
  
  .chatbox--empty .chatbox__credentials {
    display: block;
  }