.helpbot {
  position: fixed;
  bottom: 16px;
  z-index: 99999;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #1a1a1a;
}

.helpbot-position-bottom-right {
  right: 16px;
}

.helpbot-position-bottom-left {
  left: 16px;
}

.helpbot-launcher {
  max-width: 280px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #16324f;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.helpbot-panel {
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.helpbot-panel[hidden] {
  display: none !important;
}

.helpbot-log {
  flex: 1;
  overflow: auto;
  padding: 12px;
}

.helpbot-msg {
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.helpbot-msg-visitor {
  text-align: right;
}

.helpbot-note {
  margin: 0;
  padding: 0 12px 8px;
  font-size: 13px;
  color: #444;
}

.helpbot-privacy {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #555;
  white-space: pre-wrap;
}

.helpbot-privacy a {
  color: inherit;
}

.helpbot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #e5e5e5;
}

.helpbot-form textarea {
  flex: 1 1 100%;
  min-height: 64px;
  resize: vertical;
  font: inherit;
}

.helpbot-form button {
  font: inherit;
  padding: 8px 10px;
  cursor: pointer;
}

.helpbot-end-confirm {
  flex: 1 1 100%;
}

.helpbot-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
