/* The try-it chat on garageswarm.co.uk (site/chat-demo.js; Josh, 14 Nov 2026). It looks like the real assistant's
   chat box (src/app/book/[slug]/chat) in SWARM's own colours. Made-up garage, car and prices. */
.cd { --cd-a: #ffb000; width: 100%; max-width: 380px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #0f141b; color: #e8edf3;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px -30px rgba(10,14,20,.7), 0 0 0 6px rgba(255,176,0,.08);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column; text-align: left; }
.cd-top { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: linear-gradient(135deg, #1b232e, #121820); border-bottom: 1px solid rgba(255,255,255,.08); }
.cd-av { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #ffcf4a, #ff8a3d); color: #1a1205; font-weight: 800; font-size: 18px; }
.cd-top b { display: block; font-size: 15px; color: #fff; }
.cd-top span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(232,237,243,.65); }
.cd-top span i { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62,224,143,.6); animation: cd-pulse 2s infinite; }
.cd-ex { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1a1205; background: var(--cd-a); padding: 3px 8px; border-radius: 999px; }
.cd-log { height: 372px; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 9px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.cd-m { max-width: 86%; padding: 9px 13px; border-radius: 16px; animation: cd-in .28s ease both; overflow-wrap: anywhere; }
.cd-m.a { align-self: flex-start; background: #1c2531; border-bottom-left-radius: 5px; }
.cd-m.u { align-self: flex-end; background: var(--cd-a); color: #1a1205; font-weight: 600; border-bottom-right-radius: 5px; }
.cd-m b { color: #fff; }
.cd-m.u b { color: inherit; }
.cd-dots { align-self: flex-start; background: #1c2531; border-radius: 16px; border-bottom-left-radius: 5px; padding: 12px 14px; display: flex; gap: 5px; }
.cd-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(232,237,243,.6); animation: cd-dot 1s infinite; }
.cd-dots i:nth-child(2) { animation-delay: .15s; }
.cd-dots i:nth-child(3) { animation-delay: .3s; }
.cd-card { align-self: stretch; background: #151c26; border: 1px solid rgba(255,176,0,.45); border-radius: 16px; padding: 13px 14px; animation: cd-in .28s ease both; }
.cd-card small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cd-a); margin-bottom: 6px; }
.cd-card dl { margin: 0 0 11px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.cd-card dt { color: rgba(232,237,243,.6); }
.cd-card dd { margin: 0; color: #fff; font-weight: 600; }
.cd-card button { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--cd-a); color: #1a1205; font: inherit; font-weight: 800; cursor: pointer; }
.cd-card button:hover { filter: brightness(1.08); }
.cd-card.done { border-color: rgba(62,224,143,.55); }
.cd-card.done small { color: #3ee08f; }
.cd-staff { align-self: center; max-width: 94%; text-align: center; font-size: 12.5px; color: #c9b8ff; background: rgba(123,63,228,.16); border: 1px dashed rgba(160,120,255,.5); border-radius: 12px; padding: 7px 11px; animation: cd-in .28s ease both; }
.cd-opts { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 14px 12px; min-height: 52px; align-content: flex-start; }
.cd-opts button { min-height: 38px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,176,0,.55); background: rgba(255,176,0,.08); color: #ffd98a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; animation: cd-in .28s ease both; }
.cd-opts button:hover, .cd-opts button:focus-visible { background: var(--cd-a); color: #1a1205; outline: none; }
.cd-opts button.again { border-color: rgba(255,255,255,.25); background: transparent; color: rgba(232,237,243,.8); }
.cd-foot { padding: 9px 14px 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(232,237,243,.55); text-align: center; }
.cd-note { max-width: 380px; margin: 12px auto 0; font-size: 13px; text-align: center; opacity: .75; }
@keyframes cd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cd-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes cd-pulse { 0% { box-shadow: 0 0 0 0 rgba(62,224,143,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(62,224,143,0); } }
@media (prefers-reduced-motion: reduce) { .cd-m, .cd-card, .cd-staff, .cd-opts button, .cd-dots i, .cd-top span i { animation: none; } .cd-log { scroll-behavior: auto; } }

/* The section the chat sits in, on the AI assistant page and the home page. */
.cd-sec .cd-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.cd-sec .cd-grid > * { min-width: 0; }
.cd-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.cd-list li { padding-left: 30px; position: relative; }
.cd-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #ffb000; color: #1a1205; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cd-list b { font-weight: 700; }
.cd-new { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #7b3fe4; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 900px) { .cd-sec .cd-grid { grid-template-columns: 1fr; gap: 32px; } }
