body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* Chat prompt box */
.chat-prompt {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: #000;
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  z-index: 1000;
  width: 280px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.btn-chat, .btn-no {
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.btn-chat {
  background-color: #0078d4;
  color: white;
}

.btn-no {
  background-color: white;
  color: black;
}

/* Chatbox */
.chatbox {
  position: fixed;
  height: 500px; 
  bottom: 90px;
  right: 30px;
  background: white;
  border: 1px solid #ccc;
  width: 320px;
  max-height: 80vh; /* ✅ Prevents chatbox from growing too tall */
  border-radius: 10px;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* ✅ Ensures internal scrolling, not outer overflow */
}

.chatbox-header {
  padding: 10px;
  background-color: #0078d4;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chatbox-header h3 {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0; /* Optional: to avoid unexpected spacing */
}

.agent-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chat-content {
   overflow-y: auto;
  padding: 10px;
  background: #f1f1f1;
  flex: 1;
}

/* ✅ Responsive chatbox footer layout */
.chatbox-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  background: #fafafa;
  border-top: 1px solid #ccc;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.chatbox-footer input {
  flex: 1 1 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.chatbox-footer button {
  flex: 1 1 48%;
  padding: 8px 10px;
  border-radius: 5px;
  border: none;
  background: #0078d4;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.chatbox-footer button:last-child {
  background-color: #e74c3c;
  color: white;
}

#mini-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0078d4;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
}

.hidden {
  display: none;
}

.prompt-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-title {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 0.1px;
}
