/* CK Concierge — Claire chat widget */
.agentic-root {
  --a-brand: #d8f36a;
  --a-bg: #16211f;
  font-family: "DM Sans", system-ui, sans-serif;
}

.agentic-launch {
  position: fixed;
  right: 20px;
  bottom: 24px;
  border: 2px solid #2f6b14;
  border-radius: 100px;
  background: var(--a-brand);
  color: #121916;
  padding: 14px 20px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(22, 33, 31, 0.22);
  cursor: pointer;
  z-index: 50;
  font-family: inherit;
  font-size: 16px;
  min-height: 58px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agentic-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 33, 31, 0.28);
}

.agentic-launch.nudge {
  animation: claire-nudge 1.2s ease 2;
}

@keyframes claire-nudge {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-2px); }
}

.launch-spark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16211f;
  color: var(--a-brand);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.launch-label { font-size: 16px; }

.agentic-panel {
  position: fixed;
  right: 24px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100vw - 30px);
  height: 520px;
  max-height: min(520px, calc(100vh - 160px));
  background: var(--a-bg);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(22, 33, 31, 0.35);
  z-index: 50;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  border: 1px solid #2a3833;
}

.agentic-panel.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.agentic-panel header {
  background: #21302b;
  color: white;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.agentic-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--a-brand);
  color: #16211f;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.agentic-panel header strong {
  display: block;
  font-size: 17px;
}

.agentic-panel header small {
  display: block;
  color: #9eaea4;
  font-size: 11px;
  margin-top: 3px;
}

.agentic-panel header i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ee36f;
  margin-left: 5px;
  vertical-align: middle;
}

.agentic-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #b8c3bc;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
}

.agentic-messages {
  flex: 1;
  padding: 16px;
  overflow: auto;
}

.agentic-msg {
  font-size: 16px;
  line-height: 1.55;
  padding: 14px 15px;
  border-radius: 12px;
  max-width: 92%;
  margin-bottom: 12px;
}

.agentic-msg.bot {
  color: #e2e9e2;
  background: #25352f;
  border-top-left-radius: 3px;
}

.agentic-msg.mine {
  color: #16211f;
  background: var(--a-brand);
  margin-left: auto;
  border-top-right-radius: 3px;
}

.agentic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 5px 0 15px;
}

.agentic-chips button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--a-brand);
  border: 2px solid #6a8a70;
  border-radius: 100px;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 44px;
}

.agentic-chips button:hover {
  border-color: var(--a-brand);
  background: rgba(216, 243, 106, 0.08);
}

.agentic-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #30423b;
}

.agentic-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: white;
  background: #263832;
  border-radius: 8px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  min-height: 52px;
}

.agentic-form button {
  border: 0;
  border-radius: 8px;
  width: 46px;
  background: var(--a-brand);
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
}

.agentic-panel footer {
  padding: 0 16px 14px;
  color: #a8b5ad;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .agentic-launch {
    right: 14px;
  }
  .agentic-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agentic-launch.nudge { animation: none; }
  .agentic-panel { transition: none; }
}
