#wpsc-chatbot-root {
  --wpsc-fes-blue: #0069a6;
  --wpsc-fes-teal: #00b2a9;
  --wpsc-text: #1f2937;
  --wpsc-muted: #4b5563;
  --wpsc-bg: #ffffff;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  font-family: Calibri, "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

#wpsc-chatbot-root .wpsc-toggle {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--wpsc-fes-blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 105, 166, 0.24);
}

#wpsc-chatbot-root .wpsc-panel {
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 110px));
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid #d8e1e8;
  background: var(--wpsc-bg);
  box-shadow: 0 10px 30px rgba(18, 18, 18, 0.18);
  overflow: hidden;
}

#wpsc-chatbot-root .wpsc-header {
  padding: 14px 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #e8ebef;
  color: var(--wpsc-text);
  font-family: "Filson Soft", Calibri, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
}

#wpsc-chatbot-root .wpsc-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #fdfefe;
}

#wpsc-chatbot-root .wpsc-message {
  margin-bottom: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 16px;
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 90%;
}

#wpsc-chatbot-root .wpsc-message-user {
  margin-left: auto;
  text-align: left;
  color: #ffffff;
  background: var(--wpsc-fes-blue);
}

#wpsc-chatbot-root .wpsc-message-bot {
  color: var(--wpsc-text);
  background: #eef6f9;
}

#wpsc-chatbot-root .wpsc-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -4px 0 12px;
  padding-left: 2px;
}

#wpsc-chatbot-root .wpsc-sources a {
  color: var(--wpsc-fes-blue);
  font-size: 12px;
  text-decoration: none;
}

#wpsc-chatbot-root .wpsc-sources a:hover {
  text-decoration: underline;
}

#wpsc-chatbot-root .wpsc-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid #e8ebef;
  padding: 12px;
  background: #f7f8fa;
}

#wpsc-chatbot-root .wpsc-input {
  flex: 1;
  border: 2px solid rgba(0, 178, 169, 0.55);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--wpsc-text);
  min-width: 0;
}

#wpsc-chatbot-root .wpsc-input:focus {
  outline: none;
  border-color: var(--wpsc-fes-teal);
  box-shadow: 0 0 0 2px rgba(0, 178, 169, 0.12);
}

#wpsc-chatbot-root .wpsc-send {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--wpsc-fes-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#wpsc-chatbot-root .wpsc-send:hover {
  background: #005689;
}

#wpsc-chatbot-root .wpsc-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#wpsc-chatbot-root .wpsc-loading {
  color: var(--wpsc-muted);
  background: #f3f7f9;
  font-style: italic;
}

@media (max-width: 640px) {
  #wpsc-chatbot-root {
    right: 12px;
    bottom: 12px;
  }
}
