/* Style for the floating button */
#fcb-floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #021956;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#fcb-floating-button:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.2);
}

/* Style for the chatbot iframe */
#fcb-chatbot {
  position: fixed;
  top: 20px;
  bottom: 20px;
  right: 20px;
  width: 450px;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  border: none;
  border-radius: 20px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  display: none; /* Hidden by default */
  z-index: 1001;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#fcb-chatbot::-webkit-scrollbar {
  display: none;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-height: 700px) {
  #fcb-chatbot {
    top: 20px;
    bottom: 20px;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }
}

@media screen and (max-height: 500px) {
  #fcb-chatbot {
    top: 20px;
    bottom: 20px;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }
}

/* Responsive adjustments for mobile width */
@media screen and (max-width: 500px) {
  #fcb-chatbot {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
  }
  
  #fcb-floating-button {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

#fcb-chatbot-embed {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  border: none;
  z-index: 999999;
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
}
