.weber-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* !important guards against host WordPress themes that style all <button> elements. */
.weber-chatbot .weber-chatbot__toggle {
  width: 56px;
  height: 56px;
  border: none !important;
  border-radius: 50% !important;
  background: #980623 !important;
  color: #fff !important;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-shadow: none;
}

.weber-chatbot .weber-chatbot__toggle:hover {
  background: #7a051c !important;
  color: #fff !important;
}

.weber-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.weber-chatbot__panel--hidden {
  display: none;
}

.weber-chatbot__header {
  background: #980623;
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
}

.weber-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f5f6f8;
}

.weber-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.weber-msg--assistant {
  align-self: flex-start;
  background: #e9edf2;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

.weber-msg--user {
  align-self: flex-end;
  background: #980623;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.weber-msg a {
  color: #980623;
  text-decoration: underline;
  font-weight: 600;
}

.weber-msg--user a {
  color: #fff;
}

.weber-chatbot__form {
  display: flex;
  border-top: 1px solid #e0e0e0;
}

.weber-chatbot__input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.weber-chatbot .weber-chatbot__send {
  border: none !important;
  background: #980623 !important;
  color: #fff !important;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  text-transform: none;
  text-shadow: none;
  letter-spacing: normal;
}

.weber-chatbot .weber-chatbot__send:hover {
  background: #7a051c !important;
  color: #fff !important;
}

.weber-chatbot .weber-chatbot__send:disabled,
.weber-chatbot .weber-chatbot__input:disabled {
  opacity: 0.6;
}
