:root {
  --chatbot-bg: #0b1220;
  --chatbot-panel: #0f172a;
  --chatbot-border: rgba(148, 163, 184, 0.22);
  --chatbot-text: #e5e7eb;
  --chatbot-muted: rgba(229, 231, 235, 0.75);
  --chatbot-accent: #3b82f6;
  --chatbot-user: #2563eb;
  --chatbot-bot: rgba(148, 163, 184, 0.12);
}

.theme-dark :root,
.theme-dark {
  --chatbot-bg: #0b1220;
}

.landing-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.landing-chatbot-launcher {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.landing-chatbot-launcher:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25));
}

.landing-chatbot-launcher:active {
  transform: translateY(0);
}

.landing-chatbot-launcher-lottie {
  width: 92px;
  height: 92px;
  display: block;
}

.landing-chatbot-launcher-lottie iframe {
  width: 92px;
  height: 92px;
  border: 0;
  display: block;
  pointer-events: none;
}

.landing-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 104px;
  width: min(360px, calc(100vw - 32px));
  height: min(500px, calc(100vh - 110px));
  border: 1px solid var(--chatbot-border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: none;
}

.landing-chatbot.is-open .landing-chatbot-panel {
  display: flex;
  flex-direction: column;
}

.landing-chatbot-header {
  padding: 10px 10px 9px 12px;
  border-bottom: 1px solid var(--chatbot-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-chatbot-title {
  color: var(--chatbot-text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.landing-chatbot-subtitle {
  color: var(--chatbot-muted);
  font-weight: 500;
  font-size: 12px;
  margin-top: 2px;
}

.landing-chatbot-header-actions {
  display: flex;
  gap: 6px;
}

.landing-chatbot-iconbtn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--chatbot-border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--chatbot-text);
  display: grid;
  place-items: center;
}

.landing-chatbot-body {
  padding: 12px;
  overflow: auto;
  flex: 1;
}

.landing-chatbot-msg {
  display: flex;
  margin-bottom: 10px;
}

.landing-chatbot-msg.is-user {
  justify-content: flex-end;
}

.landing-chatbot-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--chatbot-border);
  color: var(--chatbot-text);
  font-size: 12.5px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.landing-chatbot-msg.is-bot .landing-chatbot-bubble {
  background: var(--chatbot-bot);
}

.landing-chatbot-msg.is-user .landing-chatbot-bubble {
  background: rgba(37, 99, 235, 0.92);
  border-color: rgba(147, 197, 253, 0.35);
}

.landing-chatbot-footer {
  border-top: 1px solid var(--chatbot-border);
  padding: 9px 9px 10px;
  background: rgba(15, 23, 42, 0.6);
}

.landing-chatbot-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.landing-chatbot-chip {
  border: 1px solid var(--chatbot-border);
  background: rgba(15, 23, 42, 0.85);
  color: var(--chatbot-text);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11.5px;
  line-height: 1;
}

.landing-chatbot-form {
  display: flex;
  gap: 8px;
}

.landing-chatbot-input {
  flex: 1;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--chatbot-border);
  background: rgba(2, 6, 23, 0.7);
  color: var(--chatbot-text);
  padding: 0 12px;
  outline: none;
}

.landing-chatbot-input::placeholder {
  color: rgba(229, 231, 235, 0.55);
}

.landing-chatbot-send {
  width: 40px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.22);
  color: var(--chatbot-text);
  display: grid;
  place-items: center;
}

.landing-chatbot-disclaimer {
  margin-top: 8px;
  color: rgba(229, 231, 235, 0.6);
  font-size: 11px;
}

@media (max-width: 420px) {
  .landing-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .landing-chatbot-launcher,
  .landing-chatbot-launcher-lottie,
  .landing-chatbot-launcher-lottie iframe {
    width: 78px;
    height: 78px;
  }

  .landing-chatbot-panel {
    bottom: 88px;
    height: min(460px, calc(100vh - 106px));
  }
}
