/* Champion AI Assistant — dark theme matching the site (glass panels, thin borders, red glow). */
#champion-ai { --champion-ai: #ff2a36; --cai-glow: rgba(255, 42, 54, .35); position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-family: inherit; font-size: 15px; line-height: 1.45; color: #e8eaee; }
/* Open chat sits above other floating buttons (e.g. the WhatsApp button, z-index 99999999). */
#champion-ai.open { z-index: 2147483000; }
#champion-ai * { box-sizing: border-box; }
#champion-ai .mai-fab { width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: var(--champion-ai); box-shadow: 0 0 0 4px rgba(255, 42, 54, .15), 0 10px 30px rgba(0, 0, 0, .45), 0 0 26px var(--cai-glow); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; transition: transform .2s, box-shadow .2s; padding: 0; }
#champion-ai .mai-fab:hover { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(255, 42, 54, .2), 0 10px 30px rgba(0, 0, 0, .45), 0 0 34px rgba(255, 42, 54, .55); }
#champion-ai .mai-dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; background: #2ecc71; border: 2px solid #0e0f13; border-radius: 50%; box-shadow: 0 0 8px rgba(46, 204, 113, .7); }
#champion-ai.open .mai-dot { display: none; }
#champion-ai .mai-panel { position: absolute; right: 0; bottom: 76px; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100vh - 110px); background: linear-gradient(180deg, #15161b 0%, #0d0e12 100%); border: 1px solid rgba(255, 255, 255, .10); border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 42, 54, .12); display: flex; flex-direction: column; overflow: hidden; }
#champion-ai .mai-panel[hidden] { display: none; }
#champion-ai .mai-head { position: relative; background: rgba(255, 255, 255, .03); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
#champion-ai .mai-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--champion-ai), transparent); box-shadow: 0 0 12px var(--champion-ai); }
#champion-ai .mai-head strong { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
#champion-ai .mai-head span { font-size: 12px; color: #9ba1ab; }
#champion-ai .mai-x { background: none; border: 0; color: #c9ccd2; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; transition: color .2s; }
#champion-ai .mai-x:hover { color: var(--champion-ai); }
#champion-ai .mai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
#champion-ai .mai-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; word-wrap: break-word; }
#champion-ai .mai-msg.bot { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #e8eaee; align-self: flex-start; border-bottom-left-radius: 4px; }
#champion-ai .mai-msg.user { background: var(--champion-ai); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 0 14px rgba(255, 42, 54, .25); }
#champion-ai .mai-msg a { color: #ff6b74; text-decoration: underline; word-break: break-all; }
#champion-ai .mai-msg.user a { color: #fff; }
#champion-ai .mai-li { display: block; padding-left: 4px; }
#champion-ai .mai-typing { display: flex; gap: 4px; padding: 12px 14px; }
#champion-ai .mai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--champion-ai); animation: maiBlink 1.2s infinite; }
#champion-ai .mai-typing i:nth-child(2) { animation-delay: .2s; }
#champion-ai .mai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes maiBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
#champion-ai .mai-cars { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
#champion-ai .mai-car { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .03); border-radius: 12px; padding: 6px; text-decoration: none; color: #e8eaee; border: 1px solid rgba(255, 255, 255, .08); transition: border-color .2s, box-shadow .2s, background .2s; }
#champion-ai .mai-car:hover { border-color: rgba(255, 42, 54, .6); background: rgba(255, 42, 54, .08); box-shadow: 0 0 14px rgba(255, 42, 54, .2); }
#champion-ai .mai-car img, #champion-ai .mai-noimg { width: 80px; height: 58px; object-fit: cover; border-radius: 8px; flex: 0 0 80px; background: #1b1c22; display: flex; align-items: center; justify-content: center; font-size: 22px; }
#champion-ai .mai-car b { display: block; font-size: 13.5px; line-height: 1.25; color: #fff; }
#champion-ai .mai-car span { font-size: 13px; color: #9ba1ab; }
/* Hand-over to WhatsApp: the car as listed + the button. */
#champion-ai .mai-wa { align-self: stretch; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px; }
#champion-ai .mai-wa-car { display: flex; gap: 10px; align-items: center; }
#champion-ai .mai-wa-car img { width: 80px; height: 58px; object-fit: cover; border-radius: 8px; flex: 0 0 80px; background: #1b1c22; }
#champion-ai .mai-wa-car b { display: block; font-size: 13.5px; line-height: 1.25; color: #fff; }
#champion-ai .mai-wa-car span { font-size: 13px; color: #9ba1ab; }
#champion-ai .mai-wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #1f9d55; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s; }
#champion-ai .mai-wa-btn:hover, #champion-ai .mai-wa-btn:focus-visible { background: #178046; color: #fff; }
#champion-ai .mai-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
#champion-ai .mai-quick:empty { display: none; }
#champion-ai .mai-quick button { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .25); color: #e8eaee; border-radius: 10px; padding: 6px 11px; font-size: 13px; cursor: pointer; line-height: 1.3; transition: border-color .2s, background .2s, box-shadow .2s; }
#champion-ai .mai-quick button:hover { border-color: var(--champion-ai); background: rgba(255, 42, 54, .12); box-shadow: 0 0 12px rgba(255, 42, 54, .25); color: #fff; }
#champion-ai .mai-form { display: flex; gap: 8px; padding: 10px 12px; }
#champion-ai .mai-form input { flex: 1; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 11px 14px; font-size: 15px; outline: none; min-width: 0; background: rgba(255, 255, 255, .04); color: #fff; height: auto; margin: 0; box-shadow: none; }
#champion-ai .mai-form input::placeholder { color: #7d838d; }
#champion-ai .mai-form input:focus { border-color: rgba(255, 42, 54, .6); box-shadow: 0 0 0 3px rgba(255, 42, 54, .12); }
#champion-ai .mai-form button { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; border: 0; background: var(--champion-ai); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 0 14px rgba(255, 42, 54, .3); }
#champion-ai .mai-foot { display: flex; gap: 12px; align-items: center; padding: 4px 14px 12px; font-size: 12px; color: #7d838d; flex-wrap: wrap; }
#champion-ai .mai-foot a { color: #e8eaee; font-weight: 600; text-decoration: none; }
#champion-ai .mai-foot a:hover { color: var(--champion-ai); }
#champion-ai .mai-foot span { margin-left: auto; }
@media (max-width: 480px) {
	#champion-ai { right: 14px; bottom: 14px; }
	#champion-ai .mai-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
	#champion-ai .mai-fab, #champion-ai .mai-typing i { transition: none; animation: none; }
}
