/* Chatbot button */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chatbot icon inside button */
.chat-icon {
  width: 50px; /* Adjust the size of the icon */
  height: 50px;
}

/* Chatbot iframe popup */
.chatbot-popup {
  position: fixed;
  bottom: 10px; /* Adjusted to give space from button */
  right: 20px;
  z-index: 999;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 350px; /* Default width for larger screens */
}

/* Close button inside the popup */
.close-chat {
  position: absolute;
  top: 22px;
  right: 40px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #000000;
  font-weight: bold;
}

iframe {
  display: block;
  border: none;
  width: 100%; /* Make iframe responsive */
  height: 600px; /* Set height */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  /* Adjust button size */
  .chatbot-toggle {
    bottom: 15px;
    right: 15px;
    padding: 8px;
  }

  /* Adjust popup width and position for mobile */
  .chatbot-popup {
    top: 100px;
    bottom: 10px;
    width: 90%; /* Full width with some margin on small screens */
    right: 5px;
    z-index: 999;
  }
}

/* For very small screens (e.g., mobile phones in portrait mode) */
@media (max-width: 480px) {
  .chatbot-toggle {
    bottom: 10px;
    right: 10px;
    padding: 6px;
  }

  .chatbot-popup {
    bottom: 10px;
    width: 95%; /* Almost full width */
  }

  iframe {
    height: 600px; /* Shorter height for mobile */
  }
}
