/* Importing Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');
.custom-chatbot{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.custom-chatbot #chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  border: none;
  height: 60px;
  width: 60px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ff0500;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 999999;
}
body.show-chatbot .custom-chatbot #chatbot-toggler {
  transform: rotate(90deg);
}
.custom-chatbot #chatbot-toggler span {
  color: #fff;
  position: absolute;
  font-size: 30px;
}
.custom-chatbot #chatbot-toggler span:last-child,
body.show-chatbot .custom-chatbot  #chatbot-toggler span:first-child {
  opacity: 0;
}
body.show-chatbot .custom-chatbot  #chatbot-toggler span:last-child {
  opacity: 1;
}
.custom-chatbot .chatbot-popup {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.2);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  z-index:999999;
}
body.show-chatbot .custom-chatbot  .chatbot-popup {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.custom-chatbot .chat-header {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  background: #ff0500;
  justify-content: space-between;
}
.custom-chatbot .chat-header .header-info {
  display: flex;
  gap: 10px;
  align-items: center;
}
.custom-chatbot .header-info .chatbot-logo {
  width: 35px;
  height: 35px;
  padding: 6px;
  fill: #ff0500;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
}
.custom-chatbot .header-info .logo-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.31rem;
  letter-spacing: 0.02rem;
}
.custom-chatbot .chat-header #close-chatbot {
  border: none;
  color: #fff;
  height: 40px;
  width: 40px;
  font-size: 1.9rem;
  margin-right: -10px;
  padding-top: 2px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  transition: 0.2s ease;
}
.custom-chatbot .chat-header #close-chatbot:hover {
  background: #3d39ac;
}
.custom-chatbot .chat-body {
  padding: 25px 22px;
  gap: 20px;
  display: flex;
  height: 370px;
  overflow-y: auto;
  margin-bottom: 82px;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #ccccf5 transparent;
}
.custom-chatbot .chat-body,
.custom-chatbot .chat-form .message-input:hover {
  scrollbar-color: #ccccf5 transparent;
}
.custom-chatbot .chat-body .message {
  display: flex;
  gap: 11px;
  align-items: center;
}
.custom-chatbot .chat-body .message .bot-avatar {
  width: 35px;
  height: 35px;
  padding: 6px;
  fill: #fff;
  flex-shrink: 0;
  margin-bottom: 20px;
  align-self: flex-end;
  border-radius: 50%;
  background: #ff0500;
}
.custom-chatbot .chat-body .message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.95rem;
}
.custom-chatbot .chat-body .bot-message.thinking .message-text {
  padding: 2px 16px;
}
.custom-chatbot .chat-body .bot-message .message-text {
  background: #F2F2FF;
  border-radius: 13px 13px 13px 3px;
}
.custom-chatbot .chat-body .user-message {
  flex-direction: column;
  align-items: flex-end;
}
.custom-chatbot .chat-body .user-message .message-text {
  color: #fff;
  background: #ff0500;
  border-radius: 13px 13px 3px 13px;
}
.custom-chatbot .chat-body .user-message .attachment {
  width: 50%;
  margin-top: -7px;
  border-radius: 13px 3px 13px 13px;
}
.custom-chatbot .chat-body .bot-message .thinking-indicator {
  display: flex;
  gap: 4px;
  padding-block: 15px;
}
.custom-chatbot .chat-body .bot-message .thinking-indicator .dot {
  height: 7px;
  width: 7px;
  opacity: 0.7;
  border-radius: 50%;
  background: #6F6BC2;
  animation: dotPulse 1.8s ease-in-out infinite;
}
.custom-chatbot .chat-body .bot-message .thinking-indicator .dot:nth-child(1) {
  animation-delay: 0.2s;
}
.custom-chatbot .chat-body .bot-message .thinking-indicator .dot:nth-child(2) {
  animation-delay: 0.3s;
}
.custom-chatbot .chat-body .bot-message .thinking-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dotPulse {
  0%,
  44% {
    transform: translateY(0);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }
  44% {
    opacity: 0.2;
  }
}
.custom-chatbot .chat-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 15px 22px 20px;
}
.custom-chatbot .chat-footer .chat-form {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border-radius: 32px;
  outline: 1px solid #CCCCE5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
  transition: 0s ease, border-radius 0s;
}
.custom-chatbot .chat-form:focus-within {
  outline: 2px solid #ff0500;
}
.custom-chatbot .chat-form .message-input {
  width: 100%;
  height: 47px;
  outline: none;
  resize: none;
  border: none;
  max-height: 180px;
  scrollbar-width: thin;
  border-radius: inherit;
  font-size: 0.95rem;
  padding: 14px 0 12px 18px;
  scrollbar-color: transparent transparent;
}
.custom-chatbot .chat-form .chat-controls {
  gap: 3px;
  height: 47px;
  display: flex;
  padding-right: 6px;
  align-items: center;
  align-self: flex-end;
}
.custom-chatbot .chat-form .chat-controls button {
  height: 35px;
  width: 35px;
  border: none;
  cursor: pointer;
  color: #706DB0;
  border-radius: 50%;
  font-size: 1.15rem;
  background: none;
  transition: 0.2s ease;
}
.custom-chatbot .chat-form .chat-controls button:hover,
body.show-emoji-picker .custom-chatbot  .chat-controls #emoji-picker {
  color: #3d39ac;
  background: #f1f1ff;
}
.custom-chatbot .chat-form .chat-controls #send-message {
  color: #fff;
  display: none;
  background: #ff0500;
}
.custom-chatbot .chat-form .chat-controls #send-message:hover {
  background: #3d39ac;
}
.custom-chatbot .chat-form .message-input:valid~.chat-controls #send-message {
  display: block;
}
.custom-chatbot .chat-form .file-upload-wrapper {
  position: relative;
  height: 35px;
  width: 35px;
}
.custom-chatbot .chat-form .file-upload-wrapper :where(button, img) {
  position: absolute;
}
.custom-chatbot .chat-form .file-upload-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.custom-chatbot .chat-form .file-upload-wrapper #file-cancel {
  color: #ff0000;
  background: #fff;
}
.custom-chatbot .chat-form .file-upload-wrapper :where(img, #file-cancel),
.custom-chatbot .chat-form .file-upload-wrapper.file-uploaded #file-upload {
  display: none;
}
.custom-chatbot .chat-form .file-upload-wrapper.file-uploaded img,
.custom-chatbot .chat-form .file-upload-wrapper.file-uploaded:hover #file-cancel {
  display: block;
}
em-emoji-picker {
  position: absolute;
  left: 50%;
  top: -337px;
  width: 100%;
  max-width: 350px;
  visibility: hidden;
  max-height: 330px;
  transform: translateX(-50%);
}
body.show-emoji-picker em-emoji-picker {
  visibility: visible;
}

.custom-chatbot .chat-form .chat-controls #file-input{display:none}

.custom-chatbot .chat-body a{color:#ff0500;font-weight: 500;}
.custom-chatbot .date-heading{text-align: center;font-weight: 300;font-size: 13px;color: #333333d6;}
.custom-chatbot .message  .message-time{font-size: 11px;color: #33333391;}
.custom-chatbot .message  .message-time{margin-top: -7px;}
.custom-chatbot .message .bot-message-text .message-time{margin-top: 5px;}



.custom-chatbot #chatbot_user_form{margin-left: 45px;margin-top: 25px;background: #F2F2FF;width: 75%;padding: 20px 0px;border-radius: 13px 13px 13px 3px;}
.custom-chatbot #chatbot_user_form input[type="text"]{box-sizing: border-box;border: 1px solid #ccc;border-radius: 10px;width: 100%;height: 45px;padding: 1rem;font-size: 16px;transition: border-color 0.3s;}
.custom-chatbot #chatbot_user_form label{font-weight: normal;font-size: 14px;}
.custom-chatbot #chatbot_user_form .required{color:red}
.custom-chatbot #chatbot_user_form .submit_btn_box{text-align: center;margin-top: 15px;background: #ff0500;border-radius: 10px;padding: 10px;color: #fff;font-size: 18px !important;padding: 0px !important;}
.custom-chatbot #chatbot_user_form .submit_btn_box a{color: #fff;display: block;width: 100%;padding: 10px;}
.custom-chatbot #chatbot_user_form .chatbot_username_field.error{border: 2px solid #ff0500;}

.custom-chatbot .message-text p{margin-bottom:5px;font-size: 15px;}

.custom-chatbot .chat-body .bot-message .message-text,.custom-chatbot .chat-body .message .message-text,.custom-chatbot .chat-form .message-input{font-size: 15px !important}
.custom-chatbot .header-info .logo-text{font-size:20px;letter-spacing: 0px;margin-top: 10px;}
.new_layout_v1 .custom-chatbot .header-info .logo-text{margin-top: 0px;}
.custom-chatbot .chat-body .bot-message .thinking-indicator .dot{width: 14px !important;}

.custom-chatbot #chatbot-toggler .fa-message{font-size: 25px;padding-bottom: 5px;}


/******** new css **********/
.default_layout.custom-chatbot .user_information_box .message.bot-message .message-text{width: 75% !important;max-width: 75% !important;max-width: 74% !important;box-sizing: border-box;font-family: "Inter", sans-serif;}
.default_layout.custom-chatbot .message.bot-message .message-text{width: 90% !important;max-width: 90% !important;max-width: 89% !important;box-sizing: border-box;font-family: "Inter", sans-serif;}
.default_layout.custom-chatbot #chatbot_user_form{margin-left: 45px;}
.default_layout.custom-chatbot #chatbot_user_form .col-sm-12,.default_layout.custom-chatbot .chat-footer,.default_layout.custom-chatbot .chat-footer textarea{box-sizing: border-box;font-family: "Inter", sans-serif;}

.new_layout_v1.custom-chatbot .user_information_box .message.bot-message .message-text{width: 75% !important;max-width: 75% !important;max-width: 74% !important;box-sizing: border-box;font-family: "Inter", sans-serif;}
.new_layout_v1.custom-chatbot .message.bot-message .message-text{width: 90% !important;max-width: 90% !important;max-width: 89% !important;box-sizing: border-box;font-family: "Inter", sans-serif;}
.new_layout_v1.custom-chatbot #chatbot_user_form{margin-left: 58px;}
.new_layout_v1.custom-chatbot #chatbot_user_form .col-sm-12,.new_layout_v1.custom-chatbot .chat-footer,.new_layout_v1.custom-chatbot .chat-footer textarea{box-sizing: border-box;font-family: "Inter", sans-serif;}
.custom-chatbot .chat-body .bot-message .thinking-indicator .dot{    width: 10px !important;height: 10px !important;}

.bot-message {/*background-color: #f1f4fc;white-space: pre-wrap;padding: 14px 18px;*/ font-size: 15px;line-height: 1.6;font-family: 'Segoe UI', sans-serif;color: #222; border-radius: 16px;margin-bottom: 10px;}
 
.bot-message p {margin-bottom: 10px !important;}
.bot-message strong {font-weight: 600 !important;color: #000 !important;}
.bot-message a {color: #e53935 !important;text-decoration: underline !important;}
.custom-chatbot .chat-body .bot-message.thinking .message-text{width:100% !important;max-width: 100% !important;}
.custom-chatbot .chat-body .bot-message.thinking .message-text .thinking-indicator{padding-block: 10px !important;/*padding: 0 !important;*/} 
.custom-chatbot .chat-body .bot-message.thinking .message-text{padding: 7px 16px;font-size: 13px !important;color: #333333bd;}
.custom-chatbot .chat-body .bot-message.thinking .message-text .thinking-indicator {
  display: flex;
  gap: 0px !important;
}

.custom-chatbot .chat-body .bot-message.thinking .message-text .thinking-indicator .char {
  display: inline-block;
  animation: charPulse 1.8s ease-in-out infinite;
}

.thinking-indicator .char:nth-child(1)  { animation-delay: 0.1s; }
.thinking-indicator .char:nth-child(2)  { animation-delay: 0.2s; }
.thinking-indicator .char:nth-child(3)  { animation-delay: 0.3s; }
.thinking-indicator .char:nth-child(4)  { animation-delay: 0.4s; }
.thinking-indicator .char:nth-child(5)  { animation-delay: 0.5s; }
.thinking-indicator .char:nth-child(6)  { animation-delay: 0.6s; }
.thinking-indicator .char:nth-child(7)  { animation-delay: 0.7s; }
.thinking-indicator .char:nth-child(8)  { animation-delay: 0.8s; }
.thinking-indicator .char:nth-child(9)  { animation-delay: 0.9s; }
.thinking-indicator .char:nth-child(10) { animation-delay: 1.0s; }
.thinking-indicator .char:nth-child(11) { animation-delay: 1.1s; }
.thinking-indicator .char:nth-child(12) { animation-delay: 1.2s; }
.thinking-indicator .char:nth-child(13) { animation-delay: 1.3s; }
.thinking-indicator .char:nth-child(14) { animation-delay: 1.4s; }
.thinking-indicator .char:nth-child(15) { animation-delay: 1.5s; }
.thinking-indicator .char:nth-child(16) { animation-delay: 1.6s; }
.thinking-indicator .char:nth-child(17) { animation-delay: 1.7s; }
.thinking-indicator .char:nth-child(18) { animation-delay: 1.8s; }
.thinking-indicator .char:nth-child(19) { animation-delay: 1.9s; }
.thinking-indicator .char:nth-child(20) { animation-delay: 2.0s; }

@keyframes charPulse {
  0%, 44% {
    transform: translateY(0);
    opacity: 0.8;
  }
  20% {
    transform: translateY(-4px);
    opacity: 0.6;
  }
  30% {
    opacity: 0.4;
  }
}


/* Responsive media query for mobile screens */
@media (max-width: 520px) {
  .custom-chatbot #chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
 .custom-chatbot  .chatbot-popup {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
 .custom-chatbot  .chatbot-popup .chat-header {
    padding: 12px 15px;
  }
  .custom-chatbot .chat-body {
    height: calc(90% - 55px);
    padding: 25px 15px;
  }
 .custom-chatbot  .chat-footer {
    padding: 10px 15px 15px;
  }
  .custom-chatbot .chat-form .file-upload-wrapper.file-uploaded #file-cancel {
    opacity: 0;
  }
}