/* ===============================
   IOW Stays AI Chat Styles
   =============================== */

#iowstays-chatbot {
  max-width: 400px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#iowstays-chat-window {
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}

.iowstays-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iowstays-msg {
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 80%;
  word-wrap: break-word;
}

.iowstays-msg.user {
  align-self: flex-end;
  background: #0073aa;
  color: #fff;
}

.iowstays-msg.bot {
  align-self: flex-start;
  background: #e6e6e6;
  color: #333;
}

/* Input Area */
#iowstays-chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 8px;
  background: #fff;
}

#iowstays-chat-text {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#iowstays-chat-send {
  margin-left: 8px;
  padding: 8px 14px;
  background: #0073aa;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

#iowstays-chat-send:hover {
  background: #005f8d;
}

/* Responsive (Mobile) */
@media (max-width: 480px) {
  #iowstays-chatbot {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  #iowstays-chat-window {
    height: calc(100vh - 60px);
  }
}
