.compux-chatbot {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 420px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#compux-chatbot-floating-root {
  position: fixed;
  left: 24px;
  bottom: 88px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.compux-chatbot.is-floating {
  width: 380px;
  max-width: calc(100vw - 48px);
}

.compux-chatbot.is-floating.is-collapsed {
  display: none;
}

.compux-chatbot-launcher {
  border: 0;
  border-radius: 999px;
  background: #0f1115;
  color: #fff;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.compux-chatbot-header {
  background: #0f1115;
  color: #fff;
  padding: 12px 14px;
  font-weight: 600;
  position: relative;
}

.compux-chatbot-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.compux-chatbot-body {
  padding: 12px;
  height: 320px;
  overflow-y: auto;
  background: #f7f7f8;
}

.compux-chatbot-msg {
  max-width: 88%;
  margin: 0 0 10px 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.compux-chatbot-msg.from-bot {
  background: #fff;
  border: 1px solid #e2e2e2;
  color: #111;
}

.compux-chatbot-msg.from-user {
  margin-left: auto;
  background: #95c11f;
  color: #111;
}

.compux-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e3e3e3;
  background: #fff;
}

.compux-chatbot-input {
  flex: 1;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.compux-chatbot-send {
  border: 0;
  border-radius: 8px;
  background: #95c11f;
  color: #111;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
}

/* Back-to-top icon fallback: show a clear up arrow if theme icon font fails */
.w-toplink:not(.w-btn) i {
  display: none !important;
}

.w-toplink:not(.w-btn)::before {
  content: "\2191";
  display: block;
  font-size: 28px;
  line-height: 50px;
  font-weight: 700;
}
