/* Chat Container */
#chat-container {
  position: fixed;
  bottom: 70px;
  right: 30px;
  width: 320px;
  height: 450px;
  max-height: 450px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: Arial, sans-serif;
  border-radius: 10px;
}

/* Collapsed (hidden) state */
#chat-container.collapsed {
  height: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

/* Chat Icon */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background: white;
  color: white;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: pulse 2s infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Chat Window */
#chat-window {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ccc;
}

/* Chat Header */
#chat-header {
  background-color: #6a1b9a;
  color: white;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

/* Minimize Button */
#chat-minimize {
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* Chat Body (Messages Area) */
#chat-body {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9f9f9;
  max-height: 320px;
}

/* Chat Input Area */
#chat-input-area {
  border-top: 1px solid #eee;
  padding: 10px;
  background: #fff;
}

/* User Input */
#chat-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

/* General Button Styling */
#chat-window button,
#chat-body button {
  background-color: #6a1b9a;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* Callback Form Inside Chat */
#chat-body form {
  background: #fff3e0;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

#chat-body input,
#chat-body textarea {
  width: 100%;
  padding: 5px;
  margin-bottom: 8px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#chat-body .you{
	max-width: 270px;
	border: 1px solid #ccc;
	margin: 5px;
	padding: 5px;
	border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
	background-color: #d3d3d3;
}

#chat-body .bot{
	border: 1px solid #ccc;
	margin: 5px;
	padding: 5px;
	border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#chat-body .first{
	text-align: center;
	margin: 5px;
	padding: 5px;
	font-weight: bold;
}

/* Optional Full Callback Form Style */
#callback-form {
  width: 300px;
  background: #fff3e0;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

#callback-form input,
#callback-form textarea {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
}

#callback-form button {
  background-color: #6a1b9a;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

/* Hidden Utility Class */
.hidden {
  display: none;
}

@media (max-width: 480px) {
  #chat-container {
    right: 10px;
    bottom: 10px;
    width: 90vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: 10px;
  }

  #chat-icon {
    right: 15px;
    bottom: 15px;
    font-size: 20px;
    padding: 10px 12px;
  }

  #chat-body {
    max-height: calc(80vh - 120px); /* Chat height minus header & input */
  }

  #chat-input {
    font-size: 14px;
  }

  #chat-window {
    width: 100%;
    height: 100%;
  }
}

.bot{
	font-size: 15px;
}