/* Styles for the chat popup and floating button */
/* You can adjust these styles as needed for your design */

.chatbees-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px; /* Adjust width as needed */
  height: 60px; /* Adjust height as needed */
  border-radius: 50%; /* Create a circle */
  /*background-color: #4CAF50; /* Adjust background color as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
  z-index: 9998; /* Make sure float btn is always on top */
}

.chatbees-chaticon {
  width: 60px; /* Adjust icon size as needed */
  height: 60px; /* Adjust icon size as needed */
}

.chatbees-popup {
  display: none; /* not show chat-popup when page loads */
  bottom: 20px; /* Align the popup to the bottom */
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  right: 10px;
  width: 90%;
  max-width: 500px;
  height: 80%;
  max-height: 900px;
  overflow: auto; /* Enable scrolling if content exceeds dimensions */
  border-radius: 10px;
  box-sizing: border-box;
  padding: 0px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  .chatbees-popup {
    bottom: 0;
    border-radius: 10px 10px 0 0;
  }
}

.chatbees-header {
  display: flex;
  /*background-color: #b3d9ff; /* Light blue background color */
  justify-content: space-between;
  align-items: center;
}

.chatbees-left-section {
  flex: 1; /* Take remaining space */
  display: flex;
  align-items: center;
}

.chatbees-logo {
  width: 40px; /* Adjust the width as needed */
  height: 40px; /* Adjust the height as needed */
}

#chatbees-brand-name {
  font-weight: bold;
}

.chatbees-right-section {
  display: flex;
  align-items: center;
}

.chatbees-close {
  cursor: pointer;
  font-size: 25px;
}

.chatbees-chat-area {
  flex: 1;
  padding: 10px;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-top: 1px solid #e0e0e0;
}

.sending .dot {
  opacity: 0;
  animation: blink 1.5s infinite;
}

.sending .dot:nth-child(2) {
  animation-delay: 0.5s;
}

.sending .dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes blink {
  0%,
  20% {
    opacity: 0;
  }
  40% {
    opacity: 0.25;
  }
  60% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
  }
}

.chatbees-user-input-area {
  bottom: 0;
  width: 100%;
  max-width: 100%;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-top: none;
}

.chatbees-user-input-area textarea {
  width: 100%;
  max-width: 100%;
  resize: none;
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  flex-grow: 1;
  margin-right: 10px;
  color: #1a1a1a;
}

.chatbees-user-input-area textarea:focus,
input:focus {
  outline: none;
}

.chatbees-send-icon {
  width: 20px; /* Adjust the width as needed */
  height: 20px; /* Adjust the height as needed */
  margin-right: 5px;
  cursor: pointer;
}

.chatbees-message {
  padding: 5px 10px;
  margin: 5px;
  border: 0.5em solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chatbees-bot {
  background: #f2f2f2;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chatbees-link {
  font-style: italic;
  border-radius: 5px;
  margin-left: -5px;
  padding-left: 5px;
}

.chatbees-link:hover {
  background-color: #e2e2e2;
}

.chatbees-section-label {
  font-weight: bold;
  font-size: 0.9em;
  color: #777;
}

.chatbees-error {
  color: #ff2a00;
}

.chatbees-user {
  background: black;
  color: white;
  align-self: flex-end;
  margin-left: auto; /* Aligns to the right */
  border-bottom-right-radius: 0;
}

textarea:focus,
input:focus {
  outline: none;
}
