/* Aviso dos links de e-mail (ver copiar-email.js). Usa as cores do site; os valores depois da vírgula são reserva. */
.email-aviso {
  --verde: #2FBF71; --vermelho: #E5383B;
  --duracao: 2600ms;
  position: fixed; left: 50%; bottom: 28px; z-index: 1000;
  width: max-content; max-width: calc(100vw - 32px); /* sem isto, o cartão não passa de metade da tela (left: 50%) */
  pointer-events: none; visibility: hidden; opacity: 0;
  transform: translate(-50%, 28px) scale(.96);
}
.email-aviso.visivel { visibility: visible; opacity: 1; transform: translate(-50%, 0) scale(1); }
.email-aviso.erro { --verde: var(--vermelho); }
.email-aviso.erro .email-aviso-end { white-space: normal; }

.email-aviso-cartao {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  min-width: 260px; padding: 14px 22px 16px 14px; border-radius: 16px;
  background: var(--ink, #F2F3F5); color: var(--surface-100, #16181D);
  box-shadow: 0 14px 36px rgb(0 0 0 / .38), 0 0 0 1px rgb(255 255 255 / .06);
  font-family: var(--font-sans, system-ui, sans-serif);
}
.email-aviso-icone { position: relative; flex: none; width: 40px; height: 40px; }
.email-aviso-icone svg { display: block; width: 40px; height: 40px; overflow: visible; }
.email-aviso-icone .anel { fill: var(--verde); transform-origin: 50% 50%; }
.email-aviso-icone .marca, .email-aviso-icone .exclama { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.email-aviso-icone .marca { stroke-dasharray: 18; stroke-dashoffset: 0; }
.email-aviso-icone .exclama { display: none; }
.email-aviso.erro .marca { display: none; }
.email-aviso.erro .exclama { display: block; }
/* anel de onda que sai do ícone */
.email-aviso-icone::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--verde); opacity: 0; }

.email-aviso-texto { display: grid; gap: 3px; min-width: 0; line-height: 1.2; }
.email-aviso-titulo { font-size: 15px; font-weight: 700; letter-spacing: .005em; }
.email-aviso-end { font-family: var(--font-sans, system-ui, sans-serif); font-size: 14px; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* barra de tempo no pé do cartão */
.email-aviso-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--verde); transform-origin: 0 50%; }

a.email-copiado { border-radius: 4px; background: rgb(47 191 113 / .24); box-shadow: 0 0 0 4px rgb(47 191 113 / .24); }

@media (prefers-reduced-motion: no-preference) {
  .email-aviso { transition: opacity .2s ease, transform .35s cubic-bezier(.2, 1.3, .4, 1), visibility 0s linear .35s; }
  .email-aviso.visivel { transition-delay: 0s; }
  .email-aviso.visivel .anel { animation: email-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
  .email-aviso.visivel .marca { animation: email-traco .38s .18s ease-out both; stroke-dashoffset: 18; }
  .email-aviso.visivel .exclama { animation: email-treme .45s .1s ease-in-out both; }
  .email-aviso.visivel .email-aviso-icone::after { animation: email-onda .75s .12s ease-out both; }
  .email-aviso.visivel .email-aviso-barra { animation: email-barra var(--duracao) linear both; }
  a.email-copiado { animation: email-pulso .9s ease-out; }
}
@keyframes email-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes email-traco { to { stroke-dashoffset: 0; } }
@keyframes email-treme { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes email-onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2); opacity: 0; } }
@keyframes email-barra { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes email-pulso { 0% { box-shadow: 0 0 0 0 rgb(47 191 113 / .7); } 100% { box-shadow: 0 0 0 4px rgb(47 191 113 / .24), 0 0 0 14px rgb(47 191 113 / 0); } }
@media (prefers-reduced-motion: reduce) {
  .email-aviso-barra { transform: scaleX(.5); }
}
