.core-chat-launcher{
  position:fixed;
  right:25px;
  bottom:25px;
  width:70px;
  height:70px;
  border-radius:50%;
  background:linear-gradient(135deg,#2F80ED,#56CCF2);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 20px 45px rgba(47,128,237,.38);
  z-index:999999;
  color:#fff;
  font-size:30px;
  transition:.3s;
  pointer-events:auto;
}

/* Notification badge */
.core-chat-launcher::after{
  content:"1";
  position:absolute;
  top:-5px;
  right:-5px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#FF3B30;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  border:2px solid #ffffff;
  box-shadow:0 8px 22px rgba(255,59,48,.45);
  z-index:1000000;
  animation:coreChatBadgePulse 1.4s infinite;
}

@keyframes coreChatBadgePulse{
  0%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(255,59,48,.55);
  }

  70%{
    transform:scale(1.08);
    box-shadow:0 0 0 10px rgba(255,59,48,0);
  }

  100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(255,59,48,0);
  }
}

/* Hide notification after opening chat */
body.core-chat-opened .core-chat-launcher::after,
html.core-chat-opened .core-chat-launcher::after{
  display:none !important;
}

.core-chat-launcher:hover{
  transform:scale(1.08);
}

.core-chat-window{
  position:fixed;
  right:25px;
  bottom:110px;
  width:390px;
  height:650px;
  background:#fff;
  border-radius:22px;
  display:none;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.22);
  z-index:999999;
  border:1px solid #E6EDF7;
  pointer-events:auto;
}

.core-chat-window.active{
  display:flex;
}

.core-chat-header{
  min-height:78px;
  background:linear-gradient(135deg,#2F80ED,#56CCF2);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
}

.core-chat-header strong{
  display:block;
  font-size:18px;
  font-weight:800;
}

.core-chat-header span{
  display:block;
  font-size:13px;
  opacity:.95;
  margin-top:3px;
}

#coreChatClose{
  width:36px;
  height:36px;
  background:rgba(255,255,255,.18);
  border:none;
  border-radius:50%;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}

.core-chat-messages{
  flex:1;
  overflow:auto;
  padding:20px;
  background:#F7FAFD;
  -webkit-overflow-scrolling:touch;
}

.core-msg{
  padding:14px 18px;
  border-radius:16px;
  margin-bottom:15px;
  max-width:85%;
  line-height:1.6;
  font-size:15px;
}

.core-msg.bot{
  background:#fff;
  color:#111827;
  border:1px solid #E6EDF7;
  border-bottom-left-radius:6px;
}

.core-msg.user{
  margin-left:auto;
  background:linear-gradient(135deg,#2F80ED,#56CCF2);
  color:#fff;
  border-bottom-right-radius:6px;
}

.core-chat-options{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:20px;
}

.core-chat-options button{
  width:100%;
  padding:14px 18px;
  border-radius:12px;
  border:1px solid #DDE6F2;
  background:#FFFFFF;
  color:#111827 !important;
  font-size:15px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition:.25s;
}

.core-chat-options button:hover{
  background:#EDF5FF;
  border-color:#2F80ED;
  color:#2F80ED !important;
  transform:translateX(3px);
}

.core-chat-input{
  display:flex;
  padding:16px;
  border-top:1px solid #E6EDF7;
  background:#fff;
  gap:10px;
}

.core-chat-input input{
  flex:1;
  height:46px;
  border-radius:12px;
  border:1px solid #DCE5F2;
  padding:0 15px;
  font-size:15px;
  outline:none;
}

.core-chat-input input:focus{
  border-color:#2F80ED;
  box-shadow:0 0 0 3px rgba(47,128,237,.12);
}

.core-chat-input button{
  width:90px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#2F80ED,#56CCF2);
  color:#fff;
  cursor:pointer;
  font-weight:800;
}

/* Mobile */
@media(max-width:768px){
  .core-chat-window{
    width:calc(100% - 36px);
    height:calc(100vh - 125px);
    max-height:620px;
    right:18px;
    bottom:90px;
    border-radius:22px;
  }

  .core-chat-launcher{
    width:62px;
    height:62px;
    right:18px;
    bottom:18px;
  }

  .core-chat-launcher::after{
    width:22px;
    height:22px;
    top:-4px;
    right:-4px;
    font-size:12px;
  }

  .core-chat-header{
    min-height:70px;
    padding:16px 18px;
  }

  .core-chat-messages{
    padding:18px;
  }

  .core-chat-input{
    padding:14px;
  }
}