#livechat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00d000;
  color: black;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 9999;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#livechat-bubble .bubble-status {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  position: relative;
  bottom: -5px;
  left: -5px;
}

#livechat-bubble .bubble-icon {
  font-size: 18px;
}

#livechat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#livechat-widget.chat-maximized {
  width: 500px;
  height: 600px;
  max-height: 600px;
}

#chat-header {
  background: #00d000;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.agent-name {
  font-weight: bold;
}

.agent-status {
  font-size: 12px;
}

.chat-actions button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  margin-left: 8px;
  cursor: pointer;
}

#chat-body {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f6f6f6;
}

.message {
  display: flex;
  flex-direction: column;
}

.message.agent .bubble {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  max-width: 80%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.user .bubble {
  background: #d4f7c5;
  align-self: flex-end;
  border-radius: 12px;
  padding: 10px;
  max-width: 80%;
}

#chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background: white;
}

#chat-input input {
  flex-grow: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

#chat-input button {
  margin-left: 10px;
  background: #007bff;
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 20px;
  cursor: pointer;
}
