.wc-polopag-qrcode-copyed {
  box-shadow: 2px 2px 3px #e1e1e1;
  border-radius: 5px;
  width: 100%;
  max-width: 320px;
  border: 1px solid #dadada;
  margin: 0 auto;
  display: none;
}

.wc-polopag-qrcode-copyed p {
  padding: 10px;
}

.wc-polopag-qrcode-input {
  max-width: 500px;
  margin: 15px auto;
  outline: 0;
}

.wc-polopag-paybox {
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 6px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin-bottom: 30px;
  padding: 45px;
}

.wc-polopag-paybox.text-center {
  text-align: center;
}

.wc-polopag-pix-message {
  background-color: #fff;
  padding: 40px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}

.wc-polopag-pix-message p {
  text-align: center;
}

.wc-polopag-pix-message img {
  width: 100%;
  height: auto !important;
  max-width: 200px;
  max-height: none !important;
}

.polopag-instructions {
  display: flex;
  width: 100%;
  gap: 1rem;
}

.polopag-instruction-item {
  flex: 1;
  background-color: #f1f1f1;
  padding: 0.5rem;
  text-align: left;
  border-radius: 4px;
  display: flex;
  gap: 1rem;
}

.polopag-instruction-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  border: 1px solid #007bff;
  border-radius: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
}

.polopag-instruction-text {
  flex: 1;
  line-height: 1.5;
}

@-webkit-keyframes scaleAnimation {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleAnimation {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@-webkit-keyframes drawCircle {
  0% {
    stroke-dashoffset: 151px;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCircle {
  0% {
    stroke-dashoffset: 151px;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@-webkit-keyframes drawCheck {
  0% {
    stroke-dashoffset: 36px;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  0% {
    stroke-dashoffset: 36px;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#successAnimationCircle {
  stroke-dasharray: 151px 151px;
  stroke: #007bff;
}

#successAnimationCheck {
  stroke-dasharray: 36px 36px;
  stroke: #007bff;
}

#successAnimationResult {
  fill: #007bff;
  opacity: 0;
}

#successAnimation.animated {
  -webkit-animation: 1s ease-out 0s 1 both scaleAnimation;
  animation: 1s ease-out 0s 1 both scaleAnimation;
}

#successAnimation.animated #successAnimationCircle {
  -webkit-animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCircle,
    0.3s linear 0.9s 1 both fadeOut;
  animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCircle,
    0.3s linear 0.9s 1 both fadeOut;
}

#successAnimation.animated #successAnimationCheck {
  -webkit-animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCheck,
    0.3s linear 0.9s 1 both fadeOut;
  animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCheck,
    0.3s linear 0.9s 1 both fadeOut;
}

#successAnimation.animated #successAnimationResult {
  -webkit-animation: 0.3s linear 0.9s both fadeIn;
  animation: 0.3s linear 0.9s both fadeIn;
}

@media (max-width: 768px) {
  .polopag-instructions {
    flex-direction: column;
  }
  .wc-polopag-paybox {
    padding: 1rem;
  }
}

/* PoloPag Pix modal - externalized for FunnelKit/thank-you page compatibility */
:root{
  --pp-font: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pp-text:#0f172a;
  --pp-muted:#5b6473;
  --pp-bg: rgba(0,0,0,.72);
  --pp-green:#51b948;
  --pp-blue:#0b2f6b;
  --pp-lime:#9ad100;
}

body.polopag-modal-open{ overflow:hidden !important; }

#ppModal.pp-modal{ position:fixed !important; inset:0 !important; z-index:999999 !important; display:none !important; }
#ppModal.pp-modal[aria-hidden="false"]{ display:flex !important; }

#ppModal.pp-modal{
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

#ppModal .pp-modal__overlay{
  position:absolute !important;
  inset:0 !important;
  background: var(--pp-bg) !important;
  backdrop-filter: blur(7px) !important;
}

#ppModal .pp-modal__dialog{
  position:relative !important;
  z-index:1 !important;
  width: min(980px, 100%) !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
  margin: 0 !important;
}

#ppModal .pp-modal__content{
  background:#fff !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.35) !important;
  padding: 22px 22px 18px 22px !important;
}

#ppModal .pp-scope{
  font-family: var(--pp-font) !important;
  color: var(--pp-text) !important;
  text-align: center !important;
  line-height: 1.4 !important;
}
#ppModal .pp-scope *{ font-family: inherit !important; box-sizing: border-box !important; }
#ppModal .pp-scope p{ margin:0 !important; }
#ppModal .pp-scope h2{ margin:0 !important; }
#ppModal .pp-scope img{ max-width:100% !important; height:auto !important; display:block !important; }
#ppModal .pp-scope button{
  appearance:none !important;
  -webkit-appearance:none !important;
  border:0 !important;
  background:none !important;
  margin:0 !important;
  font: inherit !important;
}

#ppModal .pp-top{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction:column !important;
  gap:12px !important;
}
#ppModal .pp-top__icon{
  width:96px !important; height:96px !important;
  border-radius:999px !important;
  background: var(--pp-green) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  box-shadow: 0 16px 50px rgba(81,185,72,.22) !important;
}
#ppModal .pp-top__img{
  width:72px !important; height:72px !important;
  object-fit:contain !important;
  display:block !important;
}

#ppModal #ppTitle{
  margin: 8px 0 6px 0 !important;
  font-size: 26px !important;
  letter-spacing: -0.02em !important;
  color: var(--pp-text) !important;
  font-weight: 800 !important;
}

#ppModal #ppPill{
  margin: 14px auto 0 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
  background: rgba(15,23,42,.06) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  color:#111827 !important;
}
#ppModal #ppOrder{ color:#0A8E61 !important; font-weight: 800 !important; }
#ppModal #ppStatusText{ color:#111827 !important; font-weight: 800 !important; letter-spacing:.02em !important; }

#ppModal .pp-cta{ margin-top: 18px !important; }
#ppModal .pp-cta__title{ font-size: 15px !important; color:#111827 !important; font-weight: 700 !important; }
#ppModal .pp-cta__subtitle{ margin-top: 6px !important; font-size: 13px !important; color: var(--pp-muted) !important; }

#ppModal #ppCopyBtn{
  margin-top: 12px !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  padding: 12px 18px !important;
  border-radius: 6px !important;
  background: var(--pp-blue) !important;
  color:#fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 0 var(--pp-lime) !important;
  cursor:pointer !important;
}
#ppModal #ppCopyBtn:hover{ filter: brightness(1.08) !important; }

#ppModal #ppToast{
  margin: 12px auto 0 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
  background: rgba(81,185,72,.12) !important;
  border: 1px solid rgba(81,185,72,.22) !important;
  color: #1f7a2a !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

#ppModal #ppBox{
  margin: 14px auto 0 auto !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  border-radius: 4px !important;
  background:#fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
  display:grid !important;
  grid-template-columns: 260px 1fr !important;
  overflow:hidden !important;
  max-width: 820px !important;
  text-align:left !important;
}
@media (max-width: 820px){
  #ppModal #ppBox{ grid-template-columns: 1fr !important; }
  #ppModal #ppTitle { font-size: 17px !important; }
}

#ppModal .pp-box__qr{
  padding: 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-right: 1px solid rgba(0,0,0,.14) !important;
  min-height: 240px !important;
}
@media (max-width: 820px){
  #ppModal .pp-box__qr{ border-right:0 !important; border-bottom: 1px solid rgba(0,0,0,.14) !important; }
}

#ppModal .pp-box__qr img{ width: 210px !important; }

#ppModal .pp-box__steps{
  padding: 18px !important;
  display:flex !important;
  margin-top: 30px !important;
  flex-direction:column !important;
  gap: 14px !important;
}

#ppModal .pp-step{ display:flex !important; gap:12px !important; align-items:flex-start !important; }
#ppModal .pp-step__ico{
  width: 38px !important; height: 38px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.08) !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex: 0 0 38px !important;
}
#ppModal .pp-step__txt{ color:#111827 !important; font-size: 14px !important; line-height: 1.45 !important; font-weight: 500 !important; }
#ppModal .pp-step__txt strong{ font-weight: 800 !important; }

#ppModal .pp-footer{
  text-align:center !important;
  margin-top: 14px !important;
  color: var(--pp-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* ✅ CHECK BONITO (no lugar do QR quando aprovado) */
#ppModal .pp-checkwrap{
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgba(81,185,72,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 60px rgba(81,185,72,.18);
  margin: 0 auto;
}
#ppModal .pp-checksvg{ width: 92px; height: 92px; }
#ppModal .pp-checkcircle{
  stroke: rgba(81,185,72,.65);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: ppStroke 650ms ease forwards;
}
#ppModal .pp-checkmark{
  stroke: rgba(81,185,72,1);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: ppStroke 450ms 220ms ease forwards;
}
@keyframes ppStroke{ to{ stroke-dashoffset: 0; } }

#ppModal .pp-success2 h3{
  margin: 14px 0 6px 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
#ppModal .pp-success2 p{
  margin: 0 !important;
  color: var(--pp-muted) !important;
  font-weight: 600 !important;
}

/* botão continuar (você pode estilizar depois se quiser) */
#ppModal .pp-continue{
  margin-top: 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  background: #111827 !important;
  color:#fff !important;
  font-weight: 800 !important;
  cursor:pointer !important;
}


/* Hidden data sources used by the Pix modal script. */
.pp-order-key-source,
.pp-pix-code-source {
  display: none !important;
}
