/* "Ask our assistant" button (Detailing view). The assistant is its own page: css/assistant.css */
.chat-launch {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 3.25rem; padding: .7rem 1.25rem .7rem 1rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); text-decoration: none;
  font: 600 1rem var(--font); color: #fff;
  background: linear-gradient(180deg, #2b96ff 0%, #0a7cff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 34px -10px rgba(10, 90, 200, .7);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.chat-launch svg { width: 1.35rem; height: 1.35rem; flex: none; }
.chat-launch:hover { transform: translateY(-2px); color: #fff; }
.chat-launch:focus-visible { outline: 3px solid #0a7cff; outline-offset: 3px; }
html:not([data-mode="detailing"]) .chat-launch { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* Coming back from the assistant: the chat slides away to the right, like leaving a conversation */
@keyframes vt-out-right { to { transform: translateX(100%); } }
@keyframes vt-in-from-left { from { transform: translateX(-28%); opacity: .7; } }
html:active-view-transition-type(pop)::view-transition-old(root) { z-index: 2; animation: vt-out-right .34s cubic-bezier(.2, .8, .2, 1) both; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
html:active-view-transition-type(pop)::view-transition-new(root) { z-index: 1; animation: vt-in-from-left .34s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .chat-launch { transition: none; } }
