@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Noto+Naskh+Arabic:wght@400;500;600&family=Open+Sans:wght@400;700&family=Roboto:wght@400;500&family=Montserrat:wght@400;700&display=swap');

.bako-chatbot-root {
  --dark-color: #3a7725;
  --light-color: #d6f1db;
  --white-color: #fff;
}
.bako-chatbot-root {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #f4f4f4;
}
.bako-chatbot-root p {
  font-size: 13px;
}
.bako-chatbot-root ul {
  font-size: 12px;
}
.bako-chatbot-root li {
  font-size: 12px;
}
.bako-chatbot-root h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1;
}
.bako-chatbot-root button {
  color: inherit;
  background-color: transparent;
  border: 0;
  outline: 0 !important;
  cursor: pointer;
}
.bako-chatbot-root button.chatbox-open {
  position: fixed;
  bottom: 35px;
  right: 108px;
  cursor: pointer;
  z-index: 9999;
  @media screen and (max-width: 992px) {
    bottom: 14px;
    right: 75px;
  }
}
.bako-chatbot-root .chatbox-open img {
    width: 150px;
    height: auto;
  /* border-radius: 100%;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.15)); */
  /* animation: moveArrow 5s infinite; */
  @media screen and (max-width: 992px) {
    width: 120px;
    height: 55px;
  }
}
.bako-chatbot-root button.chatbox-close {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 52px;
  height: 52px;
  color: #fff;
  background-color: #0360a5;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.15);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  margin: 16px calc(2 * 16px + 52px) 16px 16px;
}
.bako-chatbot-root textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  height: calc(16px + 16px / 2);
  padding: 0 calc(16px / 2);
  font-family: inherit;
  font-size: 16px;
  line-height: calc(16px + 16px / 2);
  color: #888;
  background-color: none;
  border: 0;
  outline: 0 !important;
  resize: none;
  overflow: hidden;
}
.bako-chatbot-root textarea::placeholder {
  color: #888;
}
.bako-chatbot-root .chatbox-popup {
  display: flex;
  position: fixed;
  box-shadow: 5px 5px 25px 0 rgba(46, 61, 73, 0.2);
  flex-direction: column;
  display: none;
  bottom: calc(2 * 28px + 85px);
  right: 16px;
  width: calc(100% - 32px);
  max-width: 550px;
  height: auto;
  background-color: #fff;
  border-radius: 16px;
  z-index: 9999;
}
.bako-chatbot-root .chatbox-popup .chatbox-popup__header {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 10px;
  color: var(--dark-color);
  background-color: var(--light-color);
  align-items: center;
  justify-content: space-around;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
}
.bako-chatbot-root .chatbox-popup .chatbox-popup__header aside:first-child img {
  width: 100px;
  height: auto;
}

.bako-chatbot-root .chatbox-popup .chatbox-popup__header .chatbox-popup__avatar {
  margin-top: -32px;
  background-color: #0360a5;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}
.bako-chatbot-root .chatbox-popup .chatbox-popup__main {
  box-sizing: border-box;
  width: 100%;
  padding: calc(2 * 16px) 16px;
  line-height: calc(16px + 16px / 2);
  color: #888;
  height: 350px;
  overflow-y: auto;
}
.bako-chatbot-root .chatbox-popup .chatbox-popup__footer {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 16px;
  border-top: 1px solid #ddd;
  align-items: center;
  justify-content: space-around;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}
.bako-chatbot-root .chatbox-panel {
  display: flex;
  position: absolute;
  box-shadow: 5px 5px 25px 0 rgba(46, 61, 73, 0.2);
  flex-direction: column;
  display: none;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 550px;
  background-color: #fff;
}
.bako-chatbot-root .chatbox-panel .chatbox-panel__header {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 0;
  color: var(--dark-color);
  background-color: var(--light-color);
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
}
.bako-chatbot-root .chatbox-panel .chatbox-panel__main {
  box-sizing: border-box;
  width: 100%;
  padding: calc(2 * 16px) 16px;
  line-height: calc(16px + 16px / 2);
  color: #888;
  flex: 1 1 auto;
  overflow-y: auto;
}
.bako-chatbot-root .chatbox-panel .chatbox-panel__footer {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 16px;
  border-top: 1px solid #ddd;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
}

.bako-chatbot-root .chatDiv {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

/* Styling for the Chat Icon */
.bako-chatbot-root .chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

/* Styling for the Live Chat Widget */
.bako-chatbot-root .live-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column-reverse; /* Reverse order of chat body */
  overflow: hidden;
}

/* Rest of the CSS remains the same */

/* Styling for the Live Chat Widget */
.bako-chatbot-root .live-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column-reverse; /* Reverse order of chat body */
  overflow: hidden;
}

.bako-chatbot-root .live-chat .chat-header {
  background-color: #f0f0f0;
  padding: 8px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bako-chatbot-root .live-chat .chat-body {
  padding: 10px;
}

.bako-chatbot-root .live-chat .messages {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.bako-chatbot-root .live-chat input[type="text"],
.bako-chatbot-root .live-chat button {
  padding: 8px;
  margin-bottom: 5px;
  display: block;
  width: calc(100% - 16px);
}

.bako-chatbot-root .live-chat input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 3px;
}

.bako-chatbot-root .live-chat button {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Hidden by default */
.bako-chatbot-root .live-chat.closed {
  transform: translateX(100%);
  flex-direction: column; /* Restore normal order when closed */
}

.bako-chatbot-root .pageContent {
  display: grid;
  place-items: center;
  height: 100vh;
  width: 100%;
  background-color: #f4f4f4;
}

.bako-chatbot-root .pageContent p {
  font-size: 42px;
  font-weight: bold;
  color: #121212;
}
#requestResponse {
  font-size: 14px;
}

.bako-chatbot-root .chatbox-maximize,
.bako-chatbot-root .chatbox-panel-close {
  margin-right: 15px;
  color: var(--dark-color);
}

.bako-chatbot-root .qSuggest {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.bako-chatbot-root .qSuggest .welcomeMessage {
  height: 100%;
  width: 100%;
  display: grid;
  place-content: center;
  place-items: center;
  text-align: center;
  font-size: 14px;
}

.bako-chatbot-root .qSuggest .welcomeFaq {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.bako-chatbot-root .qSuggest div span {
  border: 1.5px solid var(--dark-color);
  border-radius: 7px;
  padding: 2px 7px;
  background-color: var(--light-color);
  font-size: 12px;
  color: #121212;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.bako-chatbot-root .qSuggest div span:hover {
  background-color: rgb(207, 231, 241);
}
.bako-chatbot-root .fa-microphone-slash {
  display: none;
}
.bako-chatbot-root .iconHolder {
  background-color: var(--light-color);
  color: var(--dark-color);
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.bako-chatbot-root .messageInput {
  color: #121212;
}

.bako-chatbot-root .sendMessageAside textarea {
  display: block;
}

.bako-chatbot-root .loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 15px;
  /* width: 100px; */
  height: 24px;
  margin: 0 auto;
}

@keyframes leap {
  0% {
    transform: translateY(0);
  }

  7% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
    opacity: 0.5;
  }

  75% {
    transform: translateY(5px);
  }

  100% {
    transform: translateY(0);
  }
}

.bako-chatbot-root .dot {
  width: 15px;
  height: 15px;
  border-radius: 100%;
}

.bako-chatbot-root .dot:nth-child(1) {
  background-color: var(--dark-color);
  animation: leap 1s ease-in-out alternate 0.4s infinite;
}

.bako-chatbot-root .dot:nth-child(2) {
  background-color: var(--dark-color);
  animation: leap 1s ease-in-out alternate 0.6s infinite;
}

.bako-chatbot-root .dot:nth-child(3) {
  background-color: var(--dark-color);
  animation: leap 1s ease-in-out alternate 0.8s infinite;
}

.bako-chatbot-root .voiceBarContainer {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: var(--dark-color);
  padding: 4px;
  border-radius: 5px;
}

.bako-chatbot-root .voiceBar {
  background-color: var(--dark-color);
  width: 1.5px;
  height: 15px;
  animation: voiceWave 1s ease-in-out forwards infinite;
}

.bako-chatbot-root .voiceBar:nth-child(1) {
  animation-delay: 0s;
}

.bako-chatbot-root .voiceBar:nth-child(2) {
  animation-delay: 0.2s;
}

.bako-chatbot-root .voiceBar:nth-child(3) {
  animation-delay: 0.4s;
}

.bako-chatbot-root .voiceBar:nth-child(4) {
  animation-delay: 0.6s;
}

.bako-chatbot-root .voiceBar:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes voiceWave {
  0% {
    height: 5px;
  }
  50% {
    height: 15px;
  }
  100% {
    height: 5px;
  }
}

.bako-chatbot-root .customScrollContainerMain::-webkit-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbc7c7 #f1f1f1;
  width: 8px;
  height: 8px;
}

.bako-chatbot-root .customScrollContainerMain::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.bako-chatbot-root .customScrollContainerMain::-webkit-scrollbar-thumb {
  background: #a0aec0;
  border-radius: 80px;
}

.bako-chatbot-root .customScrollContainerMain::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* for dark mode */
.bako-chatbot-root .customScrollContainerMainDark::-webkit-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbc7c7 #f1f1f1;
  width: 8px;
  height: 8px;
}

.bako-chatbot-root .customScrollContainerMainDark::-webkit-scrollbar-track {
  background: #171729;
}

.bako-chatbot-root .customScrollContainerMainDark::-webkit-scrollbar-thumb {
  background: #a0aec0;
  border-radius: 80px;
}

.bako-chatbot-root .customScrollContainerMainDark::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* Scrollbar styles for the Sidebar component */
.bako-chatbot-root .customScrollContainer::-webkit-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbc7c7 #f1f1f1;
  width: 8px;
  height: 8px;
}

.bako-chatbot-root .customScrollContainer::-webkit-scrollbar-track {
  background: #171729;
}

.bako-chatbot-root .customScrollContainer::-webkit-scrollbar-thumb {
  background: #a0aec0;
  border-radius: 80px;
}

.bako-chatbot-root .customScrollContainer::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

.bako-chatbot-root .requestResponse a {
  color: inherit;
  font-weight: bold;
}

.bako-chatbot-root .chatbox-popup__main {
  width: 100%;  /* Ensure the chatbox main container takes full width */
  overflow-y: auto;       /* Enables vertical scrolling */
  scroll-behavior: smooth; /* Smooth scroll */
}

.bako-chatbot-root .server-message-container {
  width: 100%;  /* Make server message containers take full width */
  display: flex;
  justify-content: flex-end;  /* Aligns the content to the right */
  padding: 5px 10px;  /* Optional padding for better spacing */
}

.bako-chatbot-root .server-message {
  display: inline-block;
  background: var(--dark-color);
  color: var(--white-color);
  padding: 7.5px 15px;
  border-radius: 7px 7px 0 7px;
  max-width: 100%;  /* Ensures the message does not overflow */
  word-wrap: break-word;  /* Breaks the words to prevent horizontal scrolling */
}
