/* Homepage support preview, matched to the supplied red chooser and pre-chat form. */
.support-demo { position:fixed; z-index:95; right:24px; bottom:24px; color:var(--cherry-heading); font-family:inherit; font-size:14px; line-height:1.5; }
.support-demo__launcher { display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin-left:auto; padding:0; border:0; border-radius:50%; background:var(--cherry-primary); color:#fff; box-shadow:0 4px 12px rgb(var(--cherry-heading-rgb)/.12); cursor:pointer; }
.support-demo__launcher:hover,.support-demo__primary:hover { background:var(--cherry-primary-hover); }
.support-demo__launcher:active,.support-demo__primary:active { background:var(--cherry-primary-active); }
.support-demo__launcher span,.support-demo svg { display:block; flex-shrink:0; }
.support-demo__panel { width:320px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 112px); margin-bottom:14px; padding:16px 12px; overflow:auto; overscroll-behavior:contain; border:1px solid var(--cherry-line); border-radius:24px; background:#fff; box-shadow:0 10px 30px rgb(var(--cherry-heading-rgb)/.08); }
.support-demo__panel h2 { margin:0 8px 16px; font-size:16px; line-height:24px; font-weight:700; letter-spacing:0; }
.support-demo__channel { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px 12px; border:0; border-radius:12px; background:var(--cherry-surface); color:var(--cherry-strong); font-size:14px; line-height:20px; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; }
.support-demo__channel svg { width:20px; height:20px; color:var(--cherry-primary); }
.support-demo__channel>span:last-child { margin-left:auto; color:var(--cherry-muted); }
.support-demo__channel:hover { background:var(--cherry-surface-alt); }
.support-demo__contact { margin-top:6px; }
.support-demo__email { padding:16px 8px 20px; }
.support-demo__email h3 { margin:0 0 12px; font-size:16px; line-height:24px; font-weight:700; }
.support-demo__email p { margin:0 0 20px; color:var(--cherry-text); font-size:13px; line-height:21px; }
.support-demo__email label { display:block; margin-bottom:8px; font-size:12px; line-height:18px; font-weight:600; }
.support-demo__email input { display:block; width:100%; height:44px; padding:10px 12px; border:1px solid var(--cherry-input); border-radius:12px; background:#fff; color:var(--cherry-heading); font:inherit; }
.support-demo__email input::placeholder,.support-demo__composer textarea::placeholder { color:var(--cherry-muted); opacity:1; }
.support-demo__primary { display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin-top:10px; padding:10px 12px; border:0; border-radius:10px; background:var(--cherry-primary); color:#fff; font-size:13px; font-weight:700; cursor:pointer; }
.support-demo__skip { display:block; width:100%; min-height:44px; margin-top:10px; padding:10px 4px; border:0; background:transparent; color:var(--cherry-primary); font-size:12px; line-height:20px; font-weight:600; cursor:pointer; }
.support-demo__skip:hover { color:var(--cherry-primary-hover); }
.support-demo__conversation { margin:16px 8px 20px; }
.support-demo__messages { display:flex; flex-direction:column; align-items:flex-start; gap:12px; height:min(290px,40dvh); min-height:120px; overflow:auto; overscroll-behavior:contain; padding:4px 0 12px; }
.support-demo__message { width:fit-content; max-width:95%; margin:0; padding:10px 12px; border-radius:12px; color:var(--cherry-text); background:var(--cherry-surface); font-size:13px; line-height:21px; overflow-wrap:anywhere; white-space:pre-wrap; }
.support-demo__message--user { align-self:flex-end; background:var(--cherry-selected); color:var(--cherry-heading); }
.support-demo__composer { display:flex; align-items:flex-end; gap:8px; margin-top:12px; padding:10px; border:1px solid var(--cherry-input); border-radius:12px; background:#fff; }
.support-demo__composer textarea { display:block; flex:1; min-width:0; max-height:120px; padding:0; border:0; outline:0; resize:vertical; color:var(--cherry-heading); background:transparent; font:inherit; font-size:13px; line-height:21px; }
.support-demo__composer:focus-within { border-color:var(--cherry-primary); }
.support-demo__composer button { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:32px; height:32px; border:0; border-radius:50%; color:var(--cherry-primary); background:var(--cherry-soft); cursor:pointer; }
.support-demo button:focus-visible,.support-demo a:focus-visible,.support-demo input:focus-visible,.support-demo [tabindex]:focus-visible { outline:2px solid var(--cherry-primary); outline-offset:3px; }
/* The existing page control stays usable above the expanded support panel. */
body:has(.support-demo__launcher[aria-expanded="true"]) #back-top { visibility:hidden; }
@media(max-width:600px) { .support-demo { right:16px; bottom:max(16px,env(safe-area-inset-bottom)); } }
