.baf-chat-btn {
  position: fixed;
  visibility: visible;
  bottom: 5px;
  right: 20px;
  left: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06),0 3px 32px rgba(0,0,0,0.16);
  transition: all 0.4s;
  background-color: #028be5;
  z-index: 999995;
}
.baf-chat-btn:hover {
  background-color: #004c7d;
}
.baf-chat-btn span {
  position: absolute;
  width: 20px;
  height: 20px;
  text-align: center;
  background: #ca3434;
  color: #fff;
  border-radius: 100%;
  font-weight: 500;
  font-size: 11px;
  line-height: 22px;
  top: 0;
  left: -3px;
  z-index: 2;
  animation: sb-fade-animation 0.3s;
}
.baf-chat-btn span:empty, .baf-chat-btn span[data-count="0"] {
  display: none;
}
.baf-chat-btn img {
  max-width: 100%;
  width: 50px;
  height: 50px;
  position: absolute;
  left: 5px;
  top: 2px;
  margin: 0;
  min-height: 0 !important;
  min-width: 0 !important;
  z-index: 0;
  transition: all 0.4s;
}
.baf-chat-btn .baf-chat-close {
  opacity: 0;
  transform: rotate(90deg);
}
.baf-chat-active .baf-chat-btn .baf-chat-icon {
  opacity: 0;
}
.baf-chat-active .baf-chat-btn .baf-chat-close {
  transform: rotate(0deg);
  opacity: 1;
}
.baf-chat-container>.baf-chat-body {
  display: none;
  position: fixed;
  width: 500px;
  max-height: 678px;
  background: #fff;
  right: 18px;
  bottom: 70px;
  border-radius: 6px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06),0 3px 32px rgba(0,0,0,0.16);
  z-index: 999999;
  text-align: left;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s;
  min-height: 650px;
}
.blessingchat-options{
  display: flex;
  margin: 0px 2%;
}
.baf-chat-container.baf-chat-active>.baf-chat-body {
  display: flex;
  animation: baf-chat-open-animation 0.4s;
}
.bafc-scroll-area {
  min-height: 593px;
  background-size: cover;
  margin: 0;
  overflow: hidden;
  overflow-y: scroll;
  scrollbar-color: #ced6db #ced6db;
  scrollbar-width: thin;
}
.bafc-scroll-area .bafc-scroll-area-header{
  padding: 20px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0 !important;
  opacity: 1 !important;
  z-index: 9;
  color: #fff;
  box-shadow: 0 2px 1px rgba(0,0,0,0.15);
  font-size: 14px;
  line-height: 26px;
  font-weight: 500;
  text-align: center;
  background-color: #028be5;
  background-size: cover;
}
.bafc-scroll-area-profile {
  display: flex;
  align-items: center;
  text-align: left;
  transition: all 0.4s;
}
.bafc-scroll-area-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  display: block;
}
.bafc-scroll-area-profile>div {
  height: 40px;
}
.bafc-scroll-area-profile .bafc-scroll-area-profile-name {
  display: block;
  line-height: 22px;
  letter-spacing: 0.5px;
  font-size: 14px;
}
.bafc-scroll-area-profile .bafc-scroll-area-profile-status {
  display: block;
  line-height: 22px;
  position: relative;
  font-weight: 400;
  font-size: 13px;
  padding-left: 15px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}
.bafc-scroll-area-profile .bafc-scroll-area-profile-status:before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  border-radius: 50%;
  margin-top: -4px;
  top: 50%;
  left: 0;
  background: #13ca7e;
}
.bafc-scroll-area-content {
  display: block;
  margin-top: 95px;
}

.bafc-scroll-area-content label{
  display:block;
  margin-top: 10px;
}
.bafc-scroll-area-content input[type="text"], .bafc-scroll-area-content select, .bafc-scroll-area-content textarea {
  display: block;
  width: 100%;
  padding: 10px 10px;
  font-size: 14px;
  border: 1px solid #e7e4e4a6;
  border-radius: 5px;
  font-weight: 500;
}
.bafc-scroll-area-content input[type="text"]:hover,.bafc-scroll-area-content input[type="text"]:focus, .bafc-scroll-area-content select:hover, .bafc-scroll-area-content select:focus, .bafc-scroll-area-content textarea:hover, .bafc-scroll-area-content textarea:focus{
  background-color: #e6f3ffa8;
}
.blessingchat-err{
  display: none;
  text-align: center;
  font-size: 12px;
  color: red;
  margin: 15px 0px;
}
.blessingchat-err a:hover{
  text-decoration: underline;
}
.img_dalle_submit, .img_sd_submit {
  margin-top: 10px;
  display: inline-block;
  cursor: pointer;
  background-color: #1e73be !important;
  color: #fff;
  border: 1px solid #1e73be !important;
  border-radius: 5px;
  padding: 10px 30px;
  opacity: 1;
  font-size: 14px;
}
.img_dalle_submit:hover, .img_sd_submit:hover{
  opacity: 0.8;
}
.img_dalle_submit.processing, .img_sd_submit.processing{
  background-color: grey !important;
  border: 1px solid grey !important;
}
.msger {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
}
.msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}
.msg {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.msg:last-of-type {
  margin: 0;
}
.msg-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  min-width: 50px;
}
.msg-bubble {
  max-width: 450px;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
  color: #000;
}
.msg-info-time {
  font-size: 0.85em;
  color: #000;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #fff;
  border-bottom-right-radius: 0;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  display: flex;
  padding: 10px;
  border-top: var(--border);
  background: #eee;
}
.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}
.msger-input {
  flex: 1;
  background: #ddd;
}
.blessingai-send-btn {
  margin-left: 10px;
  background: #1e73be;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
  opacity: 1;
}
.blessingai-send-btn:hover {
  opacity: 0.8;
}
.msg-text{
  color: #000;
}
.option-btn {
  margin-top: 10px;
  display: block;
  cursor: pointer;
  background-color: #1e73be !important;
  color: #fff;
  border: 1px solid #1e73be !important;
  border-radius: 5px;
  padding: 5px 7px;
  opacity: 1;
  font-size: 12px;
  text-align: center;
}
.option-btn:hover{
  opacity: 0.8;
}
.img_dalle_frm, .img_sd_frm{
  display: block;
}
.bafc-scroll-area-content select.img_dalle_size, .bafc-scroll-area-content select.img_sd_size{
  width: 123px;
}
.img_dalle_prompt, .img_sd_positive_prompt, .img_sd_negative_prompt{
  height: 120px;
}
.ipt_sample{
  font-size: 10px;
  line-height: 14px;
}
.sb-editor {
  background: #fbfbfb;
  position: relative;
  margin: 0;
  padding: 0;
}
.sb-editor .sb-textarea {
  padding: 15px 85px 15px 15px;
  border-top: 1px solid #dee5ec;
}
.sb-editor textarea {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 13px;
  letter-spacing: 0.3px;
  width: 100%;
  height: 25px;
  line-height: 25px;
  min-height: 0 !important;
  padding: 0px !important;
  outline: none !important;
  text-align: left;
  font-weight: 400;
  resize: none !important;
  border: none !important;
  color: #566069 !important;
  background: transparent !important;
  transition: all 0.4s;
  overflow: hidden;
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.msg-text code {
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  border-radius: 3px;
  border: 1px solid #ccc;
  display: block;
  background-color: #000;
  color: #fff;
}
@keyframes baf-chat-open-animation {
  0% {
      opacity: 0;
      bottom: 0px;
  }
  100% {
      opacity: 1;
      bottom: 70px;
  }
}
@media screen and (max-width: 768px) {
  .baf-chat-container>.baf-chat-body {
    width: 98%;
    right: 1%;
    bottom: 70px;
  }
  @keyframes baf-chat-open-animation {
    0% {
        opacity: 0;
        bottom: 0px;
    }
    100% {
        opacity: 1;
        bottom: 70px;
    }
  }
}