/* Minimal chatbot styles */
.wp-chatbot {
  max-width: 640px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0;
  font-family: Arial, sans-serif;
}
.wc-header {
  background: #222;
  color: #fff;
  padding: 10px 12px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.wc-messages {
  height: 280px;
  overflow-y: auto;
  padding: 12px;
  background: #fafafa;
}
.wc-message {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
}
.wc-user {
  background: #e6f7ff;
  text-align: right;
}
.wc-bot {
  background: #fff;
  border: 1px solid #eee;
}
.wc-bot.loading {
  opacity: 0.7;
  font-style: italic;
}
.wc-form {
  display: flex;
  border-top: 1px solid #eee;
  padding: 8px;
  background-color: #fafafa;
}
.wc-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0 !important;
}
.wc-send {
  margin-left: 8px;
  padding: 8px 12px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
}
.wc-footer {
  font-size: 12px;
  color: #666;
  padding: 8px 12px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

/* Floating panel and launcher */
#wc-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: #0073aa;
  color: #fff;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 99999;
}

#wc-panel {
  position: fixed;
  right: 20px;
  bottom: 86px; /* above launcher */
  z-index: 99999;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

#wc-panel.closed {
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}
#wc-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#wc-panel .wp-chatbot {
  width: 360px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wc-close {
  float: right;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}

/* Make sure form inputs are usable in small screens */
@media (max-width: 420px) {
  #wc-panel .wp-chatbot {
    width: 92vw;
  }
  #wc-launcher {
    right: 12px;
    bottom: 12px;
  }
}
