/* Maurela — widget de conversa do website. */
.maurela { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-family: var(--fonte, system-ui, sans-serif); }
.mau-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: block; }
.mau-av svg { width: 100%; height: 100%; }

.mau-botao { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: #0f766e; color: #fff;
  padding: 7px 20px 7px 7px; border-radius: 999px; font: 700 15px/1 var(--fonte, system-ui); box-shadow: 0 12px 30px rgba(15,118,110,.38); transition: .2s; }
.mau-botao:hover { transform: translateY(-2px); background: #0b4f4a; }
.maurela.aberta .mau-botao-texto { display: none; }
.maurela.aberta .mau-botao { padding: 7px; }

.mau-convite { position: absolute; right: 0; bottom: 66px; width: 280px; background: #fff; border-radius: 16px 16px 4px 16px; padding: 16px 30px 14px 16px;
  box-shadow: 0 14px 36px rgba(16,24,32,.18); cursor: pointer; font-size: 14.5px; color: #2b3640; animation: mau-entra .35s ease; }
.mau-convite p { margin: 0; }
.mau-convite b { color: #10181f; }
.mau-convite-fechar { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 20px; color: #8a949e; cursor: pointer; line-height: 1; }

.mau-painel { position: absolute; right: 0; bottom: 66px; width: 392px; height: min(620px, calc(100vh - 110px)); background: #fff; border-radius: 22px;
  box-shadow: 0 24px 64px rgba(16,24,32,.24); display: flex; flex-direction: column; overflow: hidden; animation: mau-entra .25s ease; }
.mau-painel[hidden] { display: none; }
@keyframes mau-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.mau-topo { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #0f766e, #0b4f4a); color: #fff; }
.mau-topo div { flex: 1; display: grid; line-height: 1.3; }
.mau-topo b { font-size: 16px; }
.mau-topo small { font-size: 12.5px; opacity: .88; display: flex; align-items: center; gap: 6px; }
.mau-topo small i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.mau-topo button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.mau-topo button:hover { background: rgba(255,255,255,.24); }

.mau-msgs { flex: 1; overflow-y: auto; padding: 18px 14px 8px; background: #f6f8f9; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.mau-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
.mau-msg p { margin: 0 0 .5em; } .mau-msg p:last-child { margin: 0; }
.mau-msg ul { margin: .2em 0 .5em; padding-left: 18px; } .mau-msg li { margin-bottom: 3px; }
.mau-maurela { background: #fff; color: #2b3640; border: 1px solid #e3e8ec; border-bottom-left-radius: 4px; align-self: flex-start; }
.mau-maurela strong { color: #10181f; }
.mau-eu { background: #0f766e; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.mau-digita { display: flex; gap: 4px; padding: 14px 16px; }
.mau-digita span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b0; animation: mau-ponto 1s infinite; }
.mau-digita span:nth-child(2) { animation-delay: .15s; } .mau-digita span:nth-child(3) { animation-delay: .3s; }
@keyframes mau-ponto { 50% { opacity: .3; transform: translateY(-3px); } }

.mau-accoes { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.mau-chip { border: 1.5px solid #0f766e; background: #fff; color: #0f766e; padding: 7px 13px; border-radius: 999px; font: 600 13.5px var(--fonte, system-ui); cursor: pointer; text-decoration: none; transition: .15s; }
.mau-chip:hover { background: #e6f6f3; }
.mau-chip-forte { background: #0f766e; color: #fff; }
.mau-chip-forte:hover { background: #0b4f4a; }
.mau-chip-wa { border-color: #16a34a; color: #15803d; }
.mau-chip-wa:hover { background: #dcfce7; }

.mau-form { background: #fff; border: 1px solid #bfe3dd; border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 14px; align-self: stretch; }
.mau-form p { margin: 0; color: #2b3640; }
.mau-form input { font: 15px var(--fonte, system-ui); padding: 10px 12px; border: 1.5px solid #e3e8ec; border-radius: 10px; }
.mau-form input:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px #e6f6f3; }
.mau-form-botoes { display: flex; flex-wrap: wrap; gap: 6px; }
.mau-form small { color: #5c6875; font-size: 12.5px; }
.mau-form-erro { color: #b3261e !important; font-size: 13px; }

.mau-escrever { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e3e8ec; background: #fff; }
.mau-escrever input { flex: 1; min-width: 0; font: 15px var(--fonte, system-ui); padding: 11px 14px; border: 1.5px solid #e3e8ec; border-radius: 999px; }
.mau-escrever input:focus { outline: none; border-color: #0f766e; }
.mau-escrever button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #0f766e; color: #fff; font-size: 16px; cursor: pointer; flex: none; }
.mau-rodape { margin: 0; padding: 0 14px 10px; background: #fff; color: #8a949e; font-size: 11.5px; text-align: center; }

@media (max-width: 520px) {
  .maurela { right: 12px; bottom: 12px; }
  .mau-botao-texto { display: none; }
  .mau-botao { padding: 7px; }
  .mau-painel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; bottom: 0; }
  .maurela.aberta .mau-botao { display: none; }
  .mau-convite { width: calc(100vw - 90px); }
}
@media (prefers-reduced-motion: reduce) { .mau-painel, .mau-convite, .mau-digita span { animation: none; } }
