﻿#click{
  display: none;
}
#chatButton{
  position: fixed;
  right: 30px;
  bottom: 20px;
  height: 40px;
  width: 40px;
  background: -webkit-linear-gradient(left, #a445b2, #fa4299);
  text-align: center;
  line-height: 55px;
  border-radius: 50px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  z-index:1000;
}
#chatButton i{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}
#chatButton i.fas{
  opacity: 0;
  pointer-events: none;
}
#click:checked ~ #chatButton i.fas{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(180deg);
}
#click:checked ~ #chatButton i.fab{
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(180deg);
}
#chatbody{
  position: fixed;
  right: 30px;
  bottom: 0px;
  max-width: 350px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 15px 20px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index:1000;
}
#click:checked ~ #chatbody{
  opacity: 1;
  bottom: 70px;
  pointer-events: auto;
}
#chatbody .head-text{
  line-height: 40px;
  color: #fff;
  border-radius: 15px 15px 0 0;
  padding: 0 20px;
  font-weight: 500;
  font-size: 16px;
  background: -webkit-linear-gradient(left, #a445b2, #fa4299);
}
#chatbody .chat-box{
  padding: 10px 10px 0px 10px;
  width: 100%;
}
.chat-box .desc-text{
  color: #515365;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  font-weight: 500;
}
.chat-box #cht_input_field{
  padding: 10px 15px;
  margin: 20px 0;
  border-radius: 25px;
  border: 1px solid lightgrey;
}
.chat-box #cht_input_field .field{
  height: 40px;
  width: 100%;
  margin-top: 10px;
}
.chat-box #cht_input_field .field:last-child{
  margin-bottom: 15px;
}
#cht_input_field .field input,
#cht_input_field .field button,
#cht_input_field .textarea textarea{
  width: 100%;
  height: 100%;
  padding-left: 20px;
  border: 1px solid lightgrey;
  outline: none;
  border-radius: 25px;
  font-size: 12px;
  transition: all 0.3s ease;
  padding-right: 20px;
}
#cht_input_field .field input:focus,
#cht_input_field .textarea textarea:focus{
  border-color: #fc83bb;
}
#cht_input_field .field input::placeholder,
#cht_input_field .textarea textarea::placeholder{
  color: silver;
  transition: all 0.3s ease;
}
#cht_input_field .field input:focus::placeholder,
#cht_input_field .textarea textarea:focus::placeholder{
  color: lightgrey;
}
.chat-box #cht_input_field .textarea{
  height: 70px;
  width: 100%;
}
.chat-box #cht_input_field .textarea textarea{
  height: 100%;
  border-radius: 50px;
  resize: none;
  padding: 15px 20px;
  font-size: 12px;
}
.chat-box #cht_input_field .field button{
  border: none;
  outline: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  background: -webkit-linear-gradient(left, #a445b2, #fa4299);
  transition: all 0.3s ease;
}
.chat-box #cht_input_field .field button:active{
  transform: scale(0.97);
}
