/*
 * wiklik.ai "Em todo lugar" phone: a WhatsApp-style chat with the Wiklik account (site_tpl/wk_wa_chat.html, wa-chat.js).
 * Our own drawing (bubbles, ticks, typing, list / card / location / link layouts) at the phone's logical 390 x 766, scaled.
 */
.wk-wachat { position: relative; }
.wk-wachat .wa-box { position: absolute; inset: 7px; border-radius: 28px; overflow: hidden; background: #efe7dd; opacity: 0; }
.wk-wachat.is-chat .wa-box { opacity: 1; }
.wa-screen { position: absolute; top: 0; left: 0; width: 390px; height: 766px; transform-origin: 0 0; display: flex; flex-direction: column;
  font: 15px/1.38 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #111b21;
  background: #efe7dd radial-gradient(circle at 20% 20%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 28px 28px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 54px 12px 10px; background: #00664d; color: #fff; }
.wa-back { font-size: 32px; line-height: 1; opacity: .9; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e3f5ef; }
.wa-who { display: grid; }
.wa-who b { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.wa-who b svg path:first-child { fill: #e3f5ef; }
.wa-who b svg path:last-child { stroke: #00664d; }
.wa-who small { font-size: 12.5px; opacity: .85; }
.wa-body { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.wa-m { position: relative; max-width: 82%; padding: 7px 9px 18px; border-radius: 10px; background: #fff; box-shadow: 0 1px .5px rgba(0,0,0,.13); display: none; }
.wa-m.is-on { display: block; animation: wa-in .28s ease-out; }
.wa-m.out { align-self: flex-end; background: #d9fdd3; }
.wa-m.in { align-self: flex-start; }
.wa-m p { margin: 0; }
.wa-m time { position: absolute; right: 8px; bottom: 3px; font-size: 11px; color: #4f5b63; }
.wa-m.out time { right: 26px; }
.wa-ticks { position: absolute; right: 8px; bottom: 5px; width: 16px; height: 9px; }
.wa-ticks::before, .wa-ticks::after { content: ""; position: absolute; bottom: 0; width: 5px; height: 9px; border: solid #53bdeb; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wa-ticks::before { left: 1px; } .wa-ticks::after { left: 6px; }
.wa-voice { display: flex; align-items: center; gap: 8px; min-width: 210px; }
.wa-play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #54656f; font-size: 13px; }
.wa-wave { flex: 1; height: 22px; background: repeating-linear-gradient(90deg, #8696a0 0 2px, transparent 2px 5px); opacity: .8; border-radius: 2px; clip-path: polygon(0 40%, 10% 20%, 20% 55%, 30% 10%, 40% 45%, 50% 25%, 60% 60%, 70% 15%, 80% 50%, 90% 30%, 100% 45%, 100% 100%, 0 100%); }
.wa-dur { font-size: 12px; color: #667781; }
.wa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wa-media img { display: block; width: 230px; height: 170px; object-fit: cover; border-radius: 6px; margin: 2px 0 6px; }
.wa-card { min-width: 250px; }
.wa-card > b, .wa-list > b { display: block; margin-bottom: 6px; }
.wa-prices { list-style: none; margin: 0 0 4px; padding: 0; }
.wa-prices li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #eef0f1; }
.wa-prices li:first-child b { color: #00795b; }
.wa-prices li span:nth-of-type(1), .wa-prices li span:nth-of-type(2) { flex: 1; }
.wa-prices img, .wa-dot { width: 20px; height: 20px; border-radius: 4px; }
.wa-dot { display: inline-block; flex: 0 0 20px !important; background: #2b7a3d; }
.wa-quick { display: grid; gap: 1px; margin: 8px -9px -18px; border-top: 1px solid #eef0f1; }
.wa-quick span { display: block; padding: 9px; text-align: center; color: #00795b; font-weight: 600; background: #fff; border-bottom: 1px solid #eef0f1; }
.wa-quick span:last-child { border-bottom: 0; border-radius: 0 0 10px 10px; }
.wa-m.wa-card, .wa-m.wa-list { padding-bottom: 18px; }
.wa-card time, .wa-list time { position: static; display: block; text-align: right; margin-top: 2px; }
.wa-doc { display: flex; align-items: center; gap: 10px; min-width: 230px; }
/* the PDF bubble is a .wa-m too: hidden until its turn like every step (the .wa-doc flex above used to win over .wa-m's
   display:none, so the boleto showed from the start, right after the first answer — owner 2026-10-21) */
.wa-m.wa-doc { display: none; }
.wa-m.wa-doc.is-on { display: flex; }
.wa-doc-in { margin-top: 6px; padding: 8px; border-radius: 8px; background: #f0f2f5; }
.wa-docicon { width: 32px; height: 38px; border-radius: 4px; background: #c0392f; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.wa-doctext { display: grid; min-width: 0; }
.wa-doctext b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-doctext small { font-size: 12px; color: #4f5b63; }
.wa-list ol { margin: 0; padding-inline-start: 18px; }
.wa-list li { padding: 2px 0; }
.wa-loc { min-width: 240px; }
.wa-map { height: 120px; margin: -3px -5px 6px; border-radius: 6px; background: #e8efe6; background-image: linear-gradient(#fff 3px, transparent 3px), linear-gradient(90deg, #fff 3px, transparent 3px), linear-gradient(35deg, transparent 46%, #f6d77a 46% 54%, transparent 54%); background-size: 46px 46px, 46px 46px, 100% 100%; position: relative; }
.wa-pin { position: absolute; left: 50%; top: 40%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: #e2554d; transform: translate(-50%, -50%) rotate(-45deg); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.wa-loc b, .wa-loc small { display: block; }
.wa-loc small { color: #667781; font-size: 12.5px; }
.wa-preview { display: flex; gap: 8px; margin-top: 6px; padding: 6px; border-radius: 8px; background: #f0f2f5; }
.wa-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 6px; background: linear-gradient(135deg, #00a47c, #00795b 55%, #0b3d30); }
.wa-url { color: #00795b !important; }
.wa-typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: wa-dot 1s infinite ease-in-out; }
.wa-typing span:nth-child(2) { animation-delay: .15s; } .wa-typing span:nth-child(3) { animation-delay: .3s; }
.wa-typing em { margin-inline-start: 6px; font-style: normal; font-size: 12px; color: #667781; }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 28px; }
.wa-field { flex: 1; height: 42px; border-radius: 999px; background: #fff; }
.wa-mic { width: 42px; height: 42px; border-radius: 50%; background: #00795b; color: #fff; display: grid; place-items: center; font-size: 18px; }
[dir="rtl"] .wa-m.out { align-self: flex-start; } [dir="rtl"] .wa-m.in { align-self: flex-end; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wa-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wa-m.is-on, .wa-typing span { animation: none; } .wa-body { scroll-behavior: auto; } }
.wa-body::-webkit-scrollbar { display: none; }
