/* The Claude chat, shared by the live demo (/live.html) and the business portal's "Try it as a customer" panel.
   Every class starts with c- so it can't collide with the page around it. Colors come from the page's :root. */
.c-chat { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--bg); }
.c-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.c-head b { font-size: 15px; }
.c-head .c-sub { color: var(--muted); font-size: 13px; }
.c-head .c-actions { margin-left: auto; display: flex; gap: 6px; }
.c-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.c-bubble { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.c-bubble.c-me { align-self: flex-end; background: #2a4a8a; border-bottom-right-radius: 4px; }
.c-bubble.c-ai { align-self: flex-start; background: var(--panel2, #161e2e); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.c-bubble.c-ai p { margin: 0 0 6px; } .c-bubble.c-ai p:last-child { margin: 0; }
.c-bubble.c-ai ul { margin: 4px 0 6px; padding-left: 18px; }
.c-who { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.c-step { align-self: flex-start; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 4px; }
.c-step a { color: var(--amber); text-decoration: none; font-size: 12px; white-space: nowrap; }
.c-step .c-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.c-step.c-good { color: var(--text); }
.c-thinking { align-self: flex-start; color: var(--muted); font-size: 13px; }
.c-thinking::after { content: "…"; animation: c-dots 1.2s steps(3) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes c-dots { from { width: 0; } to { width: 1em; } }
.c-pay { align-self: stretch; background: linear-gradient(160deg, #1c2a46, var(--panel2, #161e2e)); border: 1px solid #34507f; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: c-rise .35s ease-out; }
@keyframes c-rise { from { transform: translateY(12px); opacity: 0; } }
.c-pay .c-amt { font: 700 30px/1.1 var(--mono); margin: 4px 0; }
.c-pay .c-for { color: var(--muted); font-size: 13px; }
.c-pay .c-buttons { display: flex; gap: 8px; margin-top: 12px; }
.c-pay .c-buttons button { flex: 1; padding: 10px; font-size: 15px; border-radius: 10px; }
.c-pay .c-done { margin-top: 10px; font-weight: 600; }
.c-intro { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.c-examples { display: grid; gap: 8px; }
.c-examples button { text-align: left; }
.c-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.c-form textarea { flex: 1; resize: none; height: 46px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; }
.c-form textarea:focus { outline: 1px solid var(--blue); }
.c-chat button { font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #1b2436; color: var(--text); cursor: pointer; }
.c-chat button.c-primary { background: var(--blue); border-color: var(--blue); color: #08101f; font-weight: 600; }
.c-chat button.c-go { background: var(--green); border-color: var(--green); color: #052012; font-weight: 700; }
.c-chat button:disabled { opacity: .45; cursor: default; }
.c-down { margin: 16px; padding: 14px; border: 1px solid color-mix(in srgb, var(--yellow) 50%, var(--line)); border-radius: 12px; color: var(--yellow); font-size: 13px; }
.c-down code { color: var(--text); background: #070a10; padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
