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 !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  width: 70px !important;
  height: 70px !important;
  background: white !important;
  border-radius: 50% !important;
  display: flex !important;   /* ← flex, not none */
  box-shadow: 0 0 15px rgba(0,0,0,0.25) !important;
}

#mini-chat img {
  width: 55px !important;
  height: auto !important;
}

.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;
}


#chatbox{
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    width: 320px !important;
    height: 420px !important;
    background: white !important;
    z-index: 999999 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.25) !important;
    padding: 15px !important;
}

.hidden{
    display:none !important;
}
