* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  position: absolute;
  width: 350px;
  bottom: 0;
  right: calc((100% - 350px)/2);
  background: #fff;
}
body {
  background: #d8d8d8;
  font: 13px Helvetica, Arial;
}
form {
  background: #f2f2f2;
  padding: 3px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
form input, form textarea {
  border: 0;
  padding: 10px;
  width: 83%;
  margin-right: .5%;
  font-size: 13px;
}
form textarea {
  resize: none;
  height: auto;
  min-height: 36px;
  vertical-align: middle;
}
form button {
  width: 15%;
  background-color: transparent;
  border: none;
  padding: 10px 5px;
  color: #999;
  font-size: 12px;
  cursor: pointer;
}
form button:hover {
  color: #333;
}
.yvebot-conversation {
  height: calc(100vh - 40px);
  list-style-type: none;
  margin: 0;
  padding: 8px;
  margin-bottom: 40px;
  overflow: auto;
}
.yvebot-thread {
  margin: 3px;
}
.yvebot-sender {
  font-weight: bold;
}
.yvebot-bubble,
.yvebot-typing {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
}
.yvebot-thread-bot .yvebot-bubble,
.yvebot-thread-bot .yvebot-typing {
  background-color: #eee;
}
.yvebot-thread-user .yvebot-bubble {
  background-color: #8ed3ff;
}
.yvebot-thread-user {
  text-align: right;
}
.yvebot-message-bubbles {
  text-align: right;
}
.yvebot-message-bubbleBtn {
  padding: 5px 12px;
  border: 1px solid rgba(142, 211, 255, 0.3);
  background: rgba(142, 211, 255, 0.05);
  border-radius: 3px;
  margin-left: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 3px;
  outline: none;
}
.yvebot-message-bubbleBtn:hover {
  background: rgba(142, 211, 255, 0.15);
}
.yvebot-message-bubbleBtn.selected {
  background: rgb(52, 100, 131);
  color: white;
}
.yvebot-message-bubbleBtn.selected:hover {
  background: rgb(54, 106, 139);
}
.yvebot-message-bubbleDone {
  outline: none;
  float: right;
  margin-top: 5px;
  background-color: transparent;
  border: 0;
  color: #168eda;
  font-size: 13px;
  cursor: pointer;
}
.yvebot-message-bubbleDone:hover {
  text-decoration: underline;
}
.yvebot-thread-typing {
  display: none;
}
.yvebot-thread-typing.is-typing {
  display: block;
}
.yvebot-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  margin-right: 4px;
  animation: wave 1.3s linear infinite;
}
.yvebot-typing-dot:nth-child(2) {
  animation-delay: -1.1s;
}
.yvebot-typing-dot:nth-child(3) {
  animation-delay: -0.9s;
}
#output {
  padding: 16px;
  color: #777;
  position: fixed;
  width: 250px;
  right: 0;
  top: 0;
  background: #d9d9d9;
  border-left: 1px solid #ccc;
  height: calc(100vh);
  white-space: pre;
}

@keyframes wave {
  0%, 60%, 100% {
      transform: initial;
  }
  30% {
      transform: translateY(-8px);
  }
}
