#pmhc-widget {
  position: fixed;
  bottom: 20px;
  z-index: 999999;
  font-family: Arial, sans-serif;
}

#pmhc-widget.pmhc-right {
  right: 20px;
}

#pmhc-widget.pmhc-left {
  left: 20px;
}

#pmhc-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid #000;
  background: var(--pmhc-color, #111);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  font-size: 20px;
  font-weight: 700;
}

#pmhc-panel,
.pmhc-shortcode-wrap {
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 460px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  overflow: hidden;
}

#pmhc-panel {
  margin-top: 12px;
}

.pmhc-hidden {
  display: none;
}

.pmhc-header {
  background: var(--pmhc-color, #111);
  color: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #000;
}

.pmhc-messages {
  height: 340px;
  overflow-y: auto;
  padding: 12px;
  background: #f7f7f7;
}

.pmhc-message {
  max-width: 85%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.4;
  font-size: 14px;
  white-space: pre-wrap;
}

.pmhc-bot {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.pmhc-user {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  margin-left: auto;
}

#pmhc-form,
#pmhc-form-shortcode {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #ddd;
  background: #fff;
}

#pmhc-input,
#pmhc-input-shortcode {
  flex: 1;
  min-width: 0;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

#pmhc-form button,
#pmhc-form-shortcode button {
  border: 1px solid #000;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.pmhc-shortcode-wrap {
  position: relative;
}