 body {  
  font-family: "Nunito Sans", sans-serif; 
}
    
:root {
  --primary_color: #EB3D42;
}

.chat-widget-section {
  position: absolute;
  right: 40px;
  bottom: 50px;
  z-index: 99999 !important;
}
.chat-widget-section .chat-widget-inner {
  width: 400px;
  height: 600px;
  background-color: #fff;
  overflow-y: scroll;
  border-radius: 10px;
  display: none;
  box-shadow: 2px 2px 18px 2px rgb(0 0 0 / 18%);
  position: relative;
}
.chat-widget-section .chat-widget-inner::-webkit-scrollbar {
  display: none;
}
/* chat widget title start */
.chat-widget-section .chat-widget-inner .chat-widget-title {
  display: flex;
  justify-content: space-between;
  background: var(--primary_color);
  z-index: 999;
  align-items: center;
  position: sticky;
  top: 0;
  box-sizing: border-box; 
  padding: 15px 20px;
}
.chat-widget-section .chat-widget-inner .chat-widget-title .chat-widget-title-left {
  display: flex;
  align-items: center; 
}
.chat-widget-section .chat-widget-inner .chat-widget-title .chat-widget-title-left .chat-widget-title-image img {
  margin-right: 10px;
}
.chat-widget-section .chat-widget-inner .chat-widget-title .chat-widget-title-left .chat-widget-title-name h4 {
  color: #ffff;
  font-weight: 700; 
  font-size: 20px;
  margin: 0;
}
 
/* chat widget title end */

/* chat widget body start */
.chat-widget-section .chat-widget-inner .chat-widget-body {
  padding: 15px; 
  flex: 1; 
  overflow-y: auto;
}
.chat-widget-section .chat-widget-inner .chat-widget-body::-webkit-scrollbar {
  display: none;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul {
  margin: 0;
  padding: 0;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li {
  list-style: none;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section {
  display: flex;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section .ai-image {
  background: var(--primary_color);
  height: 20px;
  margin-right: 10px;
  padding: 6px;
  border-radius: 30px;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section .ai-image img {
    width: 20px;
    transform: rotate(255deg);
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section .ai-massage {
  margin-bottom: 20px;
  width: 100%;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section .ai-massage .ai-name {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 15px;
  color: #838383;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section .ai-massage .ai-response span {
  background: var(--primary_color);
  padding: 9px 12px;
  display: inline-block;
  border-radius: 10px; 
  color: #fff;
} 
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .ai_message_section .ai-massage .ai-response span.ai-response-icon {
  font-size: 20px;
  padding: 1px 15px !important; 
}
.chat-widget-section .chat-widget-inner .typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  gap: 5px;
  background: var(--primary_color);
  width: 40px;
  padding: 6px;
  border-radius: 10px;
}
.chat-widget-section .chat-widget-inner .typing-indicator span {
  width: 6px;
  height: 6px; 
  animation: wave 1.2s infinite ease-in-out;
  padding: 0 !important;
  background: #fff !important;
}
.chat-widget-section .chat-widget-inner .typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}
.chat-widget-section .chat-widget-inner .typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-widget-section .chat-widget-inner .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes wave {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .human_message {
  margin-bottom: 20px;
  justify-content: end;
  display: flex;
  width: 88%;
  margin-left: auto;
}
.chat-widget-section .chat-widget-inner .chat-widget-body ul li .human_message span {
  background: #F0F2F5;
  padding: 9px 12px;
  display: inline-block;
  border-radius: 10px;
}
/* chat widget body end */
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-input {
    border-top: 1px solid #ddd;
}
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-input input {
  width: 90%;
  border: none; 
  margin: 0;
  padding: 20px;
  outline: none;
  font-size: 16px;
}
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 530px;
}
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-input input::placeholder {
  color: #cccccc;
}
.chat-widget-section .chat-widget-inner .chat-widget-footer {
  position: sticky;
  bottom: 0; 
}
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-footer-inner {
  position: relative;
}
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-footer-inner .chat-widget-input-icon svg {
    transform: rotate(45deg);
}
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-footer-inner .chat-widget-input-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  background: red;
  width: 30px;
  text-align: center;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  line-height: 30px;
  font-size: 15px; 
  transform: translateY(-50%);
}
.chat-widget-section .chat-widget-inner .chat-widget-footer .chat-widget-footer-inner .chat-widget-input-icon button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px;
  color: #fff;
}

.chat-widget-section .chat-widget-button_section {
  justify-content: end;
  display: flex; 
}
.chat-widget-section .chat-widget-button-inner {
  width: 60px;
  background: var(--primary_color);
  height: 60px;
  text-align: center;
  line-height: 78px;
  border-radius: 50%;
  margin-top: 35px;
  position: relative;
  z-index: 1;
  margin-right: 20px;
  cursor: pointer;
}
.chat-widget-section .chat-widget-button-inner svg {
  font-size: 36px;
  color: #fff;
}
.chat-widget-section .chat-widget-button-inner::after,
.chat-widget-section .chat-widget-button-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background-color: var(--primary_color);
  border-radius: 100%;
  opacity: 0.15;
  z-index: -10;
}
.chat-widget-section .chat-widget-button-inner::before {
  animation: inner-ripple 2s linear infinite;
}
.chat-widget-section .chat-widget-button-inner::after {
  animation: outer-ripple 2s linear infinite;
}
@keyframes inner-ripple {
  0% {
    transform: scale(0.9);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes outer-ripple {
  0% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}