/* ── Modal de pagamento EasyPay ──────────────────────────────
   Extraido do campaign.css (regras .ep-* + keyframes e variaveis que usam),
   para a pagina de donativos ter o MESMO checkout da campanha sem carregar
   o campaign.css inteiro (que colidiria com o landing.css/donativos.css).
   Se o modal mudar na campanha, voltar a extrair. */

:root {
  --purple-deep: #7a1f78;
  --orange: #F89521;
  --ink: #111111;
  --muted: #494949;
  --line: #e7e2da;
  --soft: #efeae2;
  --bg: #f5f2ec;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Modal de pagamento (widget EasyPay embebido numa janela) */
.ep-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; }
.ep-modal[hidden] { display: none; }
.ep-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20,14,34,0.6);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: epFade .2s var(--ease); }
.ep-modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
  animation: epRise .25s var(--ease); }
.ep-modal__close {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted);
  border-radius: 8px; }
.ep-modal__close:hover { background: var(--soft); color: var(--ink); }
.ep-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 300px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.ep-loading[hidden] { display: none; }
.ep-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--purple);
  animation: epSpin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .ep-spinner { animation-duration: 1.6s; }
}
/* Painel de resultado dentro do modal (agradecimento consciente do método) */
.ep-result {
  text-align: center;
  padding: 8px 4px 4px;
  animation: epRise .28s var(--ease); }
.ep-result[hidden] { display: none; }
.ep-result__mark {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; margin: 6px auto 18px;
  background: var(--purple); color: #fff; }
.ep-result__mark--wait { background: var(--orange); }
.ep-result__mark--neutral { background: var(--purple); }
.ep-result__mark svg { width: 34px; height: 34px; }
.ep-result__title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 8px; }
.ep-result__lead {
  color: var(--muted); font-size: .98rem; line-height: 1.55;
  max-width: 36ch; margin: 0 auto 6px; }
.ep-result__lead b { color: var(--ink); }
.ep-result__btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 13px 26px;
  background: var(--purple); color: #fff; border: 0; border-radius: 12px;
  font-family: var(--font); font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 8px 22px rgba(146,39,143,0.26);
  transition: background .15s var(--ease), transform .15s var(--ease); }
.ep-result__btn:hover { background: var(--purple-deep); transform: translateY(-2px); }
.ep-result__btn:active { transform: translateY(0); }
/* Destaque da referência Multibanco */
.ep-mb {
  text-align: left; margin: 18px 0 4px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); overflow: hidden; }
.ep-mb__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; }
.ep-mb__row + .ep-mb__row { border-top: 1px solid var(--line); }
.ep-mb__k {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); flex: 0 0 auto; }
.ep-mb__v {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.18rem; font-weight: 800; color: var(--purple);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ep-copy {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 8px; padding: 5px 9px; cursor: pointer;
  font-family: var(--font); font-size: .72rem; font-weight: 700;
  transition: border-color .15s var(--ease), color .15s var(--ease); }
.ep-copy:hover { border-color: var(--purple); color: var(--purple); }
.ep-copy svg { width: 14px; height: 14px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .ep-result { animation: none; }
  .ep-result__btn:hover { transform: none; }
}
@keyframes epFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes epRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes epSpin { to { transform: rotate(360deg); } }
