:root {
  --ink: #242139;
  --navy: #1800ad;
  --navy-dark: #100663;
  --accent: #00b5e2;
  --muted: #656176;
  --line: #e1deed;
  --paper: #f5f6fa;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 'Segoe UI', Arial, sans-serif; }
button, input, textarea { font: inherit; }
a { color: var(--navy); }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.service-strip { padding: 7px 32px; background: var(--navy-dark); color: #ddd8f6; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.service-strip > span:first-child { color: #fff; font-weight: 600; letter-spacing: .6px; }
.masthead { min-height: 94px; padding: 17px 32px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { display: block; width: 235px; height: 57px; object-fit: contain; }
.brand small { display: block; font-size: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-button, .contact { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; border-radius: 8px; padding: 11px 17px; font-size: 15px; line-height: 1.25; font-weight: 600; text-decoration: none; transition: background .18s ease, box-shadow .18s ease; }
.site-button { color: #071c4d; background: var(--accent); border: 1px solid #00a5ce; box-shadow: 0 3px 0 #009ac322; }
.site-button small { display: block; font-size: 12px; font-weight: 400; margin-top: 3px; }
.site-button:hover { background: #20c5ea; box-shadow: 0 4px 12px #00a5ce26; }
.contact { color: var(--navy); border: 1px solid #d5cfee; background: #fff; }
.contact:hover { background: #f3f0fc; border-color: #b5a9df; }
.workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 24px; width: 100%; max-width: 1540px; margin: auto; padding: 28px 32px 26px; align-items: start; }
.eyebrow { font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .65px; color: var(--muted); }
.status-indicator { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.intro { padding: 23px 20px 21px; background: var(--navy-dark); color: #fff; border-radius: 12px; border-top: 3px solid var(--accent); }
.intro > .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1px; color: #d5cef2; }
h1 { font-size: 27px; font-weight: 650; line-height: 1.2; letter-spacing: -.6px; margin: 23px 0 17px; }
h1 em { font-style: normal; color: #16c4ef; }
.intro > p { margin: 0; font-size: 14px; line-height: 1.75; color: #ded8f2; }
.steps { padding: 0; margin: 26px 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 10px; color: #d0c9e9; font-size: 14px; line-height: 1.4; margin: 21px 0; }
.steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #706399; border-radius: 50%; flex-shrink: 0; font-size: 12px; }
.steps li small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.55; color: #c2b9dd; }
.steps li.active { color: #fff; font-weight: 600; }
.steps li.active > span { border-color: var(--accent); background: var(--accent); color: #071c4d; font-weight: 700; }
.intro-footer { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #49368b; padding-top: 21px; }
.document-icon { color: var(--accent); margin-top: 2px; }
.intro-footer p { font-size: 13px; line-height: 1.5; margin: 0; }
.intro-footer small { display: block; font-size: 12px; color: #c2b9dd; margin-top: 4px; }
.intro-site { margin-top: 21px; padding-top: 17px; border-top: 1px solid #49368b; display: flex; justify-content: space-between; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.intro-site:hover { color: #16c4ef; }
.conversation { display: flex; flex-direction: column; min-width: 0; height: calc(100svh - 218px); min-height: 580px; max-height: 880px; border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 26px #170f4605; }
.chat-heading { display: flex; align-items: center; gap: 12px; padding: 19px 22px; }
.chat-heading h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.2px; }
.chat-heading > div > span { color: var(--muted); font-size: 13px; }
.chat-heading .status-indicator { margin-right: 4px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e2dbf5; border-radius: 10px; background: #f7f4fe; flex-shrink: 0; }
.avatar img { width: 32px; height: 32px; object-fit: contain; }
.icon-button { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 7px; background: none; color: #6e6194; }
.icon-button:hover { background: #f2effa; }
.progress { height: 3px; background: #eeeafa; flex-shrink: 0; }
.progress > div { height: 100%; width: 8%; background: var(--accent); transition: width .25s ease; }
.thread { flex: 1; min-height: 0; overflow: auto; padding: 23px 22px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #cac3df transparent; }
.welcome-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.15px; }
.welcome-desc { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 25px; }
.message { margin-bottom: 21px; animation: appear .16s ease; }
.message-label { margin: 0 0 7px 1px; font-size: 12px; font-weight: 600; color: #716780; }
.bubble { max-width: 96%; padding: 14px 16px; border-radius: 0 10px 10px 10px; background: #f3f0fb; color: #332b46; font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { display: flex; flex-direction: column; align-items: flex-end; }
.user .message-label { display: none; }
.user .bubble { color: #fff; background: var(--navy); border-radius: 10px 0 10px 10px; }
.response-area { padding: 15px 18px 17px; border-top: 1px solid var(--line); background: #fcfbff; flex-shrink: 0; }
.options { display: flex; flex-wrap: wrap; align-items: stretch; gap: 9px; }
.options:empty { display: none; }
.options button, .secondary { min-height: 44px; padding: 11px 14px; border: 1px solid #d8cfed; border-radius: 7px; background: #fff; color: var(--navy); text-align: left; font-size: 15px; line-height: 1.45; font-weight: 500; }
.options button:hover, .secondary:hover { background: #f0ebfb; border-color: #b0a0da; }
.options .primary, .primary { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.options .primary:hover, .primary:hover { background: #110080; color: #fff; }
.options > span { font-size: 15px; line-height: 1.6; color: var(--muted); }
#composer { display: flex; align-items: stretch; gap: 9px; margin-top: 11px; }
input, textarea { min-width: 0; width: 100%; padding: 14px; border: 1px solid #d2cae4; border-radius: 7px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; }
input::placeholder { color: #7b7389; opacity: 1; }
#send { min-height: 48px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
#send:hover { background: #110080; }
.composer-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; line-height: 1.5; color: #6c637d; }
.text-button { min-height: 28px; background: none; border: 0; border-radius: 3px; color: var(--navy); font-size: 14px; padding: 3px 0; text-decoration: underline; text-underline-offset: 3px; }
.product-options { display: grid; gap: 9px; margin-top: 12px; }
.product-option { width: 100%; padding: 16px; border: 1px solid #d8cfed; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; font-size: 16px; line-height: 1.6; }
.product-option:hover { background: #f5f1fc; border-color: #ad9bdb; }
.product-option strong { display: block; margin-top: 9px; color: var(--navy); font-size: 16px; }
.summary { min-width: 0; padding: 22px 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.summary h2 { font-size: 18px; line-height: 1.4; font-weight: 650; margin: 10px 0 20px; letter-spacing: -.15px; }
.empty-cart { padding: 19px 16px; border: 1px dashed #d9d2e9; border-radius: 8px; background: #faf9fd; color: #71687f; font-size: 14px; line-height: 1.75; }
.cart-item { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.cart-item:first-child { padding-top: 0; }
.cart-item h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; line-height: 1.45; font-weight: 650; }
.cart-item > span { display: block; }
.cart-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.cart-meta strong { font-size: 16px; color: var(--ink); white-space: nowrap; }
.cart-item .text-button { margin-top: 8px; }
.amount-row { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0; font-size: 15px; }
.amount-row > span:last-child { white-space: nowrap; }
.amount-row.total { border-top: 1px solid var(--line); padding-top: 18px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.amount-row.discount { color: #21734f; }
.client-row { margin: 15px 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.client-row small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.client-row .text-button { margin-left: 10px; }
.review-card { padding: 4px 17px; margin: 17px 0; border: 1px solid #e1d8f5; border-radius: 9px; background: #faf8ff; }
.review-card h3 { color: var(--navy); font-size: 22px; }
.contact-panel { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.contact-panel h3 { margin: 10px 0 7px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.contact-panel > p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 17px; }
.contact-card { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 13px 11px; border: 1px solid #ded6ee; border-radius: 8px; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.contact-card small { display: block; font-size: 12px; font-weight: 400; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.contact-card b { font-size: 18px; font-weight: 400; margin-left: auto; }
.contact-icon { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 7px; background: #f2edfc; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.whatsapp-card { color: #fff; border-color: var(--navy); background: var(--navy); }
.whatsapp-card small { color: #e0daf7; }
.whatsapp-card .contact-icon { color: #21c8ed; background: #ffffff12; }
.whatsapp-card:hover { background: #110080; }
.email-card:hover { background: #f6f2fc; }
.privacy { color: #71697e; font-size: 12px; line-height: 1.75; margin: 19px 0 0; }
.download { display: block; padding: 15px 17px; border-radius: 8px; margin: 16px 0; color: #fff; background: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; }
#thread > p { overflow-wrap: anywhere; }
.site-footer { max-width: 1540px; margin: auto; padding: 0 32px 105px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; color: #6d657c; font-size: 12px; line-height: 1.6; }
.site-footer a { font-size: 13px; color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.footer-divider { padding: 0 7px; color: #a59bb5; }
.whatsapp-float { position: fixed; right: 24px; bottom: 22px; z-index: 100; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 11px 17px; color: #fff; background: #147548; border: 1px solid #0b663b; border-radius: 32px; box-shadow: 0 5px 20px #09391c26; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.whatsapp-float > svg { width: 29px; height: 29px; }
.whatsapp-float > span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.whatsapp-float small { display: block; color: #e5f7ec; font-size: 12px; font-weight: 400; margin-top: 3px; }
.whatsapp-float .float-arrow { font-size: 19px; font-weight: 400; margin-left: 4px; }
.whatsapp-float:hover { background: #0b6138; transform: translateY(-2px); }
#error { background: #fff1e9; color: #883e1c; border-left: 3px solid #b34f23; border-radius: 5px; padding: 12px 14px; font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
dialog { border: 1px solid var(--line); border-radius: 12px; max-width: 450px; width: calc(100% - 32px); padding: 27px; color: var(--ink); box-shadow: 0 20px 80px #0c05234d; }
dialog::backdrop { background: #17112f80; }
dialog h2 { font-size: 21px; line-height: 1.3; margin-top: 0; }
dialog p { font-size: 16px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@keyframes appear { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1260px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; }
  .intro { display: none; }
}
@media (max-width: 960px) {
  .workspace { padding: 22px 22px 26px; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
  .masthead { padding-left: 22px; padding-right: 22px; }
  .brand img { width: 205px; }
  .site-button, .contact { font-size: 14px; padding: 11px 13px; }
  .summary { padding: 20px 17px; }
  .chat-heading { padding: 18px 17px; }
  .chat-heading h2 { font-size: 17px; }
  .chat-heading > div > span { font-size: 12px; }
  .avatar { width: 36px; height: 36px; }
  .avatar img { width: 28px; height: 28px; }
}
@media (max-width: 760px) {
  .service-strip { padding: 7px 18px; font-size: 12px; }
  .service-strip > span:last-child { display: none; }
  .masthead { min-height: 0; padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
  .brand img { width: 190px; height: 46px; }
  .top-actions { margin-left: 0; width: 100%; gap: 10px; }
  .site-button { flex: 1; font-size: 15px; min-height: 53px; }
  .contact { flex: 1; font-size: 14px; min-height: 53px; }
  .workspace { display: flex; flex-direction: column; gap: 22px; padding: 18px 14px 26px; }
  .conversation { width: 100%; height: calc(100svh - 265px); min-height: 480px; max-height: 780px; border-radius: 10px; }
  .chat-heading { padding: 17px 16px; gap: 10px; }
  .chat-heading h2 { font-size: 17px; }
  .chat-heading > div > span { font-size: 12px; }
  .icon-button { flex-shrink: 0; width: 32px; }
  .thread { padding: 20px 16px; }
  .welcome-title { font-size: 18px; }
  .welcome-desc { font-size: 15px; }
  .response-area { padding: 13px 13px 15px; }
  .options { gap: 8px; }
  .options button { font-size: 14px; padding: 10px 12px; }
  .bubble { max-width: 100%; font-size: 16px; padding: 13px 14px; }
  .summary { width: 100%; padding: 23px; }
  .contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .contact-panel > .eyebrow, .contact-panel > h3, .contact-panel > p { grid-column: 1/-1; }
  .contact-panel > p { margin-bottom: 6px; }
  .site-footer { padding: 0 22px 110px; flex-wrap: wrap; gap: 12px; }
  .footer-divider { display: none; }
  .site-footer > span { max-width: 310px; }
  .whatsapp-float { right: 18px; bottom: 18px; }
}
@media (max-width: 510px) {
  .service-strip { font-size: 12px; }
  .brand img { width: 184px; height: 44px; }
  .site-button, .contact { padding: 10px; gap: 8px; }
  .site-button > svg, .contact > svg { width: 18px; height: 18px; }
  .site-button { flex: 1.1; font-size: 14px; }
  .contact { flex: 1; font-size: 14px; }
  .site-button small { font-size: 12px; }
  .chat-heading { align-items: center; }
  .chat-heading h2 { font-size: 16px; }
  .avatar { width: 33px; height: 37px; }
  .avatar img { width: 27px; }
  .composer-footer { flex-wrap: wrap; gap: 4px 12px; }
  .options button { font-size: 14px; }
  .contact-panel { display: block; }
  .contact-card { padding: 14px 12px; }
  .whatsapp-float { width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; }
  .whatsapp-float > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Compactar a chamada lateral e manter o atalho flutuante discreto. */
.intro h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.65px; }
.whatsapp-float { width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; }
.whatsapp-float > span:not(.float-arrow) { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); width: 190px; padding: 12px 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 20px #170f4614; opacity: 0; visibility: hidden; pointer-events: none; font-size: 14px; font-weight: 600; }
.whatsapp-float small { color: var(--muted); }
.whatsapp-float .float-arrow { display: none; }
.whatsapp-float:hover > span:not(.float-arrow), .whatsapp-float:focus-visible > span:not(.float-arrow) { opacity: 1; visibility: visible; }
@media (max-width: 510px) {
  .top-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); align-items: stretch; }
  .site-button, .contact { height: 100%; }
  .whatsapp-float > span { display: none !important; }
}

/* Mantem todo o topo visivel sem retirar sua altura do fluxo da pagina. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: var(--white);
  box-shadow: 0 3px 12px #1006630a;
}

/* Escolha orientada de produtos: botoes centralizados e acionaveis. */
.options { justify-content: center; }
.options.quick-choices { display: block; }
.choice-guide { text-align: center; margin: 0 auto 13px; line-height: 1.5; }
.choice-guide strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.choice-guide > span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 680px; margin: 0 auto; }
.options .quick-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 77px; padding: 12px 9px; border: 1px solid #d2c8ed; border-bottom: 3px solid #c8bce8; border-radius: 9px; background: #fff; color: var(--navy); text-align: center; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.quick-label { font-size: 15px; line-height: 1.35; font-weight: 600; }
.quick-action { font-size: 12px; line-height: 1.4; font-weight: 500; color: #6c608b; }
.options .quick-choice:hover { transform: translateY(-2px); background: #f4f0ff; border-color: #9784d2; border-bottom-color: var(--accent); box-shadow: 0 4px 11px #1800ad0c; }
.options .quick-choice:focus-visible { background: #f4f0ff; outline: 3px solid var(--accent); outline-offset: 2px; }
.options .quick-choice:active { transform: translateY(1px); }
.options .quick-choice.is-selecting { background: var(--navy); border-color: var(--navy); border-bottom-color: var(--accent); color: #fff; transform: none; }
.quick-choice.is-selecting .quick-action { color: #e4ddff; }
.product-options { max-width: 680px; margin-left: auto; margin-right: auto; }
.product-select-hint { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; padding: 2px 0 8px; }
.product-option { transition: border-color .15s, background .15s, box-shadow .15s; }
.product-option:hover { border-color: #9784d2; box-shadow: 0 3px 12px #1800ad0b; }
.product-option .select-label { display: block; font-size: 14px; margin-top: 9px; color: var(--navy); font-weight: 600; }
.product-option.is-selecting { border-color: var(--accent); background: #eeebfa; }
@media (max-width: 1050px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; } }
@media (max-width: 510px) {
 .choice-guide strong { font-size: 14px; }
 .choice-guide > span { font-size: 12px; }
 .quick-grid { gap: 8px; }
 .options .quick-choice { min-height: 70px; padding: 10px 7px; }
 .quick-label { font-size: 14px; }
}
@media (max-width: 760px) {
 .conversation:has(.quick-choices) { min-height: 580px; }
}
@media (max-width: 510px) {
 .choice-guide > span { display: none; }
}
@media (max-width: 360px) {
 .conversation:has(.quick-choices) { min-height: 600px; }
}

/* Indicador de resposta do atendimento. */
.is-typing .response-area { pointer-events: none; }
.is-typing #options { visibility: hidden; }
.typing-bubble { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; }
.typing-text { font-size: 13px; color: #655c78; }
.typing-dots { display: inline-flex; align-items: center; gap: 4px; height: 16px; }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--navy); opacity: .35; animation: typing-pulse 1.05s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-pulse { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-dots span { animation: none; opacity: .65; } }
