/* ===============================
   SCROLL AREA
================================ */
.chat-scrollarea {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===============================
   HEADER
================================ */
.chat-header {
  color: #fff;
  padding: 13px 20px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
}

.chat-header .icon {
  margin: 0 !important;
  width: 16px;
  height: 16px;
}
.chat-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 96%;
}

.right-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.right-icons a {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .3s;
}

.right-icons a:hover {
  opacity: 1;
}

.right-icons img {
  height: 24px;
}

/* ===============================
   CHAT AREA
================================ */
.chat-messages-area {
  height: 100%;
}

.chat-messages-area iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


@keyframes chat-popup-open-animation {
  from {
    opacity: 0;
    bottom: -55px;
  }
  to {
    opacity: 1;
    bottom: 0;
  }
}


/* ===============================
    Popup
================================ */

#help-chat {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 999999;
  direction: ltr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* transition: opacity 0.4s ease, visibility 0.4s ease; */
}

#help-chat.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#help-chat.is-open .chat-popup {
  display: flex;
  animation: chat-popup-open-animation 0.4s;
  max-height: calc(100vh - 110px);
  height: 420px
}

#help-chat .chat-popup {
  width: 85vw;
  max-width: 300px;
  background: #fff;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0,0,0,.06), 0 3px 32px rgba(0,0,0,.16);
  z-index: 99995;
  text-align: left;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s;
}

#help-chat .chat-header {
  background-color: black;
}