/* ============================================================
   WP AI Engineer — Chat Widget v2
   Themes: light (default) | dark | chatgpt
   ============================================================ */

/* Scoped resets — host themes (Elementor, etc.) must not override widget UI */
#rgo-win,
#rgo-win *,
#rgo-bubble,
#rgo-bubble * {
  box-sizing: border-box;
}
#rgo-win button,
#rgo-bubble {
  font-family: var(--rgo-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  -webkit-appearance: none;
  appearance: none;
}

/* ── CSS variables — light theme (default) ──────────────────── */
#rgo-win {
  --rgo-bg:           #ffffff;
  --rgo-bg-msgs:      #f3f4f6;
  --rgo-bg-bot-msg:   #ffffff;
  --rgo-bg-user-msg:  var(--rgo-brand, #2563eb);
  --rgo-ink:          #111827;
  --rgo-ink-light:    #6b7280;
  --rgo-border:       #e5e7eb;
  --rgo-input-bg:     #ffffff;
  --rgo-input-ink:    #111827;
  --rgo-input-placeholder: #6b7280;
  --rgo-header-bg:    var(--rgo-brand, #2563eb);
  --rgo-header-ink:   #ffffff;
  --rgo-shadow:       0 12px 40px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  --rgo-radius:       16px;
  --rgo-radius-msg:   14px;
  --rgo-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#rgo-win.rgo-theme-dark,
#rgo-win.rgo-theme-chatgpt,
#rgo-win.rgo-theme-obsidian,
#rgo-win.rgo-theme-prism,
#rgo-win.rgo-theme-vertex {
  color-scheme: dark;
}

/* ── dark theme ─────────────────────────────────────────────── */
#rgo-win.rgo-theme-dark {
  --rgo-bg:           #1e1e2e;
  --rgo-bg-msgs:      #181825;
  --rgo-bg-bot-msg:   #2a2a3c;
  --rgo-bg-user-msg:  var(--rgo-brand, #2563eb);
  --rgo-ink:          #cdd6f4;
  --rgo-ink-light:    #6c7086;
  --rgo-border:       #313244;
  --rgo-input-bg:     #313244;
  --rgo-input-ink:    #f3f4f6;
  --rgo-input-placeholder: #9ca3af;
  --rgo-header-bg:    #11111b;
  --rgo-header-ink:   #cdd6f4;
  --rgo-shadow:       0 12px 40px rgba(0,0,0,0.5);
}

/* ── chatgpt theme ──────────────────────────────────────────── */
#rgo-win.rgo-theme-chatgpt {
  --rgo-bg:           #212121;
  --rgo-bg-msgs:      #212121;
  --rgo-bg-bot-msg:   transparent;
  --rgo-bg-user-msg:  #2f2f2f;
  --rgo-ink:          #ececec;
  --rgo-ink-light:    #8e8ea0;
  --rgo-border:       #383838;
  --rgo-input-bg:     #3a3a3a;
  --rgo-input-ink:    #ffffff;
  --rgo-input-placeholder: #a3a3a3;
  --rgo-header-bg:    #212121;
  --rgo-header-ink:   #ececec;
  --rgo-shadow:       0 12px 40px rgba(0,0,0,0.6);
}

/* ── minimal theme (clean, borderless, white on white) ──────── */
#rgo-win.rgo-theme-minimal {
  --rgo-bg:           #fafafa;
  --rgo-bg-msgs:      #fafafa;
  --rgo-bg-bot-msg:   #f0f0f0;
  --rgo-bg-user-msg:  var(--rgo-brand, #2563eb);
  --rgo-ink:          #1a1a1a;
  --rgo-ink-light:    #888;
  --rgo-border:       #e8e8e8;
  --rgo-input-bg:     #ffffff;
  --rgo-header-bg:    #ffffff;
  --rgo-header-ink:   #1a1a1a;
  --rgo-shadow:       0 4px 24px rgba(0,0,0,0.10);
  --rgo-radius:       12px;
  --rgo-radius-msg:   10px;
}
#rgo-win.rgo-theme-minimal .rgo-header {
  border-bottom: 1px solid var(--rgo-border);
}
#rgo-win.rgo-theme-minimal .rgo-online-dot {
  background: var(--rgo-brand, #2563eb);
}
#rgo-win.rgo-theme-minimal .rgo-online-dot::after {
  border-color: var(--rgo-brand, #2563eb);
}
#rgo-win.rgo-theme-minimal .rgo-msg-bot {
  box-shadow: none;
  border: 1px solid var(--rgo-border);
}

/* ── ocean theme (free) ─────────────────────────────────────── */
#rgo-win.rgo-theme-ocean {
  --rgo-bg: #0c1929;
  --rgo-bg-msgs: #0a1520;
  --rgo-bg-bot-msg: #132337;
  --rgo-bg-user-msg: #0ea5e9;
  --rgo-ink: #e0f2fe;
  --rgo-ink-light: #7dd3fc;
  --rgo-border: #1e3a5f;
  --rgo-input-bg: #132337;
  --rgo-input-ink: #f0f9ff;
  --rgo-input-placeholder: #7dd3fc;
  --rgo-header-bg: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
  --rgo-header-ink: #ffffff;
  --rgo-shadow: 0 16px 48px rgba(14,165,233,0.25);
}
#rgo-win.rgo-theme-ocean .rgo-header {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
}

/* ── aurora theme (pro) ─────────────────────────────────────── */
#rgo-win.rgo-theme-aurora {
  --rgo-bg: #0f0a1a;
  --rgo-bg-msgs: #0d0816;
  --rgo-bg-bot-msg: rgba(139,92,246,0.12);
  --rgo-bg-user-msg: linear-gradient(135deg, #8b5cf6, #ec4899);
  --rgo-ink: #f5f3ff;
  --rgo-ink-light: #c4b5fd;
  --rgo-border: rgba(139,92,246,0.35);
  --rgo-input-bg: #1a1028;
  --rgo-input-ink: #faf5ff;
  --rgo-input-placeholder: #a78bfa;
  --rgo-header-ink: #ffffff;
  --rgo-shadow: 0 20px 50px rgba(139,92,246,0.35);
}
#rgo-win.rgo-theme-aurora .rgo-header {
  background: linear-gradient(120deg, #4c1d95 0%, #7c3aed 40%, #ec4899 100%);
}
#rgo-win.rgo-theme-aurora .rgo-msg-user {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

/* ── midnight theme (pro) ───────────────────────────────────── */
#rgo-win.rgo-theme-midnight {
  --rgo-bg: #0a0e17;
  --rgo-bg-msgs: #080c14;
  --rgo-bg-bot-msg: #141c2e;
  --rgo-bg-user-msg: #d4a853;
  --rgo-ink: #f1f5f9;
  --rgo-ink-light: #94a3b8;
  --rgo-border: #1e293b;
  --rgo-input-bg: #141c2e;
  --rgo-input-ink: #f8fafc;
  --rgo-input-placeholder: #94a3b8;
  --rgo-header-ink: #fef3c7;
  --rgo-shadow: 0 18px 44px rgba(0,0,0,0.55);
}
#rgo-win.rgo-theme-midnight .rgo-header {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(212,168,83,0.35);
}
#rgo-win.rgo-theme-midnight .rgo-msg-user {
  background: linear-gradient(135deg, #b8860b, #d4a853);
  color: #0a0e17;
}

/* ── neon theme (pro) ───────────────────────────────────────── */
#rgo-win.rgo-theme-neon {
  --rgo-bg: #050505;
  --rgo-bg-msgs: #050505;
  --rgo-bg-bot-msg: #111111;
  --rgo-bg-user-msg: #39ff14;
  --rgo-ink: #e8ffe8;
  --rgo-ink-light: #6ee76e;
  --rgo-border: #1a3d1a;
  --rgo-input-bg: #0d0d0d;
  --rgo-input-ink: #d4ffd4;
  --rgo-input-placeholder: #4ade80;
  --rgo-header-ink: #39ff14;
  --rgo-shadow: 0 0 40px rgba(57,255,20,0.15), 0 12px 40px rgba(0,0,0,0.8);
}
#rgo-win.rgo-theme-neon .rgo-header {
  background: #050505;
  border-bottom: 1px solid rgba(57,255,20,0.4);
  box-shadow: 0 0 20px rgba(57,255,20,0.12);
}
#rgo-win.rgo-theme-neon .rgo-msg-user {
  background: #39ff14;
  color: #041004;
  box-shadow: 0 0 16px rgba(57,255,20,0.35);
}

/* ── rose theme (pro) ───────────────────────────────────────── */
#rgo-win.rgo-theme-rose {
  --rgo-bg: #1a0a10;
  --rgo-bg-msgs: #16080d;
  --rgo-bg-bot-msg: #2a1220;
  --rgo-bg-user-msg: #fb7185;
  --rgo-ink: #ffe4e6;
  --rgo-ink-light: #fda4af;
  --rgo-border: #4c1d2e;
  --rgo-input-bg: #2a1220;
  --rgo-input-ink: #fff1f2;
  --rgo-input-placeholder: #fda4af;
  --rgo-header-ink: #ffffff;
  --rgo-shadow: 0 16px 44px rgba(251,113,133,0.22);
}
#rgo-win.rgo-theme-rose .rgo-header {
  background: linear-gradient(135deg, #9f1239 0%, #fb7185 100%);
}

/* ── glass theme (pro) ──────────────────────────────────────── */
#rgo-win.rgo-theme-glass {
  --rgo-bg: rgba(15,23,42,0.72);
  --rgo-bg-msgs: rgba(15,23,42,0.55);
  --rgo-bg-bot-msg: rgba(255,255,255,0.08);
  --rgo-bg-user-msg: rgba(99,102,241,0.85);
  --rgo-ink: #f8fafc;
  --rgo-ink-light: #cbd5e1;
  --rgo-border: rgba(255,255,255,0.14);
  --rgo-input-bg: rgba(255,255,255,0.1);
  --rgo-input-ink: #ffffff;
  --rgo-input-placeholder: #94a3b8;
  --rgo-header-ink: #ffffff;
  --rgo-shadow: 0 24px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#rgo-win.rgo-theme-glass .rgo-header {
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
#rgo-win.rgo-theme-glass .rgo-msg-bot {
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

/* ── obsidian theme (pro) — editorial luxury, platinum on charcoal ─ */
#rgo-win.rgo-theme-obsidian {
  --rgo-bg: #0a0a0c;
  --rgo-bg-msgs: #08080a;
  --rgo-bg-bot-msg: #141418;
  --rgo-bg-user-msg: linear-gradient(135deg, #c9b896 0%, #a8956c 100%);
  --rgo-ink: #e8e6e3;
  --rgo-ink-light: #9a9894;
  --rgo-border: #2a2a32;
  --rgo-input-bg: #141418;
  --rgo-input-ink: #f5f4f2;
  --rgo-input-placeholder: #7a7874;
  --rgo-header-ink: #f5f4f2;
  --rgo-shadow: 0 24px 56px rgba(0,0,0,0.72);
}
#rgo-win.rgo-theme-obsidian .rgo-header {
  background: linear-gradient(180deg, #1a1a1f 0%, #0a0a0c 100%);
  border-bottom: 1px solid rgba(201,184,150,0.22);
}
#rgo-win.rgo-theme-obsidian .rgo-msg-user {
  background: linear-gradient(135deg, #c9b896, #a8956c);
  color: #1a1814;
  box-shadow: 0 4px 18px rgba(201,184,150,0.18);
}
#rgo-win.rgo-theme-obsidian .rgo-msg-bot {
  border: 1px solid rgba(201,184,150,0.12);
}

/* ── silk theme (pro) — warm concierge, champagne ivory ─────────── */
#rgo-win.rgo-theme-silk {
  --rgo-bg: #f7f3ed;
  --rgo-bg-msgs: #f3efe8;
  --rgo-bg-bot-msg: #ffffff;
  --rgo-bg-user-msg: #3d3429;
  --rgo-ink: #3d3429;
  --rgo-ink-light: #7a6f62;
  --rgo-border: #e0d5c4;
  --rgo-input-bg: #ffffff;
  --rgo-input-ink: #3d3429;
  --rgo-input-placeholder: #a89888;
  --rgo-header-ink: #3d3429;
  --rgo-shadow: 0 16px 44px rgba(61,52,41,0.14);
  --rgo-radius: 18px;
  --rgo-radius-msg: 16px;
}
#rgo-win.rgo-theme-silk .rgo-header {
  background: linear-gradient(135deg, #e8dfd0 0%, #f5efe6 100%);
  border-bottom: 1px solid #e0d5c4;
}
#rgo-win.rgo-theme-silk .rgo-msg-user {
  background: #3d3429;
  color: #f7f3ed;
}
#rgo-win.rgo-theme-silk .rgo-online-dot {
  background: #6b8f71;
}
#rgo-win.rgo-theme-silk .rgo-online-dot::after {
  border-color: #6b8f71;
}

/* ── prism theme (pro) — iridescent refraction on deep space ────── */
#rgo-win.rgo-theme-prism {
  --rgo-bg: #0c0e14;
  --rgo-bg-msgs: #0a0c12;
  --rgo-bg-bot-msg: rgba(255,255,255,0.06);
  --rgo-bg-user-msg: linear-gradient(135deg, #6366f1 0%, #a855f7 45%, #ec4899 100%);
  --rgo-ink: #f1f5f9;
  --rgo-ink-light: #a5b4fc;
  --rgo-border: rgba(168,85,247,0.35);
  --rgo-input-bg: rgba(255,255,255,0.07);
  --rgo-input-ink: #ffffff;
  --rgo-input-placeholder: #94a3b8;
  --rgo-header-ink: #ffffff;
  --rgo-shadow: 0 0 48px rgba(99,102,241,0.22), 0 20px 50px rgba(0,0,0,0.65);
}
#rgo-win.rgo-theme-prism .rgo-header {
  background: linear-gradient(120deg, #4338ca 0%, #7c3aed 35%, #db2777 70%, #d97706 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
#rgo-win.rgo-theme-prism .rgo-msg-user {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  box-shadow: 0 0 20px rgba(168,85,247,0.35);
}
#rgo-win.rgo-theme-prism .rgo-msg-bot {
  border: 1px solid rgba(168,85,247,0.25);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.06));
}

/* ── vertex theme (pro) — architectural mono + lime accent ──────── */
#rgo-win.rgo-theme-vertex {
  --rgo-bg: #111111;
  --rgo-bg-msgs: #0e0e0e;
  --rgo-bg-bot-msg: #1a1a1a;
  --rgo-bg-user-msg: #9cff3b;
  --rgo-ink: #f5f5f5;
  --rgo-ink-light: #a3a3a3;
  --rgo-border: #2a2a2a;
  --rgo-input-bg: #1a1a1a;
  --rgo-input-ink: #ffffff;
  --rgo-input-placeholder: #737373;
  --rgo-header-ink: #9cff3b;
  --rgo-shadow: 0 20px 48px rgba(0,0,0,0.75);
  --rgo-radius: 10px;
  --rgo-radius-msg: 8px;
}
#rgo-win.rgo-theme-vertex .rgo-header {
  background: #111111;
  border-bottom: 2px solid #9cff3b;
}
#rgo-win.rgo-theme-vertex .rgo-msg-user {
  background: #9cff3b;
  color: #0a0a0a;
  border-radius: 8px 8px 2px 8px;
  font-weight: 500;
}
#rgo-win.rgo-theme-vertex .rgo-msg-bot {
  border: 1px solid #2a2a2a;
  border-radius: 8px 8px 8px 2px;
}
#rgo-win.rgo-theme-vertex .rgo-online-dot {
  background: #9cff3b;
  box-shadow: 0 0 8px rgba(156,255,59,0.6);
}
#rgo-win.rgo-theme-vertex .rgo-online-dot::after {
  border-color: #9cff3b;
}

/* Read-more link under bot replies */
.rgo-read-more {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rgo-brand, #2563eb);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--rgo-brand-rgb, 37,99,235), 0.35);
  transition: color 0.15s, border-color 0.15s;
}
.rgo-read-more:hover {
  color: var(--rgo-ink);
  border-bottom-color: var(--rgo-brand, #2563eb);
}

/* ── Bubble ─────────────────────────────────────────────────── */
#rgo-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483640;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--rgo-brand, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--rgo-brand-rgb, 37,99,235), 0.45);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  animation: rgo-pop-in 0.4s cubic-bezier(.34,1.56,.64,1) both;
}
#rgo-bubble {
  /* Subtle premium gradient + soft depth on the launcher. */
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.22), transparent 60%), var(--rgo-brand, #2563eb);
  overflow: visible;
}
#rgo-bubble:hover  { transform: scale(1.1); box-shadow: 0 8px 28px rgba(var(--rgo-brand-rgb, 37,99,235), 0.60); }
#rgo-bubble:active { transform: scale(0.96); }
/* Preset icons float on their own — disable bubble hover scale so no box appears. */
#rgo-bubble.rgo-style-preset:hover  { transform: none !important; box-shadow: none !important; }
#rgo-bubble.rgo-style-preset:active { transform: scale(0.97) !important; }
#rgo-bubble.rgo-left { right: auto; left: 24px; }
#rgo-bubble.rgo-bubble-hidden { display: none; }
/* While the chat window is open, hide the launcher entirely. The window has its
   own ✕ close button, so a second floating close-blob just looked like a broken
   gray oval. On mobile the window is full-screen, so the launcher must go away. */
#rgo-bubble.rgo-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.6);
}

/* ── Animated AI-agent mascot ───────────────────────────────── */
.rgo-bot { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rgo-bot-svg { color: #fff; position: relative; z-index: 1; animation: rgo-bot-float 3.4s ease-in-out infinite; transform-origin: 50% 60%; }
.rgo-bot-glow {
  position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 70%);
  animation: rgo-bot-glow 2.6s ease-in-out infinite;
}
.rgo-bot-eye { transform-origin: center; animation: rgo-bot-blink 5s infinite; }
.rgo-bot-eye-r { animation-delay: .08s; }

/* One-time attention nudge a few seconds after load (added/removed by JS). */
#rgo-bubble.rgo-attn { animation: rgo-bot-nudge 0.9s cubic-bezier(.36,.07,.19,.97) 2; }

/* When the chat is open, the launcher becomes a calm close button. */
#rgo-bubble.rgo-open .rgo-bot-svg,
#rgo-bubble.rgo-open .rgo-bot-glow { animation: none; }

@keyframes rgo-bot-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes rgo-bot-glow  { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.12); } }
@keyframes rgo-bot-blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes rgo-bot-nudge { 0%,100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08) rotate(-6deg); } 60% { transform: scale(1.08) rotate(6deg); } }

/* ── Orb style (gradient sparkle) ──────────────────────────── */
/* A vivid, self-contained gradient orb that reads clearly on ANY brand
   colour (it no longer relies on faint white-on-brand contrast, which looked
   blank when the brand colour was light). The orb paints its own multi-stop
   gradient fill, a brighter spinning swirl, and a soft outer glow. */
.rgo-orb {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  /* Solid indigo fallback FIRST, so if conic-gradient ever fails to paint the
     orb is still a clean colored circle (never an empty gray blob). */
  background: #6366f1;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), transparent 55%),
    conic-gradient(from 210deg, #6366f1, #a855f7, #ec4899, #f59e0b, #22d3ee, #6366f1);
}
.rgo-orb-swirl {
  position: absolute; inset: -10%; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255,255,255,0.85), rgba(255,255,255,0.05),
    rgba(255,255,255,0.6),  rgba(255,255,255,0.05),
    rgba(255,255,255,0.85));
  opacity: .55; mix-blend-mode: screen;
  animation: rgo-orb-spin 5s linear infinite;
}
.rgo-orb-spark {
  position: relative; z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  animation: rgo-bot-float 3.4s ease-in-out infinite;
}
@keyframes rgo-orb-spin { to { transform: rotate(360deg); } }
/* Let the orb's own gradient show instead of the flat brand fill behind it.
   Class-based rule (robust, works in every browser) + :has() enhancement. */
#rgo-bubble.rgo-style-orb,
#rgo-bubble:has(.rgo-orb) { background: #1e1b4b; }

/* Custom logo launcher — transparent, image floats (same as presets). */
/* .rgo-logo-img is kept for any legacy references but now uses preset-img sizing. */
.rgo-logo-img {
  width: 90px !important; height: 90px !important;
  max-width: none !important; max-height: none !important;
  min-width: 90px !important; min-height: 90px !important;
  box-sizing: content-box !important;
  object-fit: contain !important;
  display: block !important; opacity: 1 !important; visibility: visible !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28));
  animation: rgo-bot-float 3.6s ease-in-out infinite;
}

/* ── Bundled premium image presets (preset-1 … preset-6) ───── */
/* Each preset is a transparent PNG that floats with a soft glow. The launcher
   background is neutralised (the art carries its own colored shape), and the
   bubble lets the icon slightly overflow for a richer "floating" look. */
.rgo-preset { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rgo-preset-svg {
  position: relative; z-index: 1;
  width: 72px !important;
  height: 72px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28));
  animation: rgo-bot-float 3.6s ease-in-out infinite;
}
.rgo-preset-img {
  position: relative; z-index: 1;
  /* Explicit PIXEL size with !important — immune to Elementor/theme
     `img { height:auto !important; max-width:100% !important }` resets.
     90px makes the icon feel big and floating without a chip behind it. */
  width: 90px !important;
  height: 90px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 90px !important;
  min-height: 90px !important;
  box-sizing: content-box !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  vertical-align: middle;
  /* CSS background-image twin set inline by JS — paints even if lazy-loaders blank src. */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28));
  animation: rgo-bot-float 3.6s ease-in-out infinite;
}
.rgo-preset .rgo-bot-glow {
  /* a touch larger/softer than the mascot glow so the icon appears to hover */
  inset: -8px;
  background: radial-gradient(circle, rgba(255,255,255,0.30), transparent 70%);
}
/* Fully transparent launcher chip for image presets — no bubble, image floats alone.
   The inline CSS background-image twin still guarantees art even if the <img> src
   is blanked, so we don't need a brand-colored fallback circle any more. */
#rgo-bubble.rgo-style-preset {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
#rgo-bubble.rgo-style-preset:hover {
  box-shadow: none !important;
  transform: none !important;
}
/* While open the launcher hides anyway; calm the float just in case. */
#rgo-bubble.rgo-open .rgo-preset-img { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .rgo-bot-svg, .rgo-bot-glow, .rgo-bot-eye, .rgo-orb-swirl, .rgo-orb-spark, .rgo-logo-launch, .rgo-logo-badge, .rgo-preset-img, #rgo-bubble.rgo-attn { animation: none !important; }
}

/* Unread badge */
.rgo-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  animation: rgo-pop-in 0.3s cubic-bezier(.34,1.56,.64,1) both;
}
.rgo-badge-hidden { display: none; }

/* ── Chat window ────────────────────────────────────────────── */
#rgo-win {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 2147483641;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: var(--rgo-bg);
  border-radius: var(--rgo-radius);
  box-shadow: var(--rgo-shadow);
  font-family: var(--rgo-font);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rgo-border);
  transform-origin: bottom right;
}
#rgo-win.rgo-left { right: auto; left: 24px; transform-origin: bottom left; }
#rgo-win.rgo-open {
  display: flex;
  animation: rgo-slide-up 0.28s cubic-bezier(.34,1.12,.64,1) both;
}

/* ── Header ─────────────────────────────────────────────────── */
.rgo-header {
  background: var(--rgo-header-bg);
  color: var(--rgo-header-ink);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}
.rgo-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rgo-ai-avatar {
  /* !important guards against host `img{height:auto!important}` distorting the
     header avatar (same Elementor-reset class of bug as the launcher icons). */
  width: 38px !important;
  height: 38px !important;
  max-width: none !important;
  border-radius: 50%;
  object-fit: cover !important;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}
.rgo-ai-avatar-default,
.rgo-msg-avatar.rgo-avatar-ai {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45,90,24,0.28);
}
.rgo-msg-avatar.rgo-avatar-ai {
  width: 28px;
  height: 28px;
  border: none;
  padding: 0;
  background: transparent !important;
  box-shadow: 0 1px 6px rgba(45,90,24,0.2);
}
.rgo-ai-face {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
.rgo-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rgo-header-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rgo-header-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.rgo-header-status {
  font-size: 11.5px;
  opacity: 0.8;
}
.rgo-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 6px rgba(74,222,128,0.55);
}
.rgo-online-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: rgo-pulse 2s infinite;
}
.rgo-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.rgo-icon-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--rgo-header-ink);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  padding: 0;
  transition: background 0.15s;
}
.rgo-icon-btn:hover { background: rgba(255,255,255,0.22); }

/* Icon SVG hardening — immune to host theme / Elementor / optimizer resets */
#rgo-win button svg,
#rgo-bubble svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  pointer-events: none;
  max-width: none !important;
  max-height: none !important;
}
#rgo-win .rgo-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
}
#rgo-win #rgo-minimize svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  stroke: currentColor !important;
  fill: none !important;
}
#rgo-wa-btn {
  color: #25d366 !important;
  background: rgba(37, 211, 102, 0.18) !important;
}
#rgo-wa-btn svg {
  fill: #25d366 !important;
  stroke: none !important;
}
#rgo-win .rgo-send-btn svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  stroke: #ffffff !important;
  fill: none !important;
}
#rgo-win .rgo-ai-avatar-default .rgo-ai-face,
#rgo-win .rgo-msg-avatar .rgo-ai-face {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* ── Messages area ──────────────────────────────────────────── */
.rgo-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--rgo-bg-msgs);
  scroll-behavior: smooth;
}
.rgo-msgs::-webkit-scrollbar { width: 5px; }
.rgo-msgs::-webkit-scrollbar-track { background: transparent; }
.rgo-msgs::-webkit-scrollbar-thumb { background: var(--rgo-border); border-radius: 4px; }

/* Message wrap (bot row = avatar + body column) */
.rgo-msg-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rgo-msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1;
  max-width: calc(100% - 36px);
}
.rgo-msg-body > .rgo-msg-bot,
.rgo-msg-body > .rgo-typing {
  max-width: 100%;
}
.rgo-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rgo-brand, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}
.rgo-msg-avatar-img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; display: block !important; }

/* Base message bubble */
.rgo-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--rgo-radius-msg);
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
  white-space: pre-wrap;
  position: relative;
}

/* User bubble */
.rgo-msg-user {
  align-self: flex-end;
  background: var(--rgo-bg-user-msg);
  color: #fff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  animation: rgo-msg-user-in 0.2s ease both;
}

/* Bot bubble */
.rgo-msg-bot {
  background: var(--rgo-bg-bot-msg);
  color: var(--rgo-ink);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  animation: rgo-msg-bot-in 0.22s ease both;
}
.rgo-theme-chatgpt .rgo-msg-bot {
  box-shadow: none;
  padding-left: 2px;
}

/* Streaming cursor */
.rgo-streaming::after {
  content: '▋';
  font-size: 13px;
  animation: rgo-blink 0.85s step-end infinite;
  color: var(--rgo-brand, #2563eb);
}

/* Copy button */
.rgo-copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--rgo-bg-msgs);
  border: 1px solid var(--rgo-border);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--rgo-ink-light);
  transition: background 0.15s, color 0.15s;
}
.rgo-msg-wrap:hover .rgo-copy-btn,
.rgo-msg-bot:hover .rgo-copy-btn { display: flex; }
.rgo-copy-btn:hover { background: var(--rgo-border); color: var(--rgo-ink); }

/* Citations */
.rgo-citations {
  font-size: 11.5px;
  color: var(--rgo-ink-light);
  margin-top: 4px;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.rgo-cite-label { font-weight: 600; }
.rgo-cite {
  background: rgba(var(--rgo-brand-rgb, 37,99,235), 0.1);
  color: var(--rgo-brand, #2563eb);
  border-radius: 20px;
  padding: 2px 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.rgo-cite:hover { background: rgba(var(--rgo-brand-rgb, 37,99,235), 0.2); text-decoration: underline; }

/* Action bar (WhatsApp / Book) — stacks below the message bubble */
.rgo-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  padding: 0;
  width: auto;
  max-width: 100%;
}
.rgo-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--rgo-brand-rgb, 37,99,235), 0.12);
  border: 1px solid rgba(var(--rgo-brand-rgb, 37,99,235), 0.35);
  color: var(--rgo-ink);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  line-height: 1.2;
}
.rgo-action-btn svg {
  flex-shrink: 0;
  width: 14px !important;
  height: 14px !important;
}
.rgo-action-btn.rgo-action-book:hover {
  background: var(--rgo-brand, #2563eb);
  border-color: var(--rgo-brand, #2563eb);
  color: #ffffff !important;
  transform: translateY(-1px);
}
.rgo-action-btn.rgo-action-book:hover svg { stroke: #ffffff !important; }
.rgo-action-btn.rgo-action-wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #16a34a;
}
#rgo-win.rgo-theme-dark .rgo-action-btn.rgo-action-wa,
#rgo-win.rgo-theme-chatgpt .rgo-action-btn.rgo-action-wa {
  color: #4ade80;
}
.rgo-action-btn.rgo-action-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.rgo-action-btn.rgo-action-wa:hover svg { fill: #ffffff !important; }

/* ── Typing indicator ───────────────────────────────────────── */
.rgo-typing {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: var(--rgo-bg-bot-msg);
  border-radius: var(--rgo-radius-msg);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  width: fit-content;
  animation: rgo-msg-bot-in 0.22s ease both;
}
.rgo-theme-chatgpt .rgo-typing { background: transparent; box-shadow: none; }
.rgo-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rgo-ink-light);
  animation: rgo-bounce 1.4s infinite both;
}
.rgo-typing span:nth-child(2) { animation-delay: 0.18s; }
.rgo-typing span:nth-child(3) { animation-delay: 0.36s; }

/* ── Suggestions chips ──────────────────────────────────────── */
.rgo-suggestions {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 4px;
  background: var(--rgo-bg);
  border-top: 1px solid var(--rgo-border);
}
.rgo-suggestions-visible { display: flex; }
.rgo-chip {
  background: rgba(var(--rgo-brand-rgb, 37,99,235), 0.08);
  color: var(--rgo-brand, #2563eb);
  border: 1px solid rgba(var(--rgo-brand-rgb, 37,99,235), 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
  font-family: var(--rgo-font);
}
.rgo-chip:hover { background: rgba(var(--rgo-brand-rgb, 37,99,235), 0.16); transform: translateY(-1px); }
.rgo-chip:active { transform: translateY(0); }

/* ── Lead form ──────────────────────────────────────────────── */
.rgo-lead-wrap {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--rgo-bg);
  border-top: 1px solid var(--rgo-border);
  animation: rgo-slide-down 0.22s ease both;
}
.rgo-lead-wrap.rgo-lead-open { display: flex; }
.rgo-lead-prompt {
  font-size: 13px;
  color: var(--rgo-ink);
  font-weight: 600;
  line-height: 1.45;
}
.rgo-lead-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rgo-input-sm {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rgo-border);
  border-radius: 10px;
  font-size: 13.5px;
  background: var(--rgo-input-bg, #fff) !important;
  color: var(--rgo-input-ink, #111827) !important;
  -webkit-text-fill-color: var(--rgo-input-ink, #111827) !important;
  caret-color: var(--rgo-input-ink, #111827) !important;
  font-family: var(--rgo-font);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rgo-input-sm::placeholder {
  color: var(--rgo-input-placeholder, var(--rgo-ink-light)) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--rgo-input-placeholder, var(--rgo-ink-light)) !important;
}
.rgo-input-sm:focus {
  outline: none;
  border-color: var(--rgo-brand, #2563eb) !important;
  box-shadow: 0 0 0 3px rgba(var(--rgo-brand-rgb,37,99,235),0.2);
}
.rgo-lead-btns {
  display: flex;
  gap: 8px;
}
.rgo-btn-primary {
  flex: 1;
  padding: 9px 14px;
  background: var(--rgo-brand, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  font-family: var(--rgo-font);
}
.rgo-btn-primary:hover  { opacity: 0.9; }
.rgo-btn-primary:active { transform: scale(0.98); }
.rgo-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.rgo-btn-ghost {
  padding: 9px 14px;
  background: transparent;
  color: var(--rgo-ink);
  border: 1px solid var(--rgo-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--rgo-font);
}
.rgo-btn-ghost:hover {
  background: rgba(var(--rgo-brand-rgb, 37,99,235), 0.1);
  color: var(--rgo-ink);
  border-color: rgba(var(--rgo-brand-rgb, 37,99,235), 0.35);
}
.rgo-lead-msg {
  font-size: 12.5px;
  border-radius: 8px;
  padding: 6px 10px;
  display: none;
}
.rgo-lead-ok  { display: block; background: rgba(74,222,128,0.12); color: #16a34a; border: 1px solid rgba(74,222,128,0.3); }
.rgo-lead-err { display: block; background: rgba(239,68,68,0.1);  color: #dc2626; border: 1px solid rgba(239,68,68,0.25); }

/* ── Footer / input ─────────────────────────────────────────── */
.rgo-footer {
  padding: 10px 14px 12px;
  background: var(--rgo-bg);
  border-top: 1px solid var(--rgo-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rgo-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rgo-text-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--rgo-border);
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  background: var(--rgo-input-bg, #fff) !important;
  color: var(--rgo-input-ink, #111827) !important;
  -webkit-text-fill-color: var(--rgo-input-ink, #111827) !important;
  caret-color: var(--rgo-input-ink, #111827) !important;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--rgo-font);
}
.rgo-text-input:focus {
  border-color: var(--rgo-brand, #2563eb) !important;
  box-shadow: 0 0 0 3px rgba(var(--rgo-brand-rgb,37,99,235),0.2);
}
.rgo-text-input::placeholder {
  color: var(--rgo-input-placeholder, #6b7280) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--rgo-input-placeholder, #6b7280) !important;
  font-weight: 400;
}
.rgo-text-input:disabled { opacity: 0.55; }
/* Host themes often force white inputs + wrong text colour — lock both */
#rgo-win input.rgo-text-input,
#rgo-win input.rgo-input-sm,
#rgo-win input[type="text"].rgo-input-sm,
#rgo-win input[type="email"].rgo-input-sm,
#rgo-win input[type="tel"].rgo-input-sm {
  background-color: var(--rgo-input-bg) !important;
  color: var(--rgo-input-ink) !important;
  -webkit-text-fill-color: var(--rgo-input-ink) !important;
}
/* Chrome/Safari autofill paints name/email with wrong colours — force theme colours */
#rgo-win input.rgo-input-sm:-webkit-autofill,
#rgo-win input.rgo-input-sm:-webkit-autofill:hover,
#rgo-win input.rgo-input-sm:-webkit-autofill:focus,
#rgo-win input.rgo-input-sm:-webkit-autofill:active,
#rgo-win input.rgo-text-input:-webkit-autofill,
#rgo-win input.rgo-text-input:-webkit-autofill:hover,
#rgo-win input.rgo-text-input:-webkit-autofill:focus,
#rgo-win input.rgo-text-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--rgo-input-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--rgo-input-bg) inset !important;
  -webkit-text-fill-color: var(--rgo-input-ink) !important;
  color: var(--rgo-input-ink) !important;
  caret-color: var(--rgo-input-ink) !important;
  transition: background-color 99999s ease-out, color 99999s ease-out;
}
.rgo-send-btn {
  width: 42px;
  height: 38px;
  border-radius: 12px;
  background: var(--rgo-brand, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  padding: 0;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  gap: 0;
}
.rgo-send-btn:hover  { opacity: 0.88; transform: scale(1.04); }
.rgo-send-btn:active { transform: scale(0.94); }
.rgo-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
/* ── H-H2: Guest quota bar ───────────────────────────────────── */
.rgo-quota-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--rgo-ink-light);
  border-top: 1px solid var(--rgo-border);
  background: transparent;
  gap: 8px;
}
.rgo-quota-bar.rgo-quota-low #rgo-quota-text { color: #f59e0b; font-weight: 600; }
.rgo-quota-bar.rgo-quota-empty #rgo-quota-text { color: #ef4444; font-weight: 600; }
.rgo-quota-cta, .rgo-quota-cta-inline {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--rgo-brand, #2563eb);
  text-decoration: none;
  white-space: nowrap;
}
.rgo-quota-cta-inline { display: block; margin-top: 6px; font-size: 12px; }
.rgo-quota-cta:hover, .rgo-quota-cta-inline:hover { text-decoration: underline; }

/* ── H-H3: Powered by branding ───────────────────────────────── */
.rgo-branding {
  text-align: center;
  padding: 4px 12px 6px;
  border-top: 1px solid var(--rgo-border);
}
.rgo-branding-link {
  font-size: 10px;
  color: var(--rgo-ink-light);
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.01em;
}
.rgo-branding-link:hover { opacity: 1; text-decoration: underline; }
.rgo-branding strong { font-weight: 600; color: var(--rgo-ink-light); }

/* ── Stop button + streaming timer ──────────────────────────── */
.rgo-stop-btn {
  background: rgba(239,68,68,0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239,68,68,0.3) !important;
  transition: background 0.15s, transform 0.12s !important;
}
.rgo-stop-btn:hover {
  background: rgba(239,68,68,0.28) !important;
  transform: scale(1.08) !important;
}
.rgo-stop-btn:active { transform: scale(0.94) !important; }
.rgo-stop-hidden { display: none !important; }
.rgo-stream-timer {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  min-width: 22px;
  text-align: center;
  font-family: var(--rgo-font);
}

/* ── GDPR consent banner ─────────────────────────────────────── */
.rgo-gdpr-banner {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--rgo-bg);
  border-top: 2px solid var(--rgo-brand, #2563eb);
  animation: rgo-slide-down 0.22s ease both;
}
.rgo-gdpr-banner.rgo-gdpr-visible { display: flex; }
.rgo-gdpr-text {
  font-size: 12.5px;
  color: var(--rgo-ink-light);
  line-height: 1.5;
}
.rgo-gdpr-text a {
  color: var(--rgo-brand, #2563eb);
  text-decoration: underline;
}
.rgo-gdpr-btns {
  display: flex;
  gap: 8px;
}
.rgo-btn-sm-inline {
  padding: 7px 14px !important;
  font-size: 12px !important;
}
.rgo-gdpr-declined {
  font-size: 12px;
  color: var(--rgo-ink-light);
  padding: 4px 0;
}
.rgo-gdpr-reenable {
  background: none;
  border: none;
  color: var(--rgo-brand, #2563eb);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
  font-family: var(--rgo-font);
}

/* ── Shake animation (rate limit / validation) ───────────────── */
.rgo-shake {
  animation: rgo-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #rgo-win {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    bottom: 0;
    right: 0 !important;
    left: 0 !important;
    border-radius: 0;
    transform-origin: bottom center;
  }
  #rgo-bubble { bottom: 16px; right: 16px; }
  #rgo-bubble.rgo-left { right: auto; left: 16px; }
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes rgo-pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes rgo-slide-up {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
@keyframes rgo-slide-down {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes rgo-msg-bot-in {
  from { transform: translateX(-8px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes rgo-msg-user-in {
  from { transform: translateX(8px); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
@keyframes rgo-bounce {
  0%, 80%, 100% { transform: scale(0.35); opacity: 0.5; }
  40%           { transform: scale(1);    opacity: 1; }
}
@keyframes rgo-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes rgo-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes rgo-shake {
  10%, 90%  { transform: translateX(-2px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60%  { transform: translateX(5px); }
}
