/* The WhatsApp translation scene (whatsapp-translate.js): WhatsApp's own chat — patterned beige, white and green
   bubbles with their times — and Pino Translate on it: every message covered in place by its Spanish, and the Pino Translate bar under the chat, its switch turning on. */
.wt{position:relative;display:flex;flex-direction:column;overflow:hidden;background:#efeae2;font:14px/1.35 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Helvetica Neue",sans-serif;color:#111b21}
.wt:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;background:radial-gradient(circle at 12px 12px,#d9d1c3 1.4px,transparent 1.6px) 0 0/34px 34px,radial-gradient(circle at 29px 27px,#ddd5c8 2px,transparent 2.3px) 0 0/46px 46px}
.wt-head{position:relative;z-index:1;display:flex;align-items:center;gap:11px;padding:10px 18px;background:#f6f3eedd;border-bottom:1px solid #00000010}
.wt-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#f3a683,#e77f67);color:#fff;font-weight:650}
.wt-head b{display:block;font-size:15px;font-weight:600}
.wt-head small{display:block;font-size:12px;color:#667781}
.wt-lines{position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:14px 22px 112px}
.wt-msg{position:relative;align-self:flex-start;max-width:min(430px,72%);padding:7px 10px 7px 11px;border-radius:0 10px 10px 10px;background:#fff;box-shadow:0 1px .5px #0b141a21;display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:10px}
.wt-msg.is-me{align-self:flex-end;border-radius:10px 0 10px 10px;background:#d9fdd3}
.wt-orig,.wt-tr{grid-area:1/1;margin:0;transition:opacity .35s ease}
.wt-tr{opacity:0}
.wt-time{grid-area:1/2;font-size:11px;color:#667781;white-space:nowrap;display:inline-flex;align-items:center;gap:3px;transform:translateY(2px)}
.wt-ticks{width:16px;height:10px;fill:none;stroke:#53bdeb;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wt-msg.is-on .wt-orig{opacity:0}
.wt-msg.is-on .wt-tr{opacity:1}
.wt-compose{position:absolute;z-index:1;left:0;right:0;bottom:0;height:52px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#f0f2f5}
.wt-plus{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#54656f;font-size:22px;line-height:1}
.wt-input{flex:1;height:34px;border-radius:18px;background:#fff}
/* Pino Translate's bar, over the foot of the chat */
.wt-bar{position:absolute;z-index:2;left:50%;bottom:62px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 16px);display:flex;align-items:center;gap:10px;padding:7px 12px 7px 8px;border-radius:14px;background:#1c1d21f2;color:#fff;font-size:14px;white-space:nowrap;box-shadow:0 10px 30px #0004}
.wt-bar img{flex:none;width:20px;height:20px;border-radius:6px;background:#fff}   /* never squeezed out of the bar (Safari shrinks flex images) */
.wt-bar b{font-weight:600}
.wt-switch{position:relative;flex:none;width:34px;height:20px;border-radius:10px;background:#5b5e66;transition:background .25s}
.wt-switch i{position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .25s}
.wt-bar.is-on .wt-switch{background:#34c759}
.wt-bar.is-on .wt-switch i{transform:translateX(14px)}
.wt-sep{width:1px;height:18px;background:#ffffff38}
.wt-lang{padding:3px 12px;border-radius:8px;background:#ffffff14;color:#e6e6e6}
.wt-x{color:#cfcfcf;font-size:17px;line-height:1}
@media (max-width:760px){
  .wt{font-size:12px}
  .wt-head{padding:8px 12px}.wt-avatar{width:28px;height:28px;font-size:12px}.wt-head b{font-size:12.5px}.wt-head small{font-size:10px}
  .wt-lines{padding:10px 10px 86px;gap:5px}
  .wt-msg{max-width:86%;padding:5px 8px}
  .wt-msg:nth-child(-n+2){display:none}
  .wt-time{font-size:9.5px}
  .wt-compose{height:40px}.wt-input{height:26px}
  .wt-bar{bottom:48px;gap:7px;font-size:11.5px;padding:5px 9px 5px 6px}.wt-bar img{width:16px;height:16px}
  .wt-switch{width:28px;height:16px}.wt-switch i{width:12px;height:12px}.wt-bar.is-on .wt-switch i{transform:translateX(12px)}
  .wt-lang{padding:2px 8px}
}
@media (prefers-reduced-motion:reduce){.wt-orig,.wt-tr,.wt-switch,.wt-switch i{transition:none}}
