/* Floating Chat Button */
#upsa-chatbot-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #FFB606;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#upsa-chatbot-button:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Chat Window */
#upsa-chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 400px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#upsa-chatbot-window.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
#upsa-chatbot-header {
  background: #FFB606;
  color: #00004e;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", "Segoe UI", sans-serif;
}

#upsa-chatbot-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  background: #FFB606;
  color: #00004e;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  width: 80px !important;
}

.bot-title {
  font-size: 15px;
  font-weight: 600;
}

/* Close Button */
#upsa-chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#upsa-chatbot-close:hover {
  opacity: 0.8;
}

/* Chat iframe */
#upsa-chatbot-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex-grow: 1;
  background: #f9fafc;
}

/* Responsive */
@media (max-width: 480px) {
  #upsa-chatbot-window {
    width: 90%;
    height: 80%;
    right: 5%;
    bottom: 100px;
  }
}
