
/* =========================================================
   ANTONETTE ROJ CONSULTING — SITEWIDE REVENUE SYSTEMS ASSISTANT
   Shared across every page.
   ========================================================= */
:root{
  --roj-burgundy:#6f263d;
  --roj-rose:#b86f86;
  --roj-pink:#d98aa3;
  --roj-blush:#f9edf1;
  --roj-blush-2:#fff7fa;
  --roj-cream:#fcf8f4;
  --roj-ink:#2e272a;
  --roj-muted:#75686d;
  --roj-line:#eadde1;
  --roj-white:#ffffff;
  --roj-success:#4f9875;
}
.roj-chat-launcher{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:99996;
  width:70px;
  height:70px;
  border:1px solid rgba(111,38,61,.13);
  border-radius:50%;
  background:linear-gradient(180deg,#fff,#fff6f8);
  box-shadow:0 16px 42px rgba(54,33,41,.22);
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:10px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.roj-chat-launcher:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 50px rgba(54,33,41,.28);
}
.roj-chat-launcher img{width:100%;height:100%;object-fit:contain}
.roj-chat-launcher .roj-chat-dot{
  position:absolute;
  right:2px;
  top:2px;
  width:17px;height:17px;border-radius:50%;
  background:var(--roj-success);
  border:3px solid #fff;
}
.roj-chat-panel{
  position:fixed;
  right:24px;
  bottom:106px;
  z-index:99997;
  width:min(410px, calc(100vw - 30px));
  max-height:min(680px, calc(100dvh - 135px));
  min-height:360px;
  padding:0 !important;
  margin:0 !important;
  background:linear-gradient(180deg,#fffdfd 0%,#fffafc 100%);
  border:1px solid var(--roj-line);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(45,26,34,.28);
  display:none;
  flex-direction:column;
}
.roj-chat-panel.is-open{
  display:flex;
  animation:rojChatIn .2s ease both;
}
@keyframes rojChatIn{
  from{opacity:0;transform:translateY(12px) scale(.985)}
  to{opacity:1;transform:none}
}
.roj-chat-header{
  position:relative;
  z-index:3;
  min-height:86px;
  margin:0 !important;
  padding:14px 15px !important;
  display:flex;
  align-items:center;
  gap:12px;
  background:linear-gradient(135deg,#fff8fb 0%,#fef3f6 52%,#fffaf4 100%);
  border-bottom:1px solid var(--roj-line);
  flex:0 0 auto;
}
.roj-chat-header::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:-1px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(184,111,134,.25),transparent);
}
.roj-chat-header img{
  width:58px;
  height:58px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  padding:5px;
  border:1px solid rgba(111,38,61,.08);
  box-shadow:0 8px 20px rgba(111,38,61,.08);
}
.roj-chat-header-copy{min-width:0;flex:1}
.roj-chat-header-copy strong{
  display:block;
  color:var(--roj-burgundy);
  font:600 17px/1.18 "Fraunces",Georgia,serif;
}
.roj-chat-header-copy span{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:5px;
  color:var(--roj-muted);
  font:500 11.5px/1.3 "Inter",system-ui,sans-serif;
}
.roj-status-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--roj-success);
  box-shadow:0 0 0 3px rgba(79,152,117,.12);
  flex:0 0 auto;
}
.roj-chat-close{
  width:38px;height:38px;border:0;border-radius:50%;
  background:#fff;color:var(--roj-muted);cursor:pointer;
  font:600 20px/1 Arial,sans-serif;
  box-shadow:0 6px 14px rgba(45,26,34,.08);
}
.roj-chat-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:16px 14px 12px !important;
  margin:0 !important;
  background:
    radial-gradient(circle at top right,rgba(184,111,134,.06),transparent 28%),
    linear-gradient(180deg,#fffefd,#fffbf8 68%,#fff7fa);
  scroll-behavior:smooth;
}
.roj-chat-body::-webkit-scrollbar{width:8px}
.roj-chat-body::-webkit-scrollbar-thumb{background:#d7c6cd;border-radius:999px}
.roj-msg-row{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin:0 0 12px;
}
.roj-msg-row.user{justify-content:flex-end}
.roj-msg-avatar{
  width:30px;height:30px;object-fit:contain;border-radius:50%;
  background:#fff;border:1px solid var(--roj-line);padding:2px;flex:0 0 auto;
  box-shadow:0 4px 10px rgba(45,26,34,.06);
}
.roj-msg{
  position:relative;
  max-width:82%;
  padding:12px 14px;
  border-radius:20px 20px 20px 8px;
  color:var(--roj-ink);
  background:linear-gradient(180deg,var(--roj-blush-2),var(--roj-blush));
  border:1px solid #edd9e0;
  box-shadow:0 8px 18px rgba(111,38,61,.06);
  font:500 13px/1.52 "Inter",system-ui,sans-serif;
  white-space:pre-line;
}
.roj-msg-row:not(.user) .roj-msg::before{
  content:"";
  position:absolute;
  left:-6px;
  bottom:10px;
  width:14px;height:14px;
  background:linear-gradient(180deg,var(--roj-blush-2),var(--roj-blush));
  border-left:1px solid #edd9e0;
  border-bottom:1px solid #edd9e0;
  transform:rotate(45deg);
  border-bottom-left-radius:4px;
}
.roj-msg-row.user .roj-msg{
  color:#fff;
  background:linear-gradient(180deg,#8a3a56,#6f263d);
  border-color:#6f263d;
  border-radius:20px 20px 8px 20px;
}
.roj-msg-row.user .roj-msg::before{
  content:"";
  position:absolute;
  right:-6px;
  bottom:10px;
  width:14px;height:14px;
  background:linear-gradient(180deg,#8a3a56,#6f263d);
  border-right:1px solid #6f263d;
  border-bottom:1px solid #6f263d;
  transform:rotate(-45deg);
  border-bottom-right-radius:4px;
}
.roj-quick-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:2px 0 15px 38px;
}
.roj-quick{
  border:1px solid #d8b9c4;
  background:linear-gradient(180deg,#fff,#fff8fa);
  color:var(--roj-burgundy);
  border-radius:999px;
  padding:9px 12px;
  font:600 11.5px/1.25 "Inter",system-ui,sans-serif;
  cursor:pointer;
  box-shadow:0 5px 10px rgba(111,38,61,.04);
}
.roj-quick:hover{
  background:#fbf0f4;
  border-color:var(--roj-rose);
}
.roj-insight{
  margin:4px 0 13px 38px;
  padding:13px 14px;
  background:linear-gradient(180deg,#fff,#fffafc);
  border:1px solid var(--roj-line);
  border-left:4px solid var(--roj-rose);
  border-radius:18px;
  color:var(--roj-ink);
  box-shadow:0 6px 14px rgba(111,38,61,.05);
  font:500 11.5px/1.52 "Inter",system-ui,sans-serif;
}
.roj-insight strong{
  display:block;
  color:var(--roj-burgundy);
  margin-bottom:4px;
}
.roj-chat-summary{
  margin:4px 0 14px 38px;
  padding:13px 14px;
  background:linear-gradient(180deg,#fff,#fff8fb);
  border:1px solid var(--roj-line);
  border-radius:18px;
  color:var(--roj-ink);
  box-shadow:0 6px 14px rgba(111,38,61,.05);
  font:500 11.5px/1.52 "Inter",system-ui,sans-serif;
}
.roj-chat-summary b{color:var(--roj-burgundy)}
.roj-chat-form{
  padding:12px !important;
  margin:0 !important;
  background:#fff;
  border-top:1px solid var(--roj-line);
  flex:0 0 auto;
}
.roj-input-row{display:flex;align-items:flex-end;gap:8px}
.roj-chat-input{
  flex:1;
  min-width:0;
  min-height:48px;
  max-height:110px;
  resize:none;
  outline:none;
  border:1px solid #d7c5cc;
  border-radius:18px;
  padding:12px 13px;
  color:var(--roj-ink);
  background:linear-gradient(180deg,#fff,#fffafb);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
  font:500 12.5px/1.45 "Inter",system-ui,sans-serif;
}
.roj-chat-input:focus{
  border-color:var(--roj-rose);
  box-shadow:0 0 0 3px rgba(184,111,134,.10);
}
.roj-chat-send{
  width:46px;height:46px;border:0;border-radius:16px;
  background:linear-gradient(180deg,#8a3a56,#6f263d);
  color:#fff;cursor:pointer;
  box-shadow:0 8px 16px rgba(111,38,61,.18);
  font:600 18px/1 Arial,sans-serif;
}
.roj-chat-privacy{
  margin-top:7px;
  text-align:center;
  color:#91848a;
  font:500 9px/1.35 "Inter",system-ui,sans-serif;
}
@media(max-width:600px){
  .roj-chat-launcher{right:14px;bottom:14px;width:62px;height:62px}
  .roj-chat-panel{
    inset:auto 8px 84px 8px;
    width:auto;
    max-height:calc(100dvh - 98px);
    min-height:340px;
    border-radius:24px;
  }
  .roj-chat-header{min-height:80px;padding:11px 12px !important}
  .roj-chat-header img{width:50px;height:50px}
  .roj-chat-body{padding:14px 11px 12px !important}
  .roj-msg{max-width:86%}
  .roj-quick-wrap,.roj-insight,.roj-chat-summary{margin-left:36px}
}
