#pqsc-root{--pqsc-accent:#ed419a;position:fixed;right:24px;bottom:24px;z-index:2147480000;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;color:#fff}#pqsc-root.pqsc-left{left:24px;right:auto}#pqsc-root *{box-sizing:border-box}#pqsc-root button,#pqsc-root input,#pqsc-root textarea,#pqsc-root select{font:inherit}#pqsc-root button{cursor:pointer}#pqsc-root .pqsc-launch{display:grid;place-items:center;width:62px;height:62px;border:1px solid #ff91cf;border-radius:50%;background:linear-gradient(135deg,var(--pqsc-accent),#89165b);color:#fff;box-shadow:0 10px 36px #ed419a66;float:right;transition:transform .2s}#pqsc-root.pqsc-left .pqsc-launch{float:left}#pqsc-root .pqsc-launch:hover{transform:translateY(-3px)}#pqsc-root .pqsc-launch svg{width:30px;height:30px}#pqsc-root .pqsc-panel{position:absolute;bottom:78px;right:0;width:min(390px,calc(100vw - 30px));height:min(620px,calc(100dvh - 115px));min-height:330px;background:#101018;border:1px solid #37303b;border-radius:20px;overflow:hidden;box-shadow:0 22px 75px #000b;display:flex;flex-direction:column}#pqsc-root.pqsc-left .pqsc-panel{right:auto;left:0}#pqsc-root .pqsc-panel[hidden],#pqsc-root [hidden]{display:none!important}#pqsc-root .pqsc-head{background:linear-gradient(125deg,#1d1520,#101018);padding:14px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #312535}#pqsc-root .pqsc-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--pqsc-accent);font-size:22px}#pqsc-root .pqsc-head strong{display:block;font-size:15px}#pqsc-root .pqsc-head small{display:block;color:#c7b9c8}#pqsc-root .pqsc-close{margin-left:auto;border:0;background:transparent;color:#fff;font-size:28px;line-height:1}#pqsc-root .pqsc-messages{padding:17px 13px;flex:1;min-height:80px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}#pqsc-root .pqsc-msg{max-width:89%;padding:10px 13px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}#pqsc-root .pqsc-bot{align-self:flex-start;background:#22202c;border:1px solid #36303e}#pqsc-root .pqsc-user{align-self:flex-end;background:var(--pqsc-accent);color:white}#pqsc-root .pqsc-quick{display:flex;gap:6px;padding:0 12px 9px;overflow-x:auto}#pqsc-root .pqsc-quick button{white-space:nowrap;background:#231a29;color:#f9d5eb;border:1px solid #55324a;border-radius:16px;padding:6px 10px;font-size:12px}#pqsc-root .pqsc-chat-form{display:flex;gap:7px;padding:9px 12px;border-top:1px solid #2e2731}#pqsc-root .pqsc-chat-form input{flex:1;min-width:0;background:#1b1b25;border:1px solid #423444;border-radius:10px;padding:10px;color:#fff}#pqsc-root .pqsc-chat-form button,#pqsc-root .pqsc-lead-actions button:last-child{background:var(--pqsc-accent);color:#fff;border:0;border-radius:10px;padding:8px 13px}#pqsc-root .pqsc-actions{display:flex;gap:8px;padding:0 12px 11px}#pqsc-root .pqsc-actions button{flex:1;border:1px solid #70405b;border-radius:10px;padding:8px;background:#211724;color:#fff;font-size:12px}#pqsc-root .pqsc-actions .pqsc-wa{background:#174b38;border-color:#2a8b62}#pqsc-root .pqsc-foot{text-align:center;padding:7px;border-top:1px solid #2d2632;color:#a999ac;font-size:10px}#pqsc-root .pqsc-lead{flex:1;min-height:0;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:9px}#pqsc-root .pqsc-lead strong{font-size:16px}#pqsc-root .pqsc-lead input:not([type=checkbox]),#pqsc-root .pqsc-lead select,#pqsc-root .pqsc-lead textarea{width:100%;background:#1d1d28;border:1px solid #483747;border-radius:9px;padding:9px;color:#fff}#pqsc-root .pqsc-lead select option{background:#181820}#pqsc-root .pqsc-consent{display:flex;align-items:flex-start;gap:7px;font-size:11px;color:#ddd}#pqsc-root .pqsc-consent input{margin-top:3px;accent-color:var(--pqsc-accent)}#pqsc-root .pqsc-privacy{color:#ff93cb;font-size:11px}#pqsc-root .pqsc-status{margin:0;font-size:12px;color:#f8c3e0}#pqsc-root .pqsc-lead-actions{display:flex;justify-content:space-between;gap:8px}#pqsc-root .pqsc-lead-actions button{border:1px solid #554058;background:#24202a;color:#fff;border-radius:9px;padding:8px 14px}#pqsc-root .pqsc-hp,#pqsc-root .pqsc-sr{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip-path:inset(50%)}@media(max-width:480px){#pqsc-root{right:14px;bottom:14px}#pqsc-root.pqsc-left{left:14px}#pqsc-root .pqsc-panel{width:calc(100vw - 28px);height:min(640px,calc(100dvh - 100px));bottom:74px}#pqsc-root .pqsc-launch{width:55px;height:55px}}@media(prefers-reduced-motion:reduce){#pqsc-root *{transition:none!important;animation:none!important}}

/* V1.2 — botão premium, discreto e acima do rodapé */
#pqsc-root{bottom:76px!important;filter:none}
#pqsc-root .pqsc-launch{display:flex!important;align-items:center!important;gap:11px!important;float:right!important;width:auto!important;height:62px!important;min-width:210px!important;padding:9px 17px 9px 10px!important;border:1px solid rgba(237,65,154,.46)!important;border-radius:17px!important;background:linear-gradient(125deg,#211320 0%,#101018 85%)!important;box-shadow:0 12px 40px rgba(0,0,0,.55),0 0 25px rgba(237,65,154,.13)!important;color:#fff!important;text-align:left!important;position:relative;isolation:isolate;overflow:hidden;transition:transform .25s,box-shadow .25s!important}
#pqsc-root .pqsc-launch:hover{transform:translateY(-3px)!important;box-shadow:0 15px 45px #0009,0 0 29px #ed419a44!important}
#pqsc-root .pqsc-launch-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--pqsc-accent),#b51c73);box-shadow:0 0 18px #ed419a30}
#pqsc-root .pqsc-launch-mark svg{width:25px!important;height:25px!important}
#pqsc-root .pqsc-launch-label{display:flex;flex-direction:column;gap:1px;line-height:1.2}
#pqsc-root .pqsc-launch-label strong{font-size:13px;letter-spacing:.01em;font-weight:750;color:#fff}
#pqsc-root .pqsc-launch-label small{font-size:10px;color:#c7b9c8;letter-spacing:.02em}
#pqsc-root .pqsc-launch-pulse{position:absolute;right:12px;top:12px;width:6px;height:6px;border-radius:50%;background:#5fe0a2;box-shadow:0 0 9px #5fe0a288}
#pqsc-root .pqsc-panel{bottom:75px!important}
#pqsc-root.pqsc-left .pqsc-launch{float:left!important}
@media(max-width:600px){#pqsc-root{bottom:78px!important;right:14px!important}#pqsc-root.pqsc-left{left:14px!important;right:auto!important}#pqsc-root .pqsc-launch{min-width:0!important;height:54px!important;padding:7px 12px 7px 7px!important;gap:8px!important;border-radius:14px!important}#pqsc-root .pqsc-launch-mark{flex-basis:39px;width:39px;height:39px}#pqsc-root .pqsc-launch-label strong{font-size:12px}#pqsc-root .pqsc-launch-label small{font-size:9px}#pqsc-root .pqsc-panel{bottom:67px!important}}
@media(prefers-reduced-motion:reduce){#pqsc-root .pqsc-launch{transition:none!important}}

/* V1.3 — janela compacta, botão mais elevado e adaptação responsiva */
#pqsc-root{bottom:clamp(90px,12vh,116px)!important;right:clamp(16px,2vw,32px)!important}
#pqsc-root .pqsc-panel{height:min(480px,calc(100dvh - 205px))!important;min-height:0!important;bottom:76px!important;max-height:calc(100dvh - 205px)!important}
#pqsc-root .pqsc-messages{min-height:0!important}
#pqsc-root.pqsc-left{left:clamp(16px,2vw,32px)!important;right:auto!important}
@media (min-width:601px) and (max-width:1024px){
 #pqsc-root{bottom:96px!important;right:20px!important}
 #pqsc-root.pqsc-left{left:20px!important;right:auto!important}
 #pqsc-root .pqsc-panel{width:min(390px,calc(100vw - 40px))!important;height:min(460px,calc(100dvh - 185px))!important;max-height:calc(100dvh - 185px)!important;bottom:74px!important}
}
@media (max-width:600px){
 #pqsc-root{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;right:14px!important}
 #pqsc-root.pqsc-left{left:14px!important;right:auto!important}
 #pqsc-root .pqsc-panel{width:calc(100vw - 28px)!important;height:min(440px,calc(100dvh - 190px - env(safe-area-inset-bottom,0px)))!important;max-height:calc(100dvh - 190px - env(safe-area-inset-bottom,0px))!important;min-height:0!important;bottom:66px!important}
 #pqsc-root .pqsc-head{padding:10px 12px!important}
 #pqsc-root .pqsc-messages{padding:11px!important}
 #pqsc-root .pqsc-quick{padding-bottom:7px!important}
 #pqsc-root .pqsc-chat-form{padding:7px 10px!important}
 #pqsc-root .pqsc-actions{padding:0 10px 8px!important}
}
@media (max-height:570px){
 #pqsc-root{bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
 #pqsc-root .pqsc-panel{height:auto!important;max-height:calc(100dvh - 95px - env(safe-area-inset-bottom,0px))!important;bottom:65px!important}
 #pqsc-root .pqsc-messages{min-height:60px!important}
}

/* V1.4: overrides definitivos, sem clipping no topo */
@media (min-width:1025px) {
 #pqsc-root{bottom:105px!important;right:26px!important}
 #pqsc-root .pqsc-panel{height:410px!important;max-height:min(410px,calc(100dvh - 220px))!important;bottom:77px!important}
}
@media (min-width:601px) and (max-width:1024px) {
 #pqsc-root{bottom:95px!important;right:18px!important}
 #pqsc-root .pqsc-panel{height:400px!important;max-height:calc(100dvh - 195px)!important;bottom:74px!important}
}
@media (max-width:600px) {
 #pqsc-root{bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
 #pqsc-root .pqsc-panel{height:390px!important;max-height:calc(100dvh - 185px - env(safe-area-inset-bottom,0px))!important;bottom:65px!important}
}
#pqsc-root .pqsc-panel{min-height:0!important}
#pqsc-root .pqsc-messages{min-height:0!important;overflow-y:auto!important}
@media(max-height:600px){#pqsc-root{bottom:12px!important}#pqsc-root .pqsc-panel{height:calc(100dvh - 95px)!important;max-height:calc(100dvh - 95px)!important;bottom:68px!important}}

/* V1.4.1 — Launcher compacto: só ícone, sem cartão a tapar controlos */
#pqsc-root .pqsc-launch{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:54px!important;min-width:54px!important;max-width:54px!important;
 height:54px!important;min-height:54px!important;
 padding:0!important;gap:0!important;border-radius:50%!important;
 background:linear-gradient(135deg,#ed419a,#b51c73)!important;
 border:1px solid rgba(255,255,255,.28)!important;
 box-shadow:0 8px 24px rgba(0,0,0,.38),0 0 18px rgba(237,65,154,.22)!important;
 text-align:center!important;overflow:visible!important;
}
#pqsc-root .pqsc-launch-mark{
 display:grid!important;place-items:center!important;flex:0 0 54px!important;
 width:54px!important;height:54px!important;border-radius:50%!important;
 background:transparent!important;box-shadow:none!important;
}
#pqsc-root .pqsc-launch-mark svg{width:27px!important;height:27px!important}
#pqsc-root .pqsc-launch-label,#pqsc-root .pqsc-launch-pulse{display:none!important}
#pqsc-root .pqsc-launch:focus-visible{outline:2px solid #fff!important;outline-offset:4px!important}
#pqsc-root .pqsc-panel{bottom:68px!important}
@media(max-width:600px){
 #pqsc-root .pqsc-launch{width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important;min-height:50px!important}
 #pqsc-root .pqsc-launch-mark{flex-basis:50px!important;width:50px!important;height:50px!important}
 #pqsc-root .pqsc-panel{bottom:62px!important}
}
/* Página do gerador: bolha discreta no limite direito, acima do rodapé */

/* V1.5.1 — iPhone: janela contida, sem expansão ou scroll horizontal */
@media(max-width:600px){
 #pqsc-root{position:fixed!important;right:12px!important;left:auto!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 24px)!important}
 #pqsc-root.pqsc-left{left:12px!important;right:auto!important}
 #pqsc-root .pqsc-panel{position:absolute!important;right:0!important;left:auto!important;bottom:60px!important;width:min(370px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:min(470px,calc(100dvh - 100px - env(safe-area-inset-bottom,0px)))!important;max-height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px))!important;min-height:0!important;overflow:hidden!important;border-radius:16px!important;display:flex!important;flex-direction:column!important}
 #pqsc-root .pqsc-panel[hidden]{display:none!important}
 #pqsc-root.pqsc-left .pqsc-panel{left:0!important;right:auto!important}
 #pqsc-root .pqsc-head{flex:0 0 auto!important;min-height:0!important;padding:10px 12px!important}
 #pqsc-root .pqsc-head>span:nth-child(2){min-width:0!important;flex:1!important}
 #pqsc-root .pqsc-head strong{font-size:14px!important}
 #pqsc-root .pqsc-head small{font-size:10px!important;white-space:normal!important}
 #pqsc-root .pqsc-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch}
 #pqsc-root .pqsc-quick{flex:0 0 auto!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}
 #pqsc-root .pqsc-quick::-webkit-scrollbar{display:none}
 #pqsc-root .pqsc-chat-form,#pqsc-root .pqsc-actions,#pqsc-root .pqsc-foot{flex:0 0 auto!important}
 #pqsc-root .pqsc-chat-form input{width:0!important;min-width:0!important;font-size:16px!important}
 #pqsc-root .pqsc-chat-form button{flex:0 0 45px!important}
 #pqsc-root .pqsc-actions button{min-width:0!important}
 #pqsc-root .pqsc-msg{max-width:90%!important;font-size:13px!important;overflow-wrap:anywhere!important}
 #pqsc-root .pqsc-lead{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
}
@media(max-width:600px) and (max-height:550px){
 #pqsc-root{bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
 #pqsc-root .pqsc-panel{bottom:56px!important;height:calc(100dvh - 80px - env(safe-area-inset-bottom,0px))!important;max-height:calc(100dvh - 80px - env(safe-area-inset-bottom,0px))!important}
}


/* V1.6 — Mobile app layout: viewport real, cabeçalho fixo e formulário com ações visíveis */
@media (max-width:600px){
 #pqsc-root.pqsc-is-open{pointer-events:none!important}
 #pqsc-root.pqsc-is-open .pqsc-panel{pointer-events:auto!important}
 #pqsc-root.pqsc-is-open .pqsc-launch{visibility:hidden!important;pointer-events:none!important}
 #pqsc-root .pqsc-panel:not([hidden]){
  position:fixed!important;box-sizing:border-box!important;
  top:calc(var(--pqsc-viewport-top,0px) + 10px)!important;
  left:12px!important;right:12px!important;bottom:auto!important;
  width:calc(100vw - 24px)!important;max-width:none!important;
  height:calc(var(--pqsc-viewport-height,100dvh) - 20px)!important;
  max-height:calc(var(--pqsc-viewport-height,100dvh) - 20px)!important;
  min-height:0!important;display:flex!important;flex-direction:column!important;
  overflow:hidden!important;border-radius:17px!important;
 }
 #pqsc-root.pqsc-left .pqsc-panel:not([hidden]){left:12px!important;right:12px!important}
 #pqsc-root .pqsc-head{flex:0 0 auto!important;min-height:60px!important;padding:10px 12px!important;z-index:2}
 #pqsc-root .pqsc-avatar{flex:0 0 36px!important;width:36px!important;height:36px!important}
 #pqsc-root .pqsc-close{flex:0 0 40px!important;width:40px!important;height:40px!important;padding:0!important}
 #pqsc-root .pqsc-lead:not([hidden]){flex:1 1 auto!important;display:flex!important;flex-direction:column!important;
  gap:9px!important;padding:12px 13px 0!important;min-height:0!important;overflow-y:auto!important;
  overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
 #pqsc-root .pqsc-lead>strong{flex:none!important;font-size:14px!important;line-height:1.35!important}
 #pqsc-root .pqsc-lead input:not([type=checkbox]),#pqsc-root .pqsc-lead select,#pqsc-root .pqsc-lead textarea{
  flex:0 0 auto!important;min-height:43px!important;padding:10px 12px!important;font-size:16px!important;
  max-width:100%!important;border-radius:9px!important}
 #pqsc-root .pqsc-lead textarea{min-height:78px!important;resize:vertical!important}
 #pqsc-root .pqsc-consent{flex:none!important;line-height:1.45!important;font-size:11px!important}
 #pqsc-root .pqsc-consent input{flex:0 0 17px!important;width:17px!important;height:17px!important}
 #pqsc-root .pqsc-lead-actions{position:sticky!important;bottom:0!important;z-index:3!important;
  flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  margin:4px -13px 0!important;padding:11px 13px calc(11px + env(safe-area-inset-bottom,0px))!important;
  background:#101018!important;border-top:1px solid #302632!important}
 #pqsc-root .pqsc-lead-actions button{min-height:43px!important;padding:10px 14px!important;font-size:13px!important}
 #pqsc-root .pqsc-foot{flex:0 0 auto!important;padding:5px 8px!important}
 #pqsc-root .pqsc-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
 #pqsc-root .pqsc-chat-form input{font-size:16px!important}
}
