/* Backdrop */
#chatbot-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 900;
}
#chatbot-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Chat Button */
#chatbot-button {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: -webkit-linear-gradient(
    120deg,
    rgb(52, 254, 149) 30%,
    rgb(65, 209, 255)
  );
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Chat Panel */
#chatbot-panel {
  position: fixed;
  top: 20px;
  bottom: 20px;
  right: 20px;
  width: 550px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;

  opacity: 0;
  pointer-events: none;
  transform: translateX(50px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 998;
}

#chatbot-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* iFrame */
#chatbot-frame {
  border: none;
  width: 100%;
  height: 100%;
}

/* Mobile */
@media (max-width: 700px) {
  #chatbot-panel {
    left: 10px;
    right: 10px;
    width: auto;
    height: calc(100vh - 20px);
    top: 10px;
    bottom: 10px;
    border-radius: 16px;
  }
}
