/* ===== Assistente Raízes (guiado, sem IA, sem armazenamento) ===== */
.ra-launcher{
  position:fixed; right:22px; bottom:22px; z-index:950;
  width:66px; height:66px; border-radius:50%; padding:0; border:0; cursor:pointer;
  background:#1f2b22; box-shadow:0 12px 32px rgba(22,31,25,.35);
  transition:transform .3s ease;
}
.ra-launcher:hover{transform:scale(1.06);}
.ra-launcher img{width:100%; height:100%; border-radius:50%; object-fit:cover; border:2.5px solid #d8bc84; display:block;}
.ra-launcher .ra-dot{position:absolute; right:3px; bottom:3px; width:15px; height:15px; border-radius:50%; background:#5fae6a; border:2.5px solid #f6f1e6;}
.ra-launcher:focus-visible,.ra-opt:focus-visible,.ra-close:focus-visible,.ra-send:focus-visible{outline:2px solid #b08a4e; outline-offset:3px;}

.ra-teaser{
  position:fixed; right:100px; bottom:34px; z-index:949; max-width:230px;
  background:#fbf8f1; color:#2a2822; font:500 14px/1.45 'Manrope',sans-serif;
  padding:12px 34px 12px 16px; border-radius:14px 14px 4px 14px;
  box-shadow:0 10px 28px rgba(22,31,25,.18); border:1px solid rgba(176,138,78,.28);
  opacity:0; transform:translateY(8px); pointer-events:none; transition:all .35s ease; cursor:pointer;
}
.ra-teaser.is-shown{opacity:1; transform:none; pointer-events:auto;}
.ra-teaser b{color:#1f2b22;}
.ra-teaser-x{position:absolute; top:6px; right:8px; border:0; background:none; font-size:18px; line-height:1; color:#5a5648; cursor:pointer; padding:2px;}

.ra-panel{
  position:fixed; right:22px; bottom:100px; z-index:951;
  width:370px; max-width:calc(100vw - 32px); height:560px; max-height:calc(100vh - 130px);
  background:#f6f1e6; border-radius:18px; overflow:hidden; display:flex; flex-direction:column;
  box-shadow:0 24px 70px rgba(22,31,25,.32); border:1px solid rgba(176,138,78,.3);
  opacity:0; transform:translateY(14px) scale(.98); pointer-events:none; transition:all .3s ease;
  font-family:'Manrope',sans-serif;
}
.ra-panel.is-open{opacity:1; transform:none; pointer-events:auto;}
.ra-head{background:#1f2b22; color:#f6f1e6; padding:14px 16px; display:flex; align-items:center; gap:12px;}
.ra-head img{width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid #d8bc84;}
.ra-head-txt{flex:1; min-width:0;}
.ra-head-txt strong{display:block; font-family:'Fraunces',serif; font-weight:500; font-size:17px;}
.ra-head-txt span{font-size:12px; color:rgba(246,241,230,.7);}
.ra-close{background:none; border:0; color:#f6f1e6; font-size:26px; line-height:1; cursor:pointer; padding:4px 6px; opacity:.8;}
.ra-close:hover{opacity:1;}

.ra-body{flex:1; overflow-y:auto; padding:18px 14px 8px; display:flex; flex-direction:column; gap:10px; scroll-behavior:smooth;}
.ra-msg{max-width:86%; padding:10px 14px; font-size:14.5px; line-height:1.5; border-radius:14px; animation:raIn .25s ease;}
.ra-bot{background:#fbf8f1; color:#2a2822; border:1px solid rgba(176,138,78,.22); border-bottom-left-radius:4px; align-self:flex-start;}
.ra-user{background:#4b5a3a; color:#f6f1e6; border-bottom-right-radius:4px; align-self:flex-end;}
.ra-msg a{color:#8a6a35; font-weight:600;}
.ra-typing{display:flex; gap:4px; padding:14px;}
.ra-typing i{width:6px; height:6px; border-radius:50%; background:#b08a4e; animation:raDot 1s infinite ease-in-out;}
.ra-typing i:nth-child(2){animation-delay:.15s} .ra-typing i:nth-child(3){animation-delay:.3s}
.ra-opts{display:flex; flex-wrap:wrap; gap:8px; padding:4px 0 6px; animation:raIn .25s ease;}
.ra-opt{
  border:1px solid #b08a4e; background:transparent; color:#1f2b22; cursor:pointer;
  font:600 13.5px/1.2 'Manrope',sans-serif; padding:9px 13px; border-radius:999px; text-align:left;
  transition:background .2s,color .2s;
}
.ra-opt:hover{background:#1f2b22; color:#f6f1e6; border-color:#1f2b22;}
.ra-opt.ra-primary{background:#1f2b22; color:#f6f1e6; border-color:#1f2b22;}
.ra-opt.ra-primary:hover{background:#4b5a3a;}
.ra-opt.ra-muted{border-color:rgba(90,86,72,.35); color:#5a5648; font-weight:500;}
.ra-form{display:flex; flex-direction:column; gap:8px; animation:raIn .25s ease;}
.ra-form textarea,.ra-form input{
  width:100%; box-sizing:border-box; border:1px solid rgba(176,138,78,.45); background:#fff; border-radius:10px;
  font:400 14.5px/1.45 'Manrope',sans-serif; padding:10px 12px; color:#2a2822; resize:none;
}
.ra-form textarea:focus,.ra-form input:focus{outline:2px solid #b08a4e; outline-offset:0; border-color:transparent;}
.ra-form small{font-size:11.5px; color:#5a5648;}
.ra-form-row{display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap;}
.ra-send{border:0; background:#1f2b22; color:#f6f1e6; font:600 13.5px 'Manrope',sans-serif; padding:10px 16px; border-radius:999px; cursor:pointer;}
.ra-foot{padding:9px 14px 11px; font-size:11px; color:#5a5648; text-align:center; border-top:1px solid rgba(176,138,78,.2); background:#efe7d6;}
.ra-foot a{color:inherit;}

@keyframes raIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
@keyframes raDot{0%,80%,100%{transform:scale(.6); opacity:.5} 40%{transform:scale(1); opacity:1}}
@media (prefers-reduced-motion: reduce){.ra-msg,.ra-opts,.ra-form{animation:none}.ra-panel,.ra-teaser{transition:none}}
@media (max-width:600px){
  .ra-launcher{right:16px; bottom:16px; width:60px; height:60px;}
  .ra-teaser{right:86px; bottom:24px; max-width:200px;}
  .ra-panel{right:8px; left:8px; width:auto; max-width:none; bottom:86px; height:auto; top:70px; max-height:none;}
}
/* sobe o assistente quando o banner de cookies está visível */
body.ra-cookie-up .ra-launcher{bottom:120px;} body.ra-cookie-up .ra-teaser{bottom:132px;}
@media (max-width:640px){body.ra-cookie-up .ra-launcher{bottom:200px;} body.ra-cookie-up .ra-teaser{bottom:212px;}}
