
:root{
  --autr-primary:#0b1722;
  --autr-accent:#21c6d8;
  --autr-bubble:#176a83;
  --autr-bg:#08131c;
  --autr-panel:#0d1b25;
  --autr-bot:#162630;
  --autr-text:#eef7fb;
  --autr-muted:#9fb0ba;
  --autr-green:#25d366;
}
*{box-sizing:border-box}
.autr-standalone-body,
.autr-embed-body{
  margin:0;
  color:var(--autr-text);
  font-family:Inter,Arial,sans-serif;
}
.autr-standalone-body{
  background:#071018;
  overflow:hidden;
}
.autr-embed-body{
  background:transparent!important;
  overflow:hidden!important;
  min-height:100vh;
}
.autr-chat{
  font-family:Inter,Arial,sans-serif;
  color:var(--autr-text);
  box-sizing:border-box;
}
.autr-chat *{box-sizing:border-box}

/* ===== Estrutura principal ===== */
.autr-shell{
  display:flex;
  flex-direction:column;
  background:var(--autr-bg);
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  box-shadow:0 18px 54px rgba(0,0,0,.28);
}
.autr-full{height:100dvh}
.autr-full .autr-shell{
  width:100%;
  height:100dvh;
  border:0;
  border-radius:0;
}
.autr-inline .autr-shell{
  width:100%;
  min-height:560px;
  border-radius:18px;
}
.autr-widget .autr-shell.is-hidden{display:none}

/* ===== Cabeçalho: limpo, estilo mensageiro ===== */
.autr-head{
  min-height:62px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  background:#09151f;
  border-bottom:1px solid rgba(255,255,255,.07);
  flex:0 0 auto;
}
.autr-head-copy{min-width:0}
.autr-head strong{
  display:block;
  font-size:14px;
  line-height:1.1;
  font-weight:800;
}
.autr-head small{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
  color:var(--autr-muted);
  font-size:10px;
}
.autr-head small span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#24d77e;
  box-shadow:0 0 0 2px rgba(36,215,126,.08);
}
.autr-close{
  margin-left:auto;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#c7d5dc;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.autr-close:hover{background:rgba(255,255,255,.06)}

/* ===== Avatar ===== */
.autr-avatar{
  position:relative;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.autr-avatar.image img{
  width:88%;
  height:88%;
  object-fit:cover;
  border-radius:50%;
  position:relative;
  z-index:3;
  border:1px solid rgba(255,255,255,.12);
}
.autr-avatar.large{width:116px;height:116px}
.autr-face{
  position:relative;
  z-index:3;
  width:36px;
  height:36px;
  border-radius:46%;
  background:radial-gradient(circle at 50% 26%,#a0f4f8 0,var(--autr-accent) 42%,#176a83 74%,#0b3449 100%);
}
.autr-avatar.large .autr-face{width:88px;height:88px}
.autr-face:before{content:"";position:absolute;top:-6px;left:50%;width:3px;height:8px;transform:translateX(-50%);background:#eaffff;border-radius:3px}
.autr-face:after{content:"";position:absolute;top:-10px;left:50%;width:6px;height:6px;transform:translateX(-50%);border-radius:50%;background:#fff}
.autr-face i,.autr-face b{position:absolute;top:14px;width:5px;height:7px;border-radius:50%;background:#fff}
.autr-face i{left:9px}.autr-face b{right:9px}
.autr-face em{position:absolute;left:50%;bottom:7px;width:14px;height:5px;transform:translateX(-50%);border-bottom:2px solid #fff;border-radius:50%}
.autr-ring{
  position:absolute;
  inset:1px;
  border:1px solid rgba(78,225,238,.25);
  border-radius:50%;
  opacity:.18;
}
.autr-ring.r2{inset:-4px;opacity:.1}
.autr-avatar.listening .autr-ring,
.autr-avatar.speaking .autr-ring{animation:autrPulse 1s infinite ease-out}

/* ===== Área de conversa ===== */
.autr-messages{
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding:14px 12px 10px;
  background:
    radial-gradient(circle at 12% 0%,rgba(255,255,255,.025),transparent 34%),
    #0b1821;
  scrollbar-width:none;
  -ms-overflow-style:none;
  overscroll-behavior:contain;
}
.autr-messages::-webkit-scrollbar{display:none;width:0;height:0}
.autr-full .autr-messages{
  padding-left:max(16px,calc((100vw - 820px)/2));
  padding-right:max(16px,calc((100vw - 820px)/2));
  padding-top:18px;
}
.autr-msg{
  position:relative;
  width:fit-content;
  max-width:76%;
  margin-bottom:7px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
  line-height:1.42;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  box-shadow:none;
}
.autr-msg.bot{
  margin-right:auto;
  background:var(--autr-bot);
  border-top-left-radius:4px;
}
.autr-msg.user{
  margin-left:auto;
  background:var(--autr-bubble);
  border-top-right-radius:4px;
}
.autr-msg.bot:before,
.autr-msg.user:before{
  content:"";
  position:absolute;
  top:0;
  width:0;
  height:0;
  border-style:solid;
}
.autr-msg.bot:before{
  left:-5px;
  border-width:0 6px 7px 0;
  border-color:transparent var(--autr-bot) transparent transparent;
}
.autr-msg.user:before{
  right:-5px;
  border-width:7px 6px 0 0;
  border-color:var(--autr-bubble) transparent transparent transparent;
}
.autr-msg.thinking{
  opacity:.58;
  font-style:italic;
  font-size:12px;
}
.autr-inline-link{
  color:#bdefff;
  text-decoration:underline;
  text-underline-offset:2px;
  word-break:break-word;
}
.autr-inline-link:hover{color:#fff}

/* ===== Composer estilo mensageiro ===== */
.autr-composer{
  display:flex;
  align-items:flex-end;
  gap:7px;
  padding:8px 9px 7px;
  background:#09151f;
  border-top:1px solid rgba(255,255,255,.06);
  flex:0 0 auto;
}
.autr-full .autr-composer{
  padding-left:max(12px,calc((100vw - 840px)/2));
  padding-right:max(12px,calc((100vw - 840px)/2));
}
.autr-composer input{
  flex:1;
  min-width:0;
  height:42px;
  border:0;
  background:#162731;
  color:#fff;
  border-radius:21px;
  padding:0 15px;
  outline:none;
  font-size:13px;
}
.autr-composer input::placeholder{color:#7f949f}
.autr-composer input:focus{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.autr-action{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:0;
  border-radius:50%;
  background:var(--autr-accent);
  color:#fff;
  font-size:19px;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow:none;
  transition:transform .15s ease,filter .15s ease,background .15s ease;
}
.autr-action:hover{transform:scale(1.03);filter:brightness(1.06)}
.autr-action:disabled{opacity:.55;cursor:wait;transform:none}
.autr-action.recording{
  background:#d94a56;
  animation:autrMic 1s infinite;
}
.autr-powered{
  text-align:center;
  font-size:8px;
  line-height:1;
  color:#536973;
  background:#09151f;
  padding:0 8px 6px;
}

/* ===== Widget fechado: somente personagem + fala + escrever ===== */
.autr-widget-dock{
  position:fixed;
  right:8px;
  bottom:6px;
  width:178px;
  height:210px;
  z-index:999998;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-direction:column;
  pointer-events:none;
  overflow:visible;
}
.autr-voice-launch{
  position:relative;
  width:144px;
  height:144px;
  margin-bottom:35px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  pointer-events:auto;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.24));
  transition:transform .18s ease,filter .18s ease;
  outline:none;
}
.autr-voice-launch:hover{
  transform:translateY(-2px) scale(1.015);
  filter:drop-shadow(0 13px 22px rgba(0,0,0,.30));
}
.autr-voice-launch:focus-visible{
  outline:2px solid var(--autr-accent);
  outline-offset:3px;
  border-radius:30px;
}
.autr-widget-avatar{
  display:block;
  position:absolute;
  inset:0;
  animation:autrFloat 3.8s ease-in-out infinite;
  transform-origin:50% 64%;
}
.autr-widget-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  user-select:none;
  -webkit-user-drag:none;
}
.autr-widget-avatar.generic{
  display:grid;
  place-items:center;
}
.autr-widget-avatar.generic>.autr-avatar{width:126px;height:126px}
.autr-widget-avatar.listening{animation:autrWidgetListen .82s ease-in-out infinite}
.autr-widget-avatar.speaking{animation:autrWidgetTalk .56s ease-in-out infinite}
.autr-widget-avatar.thinking{animation:autrWidgetThink 1.2s ease-in-out infinite}
.autr-widget-avatar:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:14px;
  width:68px;
  height:13px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse,rgba(22,215,255,.22),rgba(22,215,255,0) 70%);
  filter:blur(5px);
  opacity:.45;
  z-index:-1;
}
.autr-write-toggle{
  position:absolute;
  left:50%;
  bottom:2px;
  transform:translateX(-50%);
  width:116px;
  min-height:30px;
  z-index:5;
  pointer-events:auto;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,18,28,.94);
  color:#eefcff;
  border-radius:999px;
  padding:6px 10px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 7px 18px rgba(0,0,0,.22);
  cursor:pointer;
  transition:.18s ease;
}
.autr-write-toggle:hover{
  transform:translateX(-50%) translateY(-1px);
  border-color:rgba(255,255,255,.25);
}
.autr-dock-status,
.autr-voice-links{
  position:absolute;
  left:50%;
  bottom:188px;
  transform:translateX(-50%);
  z-index:8;
  width:max-content;
  max-width:176px;
  pointer-events:none;
}
.autr-dock-status{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  background:rgba(7,18,28,.96);
  color:#f7fbfd;
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  box-shadow:0 8px 22px rgba(0,0,0,.2);
}
.autr-dock-status:after,
.autr-voice-links:after{
  content:"";
  position:absolute;
  right:26px;
  bottom:-7px;
  width:13px;
  height:13px;
  background:rgba(7,18,28,.96);
  transform:rotate(45deg);
  border-right:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.autr-dock-status[hidden]{display:none}
.autr-voice-links{
  display:none;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  pointer-events:auto;
  padding:0;
}
.autr-voice-links.show{display:flex}
.autr-voice-links a[hidden]{display:none!important}
.autr-voice-links a{
  display:block;
  max-width:174px;
  text-decoration:none;
  color:#fff;
  background:rgba(7,18,28,.96);
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  padding:7px 10px;
  font-size:10px;
  font-weight:800;
  box-shadow:0 8px 22px rgba(0,0,0,.2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== Popup de escrita no desktop: formato telefone ===== */
.autr-widget .autr-compact-shell{
  position:fixed;
  right:12px;
  bottom:12px;
  width:min(360px,calc(100vw - 24px));
  height:min(700px,calc(100dvh - 24px));
  min-height:430px;
  max-height:700px;
  border-radius:20px;
  z-index:999999;
}
.autr-widget .autr-compact-shell .autr-head{
  min-height:60px;
  flex-basis:60px;
  padding:8px 10px;
}
.autr-widget .autr-compact-shell .autr-head .autr-avatar{width:42px;height:42px}
.autr-widget .autr-compact-shell .autr-head strong{font-size:13px}
.autr-widget .autr-compact-shell .autr-head small{font-size:9px}
.autr-widget .autr-compact-shell .autr-messages{
  padding:12px 10px 8px;
}
.autr-widget .autr-compact-shell .autr-msg{
  max-width:78%;
  font-size:12px;
  padding:8px 10px;
  margin-bottom:7px;
}
.autr-widget .autr-compact-shell .autr-composer{
  padding:8px;
}
.autr-widget .autr-compact-shell .autr-composer input{
  height:40px;
  font-size:12px;
  padding:0 13px;
}
.autr-widget .autr-compact-shell .autr-action{
  width:40px;
  height:40px;
  flex-basis:40px;
  font-size:17px;
}
.autr-widget .autr-compact-shell .autr-powered{
  font-size:7px;
  padding-bottom:5px;
}

/* ===== Embed remoto ===== */
.autr-embed-body .autr-chat{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
.autr-embed-body .autr-widget-dock,
.autr-embed-body .autr-shell{pointer-events:auto}
.autr-embed-body .autr-widget-dock{
  right:2px;
  bottom:2px;
}
.autr-embed-body .autr-widget .autr-compact-shell{
  right:6px;
  bottom:6px;
  width:min(360px,calc(100vw - 12px));
  height:min(700px,calc(100dvh - 12px));
  max-height:700px;
}

/* ===== Erros ===== */
.autr-error{
  padding:15px;
  border:1px solid #8c3e46;
  background:#2a171a;
  color:#fff;
  border-radius:10px;
}

/* ===== Animações discretas ===== */
@keyframes autrPulse{
  0%{transform:scale(.92);opacity:.5}
  100%{transform:scale(1.22);opacity:0}
}
@keyframes autrFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}
@keyframes autrWidgetListen{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.035);filter:drop-shadow(0 0 10px rgba(60,225,255,.55))}
}
@keyframes autrWidgetTalk{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.02) translateY(-1px)}
}
@keyframes autrWidgetThink{
  0%,100%{transform:translateY(0);opacity:1}
  50%{transform:translateY(-2px);opacity:.88}
}
@keyframes autrMic{
  0%{box-shadow:0 0 0 0 rgba(217,74,86,.45)}
  70%{box-shadow:0 0 0 12px rgba(217,74,86,0)}
  100%{box-shadow:0 0 0 0 rgba(217,74,86,0)}
}

/* ===== Mobile: gaveta sobe de baixo ===== */
@media(max-width:600px){
  .autr-widget-dock{
    right:5px;
    bottom:5px;
    width:166px;
    height:202px;
  }
  .autr-voice-launch{
    width:138px;
    height:138px;
    margin-bottom:34px;
  }
  .autr-write-toggle{
    width:110px;
    min-height:29px;
    font-size:9px;
  }
  .autr-dock-status,
  .autr-voice-links{
    bottom:181px;
    max-width:164px;
  }
  .autr-dock-status,
  .autr-voice-links a{font-size:9px}

  .autr-widget .autr-compact-shell,
  .autr-embed-body .autr-widget .autr-compact-shell{
    left:4px;
    right:4px;
    bottom:0;
    width:auto;
    height:min(82dvh,680px);
    min-height:420px;
    max-height:82dvh;
    border-radius:20px 20px 0 0;
  }
  .autr-widget .autr-compact-shell .autr-head{
    min-height:58px;
    flex-basis:58px;
  }
  .autr-msg{max-width:82%;font-size:12px}
  .autr-full .autr-messages{padding:13px 10px 8px}
  .autr-full .autr-composer{padding:8px}
}

/* =====================================================================
   v0.9.0 — Mensageiro comercial profissional / mobile voice + transcript
   ===================================================================== */
.autr-chat{
  --autr-head-bg:color-mix(in srgb,var(--autr-bg) 84%,#000 16%);
  --autr-composer-bg:color-mix(in srgb,var(--autr-bg) 87%,#000 13%);
  --autr-input-bg:color-mix(in srgb,var(--autr-bg) 73%,#fff 7%);
  --autr-bot:color-mix(in srgb,var(--autr-bg) 70%,#fff 9%);
}
.autr-chat .autr-shell{background:var(--autr-bg)}
.autr-chat .autr-head{background:var(--autr-head-bg)}
.autr-chat .autr-composer,
.autr-chat .autr-powered{background:var(--autr-composer-bg)}
.autr-chat .autr-composer input{background:var(--autr-input-bg)}
.autr-chat .autr-messages{
  background-color:var(--autr-bg);
  background-image:
    linear-gradient(rgba(255,255,255,.012),rgba(255,255,255,.012)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' opacity='.035'%3E%3Cpath d='M18 25h32a8 8 0 0 1 8 8v14a8 8 0 0 1-8 8H34l-9 8v-8h-7a8 8 0 0 1-8-8V33a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M122 28v31m0-31-10 10m10-10 10 10M102 63h40'/%3E%3Cpath d='M28 120h36a8 8 0 0 1 8 8v18a8 8 0 0 1-8 8H45l-10 8v-8h-7a8 8 0 0 1-8-8v-18a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M113 118h32v35h-32zM120 118v-8h18v8M121 134h16'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,180px 180px;
}
.autr-ico{width:21px;height:21px;display:block;color:currentColor}
.autr-action{color:#fff}
.autr-action .autr-ico{pointer-events:none}
.autr-inline-link{font-weight:700}
.autr-chat.chat-open .autr-widget-dock{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px);
}
.autr-widget-dock{transition:opacity .16s ease,visibility .16s ease,transform .16s ease}
.autr-dock-status,
.autr-voice-links{bottom:192px}
.autr-write-toggle{width:108px;bottom:3px}

/* Temas persistidos pela combinação de cores do vendedor */
.autr-chat[data-theme="whatsapp-dark"]{
  --autr-bg:#0b141a;
  --autr-head-bg:#202c33;
  --autr-composer-bg:#202c33;
  --autr-input-bg:#2a3942;
  --autr-bot:#202c33;
  --autr-text:#e9edef;
  --autr-muted:#8696a0;
  --autr-accent:#00a884;
  --autr-bubble:#005c4b;
}
.autr-chat[data-theme="whatsapp-dark"] .autr-action{background:#00a884}
.autr-chat[data-theme="whatsapp-dark"] .autr-head small span{background:#25d366}
.autr-chat[data-theme="whatsapp-dark"] .autr-inline-link{color:#53bdeb}

.autr-chat[data-theme="whatsapp-light"]{
  --autr-bg:#efeae2;
  --autr-head-bg:#008069;
  --autr-composer-bg:#f0f2f5;
  --autr-input-bg:#fff;
  --autr-bot:#fff;
  --autr-text:#111b21;
  --autr-muted:#667781;
  --autr-accent:#00a884;
  --autr-bubble:#d9fdd3;
}
.autr-chat[data-theme="whatsapp-light"] .autr-head,
.autr-chat[data-theme="whatsapp-light"] .autr-head strong,
.autr-chat[data-theme="whatsapp-light"] .autr-head small,
.autr-chat[data-theme="whatsapp-light"] .autr-close{color:#fff}
.autr-chat[data-theme="whatsapp-light"] .autr-composer input{color:#111b21}
.autr-chat[data-theme="whatsapp-light"] .autr-composer input::placeholder{color:#667781}
.autr-chat[data-theme="whatsapp-light"] .autr-powered{color:#667781}
.autr-chat[data-theme="whatsapp-light"] .autr-messages{
  background-image:
    linear-gradient(rgba(0,0,0,.008),rgba(0,0,0,.008)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23111b21' stroke-width='2' opacity='.04'%3E%3Cpath d='M18 25h32a8 8 0 0 1 8 8v14a8 8 0 0 1-8 8H34l-9 8v-8h-7a8 8 0 0 1-8-8V33a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M122 28v31m0-31-10 10m10-10 10 10M102 63h40'/%3E%3Cpath d='M28 120h36a8 8 0 0 1 8 8v18a8 8 0 0 1-8 8H45l-10 8v-8h-7a8 8 0 0 1-8-8v-18a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M113 118h32v35h-32zM120 118v-8h18v8M121 134h16'/%3E%3C/g%3E%3C/svg%3E");
}
.autr-chat[data-theme="whatsapp-light"] .autr-inline-link{color:#027eb5}
.autr-chat[data-theme="whatsapp-light"] .autr-msg.bot:before{border-color:transparent #fff transparent transparent}
.autr-chat[data-theme="whatsapp-light"] .autr-msg.user:before{border-color:#d9fdd3 transparent transparent transparent}

.autr-chat[data-theme="red-dark"]{--autr-bg:#120b0d;--autr-head-bg:#201014;--autr-composer-bg:#201014;--autr-input-bg:#2a171c;--autr-bot:#26161a}
.autr-chat[data-theme="pink-dark"]{--autr-bg:#160b13;--autr-head-bg:#25101f;--autr-composer-bg:#25101f;--autr-input-bg:#311627;--autr-bot:#2c1725}
.autr-chat[data-theme="instagram"]{--autr-bg:#120d1d;--autr-head-bg:#1c122b;--autr-composer-bg:#1c122b;--autr-input-bg:#2a193c;--autr-bot:#241631}
.autr-chat[data-theme="instagram"] .autr-action{background:linear-gradient(135deg,#833ab4,#e1306c,#f77737)}
.autr-chat[data-theme="canva-pop"]{--autr-bg:#0b1630;--autr-head-bg:#101f3c;--autr-composer-bg:#101f3c;--autr-input-bg:#172a4d;--autr-bot:#152642}
.autr-chat[data-theme="canva-pop"] .autr-action{background:linear-gradient(135deg,#00c4cc,#7d2ae8)}

/* Página pública: aparência de canal de conversa próprio do produto */
.autr-full .autr-head{min-height:70px;padding:10px 16px}
.autr-full .autr-head .autr-avatar{width:48px;height:48px}
.autr-full .autr-head strong{font-size:16px}
.autr-full .autr-head small{font-size:11px}
.autr-full .autr-msg{font-size:14px;line-height:1.45;max-width:70%;padding:9px 12px}
.autr-full .autr-composer input{font-size:14px}

@media(max-width:600px){
  .autr-full .autr-head{min-height:66px;padding:8px 12px}
  .autr-full .autr-head .autr-avatar{width:46px;height:46px}
  .autr-full .autr-head strong{font-size:17px}
  .autr-full .autr-head small{font-size:12px}
  .autr-full .autr-messages{padding:15px 11px 10px}
  .autr-full .autr-msg,
  .autr-widget .autr-compact-shell .autr-msg{
    max-width:86%;
    font-size:15px;
    line-height:1.46;
    padding:9px 11px;
    border-radius:10px;
  }
  .autr-full .autr-composer,
  .autr-widget .autr-compact-shell .autr-composer{padding:8px 9px max(8px,env(safe-area-inset-bottom))}
  .autr-full .autr-composer input,
  .autr-widget .autr-compact-shell .autr-composer input{
    height:46px;
    border-radius:23px;
    font-size:15px;
    padding:0 16px;
  }
  .autr-full .autr-action,
  .autr-widget .autr-compact-shell .autr-action{
    width:46px;
    height:46px;
    flex-basis:46px;
  }
  .autr-action .autr-ico{width:22px;height:22px}
  .autr-widget-dock{right:4px;bottom:3px;width:156px;height:194px}
  .autr-voice-launch{width:132px;height:132px;margin-bottom:33px}
  .autr-write-toggle{width:102px;min-height:28px;font-size:9px;bottom:2px}
  .autr-dock-status,.autr-voice-links{bottom:179px;max-width:158px}
  .autr-dock-status,.autr-voice-links a{font-size:9px}
}


/* =====================================================================
   v1.0.0 — Canal de Vendas Pro: voz estável, CTA neutro, WhatsApp refinado
   ===================================================================== */
.autr-chat .autr-messages{
  background-image:
    linear-gradient(rgba(255,255,255,.008),rgba(255,255,255,.008)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='240' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.7' opacity='.032'%3E%3Cpath d='M18 24h42a9 9 0 0 1 9 9v17a9 9 0 0 1-9 9H39l-12 9v-9h-9a9 9 0 0 1-9-9V33a9 9 0 0 1 9-9Z'/%3E%3Cpath d='M115 22h28l5 14h-38zM112 36h39v28h-39zM121 48h20'/%3E%3Cpath d='M218 21h30a8 8 0 0 1 8 8v44a8 8 0 0 1-8 8h-30a8 8 0 0 1-8-8V29a8 8 0 0 1 8-8Zm4 45h22'/%3E%3Ccircle cx='285' cy='48' r='20'/%3E%3Cpath d='M265 48h40M285 28c8 8 8 32 0 40M285 28c-8 8-8 32 0 40'/%3E%3Cpath d='M24 131h42l8 31H31zM34 131l5-11h18l5 11M39 171h1M64 171h1'/%3E%3Cpath d='M117 124l27 0 13 15-27 27-27-27zM118 134h2'/%3E%3Cpath d='M211 124h47v34h-47zM218 132h33M218 142h18'/%3E%3Cpath d='M285 127v31m0-31-9 9m9-9 9 9M269 163h32'/%3E%3Cpath d='M20 205h34a8 8 0 0 1 8 8v10a8 8 0 0 1-8 8H39l-9 7v-7H20a8 8 0 0 1-8-8v-10a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M115 204h34v28h-34zM121 211h22M121 219h13'/%3E%3Cpath d='M221 204c0-8 7-15 15-15s15 7 15 15c0 14-15 25-15 25s-15-11-15-25Z'/%3E%3Ccircle cx='236' cy='204' r='5'/%3E%3Cpath d='M277 209h30M292 194v30'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,320px 240px;
}
.autr-chat[data-theme="whatsapp-dark"] .autr-messages,
.autr-chat[data-theme="whatsapp-graphite"] .autr-messages{background-color:#0b141a}
.autr-chat[data-theme="whatsapp-dark"] .autr-action,
.autr-chat[data-theme="whatsapp-graphite"] .autr-action{background:#00a884;color:#fff}
.autr-chat[data-theme="whatsapp-dark"] .autr-action.recording,
.autr-chat[data-theme="whatsapp-graphite"] .autr-action.recording{background:#008f72}
.autr-chat[data-theme="whatsapp-graphite"]{
  --autr-bg:#111b21;--autr-head-bg:#202c33;--autr-composer-bg:#202c33;--autr-input-bg:#2a3942;
  --autr-bot:#202c33;--autr-text:#e9edef;--autr-muted:#8696a0;--autr-accent:#00a884;--autr-bubble:#005c4b;
}
.autr-chat[data-theme="commercial-light"]{
  --autr-bg:#dfe5e7;--autr-head-bg:#f7f9fa;--autr-composer-bg:#eef2f3;--autr-input-bg:#fff;
  --autr-bot:#fff;--autr-text:#17242b;--autr-muted:#647780;--autr-accent:#00a884;--autr-bubble:#c7f4dc;
}
.autr-chat[data-theme="commercial-light"] .autr-head strong,
.autr-chat[data-theme="commercial-light"] .autr-head small,
.autr-chat[data-theme="commercial-light"] .autr-close,
.autr-chat[data-theme="commercial-light"] .autr-composer input{color:#17242b}
.autr-chat[data-theme="commercial-light"] .autr-powered{color:#647780}
.autr-chat[data-theme="commercial-light"] .autr-msg.bot:before{border-color:transparent #fff transparent transparent}
.autr-chat[data-theme="commercial-light"] .autr-msg.user:before{border-color:#c7f4dc transparent transparent transparent}
.autr-chat[data-theme="green-sales"]{
  --autr-bg:#071a14;--autr-head-bg:#0b261d;--autr-composer-bg:#0b261d;--autr-input-bg:#123328;
  --autr-bot:#102d24;--autr-text:#effaf6;--autr-muted:#9ab7ad;--autr-accent:#20c997;--autr-bubble:#0b6b55;
}
.autr-voice-links a{white-space:nowrap}
.autr-inline-link{
  display:inline-flex;align-items:center;gap:6px;margin-top:4px;padding:5px 9px;border-radius:999px;
  background:color-mix(in srgb,var(--autr-accent) 16%,transparent);text-decoration:none!important;font-weight:800;
}
.autr-inline-link:after{content:'↗';font-size:.9em;opacity:.8}
@media(max-width:600px){
  .autr-full .autr-msg,.autr-widget .autr-compact-shell .autr-msg{font-size:16px;line-height:1.48;max-width:86%}
  .autr-full .autr-messages,.autr-widget .autr-compact-shell .autr-messages{background-size:auto,300px 225px}
}


/* =====================================================================
   v1.1.0 — WhatsApp Premium / Mobile UX
   ===================================================================== */
.autr-chat[data-theme="whatsapp-premium"]{
  --autr-bg:#e6e1d8;
  --autr-head-bg:#008069;
  --autr-composer-bg:#e6e1d8;
  --autr-input-bg:#ffffff;
  --autr-bot:#ffffff;
  --autr-text:#111b21;
  --autr-muted:#667781;
  --autr-accent:#00a884;
  --autr-bubble:#d9fdd3;
}
.autr-chat[data-theme="whatsapp-premium"] .autr-head,
.autr-chat[data-theme="whatsapp-premium"] .autr-head strong,
.autr-chat[data-theme="whatsapp-premium"] .autr-head small,
.autr-chat[data-theme="whatsapp-premium"] .autr-close{color:#fff}
.autr-chat[data-theme="whatsapp-premium"] .autr-head{background:#008069}
.autr-chat[data-theme="whatsapp-premium"] .autr-messages{
  background-color:#e6e1d8;
  background-image:
    linear-gradient(rgba(0,0,0,.012),rgba(0,0,0,.012)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='240' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%23111b21' stroke-width='1.7' opacity='.045'%3E%3Cpath d='M18 24h42a9 9 0 0 1 9 9v17a9 9 0 0 1-9 9H39l-12 9v-9h-9a9 9 0 0 1-9-9V33a9 9 0 0 1 9-9Z'/%3E%3Cpath d='M115 22h28l5 14h-38zM112 36h39v28h-39zM121 48h20'/%3E%3Cpath d='M218 21h30a8 8 0 0 1 8 8v44a8 8 0 0 1-8 8h-30a8 8 0 0 1-8-8V29a8 8 0 0 1 8-8Zm4 45h22'/%3E%3Ccircle cx='285' cy='48' r='20'/%3E%3Cpath d='M265 48h40M285 28c8 8 8 32 0 40M285 28c-8 8-8 32 0 40'/%3E%3Cpath d='M24 131h42l8 31H31zM34 131l5-11h18l5 11M39 171h1M64 171h1'/%3E%3Cpath d='M117 124l27 0 13 15-27 27-27-27zM118 134h2'/%3E%3Cpath d='M211 124h47v34h-47zM218 132h33M218 142h18'/%3E%3Cpath d='M285 127v31m0-31-9 9m9-9 9 9M269 163h32'/%3E%3Cpath d='M20 205h34a8 8 0 0 1 8 8v10a8 8 0 0 1-8 8H39l-9 7v-7H20a8 8 0 0 1-8-8v-10a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M115 204h34v28h-34zM121 211h22M121 219h13'/%3E%3Cpath d='M221 204c0-8 7-15 15-15s15 7 15 15c0 14-15 25-15 25s-15-11-15-25Z'/%3E%3Ccircle cx='236' cy='204' r='5'/%3E%3Cpath d='M277 209h30M292 194v30'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,320px 240px;
}
.autr-chat[data-theme="whatsapp-premium"] .autr-msg.bot{background:#fff;color:#111b21}
.autr-chat[data-theme="whatsapp-premium"] .autr-msg.user{background:#d9fdd3;color:#111b21}
.autr-chat[data-theme="whatsapp-premium"] .autr-msg.bot:before{border-color:transparent #fff transparent transparent}
.autr-chat[data-theme="whatsapp-premium"] .autr-msg.user:before{border-color:#d9fdd3 transparent transparent transparent}
.autr-chat[data-theme="whatsapp-premium"] .autr-composer input{background:#fff;color:#111b21}
.autr-chat[data-theme="whatsapp-premium"] .autr-composer input::placeholder{color:#667781}
.autr-chat[data-theme="whatsapp-premium"] .autr-action{background:#00a884;color:#fff}
.autr-chat[data-theme="whatsapp-premium"] .autr-powered{color:#667781}
.autr-chat[data-theme="whatsapp-premium"] .autr-inline-link{color:#027eb5}

/* O composer fica solto como no WhatsApp: sem barra branca/chapada atrás. */
.autr-chat[data-theme="whatsapp-light"] .autr-composer,
.autr-chat[data-theme="whatsapp-light"] .autr-powered,
.autr-chat[data-theme="whatsapp-premium"] .autr-composer,
.autr-chat[data-theme="whatsapp-premium"] .autr-powered,
.autr-chat[data-theme="whatsapp-dark"] .autr-composer,
.autr-chat[data-theme="whatsapp-dark"] .autr-powered,
.autr-chat[data-theme="whatsapp-graphite"] .autr-composer,
.autr-chat[data-theme="whatsapp-graphite"] .autr-powered{
  background:transparent!important;
  border-top:0!important;
}
.autr-chat .autr-composer{position:relative;isolation:isolate}
.autr-chat .autr-composer:before{
  content:"";
  position:absolute;
  z-index:-1;
  left:0;right:0;
  top:-26px;
  height:40px;
  pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--autr-bg));
}
.autr-chat .autr-composer input,
.autr-chat .autr-action{position:relative;z-index:2}
.autr-chat .autr-messages{scroll-padding-bottom:26px;padding-bottom:18px}

/* WhatsApp: microfone continua verde durante a escuta; o movimento indica gravação. */
.autr-chat[data-theme="whatsapp-light"] .autr-action.recording,
.autr-chat[data-theme="whatsapp-premium"] .autr-action.recording,
.autr-chat[data-theme="whatsapp-dark"] .autr-action.recording,
.autr-chat[data-theme="whatsapp-graphite"] .autr-action.recording{
  background:#00a884;
  animation:autrMicGreen 1s infinite;
}
@keyframes autrMicGreen{
  0%{box-shadow:0 0 0 0 rgba(0,168,132,.38)}
  70%{box-shadow:0 0 0 11px rgba(0,168,132,0)}
  100%{box-shadow:0 0 0 0 rgba(0,168,132,0)}
}

/* O Rasinho fechado chama atenção sem ficar grande/poluído. */
.autr-voice-launch{
  animation:autrDockGlow 2.7s ease-in-out infinite;
}
@keyframes autrDockGlow{
  0%,100%{filter:drop-shadow(0 9px 15px rgba(0,0,0,.20))}
  50%{filter:drop-shadow(0 10px 21px rgba(0,168,132,.34))}
}

/* Mobile mais compacto e com o botão Escrever mais convidativo. */
@media(max-width:600px){
  .autr-widget-dock{
    width:150px;
    height:186px;
    right:3px;
    bottom:3px;
  }
  .autr-voice-launch{
    width:118px;
    height:118px;
    margin-bottom:42px;
  }
  .autr-write-toggle{
    width:132px;
    min-height:36px;
    bottom:1px;
    padding:7px 12px;
    font-size:11.5px;
    font-weight:850;
    letter-spacing:.01em;
    background:#f2f4f5;
    color:#111b21;
    border:1px solid rgba(17,27,33,.14);
    box-shadow:0 7px 18px rgba(0,0,0,.18);
  }
  .autr-write-toggle:hover{border-color:rgba(17,27,33,.22)}
  .autr-dock-status,
  .autr-voice-links{
    bottom:166px;
    max-width:150px;
  }
  .autr-dock-status,
  .autr-voice-links a{font-size:9.5px}

  .autr-widget .autr-compact-shell,
  .autr-embed-body .autr-widget .autr-compact-shell{
    height:min(82dvh,690px);
    min-height:430px;
    max-height:82dvh;
  }
  .autr-widget .autr-compact-shell .autr-head{
    min-height:56px;
    flex-basis:56px;
    padding:7px 10px;
  }
  .autr-widget .autr-compact-shell .autr-head .autr-avatar{width:38px;height:38px}
  .autr-widget .autr-compact-shell .autr-head strong{font-size:15px}
  .autr-widget .autr-compact-shell .autr-head small{font-size:10px}

  .autr-full .autr-composer,
  .autr-widget .autr-compact-shell .autr-composer{
    gap:8px;
    padding:9px 12px max(8px,env(safe-area-inset-bottom));
  }
  .autr-full .autr-composer input,
  .autr-widget .autr-compact-shell .autr-composer input{
    height:48px;
    border-radius:25px;
    font-size:16px;
    padding:0 18px;
  }
  .autr-full .autr-action,
  .autr-widget .autr-compact-shell .autr-action{
    width:48px;
    height:48px;
    flex-basis:48px;
  }
  .autr-full .autr-powered,
  .autr-widget .autr-compact-shell .autr-powered{
    padding-bottom:max(4px,env(safe-area-inset-bottom));
    background:transparent!important;
  }
  .autr-full .autr-msg,
  .autr-widget .autr-compact-shell .autr-msg{
    font-size:16px;
    line-height:1.46;
    max-width:84%;
  }
}
\n\n/* =====================================================================\n   v1.1.1 — WhatsApp Premium Mobile Refinado\n   - Widget menor e mais baixo somente no celular\n   - Botão Escrever mais estreito, claro e legível\n   - Pulsação discreta do Rasinho\n   - Fundo WhatsApp Premium um pouco mais escuro e mais rico\n   ===================================================================== */\n.autr-chat[data-theme="whatsapp-premium"]{\n  --autr-bg:#d6d0c6;\n  --autr-composer-bg:#d6d0c6;\n}\n.autr-chat[data-theme="whatsapp-premium"] .autr-messages{\n  background-color:#d6d0c6;\n  background-image:\n    linear-gradient(rgba(0,0,0,.018),rgba(0,0,0,.018)),\n    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='280' viewBox='0 0 360 280'%3E%3Cg fill='none' stroke='%23111b21' stroke-width='1.8' opacity='.060' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 24h44a9 9 0 0 1 9 9v17a9 9 0 0 1-9 9H40l-12 9v-9H18a9 9 0 0 1-9-9V33a9 9 0 0 1 9-9Z'/%3E%3Cpath d='M112 18h25a8 8 0 0 1 8 8v42a8 8 0 0 1-8 8h-25a8 8 0 0 1-8-8V26a8 8 0 0 1 8-8Zm5 47h15'/%3E%3Cpath d='M198 24h42l7 34h-56zM203 24l6-10h20l6 10M201 66h1M235 66h1'/%3E%3Cpath d='M298 20h35v28h-35zM304 27h23M304 35h14'/%3E%3Cpath d='M24 121h36l8 31H31zM35 121l5-11h14l5 11M39 160h1M62 160h1'/%3E%3Cpath d='M112 116h43v32h-43zM120 124h27M120 134h16'/%3E%3Cpath d='M208 113c0-9 7-16 16-16s16 7 16 16c0 15-16 27-16 27s-16-12-16-27Z'/%3E%3Ccircle cx='224' cy='113' r='5'/%3E%3Cpath d='M292 112c14-14 37-14 51 0M299 120c10-10 27-10 37 0M308 129c5-5 14-5 19 0'/%3E%3Ccircle cx='318' cy='138' r='2'/%3E%3Cpath d='M18 215h45a9 9 0 0 1 9 9v14a9 9 0 0 1-9 9H42l-11 9v-9H18a9 9 0 0 1-9-9v-14a9 9 0 0 1 9-9Z'/%3E%3Cpath d='M112 206h40v39h-40zM112 219h40M124 206v-9h16v9'/%3E%3Cpath d='M205 211h42v29h-42zM211 217h30M211 225h17'/%3E%3Cpath d='M290 212h43l-4 28h-35zM298 212l5-10h17l5 10'/%3E%3C/g%3E%3C/svg%3E");\n  background-size:auto,360px 280px;\n}\n\n@keyframes autrMobileSellerPulse{\n  0%,100%{transform:translateY(0) scale(1);filter:drop-shadow(0 8px 14px rgba(0,0,0,.18))}\n  50%{transform:translateY(-2px) scale(1.035);filter:drop-shadow(0 10px 20px rgba(0,168,132,.32))}\n}\n\n@media(max-width:600px){\n  .autr-widget-dock{\n    width:136px;\n    height:176px;\n    right:1px;\n    bottom:0;\n  }\n  .autr-voice-launch{\n    width:96px;\n    height:96px;\n    margin-bottom:41px;\n    animation:none;\n  }\n  .autr-widget-avatar{\n    animation:autrMobileSellerPulse 2.25s ease-in-out infinite;\n  }\n  .autr-widget-avatar.listening{animation:autrWidgetListen .82s ease-in-out infinite}\n  .autr-widget-avatar.speaking{animation:autrWidgetTalk .56s ease-in-out infinite}\n  .autr-widget-avatar.thinking{animation:autrWidgetThink 1.2s ease-in-out infinite}\n  .autr-write-toggle{\n    width:98px;\n    min-height:34px;\n    bottom:0;\n    padding:7px 9px;\n    font-size:11px;\n    background:#f3f4f4;\n    color:#111b21;\n    border:1px solid rgba(17,27,33,.15);\n    box-shadow:0 5px 14px rgba(0,0,0,.16);\n  }\n  .autr-dock-status,\n  .autr-voice-links{\n    bottom:151px;\n    max-width:134px;\n  }\n  .autr-dock-status,\n  .autr-voice-links a{font-size:9px}\n}\n

/* =====================================================================
   v1.1.2 — Mobile compacto: Rasinho tipo bolha + Escrever à esquerda
   ===================================================================== */
@media(max-width:600px){
  .autr-widget-dock{
    width:188px!important;
    height:118px!important;
    right:2px!important;
    bottom:1px!important;
    display:block!important;
  }
  .autr-voice-launch{
    position:absolute!important;
    right:0!important;
    bottom:0!important;
    width:94px!important;
    height:94px!important;
    margin:0!important;
    animation:autrDockGlow 2.45s ease-in-out infinite!important;
  }
  .autr-widget-avatar:after{
    bottom:8px!important;
    width:52px!important;
    height:10px!important;
  }
  .autr-write-toggle{
    left:0!important;
    right:auto!important;
    bottom:10px!important;
    transform:none!important;
    width:84px!important;
    min-height:34px!important;
    padding:7px 9px!important;
    font-size:10.5px!important;
    border-radius:18px!important;
  }
  .autr-write-toggle:hover{
    transform:translateY(-1px)!important;
  }
  .autr-dock-status,
  .autr-voice-links{
    left:auto!important;
    right:2px!important;
    bottom:104px!important;
    transform:none!important;
    max-width:170px!important;
  }
  .autr-dock-status:after,
  .autr-voice-links:after{
    right:26px!important;
  }
  .autr-dock-status,
  .autr-voice-links a{font-size:9.5px!important}
}


/* =====================================================================
   v1.1.3 — Mobile final: bolha completa sem corte + Escrever à esquerda
   ===================================================================== */
@media(max-width:600px){
  .autr-embed-body{
    overflow:hidden!important;
  }
  .autr-widget-dock{
    width:228px!important;
    height:142px!important;
    right:0!important;
    bottom:0!important;
    display:block!important;
    overflow:visible!important;
  }
  .autr-voice-launch{
    position:absolute!important;
    right:4px!important;
    bottom:6px!important;
    width:86px!important;
    height:86px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    animation:autrDockGlow 2.35s ease-in-out infinite!important;
  }
  .autr-widget-avatar{
    overflow:visible!important;
    animation:autrMobileSellerPulse 2.15s ease-in-out infinite!important;
  }
  .autr-widget-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  .autr-widget-avatar.listening{animation:autrWidgetListen .82s ease-in-out infinite!important}
  .autr-widget-avatar.speaking{animation:autrWidgetTalk .56s ease-in-out infinite!important}
  .autr-widget-avatar.thinking{animation:autrWidgetThink 1.2s ease-in-out infinite!important}
  .autr-widget-avatar:after{
    bottom:5px!important;
    width:46px!important;
    height:9px!important;
  }
  .autr-write-toggle{
    position:absolute!important;
    left:8px!important;
    right:auto!important;
    bottom:20px!important;
    transform:none!important;
    width:106px!important;
    min-height:36px!important;
    padding:7px 10px!important;
    font-size:11px!important;
    border-radius:20px!important;
    background:#f4f5f5!important;
    color:#111b21!important;
    border:1px solid rgba(17,27,33,.14)!important;
    box-shadow:0 5px 14px rgba(0,0,0,.16)!important;
  }
  .autr-write-toggle:hover{
    transform:translateY(-1px)!important;
  }
  .autr-dock-status,
  .autr-voice-links{
    left:auto!important;
    right:2px!important;
    bottom:101px!important;
    transform:none!important;
    max-width:176px!important;
  }
  .autr-dock-status:after,
  .autr-voice-links:after{
    right:24px!important;
  }
  .autr-dock-status,
  .autr-voice-links a{
    font-size:9.5px!important;
  }
}


/* =====================================================================
   v1.1.4 — isolamento real MOBILE x DESKTOP no embed
   O iframe é estreito no desktop, então @media(max-width) sozinho enganava
   o CSS. Agora o PHP marca o aparelho real com autr-host-desktop/mobile.
   No desktop, restauramos exatamente o dock clássico e o chat telefone.
   ===================================================================== */
body.autr-host-desktop.autr-embed-body{
  overflow:hidden!important;
}
body.autr-host-desktop .autr-widget-dock{
  position:fixed!important;
  right:2px!important;
  bottom:2px!important;
  width:178px!important;
  height:210px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-direction:column!important;
  overflow:visible!important;
}
body.autr-host-desktop .autr-voice-launch{
  position:relative!important;
  right:auto!important;
  bottom:auto!important;
  width:144px!important;
  height:144px!important;
  margin:0 0 35px 0!important;
  padding:0!important;
  overflow:visible!important;
  animation:autrDockGlow 2.7s ease-in-out infinite!important;
}
body.autr-host-desktop .autr-widget-avatar{
  overflow:visible!important;
  animation:autrFloat 3.8s ease-in-out infinite!important;
}
body.autr-host-desktop .autr-widget-avatar.listening{animation:autrWidgetListen .82s ease-in-out infinite!important}
body.autr-host-desktop .autr-widget-avatar.speaking{animation:autrWidgetTalk .56s ease-in-out infinite!important}
body.autr-host-desktop .autr-widget-avatar.thinking{animation:autrWidgetThink 1.2s ease-in-out infinite!important}
body.autr-host-desktop .autr-widget-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
body.autr-host-desktop .autr-widget-avatar:after{
  bottom:14px!important;
  width:68px!important;
  height:13px!important;
}
body.autr-host-desktop .autr-write-toggle{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  bottom:3px!important;
  transform:translateX(-50%)!important;
  width:108px!important;
  min-height:30px!important;
  padding:6px 10px!important;
  font-size:10px!important;
  border-radius:999px!important;
  background:rgba(7,18,28,.94)!important;
  color:#eefcff!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.22)!important;
}
body.autr-host-desktop .autr-write-toggle:hover{
  transform:translateX(-50%) translateY(-1px)!important;
}
body.autr-host-desktop .autr-dock-status,
body.autr-host-desktop .autr-voice-links{
  left:50%!important;
  right:auto!important;
  bottom:192px!important;
  transform:translateX(-50%)!important;
  max-width:176px!important;
}
body.autr-host-desktop .autr-dock-status:after,
body.autr-host-desktop .autr-voice-links:after{
  right:26px!important;
}
body.autr-host-desktop .autr-dock-status,
body.autr-host-desktop .autr-voice-links a{
  font-size:10px!important;
}
/* O popup desktop continua no formato telefone aprovado. */
body.autr-host-desktop .autr-widget .autr-compact-shell,
body.autr-host-desktop.autr-embed-body .autr-widget .autr-compact-shell{
  left:auto!important;
  right:6px!important;
  bottom:6px!important;
  width:min(360px,calc(100vw - 12px))!important;
  height:min(700px,calc(100dvh - 12px))!important;
  min-height:0!important;
  max-height:700px!important;
  border-radius:22px!important;
}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-head{
  min-height:62px!important;
  flex-basis:62px!important;
  padding:8px 12px!important;
}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-head .autr-avatar{
  width:42px!important;height:42px!important;
}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-head strong{font-size:15px!important}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-head small{font-size:10px!important}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-msg{
  max-width:78%!important;
  font-size:12px!important;
  line-height:1.45!important;
  padding:8px 10px!important;
}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-composer{
  gap:8px!important;
  padding:8px 10px!important;
}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-composer input{
  height:42px!important;
  border-radius:22px!important;
  font-size:13px!important;
  padding:0 14px!important;
}
body.autr-host-desktop .autr-widget .autr-compact-shell .autr-action{
  width:42px!important;height:42px!important;flex-basis:42px!important;
}
\n\n/* =====================================================================
   v1.1.5 — Mobile real: botão Escrever ao lado + Rasinho abre o atendimento
   Somente aparelhos móveis marcados pelo PHP. Desktop permanece intocado.
   ===================================================================== */
body.autr-host-mobile.autr-embed-body{overflow:hidden!important;}
body.autr-host-mobile .autr-widget-dock{
  width:202px!important;
  height:108px!important;
  right:0!important;
  bottom:0!important;
  display:block!important;
  overflow:visible!important;
}
body.autr-host-mobile .autr-voice-launch{
  position:absolute!important;
  right:2px!important;
  bottom:4px!important;
  width:78px!important;
  height:78px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  animation:autrDockGlow 2.35s ease-in-out infinite!important;
}
body.autr-host-mobile .autr-widget-avatar{
  overflow:visible!important;
  animation:autrMobileSellerPulse 2.15s ease-in-out infinite!important;
}
body.autr-host-mobile .autr-widget-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
body.autr-host-mobile .autr-widget-avatar:after{
  bottom:4px!important;
  width:43px!important;
  height:9px!important;
}
body.autr-host-mobile .autr-write-toggle{
  position:absolute!important;
  left:4px!important;
  right:auto!important;
  bottom:23px!important;
  transform:none!important;
  width:108px!important;
  min-height:36px!important;
  padding:7px 10px!important;
  font-size:11px!important;
  border-radius:20px!important;
  background:#f4f5f5!important;
  color:#111b21!important;
  border:1px solid rgba(17,27,33,.14)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.16)!important;
}
body.autr-host-mobile .autr-write-toggle:hover{transform:translateY(-1px)!important;}
body.autr-host-mobile .autr-dock-status,
body.autr-host-mobile .autr-voice-links{
  left:auto!important;
  right:1px!important;
  bottom:91px!important;
  transform:none!important;
  max-width:178px!important;
}
body.autr-host-mobile .autr-dock-status:after,
body.autr-host-mobile .autr-voice-links:after{right:22px!important;}
body.autr-host-mobile .autr-dock-status,
body.autr-host-mobile .autr-voice-links a{font-size:9.5px!important;}


/* =====================================================================
   v1.3.0 — WhatsApp único: abrir conversa primeiro, copiar e CTA visível
   ===================================================================== */
.autr-msg{padding-right:27px!important}.autr-msg-body{display:inline}.autr-msg-copy{position:absolute;right:5px;bottom:4px;width:18px;height:18px;border:0;background:transparent;color:currentColor;opacity:.28;font-size:12px;line-height:18px;padding:0;cursor:pointer;border-radius:5px}.autr-msg:hover .autr-msg-copy,.autr-msg-copy:focus{opacity:.72;background:rgba(127,127,127,.10);outline:none}.autr-auto-cta{margin-top:7px!important}.autr-widget-avatar{cursor:pointer}
body.autr-host-mobile .autr-widget-dock{width:112px!important;height:112px!important;right:2px!important;bottom:2px!important;display:block!important}body.autr-host-mobile .autr-voice-launch{position:absolute!important;right:0!important;bottom:0!important;width:104px!important;height:104px!important;margin:0!important}body.autr-host-mobile .autr-write-toggle{display:none!important}body.autr-host-mobile .autr-dock-status,body.autr-host-mobile .autr-voice-links{right:2px!important;left:auto!important;bottom:106px!important;max-width:176px!important;transform:none!important}
@media(max-width:600px){.autr-msg-copy{opacity:.34;width:20px;height:20px;font-size:13px}.autr-msg{padding-right:30px!important}}

/* v1.3.2: mensagens com formatação leve estilo WhatsApp/Markdown. */
.autr-chat .autr-msg-body strong{font-weight:800}
.autr-chat .autr-msg-body em{font-style:italic}
.autr-chat .autr-msg-body s{text-decoration:line-through;opacity:.82}
.autr-chat .autr-msg-body code{font:inherit;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:rgba(127,127,127,.12);border-radius:4px;padding:0 3px;overflow-wrap:anywhere}

/* v1.3.3 — Links curtos, baloes mobile e listas mais limpas. */
.autr-chat .autr-msg-body{overflow-wrap:anywhere;word-break:normal}
.autr-chat .autr-msg-body .autr-inline-link{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere;vertical-align:baseline;line-height:1.3;font-size:.92em;padding:4px 8px;border-radius:9px;font-weight:750}
.autr-chat .autr-msg-body .autr-list-dot{font-weight:800;color:var(--autr-accent);padding-right:3px}
@media(max-width:600px){.autr-chat .autr-widget .autr-compact-shell .autr-msg{line-height:1.4}}
