/* CXmatic Assistant widget. Type and colours follow the CXmatic design system (cxmatic.com): Satoshi for text,
   Hedvig Letters Serif for the teaser question, green 1 ink (#0B2912) on paper, lime (#9BE23A) for light.
   Layout: a full height panel on the left; the site is pushed (or scaled) to the right while it is open.
   The Appearance page in the app changes the look through the variables and data attributes on .ssc (see the end of this file). */
/* Satoshi (Fontshare free licence) and Hedvig Letters Serif (OFL), served by the app (theme extensions cannot ship font files). */
@font-face { font-family: "CXmatic Satoshi"; src: url("https://app.cxmatic.com/brand/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CXmatic Satoshi"; src: url("https://app.cxmatic.com/brand/Satoshi-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "CXmatic Satoshi"; src: url("https://app.cxmatic.com/brand/Satoshi-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "CXmatic Hedvig"; src: url("https://app.cxmatic.com/brand/HedvigLettersSerif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.ssc {
  --ssc-bg: #F6F5F0; --ssc-surface: #FFFFFF; --ssc-tint: #F0EFE8; --ssc-tint-2: #ECEBE3; --ssc-band: #FFFFFF;
  --ssc-ink: #0B2912; --ssc-text: #1C2A20; --ssc-body: #4A544C; --ssc-quiet: #6C726D; --ssc-line: #E6E4DC;
  --ssc-accent: #0B2912; --ssc-lime: #9BE23A; --ssc-error: #C62828; --ssc-warning: #C86613;
  /* --ssc-accent is overridden per store by the script (accent colour setting); the tints derive from it. */
  --ssc-accent-soft: color-mix(in srgb, var(--ssc-accent) 10%, #FFFFFF); --ssc-accent-2: color-mix(in srgb, var(--ssc-accent) 78%, #FFFFFF);
  --ssc-launch-bg: var(--ssc-accent);
  /* closed state: the launcher's height and where the teaser's tail points; the glow colours are set by the script */
  --ssc-launch-h: 48px; --ssc-tail: 34px;
  --ssc-glow: var(--ssc-accent-2); --ssc-glow-rest: var(--ssc-launch-bg); --ssc-halo: var(--ssc-accent); --ssc-halo-rest: transparent;
  --ssc-display: "CXmatic Satoshi", "Helvetica Neue", Arial, sans-serif;
  --ssc-body-font: "CXmatic Satoshi", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --ssc-serif: "CXmatic Hedvig", Georgia, "Times New Roman", serif;
  /* text colours that sit on the accent, the shopper's bubbles and the header; the script picks readable ones per store */
  --ssc-on-accent: #fff; --ssc-on-ink: #fff; --ssc-on-band: var(--ssc-text); --ssc-accent-text: var(--ssc-accent);
  --ssc-pill: 48px; --ssc-input-radius: 24px; --ssc-tracking: -0.01em;
  --ssc-radius: 12px; --ssc-shadow: 0 2px 12px rgba(0,0,0,.16); --ssc-dur: 320ms; --ssc-ease: cubic-bezier(.2,.7,.2,1);
  /* open and close: the panel grows out of the launcher on an in-out curve; rows settle on a long ease-out */
  --ssc-morph: cubic-bezier(.76,0,.24,1); --ssc-out: cubic-bezier(.16,1,.3,1); --ssc-open-dur: 760ms; --ssc-close-dur: 560ms;
  font-family: var(--ssc-body-font); letter-spacing: var(--ssc-tracking); color: var(--ssc-text); font-size: 15px; line-height: 1.5;
}
.ssc *, .ssc *::before, .ssc *::after { box-sizing: border-box; }
.ssc button { font: inherit; letter-spacing: inherit; cursor: pointer; }

/* The host page while the panel is open. --ssc-w is set by the script. */
html.ssc-side-open { overflow-x: hidden; }
html.ssc-side-open body { transition: transform var(--ssc-dur) var(--ssc-ease), width var(--ssc-dur) var(--ssc-ease); }
html.ssc-side-open.ssc-effect-push body { transform: translateX(var(--ssc-w)); width: calc(100% - var(--ssc-w)); }
html.ssc-side-open.ssc-effect-scale body { transform-origin: 0 0; transform: translateX(var(--ssc-w)) scale(var(--ssc-scale)); }
html.ssc-side-closing body { transition: transform var(--ssc-dur) var(--ssc-ease), width var(--ssc-dur) var(--ssc-ease); }
@media (prefers-reduced-motion: reduce) { html.ssc-side-open body, html.ssc-side-closing body { transition: none; } }

/* Launcher (bottom left) */
.ssc-launch {
  position: fixed; left: 20px; bottom: 20px; z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px;
  background: var(--ssc-launch-bg); color: var(--ssc-on-launch, var(--ssc-on-accent)); border: 0; border-radius: var(--ssc-pill); box-shadow: var(--ssc-shadow);
  font-family: var(--ssc-display); font-size: 16px; transition: transform var(--ssc-dur) ease-out, box-shadow var(--ssc-dur) ease-out, opacity var(--ssc-dur) ease-out;
}
.ssc-launch:hover { transform: translateY(-1px); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.ssc-launch svg { width: 22px; height: 22px; }
.ssc.is-open .ssc-launch { opacity: 0; transform: scale(.92); pointer-events: none; transition: transform .3s var(--ssc-out), opacity .25s ease-out; }

/* Panel: full height, docked left */
.ssc-panel {
  position: fixed; top: 0; left: 0; z-index: 2147483001; height: 100vh; height: 100dvh; width: var(--ssc-w, 420px); max-width: 100vw;
  display: flex; flex-direction: column; background: var(--ssc-bg); border-right: 1px solid var(--ssc-line); box-shadow: 8px 0 24px rgba(0,0,0,.08);
  /* closed: clipped down to the launcher's shape; the script sets --ssc-from from the launcher's position */
  visibility: hidden; clip-path: var(--ssc-from, inset(100% 100% 0 0 round 999px));
  transition: clip-path var(--ssc-close-dur) var(--ssc-morph), visibility 0s linear var(--ssc-close-dur);
}
.ssc.is-open .ssc-panel { visibility: visible; clip-path: inset(0 round var(--ssc-panel-r, 0px)); transition: clip-path var(--ssc-open-dur) var(--ssc-morph), visibility 0s; }
/* once open, the rows rise in one after another: header, messages, composer, note */
.ssc-win > * { transition: opacity .6s var(--ssc-out), transform .6s var(--ssc-out); }
.ssc:not(.is-open) .ssc-win > * { opacity: 0; transform: translateY(12px); transition: none; }
.ssc.is-open .ssc-win > :nth-child(1) { transition-delay: .36s; }
.ssc.is-open .ssc-win > :nth-child(2) { transition-delay: .43s; }
.ssc.is-open .ssc-win > :nth-child(3) { transition-delay: .50s; }
.ssc.is-open .ssc-win > :nth-child(4) { transition-delay: .57s; }
@media (max-width: 767px) {
  .ssc-panel { width: 100vw; box-shadow: none; }
  html.ssc-side-open body { transform: none !important; width: auto !important; }
  html.ssc-side-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .ssc-panel, .ssc.is-open .ssc-panel, .ssc-win > *, .ssc.is-open .ssc-win > * { transition: none; }
  .ssc:not(.is-open) .ssc-win > * { transform: none; }
  .ssc-launch { transition: none; }
}

/* Right hand position (Widget > Position in the app) */
.ssc[data-position="right"] .ssc-launch { left: auto; right: 20px; }
.ssc[data-position="right"] .ssc-panel { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--ssc-line); box-shadow: -8px 0 24px rgba(0,0,0,.08); }
html.ssc-side-open.ssc-pos-right.ssc-effect-push body { transform: none; width: calc(100% - var(--ssc-w)); }
html.ssc-side-open.ssc-pos-right.ssc-effect-scale body { transform-origin: 0 0; transform: scale(var(--ssc-scale)); }

.ssc-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 14px 20px; background: var(--ssc-band); color: var(--ssc-on-band); border-bottom: 1px solid var(--ssc-bg); }
.ssc-head .ssc-grow { flex: 1; }
.ssc-logo { display: flex; align-items: center; line-height: 0; }
.ssc-logo svg, .ssc-logo img { height: 26px; width: auto; display: block; }
.ssc-icon { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; color: var(--ssc-on-band); display: grid; place-items: center; }
.ssc-icon:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.ssc-icon svg { width: 20px; height: 20px; }

.ssc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .ssc-log { scroll-behavior: auto; } }

.ssc-msg { max-width: 90%; padding: 10px 14px; border-radius: var(--ssc-radius); white-space: pre-wrap; word-wrap: break-word; }
.ssc-msg.user { align-self: flex-end; background: var(--ssc-ink); color: var(--ssc-on-ink); border-bottom-right-radius: 4px; }
.ssc-msg.bot { align-self: flex-start; background: var(--ssc-surface); border: 1px solid var(--ssc-line); color: var(--ssc-body); border-bottom-left-radius: 4px; }
.ssc-msg.bot.error { border-color: var(--ssc-error); color: var(--ssc-error); }
.ssc-msg.typing::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; background: var(--ssc-accent); animation: ssc-blink 1s infinite; vertical-align: middle; }
@keyframes ssc-blink { 50% { opacity: .2; } }

/* Product cards */
.ssc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: stretch; }
@media (max-width: 360px) { .ssc-cards { grid-template-columns: 1fr; } }
.ssc-card { display: flex; flex-direction: column; background: var(--ssc-surface); border: 1px solid var(--ssc-line); border-radius: var(--ssc-radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow var(--ssc-dur) ease-out, transform var(--ssc-dur) ease-out; }
.ssc-card:hover { box-shadow: var(--ssc-shadow); transform: translateY(-1px); }
.ssc-card .ssc-img { aspect-ratio: 1; background: var(--ssc-tint-2); display: grid; place-items: center; overflow: hidden; }
.ssc-card .ssc-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ssc-card .ssc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.ssc-step { font-size: 11px; text-transform: uppercase; letter-spacing: 0; color: var(--ssc-accent-2); }
.ssc-name { font-size: 14px; font-weight: 500; color: var(--ssc-text); line-height: 1.3; }
.ssc-brand { font-size: 12px; color: var(--ssc-quiet); }
.ssc-price { font-size: 14px; color: var(--ssc-accent-text); font-weight: 500; }
.ssc-price s { color: var(--ssc-quiet); font-weight: 400; margin-left: 6px; }
.ssc-why { font-size: 12px; color: var(--ssc-body); margin-top: 2px; }
.ssc-rx { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #FAF0E7; color: var(--ssc-warning); border: 1px solid #EED0B6; margin-top: 4px; align-self: flex-start; }
.ssc-view { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border-radius: var(--ssc-pill); background: var(--ssc-accent-soft); color: var(--ssc-accent-text); font-family: var(--ssc-display); font-size: 14px; }

/* Suggestions */
.ssc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ssc-chip { background: var(--ssc-surface); border: 1px solid var(--ssc-line); border-radius: var(--ssc-pill); padding: 8px 14px; font-size: 13px; color: var(--ssc-text); }
.ssc-chip:hover { background: var(--ssc-tint); }

/* Composer */
.ssc-form { display: flex; gap: 8px; padding: 12px 12px 8px; background: var(--ssc-surface); border-top: 1px solid var(--ssc-line); }
.ssc-input { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border: 1px solid var(--ssc-line); border-radius: var(--ssc-input-radius); background: var(--ssc-bg); font: inherit; letter-spacing: inherit; color: var(--ssc-text); outline: none; }
.ssc-input:focus { border-color: var(--ssc-accent-2); }
.ssc-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ssc-accent); color: var(--ssc-on-accent); display: grid; place-items: center; flex-shrink: 0; }
.ssc-send:disabled { opacity: .5; cursor: default; }
.ssc-send svg { width: 20px; height: 20px; }
.ssc-foot { padding: 0 14px 10px; font-size: 11px; color: var(--ssc-quiet); background: var(--ssc-surface); text-align: center; }

/* Assistant name shown in the header when the merchant has not supplied a logo */
.ssc-title{font-weight:500;font-size:16px;line-height:1.2;letter-spacing:-.01em;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- Appearance options (Appearance page in the app). The defaults above are the original look. ---- */

/* Header badge and "AI assistant" line */
.ssc-headtext { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ssc-avatar { width: 36px; height: 36px; margin-right: 4px; border-radius: 50%; background: var(--ssc-accent); color: var(--ssc-on-accent); display: grid; place-items: center; flex-shrink: 0; }
.ssc-avatar svg { width: 20px; height: 20px; }
.ssc-sub { font-size: 12px; line-height: 1.2; letter-spacing: 0; opacity: .72; }
.ssc-avatar[hidden], .ssc-sub[hidden] { display: none; }

/* Brand lockup (Appearance > Brand): the store's logo or name with an "AI" mark beside it, as in "Zomato AI".
   Everything is sized in em from the lockup's font size, so the three sizes scale the logo, the name and the mark together. */
.ssc-lockup { gap: .36em; min-width: 0; font-size: 20px; line-height: 1; letter-spacing: 0; font-family: var(--ssc-display); }
.ssc-lockup[data-size="s"] { font-size: 17px; }
.ssc-lockup[data-size="l"] { font-size: 24px; }
.ssc-lockup .ssc-wordimg { height: 1.3em; width: auto; max-width: min(9em, 58%); object-fit: contain; object-position: left center; flex-shrink: 1; min-width: 0; }
.ssc-lockup[data-logo="dark"] .ssc-wordimg { filter: brightness(0) opacity(.86); }
.ssc-lockup[data-logo="light"] .ssc-wordimg { filter: brightness(0) invert(1); }
.ssc-wordmark { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding: .1em 0; }
.ssc-ai { --m-bg: var(--ssc-on-band); --m-fg: var(--ssc-band); --m-text: var(--ssc-on-band);
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: .14em; font-family: var(--ssc-display); font-size: .8em; line-height: 1; letter-spacing: .02em; }
.ssc-ai[data-tone="accent"] { --m-bg: var(--ssc-mark-accent, var(--ssc-accent)); --m-fg: var(--ssc-on-mark-accent, var(--ssc-on-accent)); --m-text: var(--ssc-mark-accent, var(--ssc-accent)); }
.ssc-ai b { display: block; font-weight: 800; }
.ssc-lockup .ssc-ai svg { width: .9em; height: .9em; flex-shrink: 0; }
/* slant: a solid slanted block with heavy italic letters */
.ssc-ai[data-style="slant"] { background: var(--m-bg); color: var(--m-fg); padding: .3em .46em .28em; transform: skewX(-12deg); border-radius: .08em; }
.ssc-ai[data-style="slant"] b { font-style: italic; transform: skewX(12deg); }
/* outline: the same shape, drawn as a line */
.ssc-ai[data-style="outline"] { color: var(--m-text); box-shadow: inset 0 0 0 .1em var(--m-text); padding: .3em .46em .28em; transform: skewX(-12deg); border-radius: .08em; }
.ssc-ai[data-style="outline"] b { font-style: italic; transform: skewX(12deg); }
/* pill and tile: upright, rounded */
.ssc-ai[data-style="pill"] { background: var(--m-bg); color: var(--m-fg); padding: .3em .62em .28em; border-radius: 99em; letter-spacing: .05em; }
.ssc-ai[data-style="tile"] { background: var(--m-bg); color: var(--m-fg); padding: .34em .38em .32em; border-radius: .3em; }
/* spark: a sparkle and the letters, no block */
.ssc-ai[data-style="spark"] { color: var(--m-text); font-size: .92em; }
/* plain: heavy italic letters only */
.ssc-ai[data-style="plain"] { color: var(--m-text); font-size: 1em; }
.ssc-ai[data-style="plain"] b { font-style: italic; font-weight: 800; }
.ssc[data-corners="sharp"] .ssc-ai[data-style="tile"] { border-radius: .08em; }

/* Background colour other than the default: the tints and lines follow it */
.ssc[data-surface="derived"] {
  --ssc-tint: color-mix(in srgb, var(--ssc-bg) 96%, #000); --ssc-tint-2: color-mix(in srgb, var(--ssc-bg) 93%, #000);
  --ssc-line: color-mix(in srgb, var(--ssc-bg) 89%, #000);
}
/* Dark background: the script sets data-scheme="dark" when the background colour is dark */
.ssc[data-scheme="dark"] {
  --ssc-surface: color-mix(in srgb, var(--ssc-bg) 91%, #FFFFFF); --ssc-tint: color-mix(in srgb, var(--ssc-bg) 84%, #FFFFFF);
  --ssc-tint-2: #FFFFFF; --ssc-line: color-mix(in srgb, var(--ssc-bg) 80%, #FFFFFF);
  --ssc-text: #F4F2EE; --ssc-body: #D8D5CF; --ssc-quiet: #A6A39D; --ssc-error: #FF8A80;
  --ssc-accent-soft: color-mix(in srgb, var(--ssc-accent-text) 18%, var(--ssc-surface)); --ssc-accent-2: color-mix(in srgb, var(--ssc-accent-text) 80%, var(--ssc-surface));
  --ssc-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.ssc[data-scheme="dark"] .ssc-card .ssc-img img { mix-blend-mode: normal; }
.ssc[data-scheme="dark"] .ssc-msg.user { border: 1px solid var(--ssc-line); }
.ssc[data-scheme="dark"] .ssc-input::placeholder { color: var(--ssc-quiet); opacity: 1; }

/* Corners */
.ssc[data-corners="sharp"] { --ssc-radius: 4px; --ssc-pill: 6px; --ssc-input-radius: 6px; }
.ssc[data-corners="sharp"] .ssc-send, .ssc[data-corners="sharp"] .ssc-icon, .ssc[data-corners="sharp"] .ssc-avatar { border-radius: 6px; }
.ssc[data-corners="round"] { --ssc-radius: 20px; }


/* Round icon launcher: the text stays for screen readers */
.ssc[data-launcher="icon"] { --ssc-launch-h: 64px; --ssc-tail: 32px; }
.ssc[data-launcher="icon"] .ssc-launch { width: 64px; height: 64px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
.ssc[data-launcher="icon"] .ssc-launch svg { width: 26px; height: 26px; }
.ssc[data-launcher="icon"] .ssc-launch > span:not(.ssc-orb) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Floating panel: a card in the corner that leaves the site where it is. Phones keep the full screen panel. */
@media (min-width: 768px) {
  .ssc[data-layout="floating"] .ssc-panel {
    top: auto; bottom: 20px; left: 20px; right: auto; width: min(400px, calc(100vw - 40px)); height: min(680px, calc(100vh - 40px));
    border: 1px solid var(--ssc-line); border-radius: calc(var(--ssc-radius) + 6px); overflow: hidden; box-shadow: 0 18px 48px rgba(0,0,0,.22);
    --ssc-panel-r: calc(var(--ssc-radius) + 6px);
  }
  .ssc[data-layout="floating"][data-position="right"] .ssc-panel { left: auto; right: 20px; }
}

/* Brand launcher (Appearance > Launcher > Brand): the header's lockup on the shopper bubble colour */
.ssc[data-launcher="brand"] { --ssc-launch-h: 54px; --ssc-tail: 42px; }
.ssc[data-launcher="brand"] .ssc-launch { min-height: 54px; padding: 0 24px; box-shadow: var(--ssc-shadow), inset 0 0 0 1px color-mix(in srgb, var(--ssc-on-launch, #fff) 16%, transparent); }
.ssc-launch .ssc-lockup { display: inline-flex; align-items: center; font-size: 19px; max-width: min(280px, calc(100vw - 96px)); }
.ssc-launch .ssc-wordimg { max-width: 9em; }
.ssc-launch .ssc-ai { --m-bg: var(--ssc-on-launch, #fff); --m-fg: var(--ssc-launch-bg); --m-text: var(--ssc-on-launch, #fff); }
.ssc-launch .ssc-ai[data-tone="accent"] { --m-bg: var(--ssc-glow); --m-fg: var(--ssc-launch-bg); --m-text: var(--ssc-glow); }

/* Compact card (Appearance > Launcher > Question card). It opens out of the orb on load, as on fragmenthq.com: the clip
   grows from the orb's circle to the full card, then the rows rise and the questions pop in. Folding reverses the clip. */
.ssc-mini {
  position: fixed; left: 20px; bottom: 20px; z-index: 2147483000; width: min(348px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 26px;
  background: var(--ssc-surface); color: var(--ssc-text); box-shadow: 0 24px 64px rgba(0,0,0,.28), inset 0 0 0 1px var(--ssc-line);
  clip-path: inset(calc(100% - var(--ssc-launch-h)) calc(100% - var(--ssc-launch-h)) 0 0 round calc(var(--ssc-launch-h) / 2));
  transition: clip-path var(--ssc-close-dur) var(--ssc-morph);
}
.ssc[data-position="right"] .ssc-mini { left: auto; right: 20px; clip-path: inset(calc(100% - var(--ssc-launch-h)) 0 0 calc(100% - var(--ssc-launch-h)) round calc(var(--ssc-launch-h) / 2)); }
.ssc-mini.is-in { clip-path: inset(0 round 26px) !important; transition: clip-path var(--ssc-open-dur) var(--ssc-morph); }
.ssc-mini[hidden], .ssc.is-open .ssc-mini { display: none; }
.ssc[data-corners="sharp"] .ssc-mini, .ssc[data-corners="sharp"] .ssc-mini.is-in { border-radius: 8px; }
.ssc-mini-row { transition: opacity .6s var(--ssc-out), transform .6s var(--ssc-out); }
.ssc-mini:not(.is-in) .ssc-mini-row { opacity: 0; transform: translateY(12px); transition: none; }
.ssc-mini.is-in .ssc-mini-row:nth-child(2) { transition-delay: .34s; }
.ssc-mini.is-in .ssc-mini-row:nth-child(3) { transition-delay: .41s; }
.ssc-mini.is-in .ssc-mini-row:nth-child(4) { transition-delay: .48s; }
.ssc-mini.is-in .ssc-mini-row:nth-child(5) { transition-delay: .55s; }
.ssc-mini.is-in .ssc-mini-row:nth-child(6) { transition-delay: .62s; }
.ssc-mini-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ssc-quiet); }
.ssc-mini-x:hover { background: var(--ssc-tint); color: var(--ssc-text); }
.ssc-mini-x svg { width: 16px; height: 16px; }
.ssc-mini-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; }
.ssc-orb.ssc-orb-md { width: 46px; height: 46px; margin: 0; box-shadow: none; }
.ssc-mini-text { display: grid; gap: 3px; min-width: 0; }
.ssc-mini-label { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ssc-accent-text); }
.ssc-mini-title { margin: 0; font-family: var(--ssc-serif); font-size: 18px; line-height: 1.3; letter-spacing: 0; color: var(--ssc-text); }
.ssc-mini-feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ssc-mini-feats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.35; color: var(--ssc-body); }
.ssc-mini-feats li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ssc-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8F2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ssc-mini-sub { margin: 0 0 8px; font-size: 12px; color: var(--ssc-quiet); }
.ssc-mini-faqs { display: flex; flex-wrap: wrap; gap: 7px; }
.ssc-mini-faq { margin: 0; padding: 8px 13px; border: 1px solid var(--ssc-line); border-radius: 999px; background: var(--ssc-surface); color: var(--ssc-text);
  font-size: 13px; line-height: 1.3; text-align: left; transition: background-color .25s, border-color .25s, transform .5s var(--ssc-out), opacity .5s var(--ssc-out); }
.ssc-mini-faq:hover { background: var(--ssc-tint); border-color: var(--ssc-accent-2); }
/* the questions pop in one by one after the rows */
.ssc-mini:not(.is-in) .ssc-mini-faq { opacity: 0; transform: scale(.82) translateY(6px); transition: none; }
.ssc-mini.is-in .ssc-mini-faq:nth-child(1) { transition-delay: .6s; }
.ssc-mini.is-in .ssc-mini-faq:nth-child(2) { transition-delay: .68s; }
.ssc-mini.is-in .ssc-mini-faq:nth-child(3) { transition-delay: .76s; }
.ssc-mini-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; margin: 0; padding: 5px 5px 5px 20px;
  border: 0; border-radius: 999px; background: var(--ssc-ink); color: var(--ssc-on-ink); font-size: 15px; font-weight: 500; }
.ssc-mini-cta svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ssc-on-ink); color: var(--ssc-ink); transform: rotate(90deg); transition: transform .45s var(--ssc-out); }
.ssc-mini-cta:hover svg { transform: rotate(90deg) translateY(-3px); }
.ssc[data-corners="sharp"] .ssc-mini-cta, .ssc[data-corners="sharp"] .ssc-mini-faq { border-radius: 6px; }
.ssc-mini-powered { margin: 0; text-align: right; font-size: 11.5px; color: var(--ssc-quiet); }
.ssc-mini-powered a { color: var(--ssc-body); text-decoration: underline; text-underline-offset: .2em; }
.ssc.mini-on .ssc-launch { opacity: 0; transform: scale(.9); pointer-events: none; transition: transform .3s var(--ssc-out), opacity .25s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .ssc-mini, .ssc-mini.is-in, .ssc-mini-row, .ssc-mini-faq { transition: none !important; }
  .ssc-mini:not(.is-in) .ssc-mini-row, .ssc-mini:not(.is-in) .ssc-mini-faq { transform: none; }
}

/* Glow (Appearance > Launcher > Glow): a light in the accent colour travels round the launcher's edge, with a soft halo
   behind it, and a fainter one round the teaser. --ssc-spin is registered so the angle can be animated; a browser that
   cannot register it shows the same edge standing still. The launcher's fill moves to ::after so the halo sits behind it. */
@property --ssc-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ssc-spin { to { --ssc-spin: 360deg; } }
@keyframes ssc-breathe { 50% { opacity: .45; } }
.ssc[data-glow="on"] .ssc-launch { background: none; }
.ssc[data-glow="on"] .ssc-launch::before, .ssc[data-glow="on"] .ssc-launch::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.ssc[data-glow="on"] .ssc-launch::after {
  inset: 0; z-index: -1; border: 1.5px solid transparent;
  background: linear-gradient(var(--ssc-launch-bg), var(--ssc-launch-bg)) padding-box,
    conic-gradient(from var(--ssc-spin, 0deg), var(--ssc-glow-rest) 0%, var(--ssc-glow-rest) 48%, var(--ssc-glow) 84%, var(--ssc-glow-rest) 100%) border-box;
  animation: ssc-spin 4.5s linear infinite;
}
.ssc[data-glow="on"] .ssc-launch::before {
  inset: -4px; z-index: -2; filter: blur(11px);
  background: conic-gradient(from var(--ssc-spin, 0deg), var(--ssc-halo-rest) 0%, var(--ssc-halo-rest) 42%, var(--ssc-halo) 84%, var(--ssc-halo-rest) 100%);
  animation: ssc-spin 4.5s linear infinite, ssc-breathe 3s ease-in-out infinite;
}
.ssc[data-glow="on"] .ssc-teaser {
  border-width: 1.5px;
  background: linear-gradient(var(--ssc-surface), var(--ssc-surface)) padding-box,
    conic-gradient(from var(--ssc-spin, 0deg), var(--ssc-line) 0%, var(--ssc-line) 52%, var(--ssc-accent-text) 84%, var(--ssc-line) 100%) border-box;
  animation: ssc-spin 7s linear infinite;
}
.ssc.is-open .ssc-launch::before, .ssc.is-open .ssc-launch::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ssc-teaser { transition: none; }
  .ssc[data-glow="on"] .ssc-launch::before, .ssc[data-glow="on"] .ssc-launch::after, .ssc[data-glow="on"] .ssc-teaser { animation: none; --ssc-spin: 117deg; }
}

/* Orb: a slowly turning light in the accent colours, behind the launcher icon (as on fragmenthq.com) */
@keyframes ssc-orb { to { transform: rotate(360deg); } }
.ssc-orb { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; margin-left: -6px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ssc-on-accent) 22%, transparent); }
/* --orb-a deep, --orb-b mid, --orb-c light, --orb-d near white. Brand derives them from the accent; the named palettes are fixed. */
.ssc { --orb-a: var(--ssc-accent); --orb-b: var(--ssc-glow); --orb-c: color-mix(in srgb, var(--ssc-glow) 35%, #fff); --orb-d: color-mix(in srgb, var(--ssc-glow) 20%, #fff); }
.ssc[data-orb="green"] { --orb-a: #0B2912; --orb-b: #3AB231; --orb-c: #9BE23A; --orb-d: #EAFFD0; }
.ssc[data-orb="blue"] { --orb-a: #0B2C7A; --orb-b: #2060DF; --orb-c: #8EC8FF; --orb-d: #EEF0FF; }
.ssc[data-orb="violet"] { --orb-a: #2A0B5E; --orb-b: #6B3DF0; --orb-c: #C4A8FF; --orb-d: #F3EDFF; }
.ssc[data-orb="rose"] { --orb-a: #5E0B30; --orb-b: #E0457B; --orb-c: #FFB3CF; --orb-d: #FFF0F5; }
.ssc[data-orb="sunset"] { --orb-a: #7A1F0B; --orb-b: #FF5A36; --orb-c: #FFB36B; --orb-d: #FFF1E6; }
.ssc[data-orb="mono"] { --orb-a: #111111; --orb-b: #555555; --orb-c: #CFCFCF; --orb-d: #FFFFFF; }
.ssc-orb i { position: absolute; inset: -12%; border-radius: 50%; animation: ssc-orb 7s linear infinite;
  background: conic-gradient(var(--orb-a), var(--orb-b), var(--orb-c), var(--orb-d), var(--orb-b), var(--orb-a), color-mix(in srgb, var(--orb-b) 70%, var(--orb-a)), var(--orb-c), var(--orb-b), var(--orb-a)); }
.ssc-orb svg { position: relative; width: 16px !important; height: 16px !important; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.ssc[data-launcher="icon"] .ssc-launch { background: transparent; box-shadow: 0 16px 40px color-mix(in srgb, var(--orb-b) 45%, transparent), 0 0 0 4px var(--ssc-surface); }
.ssc[data-launcher="icon"] .ssc-launch .ssc-orb { width: 100%; height: 100%; margin: 0; box-shadow: none; }
.ssc[data-launcher="icon"] .ssc-launch .ssc-orb svg { width: 24px !important; height: 24px !important; }
.ssc[data-launcher="icon"][data-glow="on"] .ssc-launch::before, .ssc[data-launcher="icon"][data-glow="on"] .ssc-launch::after { display: none; }
.ssc[data-launcher="icon"] .ssc-launch:hover { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .ssc-orb i { animation: none; } }

/* Chat window in a thin frame, as on cxmatic.com: white window, soft grey replies, dark shopper bubbles,
   product tiles with a "View product" pill, and a pill composer with a round send button. */
.ssc-panel { padding: 7px; background: var(--ssc-frame, #0B2912 url("cxmatic-green1.webp") center 40% / cover no-repeat); border: 0 !important; }
.ssc-win { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--ssc-surface);
  border-radius: calc(var(--ssc-radius) + 8px); box-shadow: 0 24px 60px -28px rgba(0,0,0,.55); }
.ssc-head { background: var(--ssc-band); border-bottom: 1px solid var(--ssc-line); padding: 12px 10px 12px 18px; }
.ssc-log { background: var(--ssc-surface); padding: 18px 16px; gap: 12px; }
.ssc-msg { padding: 12px 16px; font-size: 15px; line-height: 1.45; max-width: 86%; }
.ssc-msg.user { border-radius: 22px 22px 8px 22px; }
.ssc-msg.bot { background: var(--ssc-tint); border: 0; color: var(--ssc-text); border-radius: 22px 22px 22px 8px; }
.ssc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 380px) { .ssc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ssc-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.ssc-card:hover { box-shadow: none; transform: none; }
.ssc-card .ssc-img { position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px; background: var(--ssc-tint); }
.ssc-card .ssc-img img { width: 80%; height: 80%; transition: transform .6s var(--ssc-out); }
.ssc-card:hover .ssc-img img { transform: scale(1.05); }
.ssc-card .ssc-view { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; min-height: 30px; border-radius: 999px; background: #fff; color: #1a1a1a;
  font-family: var(--ssc-body-font); font-size: 12.5px; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: background-color .3s, color .3s; }
.ssc-card:hover .ssc-view { background: var(--ssc-ink); color: var(--ssc-on-ink); }
.ssc-card .ssc-body { padding: 8px 2px 0; gap: 2px; }
.ssc-card .ssc-name { font-size: 13.5px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssc-card .ssc-price { color: var(--ssc-text); font-size: 13.5px; }
.ssc-form { margin: 4px 14px 2px; padding: 5px 5px 5px 18px; align-items: center; background: var(--ssc-surface); border: 1px solid var(--ssc-line); border-radius: 999px; }
.ssc[data-corners="sharp"] .ssc-form { border-radius: 8px; }
.ssc-input { border: 0; background: transparent; padding: 10px 0; min-height: 40px; border-radius: 0; }
.ssc-input:focus, .ssc-input:focus-visible { border: 0; outline: none; box-shadow: none; }
.ssc-form:focus-within { border-color: var(--ssc-accent-2); }
.ssc-send { width: 42px; height: 42px; background: var(--ssc-ink); color: var(--ssc-on-ink); }
.ssc-foot { padding: 8px 14px 12px; font-size: 12px; }
