/* Widget de captação Santos & Murakami: botão flutuante + formulário em bolha estilo chat */
.sml-lancador{position:fixed;right:calc(18px + env(safe-area-inset-right, 0px));bottom:calc(18px + env(safe-area-inset-bottom, 0px));z-index:900;width:62px;height:62px;border-radius:50%;border:0;cursor:pointer;background:#1f9e55;color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px rgba(9,23,24,.3);transition:transform .2s, background-color .2s}
.sml-lancador:hover{transform:scale(1.06)}
.sml-lancador:focus-visible{outline:3px solid #C9B284;outline-offset:3px}
.sml-lancador svg{width:32px;height:32px}
.sml-lancador .sml-x{display:none;width:26px;height:26px}
.sml-aberto .sml-lancador{background:#0E2122}
.sml-aberto .sml-lancador .sml-wa{display:none}
.sml-aberto .sml-lancador .sml-x{display:block}

.sml-previa{position:fixed;right:calc(18px + env(safe-area-inset-right, 0px));bottom:calc(92px + env(safe-area-inset-bottom, 0px));z-index:899;max-width:270px;background:#fff;color:#0B1A1B;border-radius:12px 12px 3px 12px;border-left:3px solid #997F52;padding:14px 38px 14px 16px;box-shadow:0 12px 30px rgba(9,23,24,.2);font:500 14.5px/1.45 "Jost",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;cursor:pointer;animation:sml-sobe .35s ease-out}
.sml-previa button{position:absolute;top:6px;right:6px;width:26px;height:26px;border:0;background:none;cursor:pointer;color:#5A6261;font-size:18px;line-height:1;border-radius:50%}
.sml-previa button:hover{background:#ECEAE4}

.sml-janela{position:fixed;right:calc(18px + env(safe-area-inset-right, 0px));bottom:calc(92px + env(safe-area-inset-bottom, 0px));z-index:901;width:min(390px, calc(100vw - 36px));max-height:min(680px, calc(100vh - 120px));display:flex;flex-direction:column;background:#F3EEE5;border-radius:10px;overflow:hidden;box-shadow:0 24px 60px rgba(9,23,24,.34);font:400 15px/1.5 "Jost",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#0B1A1B;animation:sml-sobe .28s ease-out}
.sml-janela[hidden]{display:none}
@keyframes sml-sobe{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.sml-janela,.sml-previa{animation:none}}

.sml-topo{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:#0E2122;color:#fff;flex:none;border-bottom:2px solid #C9B284}
.sml-topo img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:1.5px solid #997F52}
.sml-topo b{display:block;font-family:"Newsreader",Georgia,serif;font-weight:400;font-size:21px;line-height:1.15;letter-spacing:-.005em}
.sml-topo small{font-size:13.5px;color:#C9B284}
.sml-fechar{margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center}
.sml-fechar:hover{background:rgba(255,255,255,.14)}
.sml-fechar svg{width:22px;height:22px}

.sml-corpo{flex:1;overflow-y:auto;padding:16px;background-color:#F3EEE5;background-image:radial-gradient(rgba(153,127,82,.16) 1.2px, transparent 1.3px);background-size:18px 18px;overscroll-behavior:contain}
.sml-msg{background:#fff;border-radius:4px 14px 14px 14px;padding:11px 14px;max-width:88%;box-shadow:0 1px 2px rgba(9,23,24,.08);margin:0 0 10px}
.sml-msg.sml-digitando{display:inline-flex;gap:4px;padding:14px 16px}
.sml-digitando i{width:7px;height:7px;border-radius:50%;background:#997F52;animation:sml-pulo 1s infinite ease-in-out}
.sml-digitando i:nth-child(2){animation-delay:.15s}.sml-digitando i:nth-child(3){animation-delay:.3s}
@keyframes sml-pulo{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}

.sml-form{display:grid;gap:12px;margin-top:6px;margin-left:auto;width:min(100%, 330px)}
.sml-form[hidden]{display:none}
.sml-campo{display:grid;gap:5px}
.sml-campo label,.sml-campo legend{font-size:13.5px;font-weight:600;color:#0B1A1B}
.sml-opc{font-weight:400;color:#6B7372}
.sml-campo input[type=text],.sml-campo input[type=tel],.sml-campo select,.sml-campo textarea{font:inherit;font-size:16px;width:100%;background:#fff;color:#0B1A1B;border:1.5px solid #D9D3C5;border-radius:2px;padding:11px 12px}
.sml-campo textarea{resize:vertical;min-height:76px;line-height:1.4}
.sml-campo input:focus,.sml-campo select:focus,.sml-campo textarea:focus{outline:none;border-color:#0E2122;box-shadow:0 0 0 3px rgba(201,178,132,.45)}
.sml-campo.sml-erro input,.sml-campo.sml-erro select,.sml-campo.sml-erro textarea{border-color:#B3261E}
.sml-tel{display:flex;align-items:stretch}
.sml-tel span{display:grid;place-items:center;padding:0 10px;background:#ECEAE4;border:1.5px solid #D9D3C5;border-right:0;border-radius:2px 0 0 2px;font-size:15px;color:#4A5655}
.sml-tel input{border-radius:0 2px 2px 0!important}
fieldset.sml-campo{border:0;margin:0;padding:0}
.sml-opcoes{display:flex;gap:8px;flex-wrap:wrap}
.sml-opcoes label{font-weight:500;font-size:14.5px;display:flex;align-items:center;gap:7px;background:#fff;border:1.5px solid #D9D3C5;border-radius:2px;padding:9px 14px;cursor:pointer}
.sml-opcoes input{accent-color:#0E2122;margin:0}
.sml-opcoes label:has(input:checked){border-color:#0E2122;background:#ECEAE4}
.sml-aceite{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;color:#4A5655;cursor:pointer}
.sml-aceite input{margin-top:3px;accent-color:#0E2122;width:16px;height:16px;flex:none}
.sml-legal{font-size:12.5px;color:#5A6261;margin:0}
.sml-legal a{color:#0E2122}
.sml-enviar{justify-self:end;font:500 15.5px/1.2 "Jost",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#0E2122;color:#fff;border:0;border-radius:2px;padding:14px 22px;cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.sml-enviar:hover{background:#0B1A1B}
.sml-enviar svg{color:#C9B284}
.sml-enviar:disabled{opacity:.7;cursor:progress}
.sml-enviar svg{width:20px;height:20px}
.sml-aviso{font-size:13.5px;color:#B3261E;margin:0;min-height:0}
.sml-mel{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.sml-msg a{color:#0E2122;font-weight:600}

@media (max-width:560px){
  .sml-janela{right:0;left:0;bottom:0;width:100%;max-height:none;height:calc(100% - 40px - env(safe-area-inset-top, 0px));border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom, 0px)}
  .sml-aberto .sml-lancador{display:none}
  .sml-form{width:100%}
}

[data-so-empresa][hidden]{display:none}
