/* ===========================
   PIX MODAL — pix-modal.css
=========================== */
.pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding: 24px 16px;
  overflow-y: auto;
}
.pix-overlay.visible { display: flex; }

.pix-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  margin: auto;
  animation: pixIn 0.3s ease;
}

@keyframes pixIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pix-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.pix-close:hover { background: #f0f0f0; }

.pix-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 28px 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pix-aviso {
  background: #f0fdf4;
  border: 1.5px solid #bfe5c8;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 18px;
}
.pix-aviso strong {
  display: block;
  color: #1b6b2e;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.pix-aviso span {
  font-size: 0.85rem;
  color: #2e7d32;
  line-height: 1.4;
}

.pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 14px;
}
.pix-status .pix-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  display: inline-block;
  animation: pixPulse 1.4s ease-in-out infinite;
}
@keyframes pixPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.pix-status.pago { color: #1b6b2e; font-weight: 600; }
.pix-status.pago .pix-dot { background: #1b6b2e; animation: none; }

.pix-qr-box {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.pix-qr-box img {
  width: 220px;
  height: 220px;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #eee;
}

.pix-instrucao {
  text-align: center;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 10px;
}

.pix-codigo {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #333;
  word-break: break-all;
  max-height: 70px;
  overflow-y: auto;
  margin-bottom: 12px;
  line-height: 1.5;
}

.btn-copiar-pix {
  width: 100%;
  background: #1ea24c;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-copiar-pix:hover { background: #176a37; }
.btn-copiar-pix.copiado { background: #1b6b2e; }

.pix-expira {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin: 10px 0 16px;
}

.pix-divider {
  border-top: 1px solid #eee;
  margin: 14px 0;
}

.pix-link-pedido {
  display: block;
  text-align: center;
  color: #1ea24c;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px;
}
.pix-link-pedido:hover { text-decoration: underline; }

.pix-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.pix-loading i {
  font-size: 2rem;
  color: #1ea24c;
  margin-bottom: 12px;
}

.pix-erro {
  background: #fff0f0;
  border: 1.5px solid #f5c6c6;
  border-radius: 8px;
  padding: 12px 14px;
  color: #b22020;
  font-size: 0.88rem;
  margin: 10px 0;
}

@media (max-width: 480px) {
  .pix-modal { padding: 24px 18px 20px; }
  .pix-qr-box img { width: 200px; height: 200px; }
  .pix-titulo { font-size: 1.05rem; }
}
