.chat {
  position: fixed;
  bottom: -358px;
  right: 20px;
  width: 370px;
  height: 400px;
  overflow: hidden;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  transition: all 0.55s ease;
}

@media only screen and (max-width: 600px) {
  .chat {
  bottom: -1000px;
  }
}

.chat.open {
  bottom: 0;
}

.chat > .chat-header {
  flex: 0 1 55px;
  position: relative;
  z-index: 2;
  background: #a441ff;
  color: #fff;
  text-transform: uppercase;
  text-align: left;
  display: flex;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  padding: 5px 20px 5px 20px;
}

.chat > .chat-header > .chat-btn {
  position: absolute;
  bottom: 0;
  right: 25px;
  width: 30px;
  height: 34.5px;
  color: #a441ff;
  font-size: 18.5px;
  font-weight: 900;
  text-align: center;
  background: #ffffff;
  padding: 5px 1px 0px 0px;
  border-radius: 25px 25px 0px 0px;
}

.chat > .chat-header > .chat-btn > b > i {
  transform: rotate(0deg);
  transition: all 0.65s ease;
}

.chat.open > .chat-header > .chat-btn > b > i {
  transform: rotate(-180deg);
}

.chat > .chat-messages {
  padding: 15px;
  height: 370px;
  padding-bottom: 60px;
  overflow-y: scroll;
}

.chat > .chat-messages > .chat-msg {
  clear: both;
}

.chat > .chat-messages > .chat-msg > .chat-name {
  color: #a441ff;
  text-align: start;
  font-size: 16.5px;
}

.chat > .chat-messages > .chat-msg > .chat-text {
  background: #d9d9d9;
  color: #333333;
  padding: 8px 15px 8px 15px;
  max-width: 75%;
  float: left;
  font-size: 15.5px;
  word-break: break-all;
  margin-bottom: 14.5px;
  border-radius: 5px 25px 25px 5px;
}

.chat > .chat-messages > .chat-msg.me > .chat-name {
  text-align: end;
}

.chat > .chat-messages > .chat-msg.me > .chat-text {
  float: right;
  color: white;
  background: #5a5eb9;
  border-radius: 25px 5px 5px 25px;
}

.chat > .chat-input {
  flex: 0 1 42.5px;
  width: 100%;
  padding: 5px 25px 5px 25px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.chat > .chat-input > .message-block {
  width: auto;
  height: 80%;
  padding: 10px;
  padding-right: 0px;
  border: 2.5px solid #33333325;
  display: flex;
  align-items: center;
  background-color: #d9d9d9;
  border-radius: 25px 5px 5px 25px;
  margin-right: 10px;
  transition: all 0.55s ease;
}

.chat > .chat-input > .message-block > .message-input {
  background: none;
  border: none;
  outline: none !important;
  resize: none;
  color: #000;
  font-size: 15px;
  height: 25px;
  margin: 0;
  padding-right: 20px;
  width: 265px;
}

.chat > .chat-input > .chat-submit {
  display: block;
  color: #333;
  border: 2.5px solid #33333325;
  cursor: pointer;
  background: #d9d9d9;
  font-size: 15.7px;
  text-transform: uppercase;
  line-height: 1;
  padding: 10px 20px 15px 15px;
  height: 80%;
  border-radius: 5px 25px 25px 5px;
  outline: none !important;
  transition: all 0.55s ease;
}

.chat > .chat-messages::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

.chat > .chat-messages::-webkit-scrollbar {
  width: 5px;
  background-color: #f5f5f5;
}

.chat > .chat-messages::-webkit-scrollbar-thumb {
  background-color: #a441ff;
}
