/* Estilos isolados: nenhum seletor muda o conteúdo ou a tipografia do site. */
.tta { --tta-ready:1; --tta-bar:0px; --tta-ink:#143532; --tta-teal:#18534e; --tta-soft:#eef3ee; --tta-line:#cfdbd3; color:var(--tta-ink); font:400 16px/1.55 "Aptos","Inter","Segoe UI",Arial,sans-serif; }
.tta *, .tta *::before, .tta *::after { box-sizing:border-box; }
.tta[hidden], .tta [hidden] { display:none!important; }
.tta button, .tta input, .tta a { font:inherit; letter-spacing:normal; }
.tta button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
.tta button:focus-visible, .tta a:focus-visible, .tta input:focus-visible, .tta [tabindex]:focus-visible { outline:3px solid #a67d1f; outline-offset:3px; }
.tta-sr-only { position:absolute!important; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.tta .tta-launch { position:fixed; z-index:45; right:22px; bottom:calc(20px + var(--tta-bar) + env(safe-area-inset-bottom,0px)); display:flex; align-items:center; gap:11px; padding:5px 17px 5px 5px; border:1px solid #b7ccc1; border-radius:40px; background:#fff; color:var(--tta-ink); box-shadow:0 5px 22px #0e393328; min-height:70px; text-align:left; transition:box-shadow .16s ease; }
.tta .tta-launch:hover { box-shadow:0 6px 26px #0e393344; }
.tta .tta-avatar { display:block; flex:0 0 auto; width:60px; height:60px; border-radius:50%; object-fit:cover; background:var(--tta-soft); }
.tta .tta-launch-label { font-size:15px; font-weight:650; }
.tta .tta-badge { display:grid; place-items:center; position:absolute; left:43px; bottom:3px; width:23px; height:23px; border:2px solid #fff; border-radius:50%; color:#fff; background:var(--tta-teal); }
.tta .tta-badge svg { width:13px; height:13px; }
.tta .tta-teaser { position:fixed; z-index:46; right:22px; bottom:calc(102px + var(--tta-bar) + env(safe-area-inset-bottom,0px)); display:flex; align-items:flex-start; max-width:270px; border:1px solid var(--tta-line); border-radius:18px 18px 5px 18px; background:#fff; box-shadow:0 8px 27px #0e39332b; }
.tta .tta-teaser::before, .tta .tta-teaser::after { content:""; position:absolute; pointer-events:none; clip-path:polygon(0 0,100% 0,77% 100%); }
.tta .tta-teaser::before { right:29px; bottom:-19px; width:26px; height:20px; background:var(--tta-line); }
.tta .tta-teaser::after { right:30px; bottom:-17px; width:23px; height:18px; background:#fff; }
.tta .tta-teaser-open { padding:12px 4px 12px 15px; border:0; background:none; color:var(--tta-ink); text-align:left; font-size:14px; line-height:1.4; }
.tta .tta-teaser-close { flex:0 0 30px; width:30px; height:30px; padding:0; border:0; background:none; color:#526b62; font-size:20px; line-height:1; }
.tta .tta-panel { position:fixed; inset:auto 22px calc(18px + var(--tta-keyboard,0px)) auto; margin:0; padding:0; width:392px; max-width:calc(100vw - 28px); height:640px; max-height:calc(var(--tta-viewport,100dvh) - 38px); border:1px solid var(--tta-line); border-radius:21px; background:#f5f7f3; color:var(--tta-ink); box-shadow:0 18px 70px #0d332647; overflow:hidden; font:inherit; }
.tta .tta-panel[open] { display:flex; flex-direction:column; animation:tta-panel-enter .18s ease-out; }
.tta .tta-panel::backdrop { background:#0d30221f; }
.tta .tta-header { display:flex; align-items:center; gap:10px; flex-shrink:0; padding:12px 14px; margin:0; background:var(--tta-teal); color:#fff; border:0; position:static; box-shadow:none; }
.tta .tta-header .tta-avatar { width:40px; height:40px; }
.tta .tta-header>div { min-width:0; flex:1; }
.tta .tta-header h2 { margin:0 0 3px; color:#fff; font:650 20px/1.25 "Aptos","Inter","Segoe UI",Arial,sans-serif; letter-spacing:-.02em; }
.tta .tta-header p { margin:0; color:#e1ede6; font:400 12px/1.45 "Aptos","Inter","Segoe UI",Arial,sans-serif; }
.tta .tta-close { flex:0 0 40px; width:40px; height:40px; padding:0; display:grid; place-items:center; border:1px solid #ffffff50; background:#ffffff0d; color:#fff; border-radius:50%; font:28px/1 Arial,sans-serif; }
.tta .tta-reset { display:grid; place-items:center; width:32px; height:40px; flex:0 0 32px; padding:0; border:0; background:transparent; color:#e1ede6; }
.tta .tta-reset svg { width:20px; height:20px; }
.tta .tta-thread { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px 14px 10px; scroll-behavior:auto; }
.tta .tta-message { width:fit-content; max-width:95%; padding:14px 16px; margin:0 0 14px; font-size:15px; line-height:1.65; overflow-wrap:anywhere; }
.tta .tta-message p { margin:0; font:inherit; color:inherit; }
.tta .tta-bot { background:#fff; border:1px solid #d7e0d9; border-radius:4px 15px 15px 15px; }
.tta .tta-user { margin-left:auto; color:#fff; background:var(--tta-teal); border-radius:15px 4px 15px 15px; }
.tta .tta-starters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.tta .tta-starters button { padding:6px 11px; border:1px solid #b7ccc1; border-radius:18px; background:#fff; color:var(--tta-teal); font-size:13px; line-height:1.35; text-align:left; }
.tta .tta-starters button:hover { background:#e9f2ec; }
.tta .tta-source { display:block; margin-top:12px; color:var(--tta-teal); font-size:14px; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.tta .tta-contact-action { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.tta .tta-contact-number { flex:0 0 100%; color:var(--tta-ink); font-size:13px; }
.tta .tta-contact-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; max-width:100%; padding:7px 13px; border-radius:9px; background:var(--tta-teal); color:#fff; font-size:13px; font-weight:650; line-height:1.3; text-align:center; text-decoration:none; }
.tta .tta-contact-button:hover { background:#0d423e; color:#fff; }
.tta .tta-continue-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; max-width:100%; padding:7px 13px; border:1px solid var(--tta-teal); border-radius:9px; background:#fff; color:var(--tta-teal); font-size:13px; font-weight:650; line-height:1.3; text-align:center; }
.tta .tta-continue-button:hover { background:#e9f2ec; }
.tta .tta-continue-prompt { width:fit-content; max-width:95%; margin:0 0 14px; padding:10px 13px; border:1px solid #d7e0d9; border-radius:4px 13px 13px 13px; background:#fff; color:var(--tta-ink); font-size:14px; line-height:1.5; }
.tta .tta-reference { display:block; margin-top:8px; font-size:11px; line-height:1.4; color:#586c60; }
.tta .tta-form { display:flex; align-items:center; gap:8px; margin:0; padding:12px 15px 0; background:#fff; flex-shrink:0; border-top:1px solid var(--tta-line); }
.tta .tta-form input { display:block; flex:1; min-width:0; width:100%; min-height:47px; margin:0; border:1px solid #a7bcb0; border-radius:10px; background:#fff; color:var(--tta-ink); padding:10px 12px; font-size:16px; line-height:1.45; box-shadow:none; }
.tta .tta-form input::placeholder { color:#617568; opacity:1; }
.tta .tta-send { display:grid; place-items:center; width:46px; height:47px; flex:0 0 46px; padding:0; border:0; border-radius:10px; color:#fff; background:var(--tta-teal); }
.tta .tta-send svg { width:22px; height:22px; }
.tta .tta-send:disabled { opacity:.6; cursor:wait; }
.tta .tta-contact { flex-shrink:0; min-height:32px; margin:0; padding:3px 17px 10px; background:#fff; font-size:12px; line-height:1.4; }
.tta .tta-contact a { color:#375a4e; text-decoration:underline; text-underline-offset:2px; }
.tta-chat-open { overflow:hidden; }
.tta-chat-open .mobile-contact { visibility:hidden; }
@keyframes tta-dot { 0%,100%{transform:translateY(0);opacity:.5} 50%{transform:translateY(-3px);opacity:1} }
@keyframes tta-panel-enter { from{opacity:.9;transform:translateY(7px)} to{opacity:1;transform:translateY(0)} }
@media(max-width:600px) {
  .tta .tta-launch { right:15px; bottom:calc(14px + var(--tta-bar) + env(safe-area-inset-bottom,0px)); width:65px; min-height:65px; padding:4px; }
  .tta .tta-launch .tta-avatar { width:55px; height:55px; }
  .tta .tta-launch-label { display:none; }
  .tta .tta-badge { left:43px; bottom:1px; }
  .tta .tta-teaser { right:15px; bottom:calc(91px + var(--tta-bar) + env(safe-area-inset-bottom,0px)); max-width:calc(100vw - 105px); }
  .tta .tta-panel { inset:auto 8px calc(8px + var(--tta-keyboard,0px) + env(safe-area-inset-bottom,0px)) 8px; width:auto; max-width:none; height:640px; max-height:calc(var(--tta-viewport,100dvh) - 16px - env(safe-area-inset-bottom,0px)); border-radius:17px; }
  .tta .tta-header { padding:11px 12px; gap:9px; }
  .tta .tta-header .tta-avatar { width:40px; height:40px; }
  .tta .tta-header h2 { font-size:19px; }
  .tta .tta-close { width:40px; height:40px; flex-basis:40px; }
  .tta .tta-thread { padding:15px 12px 6px; }
  .tta .tta-message { padding:12px 13px; max-width:97%; }
}
@media(prefers-reduced-motion:reduce) { .tta *, .tta *::before, .tta *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print { .tta { display:none!important; } }
/* IA: somente conversa digitada, tema claro e links dentro das mensagens. */
.tta { color-scheme:light; }
.tta.tta-obstructed .tta-launch { visibility:hidden; pointer-events:none; }
.tta.tta-obstructed .tta-teaser { visibility:hidden; pointer-events:none; }
.tta .tta-message p { white-space:pre-wrap; }
.tta .tta-waiting { margin:0 14px 12px; color:#50685d; font-size:13px; }
.tta .tta-references { margin-top:10px; color:#50685d; font-size:12px; }
.tta .tta-references summary { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.tta .tta-references .tta-source { font-size:12px; margin-top:7px; }
.tta .tta-reset:disabled { opacity:.5; cursor:wait; }
.tta .tta-form input:disabled { background:#f5f7f3; }
