@keyframes close-button-animation {
  from {
    transform: scale(0) rotate(90deg);
  }
  to {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes open-button-animation {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes chat-box-animation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  width: 50px;
  height: 50px;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 50px;
  display: flex;
  align-items: right;
  justify-content: right;
  padding: 6px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.open-button i {
  position: absolute;
  left: 9px;
  top: 10px;
  animation: open-button-animation 300ms cubic-bezier(0.18, 0.66, 0.82, 1.53) forwards;
}

/* The popup chat - hidden by default */
.chat-popup {
  display: none;
  position: fixed;
  bottom: 23px;
  right: 15px;
  z-index: 9;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: chat-box-animation 300ms ease-in forwards;
}

/* Add styles to the form container */
.form-container {
  padding: 10px;
  background-color: white;
  border: 3px solid #f1f1f1;
}

/* Full-width textarea */
.form-container textarea {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
  resize: none;
  min-height: 200px;
}

/* When the textarea gets focus, do something */
.form-container textarea:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/send button */
.form-container .btn {
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  opacity: 0.8;
}
.send {
  background-color: #04aa6d;
}
/* Add a red background color to the cancel button */
.cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  align-self: flex-end;
  margin: -25px 35px 0 0;
}

.cancel i {
  animation: close-button-animation 300ms cubic-bezier(0.18, 0.66, 0.82, 1.53) forwards;
}

/* Add some hover effects to buttons */
.form-container .btn:hover,
.open-button:hover {
  opacity: 1;
}

.chat-widget-box {
  width: 376px;
  min-height: 250px;
  max-height: 704px;
  opacity: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: #0000005c 0 5px 10px;
}

.chat-widget-header {
  position: relative;
  padding: 60px 40px 40px;
  height: 186px;
  flex-shrink: 0;
  border-radius: 4px 4px 0 0;
}

.chat-widget-title {
  color: white;
  font-size: 24px;
  font-weight: 200;
}

.chat-widget-subtitle {
  color: white;
  font-size: 16px;
  font-weight: 200;
}

.chat-widget-avatar {
  width: 60px;
  height: 60px;
  border-radius: 60px;
}

.chat-widget-body {
  padding: 0 16px 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 60px 0 rgba(0, 0, 0, 0.1);
  max-height: 100%;
  flex: 1 0 0%;
}

.lc_legal-text {
  margin: 16px auto 0;
  text-align: center;
  color: rgb(204, 204, 204);
  font-size: 10px;
  max-width: 100%;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.bounce-in-fwd {
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 15px 0, rgba(0, 0, 0, 0.1) 0 1px 2px 0 inset;
  border-radius: 3px;
  height: 350px;
}

.chat-widget-form {
  height: 390px;
  overflow-y: auto;
  margin-bottom: 17px;
  background-color: #fff;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  border-radius: 3px;
  padding: 20px 30px 10px 30px;
  transform: translateY(-35px);
}

.chat-widget-form-group {
  max-width: 390px;
  margin: 0px auto 10px auto;
  font-size: 14px;
}

.chat-widget-input-field {
  outline: none;
  padding: 10px 15px;
  background: #eef7fd;
  border: 1px solid #eef7fd;
  border-radius: 4px;
  color: #607179;
  width: 100%;
}

.chat-widget-btn {
  padding: 10px 35px;
  color: #fff;
  font-size: 14px !important;
  border: none;
  border-radius: 50px;
}

.text-center {
  text-align: center;
}
.thanks-message {
  margin-top: 20px;
  display: none;
  margin-bottom: 17px;
  background-color: #fff;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  border-radius: 3px;
  padding: 30px 30px 10px 30px;
  height: 300px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.error_chat_widget {
  display: none;
  color: crimson;
}
