/* Container */
#talkinwp-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
}

/* Toggle Button */
#chatbot-toggle {
    background: linear-gradient(180deg, #409fc1, #1e7190);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

/* Chat Window */
#chatbot-window {
  display: none;
  flex-direction: column;
  width: 420px;
  height: 580px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}

#chatbot-window.active {
  display: flex !important;
}

#chat-log {
    overflow-y: auto;
    max-height: 400px;
}

/* Header */
#chatbot-header {
  background: #f2f2f2;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}
.chatbot-title {
  font-weight: bold;
  font-size: 15px;
}
#chatbot-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Body (scrollable area) */
#chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

/* Footer (Sticky bottom) */
#chatbot-footer {
  border-top: 1px solid #eee;
  background: #fafafa;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Input row */
#chatbot-input-row {
  display: flex;
}
#chat-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  outline: none;
}
#chat-send {
  background: linear-gradient(180deg, #409fc1, #1e7190);
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

/* Disclaimer */
#chatbot-disclaimer {
  font-size: 11px;
  color: #777;
  text-align: center;
}

/* Messages */
.user-msg, .bot-msg {
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.5;
}
.user-msg {
  background: #d1e7dd;
  align-self: flex-end;
}
.bot-msg {
  background: #f1f0f0;
  align-self: flex-start;
}

/* Typing */
.typing {
  font-style: italic;
  opacity: 0.6;
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
  #chatbot-window {
    width: 90vw;
    height: 60vh;
    right: 5vw;
    bottom: 80px;
  }
}
