:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;--wa-green:#008069;--wa-deep:#005c4b;--wa-bg:#efeae2;--wa-out:#d9fdd3;--wa-muted:#667781;--shadow:0 1px 1px rgba(11,20,26,.13)}
*{box-sizing:border-box}html,body{height:100%}body{margin:0;min-height:100%;color:#111b21;background:#d9dbd5;overflow:hidden}body::before{content:"";position:fixed;inset:0 0 auto;height:128px;background:var(--wa-green)}button{font:inherit}button:focus-visible,a:focus-visible{outline:3px solid #d8a500;outline-offset:2px}
.chat-shell{position:relative;z-index:1;width:min(100%,860px);height:min(100dvh,940px);margin:0 auto;display:grid;grid-template-rows:64px minmax(0,1fr) 62px;background:var(--wa-bg);box-shadow:0 6px 28px rgba(11,20,26,.22);overflow:hidden}.chat-header{position:relative;z-index:10;min-width:0;padding:8px 10px 8px 6px;display:flex;align-items:center;gap:9px;color:#fff;background:var(--wa-green)}.header-button{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;color:inherit;background:transparent;cursor:pointer}.header-button:hover,.header-button:focus-visible{background:rgba(255,255,255,.13)}.header-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header-button svg circle{fill:currentColor;stroke:none}.back-button{margin-right:-5px}.profile-photo{width:43px;height:43px;flex:0 0 43px;border-radius:50%;object-fit:cover;object-position:50% 27%;background:#dfe5e7}.contact-copy{min-width:0;flex:1;display:grid;gap:2px}.contact-copy strong{overflow:hidden;font-size:16px;line-height:20px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.contact-copy span{display:flex;align-items:center;gap:5px;color:rgba(255,255,255,.88);font-size:12px;line-height:16px}.contact-copy i{width:7px;height:7px;border-radius:50%;background:#47d764;box-shadow:0 0 0 2px rgba(71,215,100,.16)}.header-actions{position:relative;display:flex;align-items:center}.header-menu{position:absolute;top:48px;right:2px;width:218px;padding:7px 0;border-radius:3px;background:#fff;box-shadow:0 4px 16px rgba(11,20,26,.25)}[hidden]{display:none!important}.header-menu button{width:100%;padding:12px 20px;border:0;color:#111b21;text-align:left;background:transparent;cursor:pointer}.header-menu button:hover{background:#f5f6f6}
.chat-body{min-height:0;overflow-x:hidden;overflow-y:auto;padding:12px clamp(9px,4vw,52px) 24px;scroll-behavior:smooth;background-color:var(--wa-bg);background-image:radial-gradient(circle at 22px 24px,rgba(87,101,108,.055) 0 1.5px,transparent 1.8px),radial-gradient(circle at 68px 72px,rgba(87,101,108,.04) 0 2px,transparent 2.3px),linear-gradient(45deg,transparent 47%,rgba(87,101,108,.025) 48% 52%,transparent 53%);background-size:94px 94px,110px 110px,120px 120px}.chat-body::-webkit-scrollbar{width:6px}.chat-body::-webkit-scrollbar-thumb{background:rgba(17,27,33,.24)}.day-divider,.privacy-note{width:max-content;max-width:92%;margin:0 auto 12px;padding:6px 10px;border-radius:7px;color:#54656f;background:#fff;box-shadow:var(--shadow);font-size:11px;line-height:16px;text-align:center}.day-divider{text-transform:uppercase}.privacy-note{max-width:370px;background:#ffeecd}.message-row{display:flex;margin:3px 0;animation:message-in 170ms ease-out both}.message-row.user{justify-content:flex-end}.bubble{position:relative;max-width:min(82%,570px);padding:7px 8px 5px 9px;border-radius:0 8px 8px 8px;background:#fff;box-shadow:var(--shadow);font-size:14.5px;line-height:1.38}.message-row:not(.user) .bubble::before{content:"";position:absolute;top:0;left:-7px;border-top:8px solid #fff;border-left:8px solid transparent}.message-row.user .bubble{border-radius:8px 0 8px 8px;background:var(--wa-out)}.message-row.user .bubble::after{content:"";position:absolute;top:0;right:-7px;border-top:8px solid var(--wa-out);border-right:8px solid transparent}.bubble p{margin:0 0 6px}.bubble p:last-of-type{display:inline;margin-bottom:0}.bubble strong{font-weight:650}.message-meta{float:right;display:inline-flex;align-items:end;gap:3px;height:17px;margin:5px 0 -3px 9px;color:var(--wa-muted);font-size:10.5px;white-space:nowrap}.checks{color:#53bdeb;font-weight:700;letter-spacing:-2px}.typing-row .bubble{min-width:62px;padding:12px 15px}.typing-dots{display:flex;gap:4px}.typing-dots i{width:7px;height:7px;border-radius:50%;background:#9ba6ac;animation:typing 1s infinite ease-in-out}.typing-dots i:nth-child(2){animation-delay:.16s}.typing-dots i:nth-child(3){animation-delay:.32s}
.quick-replies{width:min(82%,570px);margin:4px 0 12px;border-radius:8px;overflow:hidden;background:#fff;box-shadow:var(--shadow);animation:message-in 170ms ease-out both}.reply-button{width:100%;min-height:43px;display:flex;align-items:center;justify-content:center;padding:9px 14px;border:0;border-top:1px solid #e9edef;color:#027eb5;background:#fff;font-size:14px;font-weight:500;text-align:center;cursor:pointer}.reply-button:first-child{border-top:0}.reply-button:hover,.reply-button:focus-visible{background:#f5f6f6}.sample-card,.carousel-card,.offer-card,.legal-card{width:min(88%,590px);margin:4px 0 12px;border-radius:8px;overflow:hidden;background:#fff;box-shadow:var(--shadow);animation:message-in 170ms ease-out both}.sample-heading{padding:10px 12px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.sample-heading strong{font-size:14px}.sample-heading span{color:var(--wa-muted);font-size:11px}.sample-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px}.sample-button{aspect-ratio:.68;padding:0;border:0;overflow:hidden;background:#ddd;cursor:zoom-in}.sample-button img{width:100%;height:100%;display:block;object-fit:cover;object-position:top;transition:transform .18s ease}.sample-button:hover img{transform:scale(1.025)}.sample-caption{margin:0;padding:8px 12px 10px;color:var(--wa-muted);font-size:11px;line-height:1.35}.carousel-card{padding-bottom:9px}.carousel-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 12px 12px;scrollbar-width:thin}.product-slide{flex:0 0 clamp(150px,42%,205px);scroll-snap-align:start;margin:0;border:1px solid #e9edef;border-radius:8px;overflow:hidden;background:#fff}.product-slide img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover}.product-slide figcaption{padding:8px;font-size:12px;line-height:1.4}.product-slide figcaption strong{display:block;margin-bottom:4px}.carousel-hint{padding:0 12px;color:var(--wa-muted);font-size:11px}
.offer-card{padding:14px}.offer-kicker{color:var(--wa-green);font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.offer-card h2{margin:5px 0;font-size:19px}.offer-card>p{margin:0 0 12px;color:#3b4a54;font-size:13.5px;line-height:1.4}.offer-grid{display:grid;gap:7px;margin-bottom:13px}.offer-item{display:flex;align-items:flex-start;gap:8px;font-size:13px}.offer-item i{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--wa-green);font-size:11px;font-style:normal}.offer-price{padding-top:12px;border-top:1px solid #e9edef}.price-copy{display:grid;gap:2px;margin-bottom:10px}.price-copy span,.price-copy small{color:var(--wa-muted);font-size:11px}.price-copy strong{font-size:18px}.checkout-button{width:100%;min-height:44px;border:0;border-radius:7px;color:#fff;background:var(--wa-green);font-weight:650;cursor:pointer}.checkout-button:hover{background:var(--wa-deep)}.checkout-button.unavailable{background:#51796d}.legal-card{padding:11px 12px;color:#54656f;font-size:11px;line-height:1.5}.legal-card p{margin:0 0 8px}.legal-links{display:flex;flex-wrap:wrap;gap:6px 12px}.legal-links button,.legal-links a{border:0;padding:0;background:none;color:#027eb5;text-decoration:underline;cursor:pointer;font-size:11px}
.composer{position:relative;z-index:8;display:flex;align-items:center;gap:8px;padding:7px 10px;background:#f0f2f5}.composer-field{min-width:0;height:44px;flex:1;display:flex;align-items:center;padding:0 14px;overflow:hidden;border-radius:22px;color:var(--wa-muted);background:#fff;font-size:14px;white-space:nowrap;text-overflow:ellipsis}.composer-icon,.send-button{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%}.composer-icon{color:#54656f;background:transparent}.send-button{color:#fff;background:var(--wa-green);opacity:.88}.composer-icon svg,.send-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.preview-dialog,.info-dialog{width:min(94vw,520px);max-height:92dvh;padding:0;border:0;border-radius:10px;overflow:auto;background:#fff;box-shadow:0 20px 70px rgba(0,0,0,.42)}.preview-dialog::backdrop,.info-dialog::backdrop{background:rgba(11,20,26,.78)}.preview-dialog img{display:block;width:100%;height:auto}.preview-dialog p,.info-dialog p{padding:8px 16px;color:#3b4a54;font-size:13px;line-height:1.5}.info-dialog h2{padding:20px 16px 0;margin:0;font-size:18px}.dialog-close{position:sticky;z-index:2;top:8px;float:right;width:36px;height:36px;margin:8px;border:0;border-radius:50%;color:#fff;background:#111b21;font-size:25px;line-height:1;cursor:pointer}.toast{position:fixed;z-index:30;left:50%;bottom:78px;max-width:min(88vw,430px);padding:10px 16px;border-radius:20px;color:#fff;background:rgba(17,27,33,.94);font-size:13px;text-align:center;opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:.2s ease}.toast.show{opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;inset:auto 20px 20px;z-index:50;padding:12px;color:#fff;background:#b42318}
@keyframes message-in{from{opacity:0;transform:translateY(5px)}}@keyframes typing{0%,65%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}@media(min-width:861px){.chat-shell{height:calc(100dvh - 34px);margin-top:17px;border-radius:4px}}@media(max-width:560px){.chat-shell{height:100dvh;grid-template-rows:60px minmax(0,1fr) 58px}.chat-header{gap:7px;padding-right:4px}.header-button{width:37px;height:37px;flex-basis:37px}.back-button{margin-right:-7px}.profile-photo{width:40px;height:40px;flex-basis:40px}.bubble{max-width:88%;font-size:14px}.quick-replies{width:88%}.sample-card,.carousel-card,.offer-card,.legal-card{width:94%}.sample-gallery{grid-template-columns:repeat(3,1fr)}.composer{gap:5px;padding-inline:6px}.composer-icon,.send-button{width:42px;height:42px;flex-basis:42px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* v3.1: progressão em blocos e rolagem deliberada, sem salto ao fim. */
.chat-body{scroll-behavior:auto;overflow-anchor:none}
.message-row,.quick-replies,.sample-card,.carousel-card,.member-card,.offer-card{scroll-margin-top:12px}
.new-messages{position:absolute;z-index:9;right:16px;bottom:72px;min-height:40px;padding:7px 14px;border:1px solid #c4d7d1;border-radius:22px;color:#005c4b;background:#fff;box-shadow:0 3px 12px rgba(11,20,26,.18);font-size:13px;font-weight:650;cursor:pointer}
.new-messages:hover{background:#f1faf6}
.quick-replies.continue-reply{width:max-content;max-width:88%}
.continue-reply .reply-button{min-width:134px;color:#005c4b;font-weight:700}
.sample-card{width:min(94%,590px)}
.sample-stage{aspect-ratio:2/3;display:grid;place-items:center;background:#faf8f2;overflow:hidden}
.sample-stage button{width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.sample-stage img{display:block;width:100%;height:100%;object-fit:contain}
.sample-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px}
.sample-controls button{min-height:44px;padding:8px 10px;border:1px solid #dbe3e0;border-radius:7px;color:#005c4b;background:#fff;cursor:pointer}
.sample-controls span{color:#54656f;font-size:12px;text-align:center}
.member-card{width:min(94%,590px);margin:4px 0 12px;padding:15px;border:1px dashed #8ba8a0;border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.member-card strong{display:block;margin-bottom:8px;color:#005c4b;font-size:15px}
.member-card p{margin:0 0 10px;color:#3b4a54;font-size:13px;line-height:1.45}
.member-card ul{margin:0;padding-left:20px;font-size:13px;line-height:1.65}
.member-card .pending-capture{margin-top:12px;padding:8px 10px;border-radius:6px;color:#5f4c23;background:#fff3d6;font-size:11px}
.offer-card .planned-price{margin:4px 0 9px;color:#4b5b63;font-size:12px}
.offer-card .intro-price{margin:0 0 2px;color:#263e3b;font-size:12px;font-weight:650}
.offer-card .launch-note{margin:8px 0 12px;color:#4b5b63;font-size:12px}
.offer-card .price-copy strong{font-size:25px;color:#102a28}
.checkout-button,.checkout-button.unavailable{min-height:50px;border:1px solid #dfaa36;border-radius:8px;color:#102a28;background:#ffc857;box-shadow:0 2px 7px rgba(59,48,20,.17);font-size:15px;font-weight:750}
.checkout-button:hover,.checkout-button.unavailable:hover,.checkout-button:active{background:#f4b740}
.checkout-button:focus-visible{outline:3px solid #102a28;outline-offset:3px}
.offer-card .payment-support{margin:9px 0 0;color:#4b5b63;font-size:11px;line-height:1.4}
@media(max-width:560px){.chat-body{padding-bottom:18px}.sample-card,.member-card,.offer-card{width:96%}.offer-card{padding:12px}.new-messages{right:10px;bottom:68px}.composer{padding-bottom:max(7px,env(safe-area-inset-bottom))}}
