.aicb-container {
  position: fixed;
  width: 40px;
  height: 40px;
  bottom: 160px;
  z-index: 9999999;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
  left: 2.5rem;
}

.aicb-container.right {
  right: 2.5rem;
  left: auto;
}

.aicb-container img {
  max-width: 70%;
  height: auto;
  animation: rotate_aicb 1.0s infinite ease-in-out;
}

.aicb-container button {
  display: block;
}

.aicb-container span {
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F36633;
  justify-content: space-around;
}

@keyframes rotate_aicb {
  0%, 100% { transform: rotate(0) scale(1) skew(1deg); }
  10%, 30%, 50% { transform: rotate(-25deg) scale(1) skew(1deg); }
  20%, 40% { transform: rotate(25deg) scale(1) skew(1deg); }
}

.zoomIn_aicb {
  animation: zoomIn 1.0s infinite;
}

@keyframes zoomIn {
  0% { transform: scale(0.5);}
  70% { transform: scale(1); }
  100% { transform: scale(0.7);}
}

.aicb-alo-circle, .aicb-alo-circle-fill {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.5s;
}

.aicb-alo-circle {
  width: 80px;
  height: 80px;
  top: -20px;
  right: -20px;
  opacity: 0.1;
  background-color: #F36633;
  animation: zoomIn 1.0s infinite;
}

.aicb-alo-circle-fill {
  width: 60px;
  height: 60px;
  top: -10px;
  background-color: rgba(243, 102, 51, 0.7);
  opacity: 0.75;
  right: -10px;
}

@keyframes pulse_aicb {
  0%, 100% { transform: scale3d(1, 1, 1); }
  50% { transform: scale3d(1.05, 1.05, 1.05); }
}

.pulse_aicb {
  animation: pulse_aicb 1s both;
}

#chatBtn {
  cursor: pointer;
}

.chatbox {
  display: none; 
  position: fixed; 
  bottom: 80px; 
  width: 392px;
  border: 1px solid #ccc; 
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  z-index: 9999999;
  animation-duration: 0.3s;
  transition-timing-function: ease-in;
}

.chatbox.right {
  right: 15px;
  left: auto;
}

.chatbox:not(.right) {
  left: 15px;
}

.chat-box-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  height: 40px;
  padding: 0 5px; 
  display: flex; 
  justify-content: space-between;
  align-items: center;
}

.chat-content {
  flex: 1;
  overflow-y: hidden; 
}

.messages {
  height: 100%;
  margin-right: 2px;
  overflow-y: auto;
}

.message {
  display: flex;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
}

.message.received {
  flex-direction: row;
}

.message.sent {
  flex-direction: row-reverse;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.avatar img {
  width: 100%;
  height: 100%;
}

.text {
  background-color: #f2f2f2;
  padding: 10px 10px 5px;
  border-radius: 10px;
  max-width: 85%;
  color: black;
  font-size: 14px;  text-align: start;
}

.text h1, .text h2, .text h3, .text h4, .text h5, .text h6 {
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

.text ul {
  margin-left: 32px;
}

.text ol {
  margin-left: 32px;
  list-style-type: none;
}

.text ol li:before {
  content: '-';
  margin: 0 15px 0 -20px;
}

.message.received .time,
.message.sent .time {
  font-size: 10px;
  color: #666;
  display: flex;
}

.message.received .time {
  margin-left: 5px;
  justify-content: right;
}

.message.sent .time {
  margin-right: 5px;
  justify-content: left;
}

.chat-avatar {
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  margin-right: 10px;
}

.chat-input {
  height: 60px;
  padding: 10px; 
  background-color: #f5f5f5;
}

#frmChatbot input {
  flex: 1; 
  padding: 10px; 
  border-radius: 20px;
  font-size: 14px;
  height: 40px;
  border: none;
  outline: none;
  margin-right: 10px;
}

#frmChatbot button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: #F36633;
  color: #fff;
  font-size: 18px;
}

.hide-btn, .back-btn {
  border: none;
  padding: 5px 10px; 
  border-radius: 50%; 
  cursor: pointer;
  font-size: 20px;
}

.hide-btn:hover, .back-btn:hover {
  color: #F36633;
}

.send-button:hover {
  background-color: #171717;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.dots {
  position: absolute;
  transform: translateX(-50%);
  right: 5px;
  bottom: 15px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1.2px;
  border-radius: 50%;
  background: white;
  animation: blink 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.typing {
  position: relative;
  padding: 10px;
  width: 40px;
}

.typing span {
  animation: blink 1.5s infinite;
  animation-fill-mode: both;
  height: 10px;
  width: 10px;
  background: #F36633;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 50%;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
  margin-left: 15px;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
  margin-left: 30px;
}

@keyframes blink {
  0%, 100% { opacity: 0.1; }
  20% { opacity: 1; }
}

@keyframes aicb_bounce_in_bl,
@keyframes aicb_bounce_in_br {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}