.qj-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

.qj-chat-bubble {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: #1f7a4d;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.qj-chat-box {
  display: none;
  width: 340px;
  height: 480px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}

.qj-chat-box.is-open {
  display: flex;
  flex-direction: column;
}

.qj-chat-header {
  background: #1f7a4d;
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qj-chat-header span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.qj-chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.qj-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f6f6f6;
}

.qj-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.qj-msg.bot {
  background: #fff;
  color: #222;
  border-bottom-left-radius: 4px;
}

.qj-msg.user {
  background: #1f7a4d;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.qj-chat-form {
  display: flex;
  border-top: 1px solid #eee;
}

.qj-chat-form input {
  flex: 1;
  border: none;
  padding: 14px;
  font-size: 14px;
  outline: none;
}

.qj-chat-form button {
  width: 52px;
  border: none;
  background: #1f7a4d;
  color: #fff;
  cursor: pointer;
}

.qj-msg a {
  color: #0b7cff;
  text-decoration: underline;
  font-weight: 600;
  word-break: break-word;
}

.qj-msg {
  white-space: pre-wrap;
}

.qj-chat-form input {
  font-size: 16px;
}

@media (max-width: 600px) {
  .qj-chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .qj-chat-box {
    width: calc(100vw - 24px);
    height: 70vh;
  }

  .qj-chat-form input {
    font-size: 16px;
  }

  .qj-chat-box {
    width: calc(100vw - 24px);
    height: 70dvh;
    max-height: 70dvh;
  }
}
