.pbs-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.pbs-chat-toggle {
  border: 0;
  border-radius: 999px;
  background: #14377C;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(20, 55, 124, 0.3);
}

.pbs-chat-window {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-bottom: 14px;
  border: 1px solid #e9ecef;
}

.pbs-chat-window.open {
  display: flex;
}

.pbs-chat-header {
  background: #14377C;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pbs-chat-header h4 {
  color: #fff;
  margin: 0;
  font-size: 16px;
}

.pbs-chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.pbs-lead-form,
.pbs-chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #fff;
}

.pbs-lead-form input,
.pbs-chat-form input {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.pbs-lead-form button,
.pbs-chat-form button,
.pbs-whatsapp-button {
  border: 0;
  border-radius: 8px;
  background: #188B73;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.pbs-chat-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.pbs-chat-panel.active {
  display: flex;
}

.pbs-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f8f9fa;
}

.pbs-message {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.pbs-bot {
  background: #fff;
  color: #212529;
  border: 1px solid #e9ecef;
}

.pbs-user {
  background: #188B73;
  color: #fff;
  margin-left: auto;
}

.pbs-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.pbs-quick-actions button {
  border: 1px solid #14377C;
  color: #14377C;
  background: #fff;
  border-radius: 18px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.pbs-chat-form {
  flex-direction: row;
  border-top: 1px solid #e9ecef;
}

.pbs-chat-form input {
  flex: 1;
}

.pbs-chat-form button {
  background: #C39635;
  white-space: nowrap;
}

.pbs-whatsapp-button {
  margin: 0 14px 12px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 480px) {
  .pbs-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .pbs-chat-window {
    height: 500px;
  }
}