/* Profanus Pay Pix — estilos do checkout.
   Neutro de proposito: o botao do Elementor mantem o estilo dele,
   e o modal usa as variaveis abaixo. Troque so estas 4 linhas
   pra casar com a identidade do site. */

:root {
  --profanus_pay-fundo: #ffffff;
  --profanus_pay-texto: #111111;
  --profanus_pay-acento: #111111;
  --profanus_pay-borda: #e2e2e2;
}

/* botao gerado pelo shortcode */
.profanus_pay-btn {
  display: inline-block;
  width: 100%;
  padding: 15px 24px;
  font: 600 16px/1.2 inherit;
  color: #fff;
  background: var(--profanus_pay-acento);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s ease;
}
.profanus_pay-btn:hover { opacity: .88; }
.profanus_pay-btn:focus-visible { outline: 3px solid var(--profanus_pay-acento); outline-offset: 3px; }

.profanus_pay-btn.profanus_pay-secundario {
  background: transparent;
  color: var(--profanus_pay-texto);
  border: 1px solid var(--profanus_pay-borda);
}
.profanus_pay-btn.profanus_pay-ok { background: #16a34a; }

/* modal */
.profanus-pay-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.profanus-pay-modal.aberto { display: block; }

.profanus-pay-modal-fundo {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px);
}

.profanus-pay-modal-caixa {
  position: relative;
  max-width: 380px;
  margin: 6vh auto;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: var(--profanus_pay-fundo);
  color: var(--profanus_pay-texto);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  animation: profanus_pay-entra .2s ease;
}

@keyframes profanus_pay-entra {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.profanus_pay-fechar {
  position: absolute; top: 10px; right: 14px;
  width: 32px; height: 32px;
  font-size: 26px; line-height: 1;
  color: #999; background: none; border: 0; cursor: pointer;
}
.profanus_pay-fechar:hover { color: var(--profanus_pay-texto); }

.profanus_pay-centro { text-align: center; }

.profanus_pay-valor {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.profanus-pay-qr {
  display: block;
  width: 220px; height: 220px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: #fff;
}

.profanus_pay-instrucao {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
}

.profanus_pay-codigo-linha { margin-bottom: 10px; }

.profanus_pay-codigo {
  width: 100%;
  padding: 11px 12px;
  font: 400 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #444;
  background: #f7f7f7;
  border: 1px solid var(--profanus_pay-borda);
  border-radius: 8px;
  text-overflow: ellipsis;
}

.profanus_pay-aviso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 14px;
  color: #666;
}

.profanus_pay-pulso {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #16a34a;
  animation: profanus_pay-pisca 1.4s ease-in-out infinite;
}
@keyframes profanus_pay-pisca { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.profanus_pay-erro { color: #c0392b; }

.profanus_pay-spinner {
  width: 34px; height: 34px;
  margin: 12px auto 16px;
  border: 3px solid var(--profanus_pay-borda);
  border-top-color: var(--profanus_pay-acento);
  border-radius: 50%;
  animation: profanus_pay-gira .7s linear infinite;
}
@keyframes profanus_pay-gira { to { transform: rotate(360deg) } }

.profanus_pay-check {
  width: 60px; height: 60px;
  margin: 8px auto 16px;
  font-size: 32px; line-height: 60px;
  color: #fff;
  background: #16a34a;
  border-radius: 50%;
}

/* pagina de acesso */
.profanus_pay-liberado, .profanus_pay-bloqueado {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}
.profanus_pay-bloqueado h2 { color: #c0392b; }

@media (max-width: 420px) {
  .profanus-pay-modal-caixa { margin: 0; min-height: 100vh; border-radius: 0; }
  .profanus-pay-qr { width: 190px; height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .profanus-pay-modal-caixa, .profanus_pay-pulso, .profanus_pay-spinner { animation: none; }
}
