.premium-helpdesk{
  display:none;
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  height: 650px;
  width: 600px;
  border-radius: 10px;
  z-index: 99999;
  overflow: hidden;
}

.helpdesk-container{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: #FFF;
}

.helpdesk-header{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.helpdesk-header__title {
  margin: 1.6rem 0;
  text-align: center;
}

.helpdesk-header__btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.helpdesk-header__btn i{
  font-size: 3rem;
  font-weight: 300;
}

.helpdesk-currentTalk{
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 150px);
}

.currentTalk-messenger {
  height: 100%;
  width: 100%;
  background: #FFF;
  overflow: auto;
}

.currentTalk__msg{
  clear: both;
  overflow: hidden;
  margin: 1rem;
}

.msg-content{
  max-width: 70%;
  padding: 1em;
  margin: .5rem 1rem;
}

.msg-content--left{
  float: left;
  clear: both;
  border-radius: 0 25px 25px 25px;
}

.msg-content--right{
  float: right;
  clear: both;
  border-radius: 25px 25px 0  25px;
}

.msg-content button{
  position: relative;
  display: block;
  margin: 1rem;
  padding: 0.7em 2em 0.7em 0.9em;
  border-radius: 5px;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.msg-content button::after{
  position: absolute;
  content: "\f054";
  right: 0.7rem;
  top: 50%;
  transform: translate(-50%, -50%);
}

.msg-date{
  display: block;
  clear: both;
}

.msg-date--right{
  margin-right: 7px;
  text-align: right;
}

.msg-date--left{
  margin-left: 7px;
  text-align: left;
}

.msg-content a {
  text-decoration: underline;
  overflow-wrap: break-word;
}

/* Admin Talk */

.imgAdmin {
  display: block;
  float: left;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  margin-left: 1rem;
}

.msg-name{
  display: inline-block;
  margin-top: 1rem;
  margin-left: 1rem;
}

.adminMessage{
  display: block;
  max-width: 60%;
  margin-left: 5rem;
  padding: 1em;
  border-radius: 0 25px 25px 25px;
  clear: both;
}

.adminMessage button {
  position: relative;
  display: block;
  margin: 1rem;
  padding: 0.7em 2em 0.7em 0.9em;
  border-radius: 5px;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.hisMessage img,
.myMessage img,
.adminMessage img{
  max-width: 100%;
  height: auto;
  padding: 1em;
  border-radius: 15px;
  background: white;
}

/* Footer */
.helpdesk-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  background:#CEB3E5;
}

.helpdesk-footer__textarea{
  width: 480px;
  height: 80px;
  margin: 1rem;
  padding: 0 4rem;
  border-radius: 10px;
  background-color: #FFF;
  border: 1px solid #aaa;
  color: #333;
}

.cta-sendMsg{
  position: absolute;
  top: 3rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50px;
  -webkit-box-sizing: unset;
  -moz-box-sizing: unset;
  box-sizing: unset;
}

.cta-uploadImg {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 35px;
  height: 80px;
  border-right: 1px solid #aaa;
  cursor: pointer;
}

/* helpdesk closed */
.helpdeskclosed{
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  padding: 8em 2em;
  text-align: center;
  z-index: 1;
}

#uploadImage {
  -webkit-box-sizing: unset;
  -moz-box-sizing: unset;
  box-sizing: unset;
}

@media (max-width: 768px) {
  .premium-helpdesk{
    width: 80%;
  }
}

@media (max-width: 690px){
  .premium-helpdesk {
    width: 94%;
    height: 500px;
    right: 1rem;
    bottom: 1rem;
  }
}
