/* ==========================================================================
   Raksha — Rexa's on-site assistant   (assets/raksha.css + assets/raksha.js)
   Self-contained: brand tokens are defined here and every rule is scoped under
   #rohiniWidget, so it renders the same on Tailwind pages and styles.css pages
   and never depends on (or fights with) either page's reset.
   Theme: Rexa navy / red, Inter body, Source Serif 4 headings, white rounded-2xl
   cards with soft shadows (matches the homepage + product pages).
   Motion: transform/opacity only, always via keyframes with fill-mode both/backwards
   so the *default* state is the visible one (a stalled animation never leaves the
   dialog washed-out). Fully off under prefers-reduced-motion.
   ========================================================================== */

#rohiniWidget {
  --roh-navy: #0A1128;
  --roh-navy-2: #141B40;
  --roh-red: #E61C24;
  --roh-red-hov: #CC1820;
  --roh-green: #0EA472;
  --roh-gold: #F0A830;
  --roh-ink: #0A1128;
  --roh-muted: #64748B;          /* slate-500: 4.6:1 on white, 4.5:1 on #F8FAFC */
  --roh-paper: #FFFFFF;
  --roh-ground: #F8FAFC;
  --roh-line: #E2E8F0;
  --roh-soft: 0 10px 40px -10px rgba(10,17,40,.10);
  --roh-float: 0 20px 50px -20px rgba(10,17,40,.35);
  --roh-fig-h: 250px;
  --roh-edge: max(30px, env(safe-area-inset-right, 0px));
  --roh-bottom: max(16px, env(safe-area-inset-bottom, 0px));

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--roh-ink);
  -webkit-text-size-adjust: 100%; text-align: left;
}
#rohiniWidget *, #rohiniWidget *::before, #rohiniWidget *::after { box-sizing: border-box; }
#rohiniWidget button, #rohiniWidget input {
  font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none;
  -webkit-appearance: none; appearance: none; border-radius: 0; background: none; border: 0; padding: 0;
}
#rohiniWidget button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#rohiniWidget a { color: inherit; text-decoration: none; }
#rohiniWidget img { display: block; max-width: none; height: auto; }
#rohiniWidget svg { display: block; flex: none; }
#rohiniWidget :focus-visible { outline: 3px solid rgba(230,28,36,.65); outline-offset: 2px; }
#rohiniWidget .roh-head :focus-visible { outline-color: #fff; }

/* ---- Face (portrait used in the header + chat rows) ---- */
#rohiniWidget .roh-face {
  display: block; position: relative; border-radius: 50%; flex: none; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #263070, var(--roh-navy) 70%);
  box-shadow: 0 0 0 2px #fff;
}
#rohiniWidget .roh-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
#rohiniWidget .roh-face.talking { animation: rohTalk 1.1s ease-in-out infinite; }
@keyframes rohTalk {
  0%,100% { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,.28) }
  50%     { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,.04) }
}

/* ---- Dock: launcher (full-figure Raksha + red label), fixed bottom-right ---- */
#rohiniWidget .roh-dock {
  position: fixed; z-index: 90; right: var(--roh-edge); bottom: var(--roh-bottom);
  display: flex; align-items: center; gap: 12px; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#rohiniWidget .roh-dock > * { pointer-events: auto; }
#rohiniWidget.is-away .roh-dock { opacity: 0; transform: translateY(12px); pointer-events: none; }
#rohiniWidget.is-away .roh-dock > * { pointer-events: none; }

#rohiniWidget .roh-launcher { position: relative; display: flex; align-items: flex-end; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Figure: fine rim is baked into the artwork; soft lift shadow + a grounded contact shadow under her feet */
#rohiniWidget .roh-launcher-figure {
  order: 1; position: relative; z-index: 2; flex: none; display: block; height: var(--roh-fig-h); line-height: 0;
  filter: drop-shadow(0 10px 14px rgba(10,17,40,.22)); transition: transform .25s ease;
  animation: rohFigIn .6s cubic-bezier(.2,.8,.2,1) both;
}
#rohiniWidget .roh-launcher-figure img { display: block; height: 100%; width: auto; }
#rohiniWidget .roh-launcher-figure::after { content: none; }
#rohiniWidget .roh-launcher:hover .roh-launcher-figure, #rohiniWidget .roh-launcher:focus-visible .roh-launcher-figure { transform: translateY(-3px); }
#rohiniWidget .roh-launcher:focus-visible { outline: 2px solid var(--roh-navy); outline-offset: 4px; border-radius: 14px; }
/* Waves: soft concentric ripples radiating from her, the "I'm here" signal (replaces the speech bubble) */
#rohiniWidget .roh-launcher-aura {
  position: absolute; z-index: -1; left: 50%; bottom: -4px; width: 70%; height: 12px; margin-left: -35%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(10,17,40,.16) 0%, rgba(10,17,40,0) 70%);
}
#rohiniWidget .roh-waves { position: absolute; z-index: -2; inset: 0; pointer-events: none; }
/* Silhouette echoes: her own outline radiates outward and fades, so the halo follows her shape instead of a circle */
#rohiniWidget .roh-waves i {
  position: absolute; inset: 0; opacity: 0; transform-origin: 50% 58%;
  background: linear-gradient(180deg, #F0A830 0%, #E61C24 55%, #E61C24 100%);
  -webkit-mask: url(raksha-figure-v2.webp) center / 100% 100% no-repeat; mask: url(raksha-figure-v2.webp) center / 100% 100% no-repeat;
  animation: rohEcho 3.2s cubic-bezier(.2,.6,.3,1) infinite;
}
#rohiniWidget .roh-waves i:nth-child(2) { animation-delay: 1.6s; }
#rohiniWidget .roh-waves i:nth-child(3) { display: none; }
@keyframes rohEcho { 0% { transform: scale(1); opacity: .38 } 100% { transform: scale(1.22); opacity: 0 } }
/* soft breathing glow hugging her outline */
@keyframes rohGlow { 0%,100% { filter: drop-shadow(0 6px 10px rgba(10,17,40,.14)) drop-shadow(0 0 2px rgba(230,28,36,.12)) } 50% { filter: drop-shadow(0 6px 10px rgba(10,17,40,.14)) drop-shadow(0 0 6px rgba(230,28,36,.28)) } }
#rohiniWidget.is-seen .roh-waves { display: none; }
#rohiniWidget .roh-launcher-figure { animation: rohFigIn .6s cubic-bezier(.2,.8,.2,1) both, rohBob 4.5s ease-in-out 1s infinite, rohGlow 3.2s ease-in-out 1s infinite; transform-origin: 50% 100%; }
@keyframes rohBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
/* every so often she tips her head to say hello */
#rohiniWidget.is-wave .roh-launcher-figure img { animation: rohTip 1.3s ease-in-out both; transform-origin: 50% 100%; }
@keyframes rohTip { 0%,100% { transform: rotate(0) } 20% { transform: rotate(-5deg) } 40% { transform: rotate(4deg) } 60% { transform: rotate(-3deg) } 80% { transform: rotate(2deg) } }

/* Unread badge: sits clear of her face, top-right of the launcher */
#rohiniWidget .roh-launcher-unread {
  position: absolute; z-index: 3; right: -2px; top: 4px; min-width: 20px; height: 20px; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--roh-red); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; border: 2px solid #fff;
  box-shadow: 0 3px 8px -2px rgba(230,28,36,.5); animation: rohPop .5s cubic-bezier(.3,1.6,.5,1) 1.1s both;
}
#rohiniWidget.is-seen .roh-launcher-unread { display: none; }
@keyframes rohPop { from { transform: scale(0) } to { transform: scale(1) } }

/* Hover/focus label: a small pill that only appears on hover (no persistent bubble) */
#rohiniWidget .roh-launcher-label {
  order: 0; align-self: center; position: relative; z-index: 1; margin-right: 6px; margin-bottom: 40px;
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: var(--roh-navy); color: #fff; font-size: .875rem; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(10,17,40,.5);
  transition: opacity .2s ease, transform .25s cubic-bezier(.3,1.4,.5,1);
}
#rohiniWidget .roh-launcher-label { opacity: 0; transform: translateX(12px); pointer-events: none; }
#rohiniWidget .roh-launcher:hover .roh-launcher-label,
#rohiniWidget .roh-launcher:focus-visible .roh-launcher-label { opacity: 1; transform: none; }
#rohiniWidget.no-intro .roh-launcher-label, #rohiniWidget.no-intro .roh-launcher-figure { animation: none; }
#rohiniWidget.no-intro .roh-launcher-figure { animation: rohBob 4.5s ease-in-out infinite, rohGlow 3.2s ease-in-out infinite; }
@keyframes rohLabelIn { from { opacity: 0; transform: translateX(20px) scale(.8) } to { opacity: 1; transform: none } }
@keyframes rohFigIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
#rohiniWidget .roh-launcher:hover .roh-launcher-label { box-shadow: 0 22px 40px -14px rgba(10,17,40,.5), 0 2px 8px rgba(10,17,40,.1); }
#rohiniWidget .roh-launcher-badge {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--roh-gold); color: var(--roh-navy); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(10,17,40,.3);
}
@keyframes rohRise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes rohFade { from { opacity: 0 } to { opacity: 1 } }

/* ---- Overlay + dialog (hidden by visibility only; entrance is a keyframe so the default state is visible) ---- */
#rohiniWidget .roh-overlay {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(10,17,40,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  visibility: hidden; pointer-events: none;
}
#rohiniWidget.is-open .roh-overlay { visibility: visible; pointer-events: auto; animation: rohFade .2s ease-out both; }

#rohiniWidget .roh-modal {
  position: relative; display: flex; flex-direction: column; width: min(760px, 100%); height: min(680px, 100%); max-height: 100%;
  background: var(--roh-ground); border-radius: 24px; overflow: hidden; box-shadow: var(--roh-float);
}
#rohiniWidget.is-open .roh-modal { animation: rohModalIn .22s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rohModalIn { from { opacity: 0; transform: translateY(16px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes rohSheetIn { from { opacity: 0; transform: translateY(28px) } to { opacity: 1; transform: none } }

#rohiniWidget .roh-grip { display: none; }

#rohiniWidget .roh-head {
  position: relative; display: flex; align-items: center; gap: .85rem; padding: 1rem 1rem 1rem 1.25rem; flex: none;
  background: var(--roh-navy); color: #fff;
}
#rohiniWidget .roh-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--roh-red); }
#rohiniWidget .roh-head .roh-face { width: 46px; height: 46px; }
#rohiniWidget .roh-head-info { flex: 1; min-width: 0; }
#rohiniWidget .roh-head-name { font-family: "Source Serif 4", Georgia, Cambria, serif; font-weight: 700; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.005em; }
#rohiniWidget .roh-head-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--roh-gold); line-height: 1.2; }
#rohiniWidget .roh-head-sub b { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
#rohiniWidget .roh-head-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .82rem; line-height: 1.3; color: #CBD5E1; }
#rohiniWidget .roh-head-sub::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--roh-green); }
#rohiniWidget .roh-head-actions { display: flex; gap: 2px; flex: none; }
#rohiniWidget .roh-head-actions button {
  position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff;
}
#rohiniWidget .roh-head-actions button::before {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: rgba(255,255,255,.12); transition: background .15s;
}
#rohiniWidget .roh-head-actions button:hover::before { background: rgba(255,255,255,.24); }
#rohiniWidget .roh-head-actions svg { position: relative; }

/* slim back-row */
#rohiniWidget .roh-crumbs {
  display: flex; align-items: center; gap: .5rem; padding: 0 .75rem 0 .5rem; flex: none; min-height: 44px;
  background: #fff; border-bottom: 1px solid var(--roh-line); font-size: .8125rem;
}
#rohiniWidget .roh-crumbs[hidden] { display: none; }
#rohiniWidget .roh-crumbs .back {
  display: inline-flex; align-items: center; gap: .35rem; flex: none; min-height: 44px; padding: 0 .65rem; border-radius: 999px;
  color: var(--roh-navy); font-weight: 600; transition: color .15s;
}
#rohiniWidget .roh-crumbs .back:hover { color: var(--roh-red); }
#rohiniWidget .roh-crumbs .path { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--roh-muted); }
#rohiniWidget .roh-crumbs .path button { min-height: 44px; padding: 0 .25rem; color: var(--roh-muted); font-weight: 500; }
#rohiniWidget .roh-crumbs .path button:hover { color: var(--roh-navy); text-decoration: underline; }
#rohiniWidget .roh-crumbs .cur { color: var(--roh-navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; padding: 0 .25rem; }
#rohiniWidget .roh-crumbs .sep { color: #94A3B8; flex: none; }

#rohiniWidget .roh-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.25rem 1rem; background: var(--roh-ground);
}
#rohiniWidget .roh-step { animation: rohIn .24s ease-out backwards; }
@keyframes rohIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* ---- Conversation ---- */
#rohiniWidget .roh-botrow { display: flex; align-items: flex-start; gap: .7rem; }
#rohiniWidget .roh-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; box-shadow: 0 4px 10px -2px rgba(10,17,40,.25); }
#rohiniWidget .roh-avatar .roh-face { width: 100%; height: 100%; }
#rohiniWidget .roh-bubbles { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
#rohiniWidget .roh-bubble {
  max-width: 94%; align-self: flex-start; background: #fff; border: 1px solid var(--roh-line); box-shadow: var(--roh-soft);
  border-radius: 6px 18px 18px 18px; padding: .8rem 1.05rem; font-size: .9375rem; line-height: 1.55; color: var(--roh-ink);
  overflow-wrap: anywhere; animation: rohBubble .28s cubic-bezier(.2,.7,.3,1) backwards;
}
#rohiniWidget .roh-bubble strong, #rohiniWidget .roh-bubble b { font-weight: 700; color: var(--roh-navy); }
#rohiniWidget .roh-bubble a { color: var(--roh-red-hov); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@keyframes rohBubble { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

#rohiniWidget .roh-user { display: flex; justify-content: flex-end; margin-bottom: .7rem; }
#rohiniWidget .roh-user-bubble {
  max-width: 80%; background: var(--roh-navy); color: #fff; font-size: .9375rem; font-weight: 500; line-height: 1.5;
  padding: .65rem 1rem; border-radius: 18px 18px 6px 18px; overflow-wrap: anywhere; animation: rohBubble .26s ease-out backwards;
}

#rohiniWidget .roh-typing { display: inline-flex; align-items: center; gap: 6px; padding: .95rem 1.05rem; }
#rohiniWidget .roh-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: rohDot 1.1s ease-in-out infinite; }
#rohiniWidget .roh-typing span:nth-child(2) { animation-delay: .15s; }
#rohiniWidget .roh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rohDot { 0%,60%,100% { opacity: .35; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }

#rohiniWidget .roh-bubbles .roh-links, #rohiniWidget .roh-bubbles .roh-cards { width: 100%; align-self: stretch; margin-top: .25rem; }

/* option cards: tinted icon tile + title/hint + chevron */
#rohiniWidget .roh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
#rohiniWidget .roh-card {
  position: relative; display: flex; align-items: center; gap: .8rem; text-align: left; min-height: 64px;
  background: #fff; border: 1px solid var(--roh-line); border-radius: 16px; padding: .75rem .85rem;
  box-shadow: 0 1px 2px rgba(10,17,40,.04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
#rohiniWidget .roh-card:hover:not(:disabled) { border-color: rgba(230,28,36,.4); box-shadow: var(--roh-soft); transform: translateY(-2px); }
#rohiniWidget .roh-card:disabled { opacity: .5; cursor: default; }
#rohiniWidget .roh-card.has-badge { border-color: var(--roh-gold); }
#rohiniWidget .roh-card .ic {
  width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #F1F5F9; color: var(--roh-navy);
}
#rohiniWidget .ic.tone-indigo { background: #EEF2FF; }
#rohiniWidget .ic.tone-rose   { background: #FFF1F2; }
#rohiniWidget .ic.tone-green  { background: #ECFDF5; }
#rohiniWidget .ic.tone-sky    { background: #F0F9FF; }
#rohiniWidget .ic.tone-red    { background: #FEF2F2; }
#rohiniWidget .ic.tone-navy   { background: rgba(10,17,40,.06); }
#rohiniWidget .ic.tone-slate  { background: #F1F5F9; }
#rohiniWidget .ic.tone-amber  { background: #FFFBEB; }
#rohiniWidget .roh-card .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#rohiniWidget .roh-card .ttl { font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--roh-navy); }
#rohiniWidget .roh-card .hint { font-size: .75rem; line-height: 1.35; color: var(--roh-muted); }
#rohiniWidget .roh-card .chev { color: #94A3B8; transition: color .15s, transform .15s; }
#rohiniWidget .roh-card:hover:not(:disabled) .chev { color: var(--roh-red); transform: translateX(2px); }
#rohiniWidget .roh-badge {
  position: absolute; top: -9px; right: 12px; background: var(--roh-gold); color: var(--roh-navy);
  font-size: .68rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap;
}

/* link pills: primary = red filled, others = navy outline */
#rohiniWidget .roh-links { display: flex; flex-wrap: wrap; gap: .6rem; }
#rohiniWidget .roh-links a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
  background: #fff; color: var(--roh-navy); border: 1.5px solid var(--roh-navy); font-size: .875rem; font-weight: 600; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
#rohiniWidget .roh-links a:hover { background: var(--roh-navy); color: #fff; }
#rohiniWidget .roh-links a.primary { background: var(--roh-red); border-color: var(--roh-red); color: #fff; box-shadow: 0 8px 20px -10px rgba(230,28,36,.7); }
#rohiniWidget .roh-links a.primary:hover { background: var(--roh-red-hov); border-color: var(--roh-red-hov); }

/* ---- Persona pill: "Helping: Business owner · Change" ---- */
#rohiniWidget .roh-whorow { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 .5rem 0 .5rem; background: #fff; border-bottom: 1px solid var(--roh-line); }
#rohiniWidget .roh-whorow[hidden] { display: none; }
#rohiniWidget .roh-who {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; max-width: 100%; padding: 0 .6rem; border-radius: 999px;
  font-size: .8125rem; line-height: 1.2; color: var(--roh-muted); text-align: left;
}
#rohiniWidget .roh-who-name { font-weight: 700; color: var(--roh-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rohiniWidget .roh-who-sep { color: #94A3B8; }
#rohiniWidget .roh-who-chg { font-weight: 600; color: var(--roh-red-hov); text-decoration: underline; text-underline-offset: 2px; }
#rohiniWidget .roh-who:hover .roh-who-chg { color: var(--roh-red); }

/* ---- Quick replies (chips) and "Other topics" ---- */
#rohiniWidget .roh-step:focus { outline: none; }
#rohiniWidget .roh-bubbles .roh-chips, #rohiniWidget .roh-bubbles .roh-more { width: 100%; align-self: stretch; }
#rohiniWidget .roh-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
#rohiniWidget .roh-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px;
  background: #fff; color: var(--roh-navy); border: 1.5px solid var(--roh-navy); font-size: .875rem; font-weight: 600; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
#rohiniWidget .roh-chip:hover:not(:disabled) { background: var(--roh-navy); color: #fff; }
#rohiniWidget .roh-chip.primary { background: var(--roh-red); border-color: var(--roh-red); color: #fff; box-shadow: 0 8px 20px -10px rgba(230,28,36,.7); }
#rohiniWidget .roh-chip.primary:hover:not(:disabled) { background: var(--roh-red-hov); border-color: var(--roh-red-hov); }
#rohiniWidget .roh-chip:disabled { opacity: .5; cursor: default; }
#rohiniWidget .roh-more { margin-top: .6rem; }
#rohiniWidget .roh-more-lbl { display: block; margin: 0 0 .1rem .15rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--roh-muted); }
#rohiniWidget .roh-more .roh-chip { border-color: var(--roh-line); color: var(--roh-navy); font-weight: 500; font-size: .8125rem; }
#rohiniWidget .roh-more .roh-chip:hover:not(:disabled) { border-color: var(--roh-navy); }

/* Persona picker: two roomy columns, the last (odd) card spans the row; recommendations are one per row */
#rohiniWidget .roh-cards.personas .roh-card { min-height: 72px; }
#rohiniWidget .roh-cards.personas .roh-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
#rohiniWidget .roh-cards.recs { grid-template-columns: 1fr; }
#rohiniWidget .roh-cards.recs { gap: .5rem; }
#rohiniWidget .roh-cards.recs .roh-card { align-items: flex-start; min-height: 0; padding: .6rem .8rem; }
#rohiniWidget .roh-cards.recs .roh-card .ic { width: 36px; height: 36px; }
#rohiniWidget .roh-cards.recs .roh-card .chev { align-self: center; }
#rohiniWidget .roh-cards.recs .roh-card .hint { font-size: .8125rem; }
#rohiniWidget .roh-card:disabled { cursor: default; }

/* "Forget my choice" */
#rohiniWidget .roh-foot-actions { margin-top: .5rem; }
#rohiniWidget .roh-textbtn {
  min-height: 44px; padding: 0 .35rem; font-size: .8125rem; font-weight: 500; color: var(--roh-muted);
  text-decoration: underline; text-underline-offset: 2px;
}
#rohiniWidget .roh-textbtn:hover:not(:disabled) { color: var(--roh-navy); }
#rohiniWidget .roh-textbtn:disabled { opacity: .5; }

/* ---- Offer banner (only rendered when offers.json has a live offer) ---- */
#rohiniWidget .roh-promo {
  position: relative; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; padding: .85rem 2.6rem .85rem .9rem;
  border-radius: 16px; color: var(--roh-navy); background: #FEF2F2; border: 1px solid #FECACA;
}
#rohiniWidget .roh-promo-ic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: var(--roh-red); }
#rohiniWidget .roh-promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
#rohiniWidget .roh-promo-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B91C1C; }
#rohiniWidget .roh-promo-sub { font-size: .875rem; font-weight: 600; line-height: 1.35; }
#rohiniWidget .roh-promo-cta { flex: none; background: var(--roh-red); color: #fff; font-size: .8125rem; font-weight: 600; padding: .5rem 1rem; min-height: 44px; border-radius: 999px; }
#rohiniWidget .roh-promo-cta:hover { background: var(--roh-red-hov); }
#rohiniWidget .roh-promo-x {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--roh-muted);
}

/* ---- Input row ---- */
#rohiniWidget .roh-inputrow {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; flex: none;
  border-top: 1px solid var(--roh-line); background: #fff;
}
#rohiniWidget .roh-input {
  flex: 1; min-width: 0; min-height: 48px; border: 1px solid #CBD5E1; border-radius: 999px;
  padding: .6rem 1.2rem; font-size: 1rem; background: #fff; color: var(--roh-ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#rohiniWidget .roh-input::placeholder { color: var(--roh-muted); opacity: 1; }
#rohiniWidget .roh-input:focus { border-color: var(--roh-navy); box-shadow: 0 0 0 3px rgba(230,28,36,.18); }
#rohiniWidget .roh-send {
  width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--roh-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
#rohiniWidget .roh-send:hover { background: var(--roh-red); transform: translateY(-1px); }
#rohiniWidget .roh-foot {
  flex: none; margin: 0; padding: 0 1rem .75rem; background: #fff; text-align: center; font-size: .6875rem; line-height: 1.3; color: var(--roh-muted);
}

html.roh-lock { overflow: hidden !important; }

/* ---- Tablet/phone: bottom sheet ---- */
@media (max-width: 640px) {
  #rohiniWidget { --roh-edge: max(24px, env(safe-area-inset-right, 0px)); --roh-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
  #rohiniWidget { --roh-fig-h: 156px; }
  #rohiniWidget .roh-launcher-label { display: none; }
  #rohiniWidget .roh-overlay { padding: 0; align-items: flex-end; justify-content: center; }
  #rohiniWidget .roh-modal {
    width: 100%; height: 88vh; height: 88dvh; max-height: 100%; border-radius: 24px 24px 0 0;
  }
  #rohiniWidget.is-open .roh-modal { animation-name: rohSheetIn; }
  #rohiniWidget .roh-grip { display: block; position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.35); }
  #rohiniWidget .roh-head { padding: 1.35rem .5rem .85rem 1rem; }
  #rohiniWidget .roh-body { padding: 1rem 1rem .8rem; }
  #rohiniWidget .roh-cards { grid-template-columns: 1fr; }
  #rohiniWidget .roh-cards.personas .roh-card:last-child:nth-child(odd) { grid-column: auto; }
  #rohiniWidget .roh-bubble { max-width: 100%; }
  #rohiniWidget .roh-chip { flex: 1 1 auto; }
  #rohiniWidget .roh-inputrow { padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); }
  #rohiniWidget .roh-foot { display: none; }
  /* keep the launcher clear of the cookie/consent sheet (html.consent-open + --consent-h are set by assets/analytics.js) */
  html.consent-open #rohiniWidget .roh-dock { bottom: calc(var(--consent-h, 120px) + 12px); }
}
@media (max-width: 420px) {
  #rohiniWidget .roh-promo { flex-wrap: wrap; }
  #rohiniWidget .roh-promo-cta { margin-left: 3.2rem; }
}
/* Short landscape phones: let the dialog use the whole height */
@media (max-height: 520px) {
  #rohiniWidget .roh-overlay { padding: 0; align-items: stretch; }
  #rohiniWidget .roh-modal { height: 100%; border-radius: 0; }
  #rohiniWidget .roh-foot { display: none; }
}
@media (max-height: 680px) and (min-width: 641px) { #rohiniWidget .roh-foot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  #rohiniWidget .roh-waves i { animation: none !important; opacity: .35; transform: scale(1.08); }
  #rohiniWidget .roh-waves i:nth-child(n+2) { display: none; }
  #rohiniWidget .roh-launcher-figure, #rohiniWidget .roh-launcher-label { transition: none !important; transform: none !important; }
  
  #rohiniWidget *, #rohiniWidget *::before, #rohiniWidget *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media print { #rohiniWidget { display: none !important; } }
