@import url(https://ka-p.fontawesome.com/releases/v6.5.1/css/pro.min.css?token=7ca6a895ef);
@import url(https://ka-p.fontawesome.com/releases/v6.5.1/css/pro-v4-shims.min.css?token=7ca6a895ef);
@import url(https://ka-p.fontawesome.com/releases/v6.5.1/css/pro-v5-font-face.min.css?token=7ca6a895ef);
@import url(https://ka-p.fontawesome.com/releases/v6.5.1/css/pro-v4-font-face.min.css?token=7ca6a895ef);

/* chat page  */

.card-body{
  padding: 0px !important;
}
.chat-section {
  position: relative;
  z-index: 1;
  min-height: 77vh;
}

.bot-conversation-card{
  border-radius: 12px !important;
  border-color: transparent !important;
}

.chat-tab-body {
  margin: auto;
  box-shadow: 0px 12px 48px 0px rgba(4, 33, 84, 0.12);
  padding: 24px;
  border-radius: 12px;
  background-color: var(--white);
  position: relative;
  z-index: 2;
  max-width: 100% !important;

}

.chat-section .pub-logo img {
  max-width: 120px !important;
  height: 45px !important;
}

.msger {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
}

.msger p {
  margin: 0;
}

.msger h2 {
  margin: 0;
}

.msger-inputarea input::placeholder {
  color: #252849;
}

.msger-chat {
  overflow-y: auto;
  min-height: 26rem;
  height: calc(40vh - 150px);
  margin-top: 0px !important;
}

.msger-chat::-webkit-scrollbar {
  width: 6px;
}

.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
  border-radius: 3px;
}

.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border: 3px;
}

.msger-chat .msg {
  margin-bottom: 20px !important;
}

.msg-text {
  font-size: 14px;
  font-weight: 400;
  max-width: 440px;
  word-break: keep-all !important;
}

.system-msg[type="thinking"] {
  background: none !important;
}

.system-msg[type="thinking"] .msg-bubble {
  background: none !important;
  color: inherit !important;
}

.system-msg[type="thinking"] .msg-bubble:before {
  background: none !important;
  color: inherit !important;
}

.system-msg[type="thinking"] .msg-img {
  background: none !important;
}

.msg-text {
  font-size: 14px;
  font-weight: 400;
  max-width: 440px;
  word-break: keep-all !important;
}

.time {
  text-align: end;
}

.msger-chat h6 {
  font-size: 10px;
  font-weight: 400;
  color: #252849;
}

.msger-input:focus {
  outline: unset;
}

.msg {
  display: flex;
  align-items: start;
}

.msg:last-of-type {
  margin: 0;
}

.msg-img {
  min-width: 35px;
  height: 35px;
  background: #fff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  border-radius: 50%;
  margin-right: 10px;
}

.msg-bubble {
  min-width: 319px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #c3f4ff;
  color: #000612;
  font-size: 12px;
  position: relative;
  z-index: 1;
  max-width: 44rem !important;
}

.msg-bubble::before {
  content: "";
  background-image: url('/shared/images/try-angle.svg');
  background-repeat: no-repeat;
  background-size: 15px;
  position: absolute;
  z-index: 0;
  top: 0;
  left: -7px;
  width: 15px;
  height: 15px;
}

.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.msg-info-name {
  font-weight: bold;
}

.msg-info-time {
  font-size: 0.85em;
}

.massege {
  display: block;
}

.right-msg {
  flex-direction: row-reverse;
}

.timer {
  text-align: end;
}

.timer h6 {
  color: #252849;
}

.right-msg .msg-bubble {
  background: #042154;
  color: #e6faff;
}

.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.right-msg .msg-bubble::before {
  background-image: url('/shared/images/try-angle-right.svg');
  left: unset;
  right: -7px;
}

.timer {
  text-align: start;
  margin-top: 5px;
}

.chat-module {
  padding: 20px 0;
}

.msger-inputtext {
  display: flex;
  position: relative;
  z-index: 1;
}

.msger-inputtext button {
  background-color: transparent;
  border: unset;
  padding: 0;
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  height: max-content;
  margin: auto;
  right: 13px;
  transition: 0.3s all ease;
}

.msger-inputtext button:hover {
  transform: scale(1.02) translateX(2px);
}

.msger-inputtext button:focus {
  outline: unset;
}

.msger-inputtext button img {
  max-width: 18px;
}

.msger-input {
  width: 100%;
  min-height: 48px;
  max-height: 144px;
  resize: none;
  overflow-y: hidden;
  border-radius: 8px;
  border: 1px solid #8897b1;
  padding: 13px 40px 13px 13px;
  font-size: 16px;
  line-height: 20px;
  color: #000612 !important;
  box-sizing: border-box;
}

.msger-input,
.msger-input::placeholder {
  color: #8897b1;
  font-weight: 400;
  font-size: 16px;
  font-weight: 400;
}

.msger-input {
  color: #000612 !important;
}

.cloud-img {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  object-fit: cover;
}
.user-avatar.s35 {
  width: 35px !important;
  height: 35px !important;
}
.user-avatar.s35 img {
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  line-height: 35px !important;
}
.user-avatar.s50 {
  width: 50px !important;
  height: 50px !important;
}
.user-avatar.s50 img {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  line-height: 50px !important;
}

@media (max-width: 767px) {
  hr {
    margin: 1rem 0;
  }
  #chatModal {
    padding-right: 0 !important;
  }
  .msg-img {
    width: 45px;
    height: 45px;
  }
  .msger-header {
    padding: 15px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
  }
  .msg-bubble {
    padding: 10px;
  }
  .msger-header h2 {
    font-size: 22px;
  }
  .msger-header p {
    font-size: 14px;
  }
  .msger-header button {
    min-width: unset;
    padding: 10px 20px;
  }
  .msger-inputarea {
    padding: 10px 15px 20px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  .msger-chat {
    padding: 25px 15px 10px;
    max-height: 22rem;
    height: calc(100vh - 20.8rem);
    transition: all 0.25s ease;
    overflow-anchor: none;
    -ms-overflow-style: none;
    touch-action: auto;
    -ms-touch-action: auto;
    position: relative;
  }
  .msger-send-btn svg {
    width: 20px;
    height: 20px;
  }
  .chat-module {
    padding: 0;
  }
  .chat-module .container {
    padding: 0;
  }
  .chat-module .msger {
    box-shadow: none;
    flex: 1 0 0%;
  }
  .chat-module .msger-header,
  .chat-module .msger-inputarea {
    border-radius: 0;
  }
  .chat-module .msger-input {
    font-size: 16px;
  }
  .msg-text {
    max-width: 299px;
  }
  .chat-tab-body {
    padding: 9px;
  }
}
