/* Carfitly Chat widget v0.3.0 */
.cfy-root {
  --cfy-accent: #0a8f55;
  --cfy-ink: #15211b;
  --cfy-muted: #68766e;
  --cfy-line: #e4e9e6;
  --cfy-soft: #f5f7f5;
  --cfy-white: #fff;
  --cfy-shadow: 0 24px 70px -20px rgba(21, 33, 27, .28), 0 6px 22px -12px rgba(21, 33, 27, .18);
  color: var(--cfy-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.cfy-root *, .cfy-root *::before, .cfy-root *::after { box-sizing: border-box; }
.cfy-root button, .cfy-root input, .cfy-root textarea { font: inherit; }
.cfy-root svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfy-root .cfy-avatar svg, .cfy-root .cfy-welcome-icon svg, .cfy-root .cfy-launcher-icon svg { fill: currentColor; stroke: none; }
.cfy-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Shell */
.cfy-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(21, 33, 27, .1);
  border-radius: 22px;
  box-shadow: var(--cfy-shadow);
  color: var(--cfy-ink);
}
.carfitly-inline .cfy-panel.cfy-full { max-width: 760px; margin: 0 auto; box-shadow: 0 18px 60px -26px rgba(21, 33, 27, .26); }
.cfy-panel.cfy-floating,
.cfy-panel.cfy-dropdown {
  position: fixed;
  z-index: 999999;
  width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 116px));
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .28s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .28s;
}
.cfy-panel.cfy-floating { right: 22px; bottom: 88px; }
.cfy-panel.cfy-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  height: min(600px, 76vh);
  transform-origin: top left;
  transform: translateY(-8px) scale(.985);
}
.cfy-panel.cfy-open { visibility: visible; pointer-events: auto; opacity: 1; transform: none; transition-delay: 0s; }

/* Header */
.cfy-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 14px 12px 16px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--cfy-line);
}
.cfy-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  color: #fff;
  background: var(--cfy-accent);
  box-shadow: 0 8px 18px -10px var(--cfy-accent);
}
.cfy-avatar svg { width: 21px; height: 21px; }
.cfy-head-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.cfy-head-copy strong { font-size: 14px; font-weight: 700; letter-spacing: -.012em; }
.cfy-head-copy small { display: flex; align-items: center; gap: 6px; margin-top: 1px; color: var(--cfy-muted); font-size: 11.5px; }
.cfy-head-copy small i, .cfy-launcher-copy small i { width: 6px; height: 6px; border-radius: 50%; background: #22a968; box-shadow: 0 0 0 3px rgba(34, 169, 104, .12); }
.cfy-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cfy-muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.cfy-icon-btn:hover { color: var(--cfy-ink); background: var(--cfy-soft); }
.cfy-icon-btn:focus-visible, .cfy-launcher:focus-visible, .cfy-sugg-chip:focus-visible, .cfy-send:focus-visible, .cfy-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--cfy-accent) 28%, transparent); outline-offset: 2px; }

/* Welcome state */
.cfy-msgs {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px;
  background: linear-gradient(180deg, #fafbfa 0%, #f5f7f5 100%);
  scrollbar-width: thin;
  scrollbar-color: #cdd5d0 transparent;
}
.cfy-welcome { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 10px 2px; animation: cfy-rise .35s ease both; }
.cfy-welcome-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--cfy-accent);
  background: color-mix(in srgb, var(--cfy-accent) 11%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cfy-accent) 16%, transparent);
}
.cfy-welcome-icon svg { width: 24px; height: 24px; }
.cfy-eyebrow { margin: 0 0 6px !important; color: var(--cfy-accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.cfy-welcome h2 { margin: 0 !important; max-width: 330px; color: var(--cfy-ink); font-size: 25px; font-weight: 740; line-height: 1.14; letter-spacing: -.035em; }
.cfy-welcome-copy { margin: 11px 0 21px !important; max-width: 350px; color: var(--cfy-muted); font-size: 13.5px; line-height: 1.55; }
.cfy-sugg { display: grid; gap: 8px; }
.cfy-sugg-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 45px;
  gap: 12px;
  padding: 10px 13px 10px 15px;
  border: 1px solid var(--cfy-line);
  border-radius: 13px;
  background: #fff;
  color: var(--cfy-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(21, 33, 27, .02);
  transition: border-color .17s ease, transform .17s ease, box-shadow .17s ease;
}
.cfy-sugg-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfy-sugg-chip svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--cfy-muted); transition: transform .17s ease, color .17s ease; }
.cfy-sugg-chip:hover { border-color: color-mix(in srgb, var(--cfy-accent) 42%, var(--cfy-line)); transform: translateY(-1px); box-shadow: 0 8px 24px -18px rgba(21, 33, 27, .35); }
.cfy-sugg-chip:hover svg { color: var(--cfy-accent); transform: translateX(2px); }

/* Conversation */
.cfy-conversation .cfy-msgs { display: flex; flex-direction: column; gap: 11px; justify-content: flex-start; }
.cfy-msg-row { display: flex; width: 100%; animation: cfy-rise .22s ease both; }
.cfy-msg-row.cfy-user { justify-content: flex-end; }
.cfy-msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  border: 1px solid var(--cfy-line);
  color: var(--cfy-ink);
  font-size: 13.5px;
  line-height: 1.52;
  box-shadow: 0 3px 14px -12px rgba(21, 33, 27, .2);
}
.cfy-msg.cfy-user { border: 0; border-radius: 16px 16px 5px 16px; background: var(--cfy-accent); color: #fff; box-shadow: 0 8px 20px -14px var(--cfy-accent); }
.cfy-msg.cfy-thinking { display: inline-flex; align-items: center; gap: 8px; color: var(--cfy-muted); }
.cfy-msg.cfy-err { color: #a62929; background: #fff5f4; border-color: #f1ceca; }
.cfy-dots { display: inline-flex; gap: 3px; }
.cfy-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cfy-accent); animation: cfy-dot 1.15s infinite; }
.cfy-dots i:nth-child(2) { animation-delay: .13s; }
.cfy-dots i:nth-child(3) { animation-delay: .26s; }
@keyframes cfy-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes cfy-rise { from { opacity: 0; transform: translateY(6px); } }

/* Product results */
.cfy-products { display: grid; width: 100%; gap: 8px; }
.cfy-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--cfy-line);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
  transition: border-color .17s ease, transform .17s ease, box-shadow .17s ease;
  animation: cfy-rise .25s ease both;
}
.cfy-card:hover { border-color: color-mix(in srgb, var(--cfy-accent) 45%, var(--cfy-line)); transform: translateY(-1px); box-shadow: 0 12px 28px -22px rgba(21, 33, 27, .45); }
.cfy-card-media { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 11px; background: var(--cfy-soft); }
.cfy-card-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cfy-card-body { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.cfy-card-name { overflow: hidden; color: var(--cfy-ink); font-size: 13px; font-weight: 680; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cfy-card-meta { overflow: hidden; color: var(--cfy-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.cfy-card-oe { display: inline-flex; margin-left: 4px; padding: 2px 6px; border-radius: 99px; color: var(--cfy-accent); background: color-mix(in srgb, var(--cfy-accent) 10%, #fff); font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.cfy-card-right { display: flex; align-items: center; gap: 7px; color: var(--cfy-muted); }
.cfy-card-price { color: var(--cfy-ink); font-size: 13px; font-weight: 750; white-space: nowrap; }
.cfy-card-right svg { width: 16px; height: 16px; transition: transform .17s ease; }
.cfy-card:hover .cfy-card-right svg { color: var(--cfy-accent); transform: translateX(2px); }

/* Composer */
.cfy-form { flex: 0 0 auto; padding: 12px 13px 11px; border-top: 1px solid var(--cfy-line); background: #fff; }
.cfy-compose { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid #d9dfdb; border-radius: 17px; background: #fff; transition: border-color .17s ease, box-shadow .17s ease; }
.cfy-compose:focus-within { border-color: color-mix(in srgb, var(--cfy-accent) 70%, #d9dfdb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cfy-accent) 12%, transparent); }
.cfy-input { flex: 1; min-width: 0; max-height: 104px; min-height: 38px; resize: none; overflow-y: auto; padding: 8px 0 7px !important; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--cfy-ink) !important; font-size: 13.5px !important; line-height: 1.45 !important; }
.cfy-input::placeholder { color: #929d97; opacity: 1; }
.cfy-send { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border: 0; border-radius: 12px; background: var(--cfy-accent); color: #fff; cursor: pointer; transition: transform .16s ease, opacity .16s ease, filter .16s ease; }
.cfy-send svg { width: 18px; height: 18px; }
.cfy-send:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.cfy-send:disabled { opacity: .28; cursor: default; }
.cfy-compose-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 7px; color: #89958e; font-size: 10px; }
.cfy-compose-note svg { width: 12px; height: 12px; }

/* Progressive-disclosure launcher */
.cfy-inline-launcher { position: relative; width: 100%; max-width: 560px; }
.cfy-float { position: fixed; right: 22px; bottom: 20px; z-index: 999998; }
.cfy-launcher {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 244px;
  min-height: 58px;
  padding: 8px 10px 8px 9px;
  border: 1px solid rgba(21, 33, 27, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  color: var(--cfy-ink);
  text-align: left;
  box-shadow: 0 14px 40px -18px rgba(21, 33, 27, .38), 0 3px 12px -7px rgba(21, 33, 27, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cfy-inline-launcher .cfy-launcher { width: 100%; max-width: 560px; }
.cfy-launcher:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cfy-accent) 36%, rgba(21, 33, 27, .1)); box-shadow: 0 18px 48px -20px rgba(21, 33, 27, .42), 0 4px 14px -8px rgba(21, 33, 27, .2); }
.cfy-launcher-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; background: var(--cfy-accent); color: #fff; }
.cfy-launcher-icon svg { width: 20px; height: 20px; }
.cfy-launcher-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.cfy-launcher-copy strong { overflow: hidden; font-size: 13.5px; font-weight: 720; letter-spacing: -.012em; text-overflow: ellipsis; white-space: nowrap; }
.cfy-launcher-copy small { display: flex; align-items: center; gap: 6px; margin-top: 1px; color: var(--cfy-muted); font-size: 10.5px; }
.cfy-launcher-copy small i { width: 5px; height: 5px; box-shadow: none; }
.cfy-launcher-chevron { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; color: var(--cfy-muted); background: var(--cfy-soft); }
.cfy-launcher-chevron svg { width: 17px; height: 17px; transition: transform .22s ease; }
.cfy-launcher.cfy-active .cfy-launcher-chevron svg { transform: rotate(180deg); }

@media (max-width: 600px) {
  body.cfy-sheet-open { overflow: hidden; }
  .cfy-float { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .cfy-float .cfy-launcher { min-width: 0; min-height: 54px; border-radius: 17px; }
  .cfy-float .cfy-launcher-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .cfy-float .cfy-launcher-copy { display: none; }
  .cfy-float .cfy-launcher-chevron { background: transparent; width: 22px; flex-basis: 22px; }
  .cfy-panel.cfy-floating, .cfy-panel.cfy-dropdown {
    position: fixed;
    inset: max(10px, env(safe-area-inset-top)) 10px calc(76px + env(safe-area-inset-bottom)) 10px;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 22px;
    transform-origin: bottom center;
    transform: translateY(18px) scale(.99);
  }
  .cfy-panel.cfy-open { transform: none; }
  .cfy-panel.cfy-full { height: min(680px, 84dvh); border-radius: 18px; }
  .cfy-head { min-height: 64px; }
  .cfy-msgs { padding: 18px 15px; }
  .cfy-welcome { justify-content: flex-start; padding-top: 12px; }
  .cfy-welcome-icon { margin-bottom: 17px; }
  .cfy-welcome h2 { font-size: 23px; }
  .cfy-welcome-copy { margin-bottom: 17px !important; }
  .cfy-msg { max-width: 89%; }
  .cfy-form { padding-right: 10px; padding-left: 10px; padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  .cfy-card { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 9px; padding: 8px; }
  .cfy-card-media { width: 46px; height: 46px; }
  .cfy-card-right svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cfy-root *, .cfy-root *::before, .cfy-root *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- v0.3.1 hardening: survive theme CSS resets (invisible icon fix) ---- */
.cfy-root svg { width: 20px; height: 20px; display: block; }
.cfy-root .cfy-close svg,
.cfy-root .cfy-send svg,
.cfy-root .cfy-launcher-chevron svg,
.cfy-root .cfy-compose-note svg,
.cfy-root .cfy-card-right svg,
.cfy-root .cfy-sugg-chip svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.cfy-root .cfy-avatar svg,
.cfy-root .cfy-welcome-icon svg,
.cfy-root .cfy-launcher-icon svg {
  fill: currentColor !important;
  stroke: none !important;
}
.cfy-root .cfy-send { color: #fff !important; }
.cfy-root .cfy-send:disabled { color: #93a89b !important; }
.cfy-root .cfy-close { color: var(--cfy-muted, #68766e) !important; }

/* branding (free plan attribution - removed on Pro) */
.cfy-root .cfy-branding { color: var(--cfy-accent, #0a8f55); font-weight: 600; text-decoration: none; }
.cfy-root .cfy-branding:hover { text-decoration: underline; }

/* ---- design-system compliance (MASTER.md 2026-08-11) ---- */
/* branding link: logo mark instead of emoji, sized inline */
.cfy-root .cfy-branding { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; }
.cfy-root .cfy-branding svg { width: 12px; height: 12px; fill: currentColor !important; stroke: none !important; display: inline-block; }
/* WCAG: small green text uses darkened accent (bright green passes only for large text/icons) */
.cfy-root .cfy-eyebrow,
.cfy-root .cfy-branding,
.cfy-root .cfy-card-sold,
.cfy-root .cfy-card-oe {
  color: color-mix(in srgb, var(--cfy-accent) 78%, #063018);
}

/* ---- v0.4.4 UX pass: single logo, dropdown fits launcher, compact welcome ---- */
.cfy-panel.cfy-dropdown { width: 100%; height: min(520px, 72vh); }
.cfy-panel { height: 520px; }
.cfy-head { min-height: 56px; padding: 10px 14px 10px 18px; }
.cfy-welcome { padding: 8px 2px 4px; }
.cfy-welcome .cfy-welcome-copy { font-size: 13.5px; color: var(--cfy-muted); margin: 0 0 12px; }
.cfy-sugg { gap: 6px; }
.cfy-sugg-chip { padding: 9px 13px; font-size: 13px; border-radius: 11px; }

/* ---- v0.4.5: bigger launcher logo ---- */
.cfy-launcher-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; }
.cfy-launcher-icon svg { width: 30px; height: 30px; }
.cfy-launcher { gap: 14px; }

/* ---- v0.4.7: no dead space before conversation starts ---- */
.cfy-welcome { min-height: 0; justify-content: flex-start; padding: 2px 2px 0; }
.cfy-panel.cfy-dropdown:not(.cfy-conversation),
.cfy-panel.cfy-floating:not(.cfy-conversation) { height: auto; }
.cfy-panel.cfy-dropdown:not(.cfy-conversation) .cfy-msgs,
.cfy-panel.cfy-floating:not(.cfy-conversation) .cfy-msgs { flex: 0 0 auto; padding: 18px 20px; }
.cfy-panel.cfy-dropdown.cfy-conversation { height: min(520px, 72vh); }
.cfy-panel.cfy-floating.cfy-conversation { height: min(580px, calc(100dvh - 116px)); }

/* ---- v0.5.0 Pro: in-chat add to cart ---- */
.cfy-root .cfy-card-hold { display: flex; flex-direction: column; gap: 6px; }
.cfy-root .cfy-add {
  border: 0; border-radius: 10px; padding: 9px 12px; cursor: pointer;
  background: var(--cfy-accent); color: #fff; font-size: 13px; font-weight: 700;
  transition: filter .2s ease, background .2s ease;
}
.cfy-root .cfy-add:hover { filter: brightness(.92); }
.cfy-root .cfy-add:disabled { cursor: default; }
.cfy-root .cfy-add.cfy-added { background: color-mix(in srgb, var(--cfy-accent) 14%, #fff); color: color-mix(in srgb, var(--cfy-accent) 78%, #063018); }

/* ---- v0.5.1: compact add-to-cart pill (replaces the heavy block button) ---- */
.cfy-root .cfy-card-hold { gap: 5px; }
.cfy-root .cfy-add {
  align-self: flex-end;
  display: inline-flex !important; align-items: center; gap: 6px;
  width: auto; padding: 6px 12px; margin: 0;
  background: #fff !important;
  color: color-mix(in srgb, var(--cfy-accent) 78%, #063018) !important;
  border: 1px solid color-mix(in srgb, var(--cfy-accent) 40%, #d8ded9) !important;
  border-radius: 999px !important;
  font-size: 12.5px !important; font-weight: 700 !important; line-height: 1 !important;
  box-shadow: none !important; text-shadow: none !important; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.cfy-root .cfy-add svg { width: 12px; height: 12px; stroke: currentColor !important; fill: none !important; stroke-width: 2.6; stroke-linecap: round; }
.cfy-root .cfy-add:hover { background: color-mix(in srgb, var(--cfy-accent) 9%, #fff) !important; border-color: var(--cfy-accent) !important; }
.cfy-root .cfy-add.cfy-added { background: color-mix(in srgb, var(--cfy-accent) 12%, #fff) !important; border-color: transparent !important; cursor: default; }

/* ---- v0.5.1 theme isolation: widget must look identical in ANY theme ---- */
.cfy-root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif !important; }
.cfy-root * { font-family: inherit !important; letter-spacing: normal !important; text-transform: none !important; text-shadow: none !important; }
.cfy-root a, .cfy-root a:hover, .cfy-root a:focus, .cfy-root a:visited { text-decoration: none !important; border-bottom: 0 !important; }
.cfy-root .cfy-card, .cfy-root .cfy-card:visited, .cfy-root .cfy-card:hover { color: var(--cfy-ink, #15211b) !important; background: #fff !important; }
.cfy-root .cfy-card-name { color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-card-price { color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-msg.cfy-user { background: var(--cfy-accent) !important; color: #fff !important; border: 0 !important; }
.cfy-root .cfy-input {
  background: #fff !important; color: var(--cfy-ink, #15211b) !important;
  border-radius: inherit; box-shadow: none !important; margin: 0 !important;
}
.cfy-root .cfy-send { background: var(--cfy-accent) !important; border: 0 !important; box-shadow: none !important; }
.cfy-root .cfy-send:hover { background: color-mix(in srgb, var(--cfy-accent) 85%, #000) !important; }
.cfy-root .cfy-icon-btn, .cfy-root .cfy-launcher { box-shadow: none; text-shadow: none !important; }
.cfy-root .cfy-launcher, .cfy-root .cfy-launcher:hover { color: var(--cfy-ink, #15211b) !important; }
.cfy-root button { margin: 0; }
.cfy-root img.cfy-card-img { box-shadow: none !important; border: 0 !important; }

/* ---- v0.5.2: icon & control pinning (heavy themes hid icons / recolored buttons) ---- */
.cfy-root .cfy-panel svg, .cfy-root .cfy-launcher svg {
  display: inline-block !important; visibility: visible !important; opacity: 1 !important; flex: 0 0 auto;
}
.cfy-root .cfy-icon-btn svg, .cfy-root .cfy-send svg, .cfy-root .cfy-launcher-chevron svg, .cfy-root .cfy-sugg-chip svg {
  width: 18px !important; height: 18px !important;
  stroke: currentColor !important; fill: none !important;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.cfy-root .cfy-compose-note svg { width: 14px !important; height: 14px !important; stroke: currentColor !important; fill: none !important; }
.cfy-root .cfy-launcher-icon svg { fill: currentColor !important; stroke: none !important; }
.cfy-root .cfy-icon-btn {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: var(--cfy-muted, #68766e) !important;
  display: inline-grid !important; place-items: center !important;
  min-width: 34px; min-height: 34px; border-radius: 10px !important; padding: 0 !important;
}
.cfy-root .cfy-icon-btn:hover { background: rgba(14, 16, 15, 0.06) !important; color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-send {
  color: #fff !important;
  display: inline-grid !important; place-items: center !important; padding: 0 !important;
}
.cfy-root .cfy-send:disabled { background: color-mix(in srgb, var(--cfy-accent) 40%, #c9d3cc) !important; color: #fff !important; }
.cfy-root .cfy-launcher {
  background: #fff !important;
  border: 1px solid var(--cfy-line, #e3e8e4) !important;
  color: var(--cfy-ink, #15211b) !important;
}
.cfy-root .cfy-head { background: #fff !important; }
.cfy-root .cfy-panel { border: 1px solid var(--cfy-line, #e6eae6) !important; }

/* ---- v0.5.3 polish: composer alignment, add-pill hugs its card, dock position ---- */
.cfy-root .cfy-compose { display: flex !important; align-items: center !important; }
.cfy-root .cfy-input { display: block !important; margin: 0 !important; height: auto; border-radius: 0 !important; line-height: 1.4 !important; padding: 9px 0 8px !important; }
.cfy-root .cfy-input::placeholder { color: #929d97 !important; opacity: 1 !important; }
.cfy-root .cfy-card-hold { gap: 0; }
.cfy-root .cfy-add { margin: 4px 6px 0 0 !important; padding: 5px 11px !important; font-size: 12px !important; }
.cfy-root .cfy-add svg { width: 11px !important; height: 11px !important; }
.cfy-root.cfy-float.cfy-pos-left { right: auto !important; left: 22px !important; }
@media (max-width: 640px) { .cfy-root.cfy-float.cfy-pos-left { left: 12px !important; } }

/* ---- v0.5.4 Pro colors: all pins route through customizable variables ---- */
.cfy-root .cfy-panel { background: var(--cfy-bg, #fff) !important; color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-head { background: var(--cfy-bg, #fff) !important; }
.cfy-root .cfy-launcher { background: var(--cfy-bg, #fff) !important; }
.cfy-root .cfy-form { background: var(--cfy-bg, #fff); }
.cfy-root .cfy-msgs { background: var(--cfy-surface, linear-gradient(180deg, #fafbfa 0%, #f5f7f5 100%)) !important; }
.cfy-root .cfy-msg.cfy-bot { background: var(--cfy-bg, #fff) !important; color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-msg.cfy-user { background: var(--cfy-user, var(--cfy-accent)) !important; color: #fff !important; }
.cfy-root .cfy-card, .cfy-root .cfy-card:visited, .cfy-root .cfy-card:hover { background: var(--cfy-bg, #fff) !important; color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-card-name, .cfy-root .cfy-card-price { color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-input { color: var(--cfy-ink, #15211b) !important; }
.cfy-root .cfy-add { background: var(--cfy-bg, #fff) !important; }
.cfy-root .cfy-head-copy strong { color: var(--cfy-ink, #15211b); }

/* v0.7: understanding strip - detected vehicle, assumption, confidence */
.cfy-understand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 2px 2px; }
.cfy-u-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--cfy-line); border-radius: 999px; background: var(--cfy-white); font-size: 12px; font-weight: 600; color: var(--cfy-ink); }
.cfy-u-chip svg { width: 15px; height: 15px; }
.cfy-u-conf { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.cfy-u-verified { background: var(--cfy-accent); color: #fff; }
.cfy-u-high { background: rgba(10, 143, 85, .12); color: var(--cfy-accent); }
.cfy-u-medium { background: #fdf3e3; color: #96671d; }
.cfy-u-low { background: #fdeaea; color: #b03636; }
.cfy-u-note { flex-basis: 100%; margin: 2px 4px 0; font-size: 12px; line-height: 1.5; color: var(--cfy-muted); }
