#psc-root{position:fixed;bottom:24px;right:24px;z-index:999999;font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}#psc-root.psc-left{right:auto;left:24px}#psc-root *{box-sizing:border-box}.psc-toggle{margin-left:auto;width:62px;height:62px;border:0;border-radius:50%;background:var(--psc-accent);color:#fff;box-shadow:0 6px 26px #0005;cursor:pointer;display:grid;place-items:center}.psc-left .psc-toggle{margin-left:0}.psc-toggle svg{width:32px;height:32px}.psc-attention{animation:psc-pulse 3s ease-in-out infinite}@keyframes psc-pulse{0%,70%,100%{box-shadow:0 6px 26px #0005;transform:scale(1)}80%{box-shadow:0 0 0 12px #84cc0022;transform:scale(1.07)}}.psc-panel{width:min(370px,calc(100vw - 32px));height:min(530px,calc(100dvh - 110px));margin-bottom:14px;border-radius:20px;overflow:hidden;background:#151d1b;color:#f7faf8;box-shadow:0 12px 45px #0006;display:flex;flex-direction:column}.psc-panel[hidden]{display:none}.psc-light .psc-panel{background:#f8faf9;color:#15211b}.psc-header{display:flex;align-items:center;gap:12px;padding:15px;background:var(--psc-accent);color:#102008}.psc-avatar{width:42px;height:42px;border-radius:50%;background:#fff3;display:grid;place-items:center;font-size:24px;overflow:hidden;flex:none}.psc-avatar img{width:100%;height:100%;object-fit:cover}.psc-heading{display:flex;flex-direction:column;flex:1;min-width:0}.psc-heading strong{font-size:15px}.psc-heading small{font-size:11px}.psc-close{border:0;background:#0002;border-radius:50%;width:30px;height:30px;font-size:23px;cursor:pointer;color:inherit}.psc-messages{flex:1;overflow:auto;padding:18px 14px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.psc-bubble{align-self:flex-start;max-width:94%;border-radius:4px 15px 15px 15px;background:#293b32;padding:11px 13px;overflow-wrap:anywhere;animation:psc-in .25s ease-out}.psc-light .psc-bubble{background:#e4efe7}.psc-bubble img{max-width:100%;height:auto;border-radius:9px;display:block}.psc-bubble a{color:#a3e9aa;overflow-wrap:anywhere}.psc-light .psc-bubble a{color:#137d46}.psc-bubble iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:9px}.psc-bubble.psc-media{width:95%}.psc-typing{font-size:13px;opacity:.75}.psc-footer{padding:13px;background:#1e2b25;display:flex;flex-direction:column;gap:8px;text-align:center}.psc-light .psc-footer{background:#edf3ee}.psc-footer a{display:block;background:var(--psc-accent);color:#102008!important;padding:12px;border-radius:12px;text-decoration:none;font-weight:700}.psc-footer small{font-size:10px;opacity:.65}@keyframes psc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){#psc-root{right:16px;bottom:16px}#psc-root.psc-left{left:16px}.psc-toggle{width:56px;height:56px}.psc-panel{height:min(510px,calc(100dvh - 90px))}}@media(prefers-reduced-motion:reduce){.psc-attention{animation:none}.psc-bubble{animation:none}}
.psc-close{display:grid;place-items:center;width:36px;height:36px;flex:none;background:rgba(0,0,0,.12);border:1px solid rgba(0,0,0,.12);border-radius:12px;transition:background .2s,transform .2s}.psc-close:hover,.psc-close:focus-visible{background:rgba(0,0,0,.25);transform:rotate(90deg)}.psc-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}.psc-youtube-card{display:block!important;text-decoration:none!important;color:inherit!important;position:relative}.psc-youtube-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.psc-youtube-card .psc-play{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);background:#ed1c24;color:white;border-radius:12px;padding:8px 17px;font-size:22px}.psc-youtube-card .psc-video-title{display:block;padding:8px 2px 2px;font-size:12px;font-weight:600}.psc-bubble .psc-link-button{display:inline-block;background:var(--psc-accent);color:#14200c!important;padding:9px 13px;border-radius:9px;text-decoration:none;font-weight:700}

.psc-shape-square .psc-toggle{border-radius:0}.psc-shape-rounded .psc-toggle{border-radius:15px}.psc-interactive{padding:0 14px;max-height:48%;overflow:auto}.psc-question,.psc-booking{padding:12px;background:#293b32;border-radius:14px;margin:8px 0;display:flex;flex-wrap:wrap;gap:8px}.psc-question p{width:100%;margin:0 0 5px}.psc-choice{border:1px solid var(--psc-accent);background:transparent;color:inherit;border-radius:22px;padding:8px 12px;cursor:pointer}.psc-choice:hover{background:var(--psc-accent);color:#102008}.psc-choice:disabled{opacity:.4;cursor:not-allowed}.psc-user-answer{align-self:flex-end;background:var(--psc-accent);color:#102008}.psc-booking>*{width:100%;min-width:0}.psc-booking input,.psc-booking select{padding:9px;border-radius:8px;border:1px solid #ccc;background:white;color:#222}.psc-booking strong{font-size:14px}.psc-booking small{opacity:.75}.psc-youtube-card .psc-play{pointer-events:none}.psc-light .psc-question,.psc-light .psc-booking{background:#e4efe7}

/* Finalização inteligente */
#psc-root.psc-flow-active:not(.psc-flow-finished) .psc-footer{display:none}
#psc-root.psc-flow-finished .psc-footer{display:none}
.psc-finish{padding:16px;background:#293b32;border-radius:15px;margin:10px 0 16px;display:flex;flex-direction:column;gap:12px;animation:psc-in .3s ease-out}
.psc-light .psc-finish{background:#e4efe7}
.psc-finish-heading{font-size:17px}.psc-finish p{margin:0;line-height:1.5}.psc-finish-summary{border-top:1px solid #ffffff30;border-bottom:1px solid #ffffff30;padding:8px 0;display:grid;gap:8px}.psc-finish-row{display:flex;justify-content:space-between;align-items:start;gap:12px;font-size:12px}.psc-finish-row span{opacity:.75}.psc-finish-row strong{text-align:right;overflow-wrap:anywhere;max-width:60%}.psc-finish-send{background:var(--psc-accent);color:#14200c!important;border-radius:12px;padding:13px 10px;text-align:center;font-weight:700;text-decoration:none!important;display:block;transition:filter .2s,transform .2s}.psc-finish-send:hover{filter:brightness(1.07);transform:translateY(-1px)}.psc-finish-note{font-size:11px;opacity:.75;text-align:center;line-height:1.4}

/* 1.4.2: formato e cor do icone, com especificidade contra CSS do tema */
#psc-root.psc-shape-circle button#psc-toggle{border-radius:50%!important;overflow:hidden!important}
#psc-root.psc-shape-square button#psc-toggle{border-radius:0!important;overflow:hidden!important}
#psc-root.psc-shape-rounded button#psc-toggle{border-radius:15px!important;overflow:hidden!important}
#psc-root button#psc-toggle{color:var(--psc-icon-color,#ffffff)!important;background:var(--psc-accent)!important;appearance:none!important;-webkit-appearance:none!important}
#psc-root button#psc-toggle svg{color:inherit!important;fill:currentColor!important}

/* v1.4.5: botão flutuante mantém proporções exatas em telas pequenas,
   independentemente das regras globais de botões do tema/Elementor. */
#psc-root button#psc-toggle {
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  min-height:62px!important;
  max-width:62px!important;
  max-height:62px!important;
  aspect-ratio:1 / 1!important;
  flex:0 0 62px!important;
  padding:0!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
}
#psc-root button#psc-toggle svg {
  width:32px!important;
  height:32px!important;
  flex-shrink:0!important;
}
@media (max-width:600px) {
  #psc-root button#psc-toggle {
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    max-width:56px!important;
    max-height:56px!important;
    flex-basis:56px!important;
  }
  #psc-root button#psc-toggle svg {width:30px!important;height:30px!important}
}

/* Documento PDF / Word */
#psc-root .psc-document-card{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:rgba(255,255,255,.09);color:inherit;text-decoration:none;max-width:100%;min-width:0}
#psc-root .psc-document-icon{background:#cf3636;color:#fff;font-size:11px;font-weight:800;border-radius:7px;padding:9px 7px;flex-shrink:0}
#psc-root .psc-document-name{overflow-wrap:anywhere;min-width:0;flex:1;font-size:13px;font-weight:600}
#psc-root .psc-document-action{white-space:nowrap;font-size:11px;font-weight:700}
#psc-root .psc-document-card:hover{filter:brightness(1.15)}

/* YouTube: triangle CSS instead of emoji glyph (prevents blue play icon). */
#psc-root .psc-youtube-card .psc-play{display:flex;align-items:center;justify-content:center;width:66px;height:48px;padding:0!important;background:#ff0033;color:#fff;font-size:0!important;line-height:0!important}
#psc-root .psc-youtube-card .psc-play::before{content:"";display:block;width:0;height:0;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:17px solid #fff;margin-left:4px}

/* Histórico das perguntas: preservar o contexto das respostas no chat. */
.psc-question-history{align-self:flex-start;max-width:88%;white-space:pre-wrap}

/* v1.5.2: isolamento dos botoes contra estilos globais Elementor/tema */
#psc-root button#psc-toggle, #psc-root button.psc-close {
  border:1px solid #111!important; outline:none!important;
  box-shadow:none!important; text-decoration:none!important;
  -webkit-tap-highlight-color:transparent;
}
#psc-root button#psc-toggle:hover, #psc-root button#psc-toggle:focus,
#psc-root button#psc-toggle:active {
  background:var(--psc-accent)!important; border-color:#111!important;
  color:var(--psc-icon-color,#fff)!important; box-shadow:none!important; outline:none!important;
}
#psc-root button.psc-close {
  background:rgba(0,0,0,.12)!important; color:#111!important;
  border-radius:12px!important; transition:background-color .2s ease,transform .2s ease!important;
}
#psc-root button.psc-close:hover, #psc-root button.psc-close:focus-visible {
  background:var(--psc-accent-dark,#405000)!important; color:#fff!important;
  border-color:#111!important; box-shadow:none!important; outline:none!important;
}
#psc-root button.psc-close:focus-visible, #psc-root button#psc-toggle:focus-visible {
  outline:2px solid #111!important; outline-offset:2px!important;
}

/* v1.5.4: botoes das respostas usam a cor principal, sem herdar Elementor */
#psc-root .psc-interactive button.psc-choice:not(:disabled) {
  appearance:none!important;-webkit-appearance:none!important;
  background:var(--psc-accent)!important; color:#102008!important;
  border:1px solid #111!important; border-radius:8px!important;
  box-shadow:none!important; text-shadow:none!important;
  font:inherit!important; font-weight:700!important; opacity:1!important;
  transition:filter .18s ease!important;
}
#psc-root .psc-interactive button.psc-choice:not(:disabled):hover,
#psc-root .psc-interactive button.psc-choice:not(:disabled):active,
#psc-root .psc-interactive button.psc-choice:not(:disabled):focus {
  background:var(--psc-accent)!important; color:#102008!important;
  border-color:#111!important; box-shadow:none!important;
  filter:brightness(.88)!important;
}
#psc-root .psc-interactive button.psc-choice:focus-visible {outline:2px solid #111!important;outline-offset:2px!important}

/* v1.5.7: botão de revisão da agenda, inclusive desabilitado, sem estilos Elementor. */
#psc-root .psc-interactive .psc-booking button.psc-choice:disabled {
  appearance:none!important;-webkit-appearance:none!important;
  background:var(--psc-accent)!important;color:#102008!important;
  border:1px solid #111!important;border-radius:8px!important;
  box-shadow:none!important;text-shadow:none!important;
  font:inherit!important;font-weight:700!important;opacity:.45!important;
  cursor:not-allowed!important;
}
