/* Estilos para o Modal PIX */
.pix-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.pix-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
  padding: 24px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pix-close-button {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.pix-close-button:hover {
  background-color: #f5f5f5;
  color: #333;
}

.pix-modal-content h2 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  text-align: center;
  padding-right: 40px;
}

.pix-qr-code {
  text-align: center;
  margin: 20px 0;
}

.pix-qr-code img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pix-copy-paste {
  margin: 24px 0;
}

.pix-copy-paste label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  text-align: center;
}

.pix-code-container {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pix-code-container input {
  flex: 1;
  padding: 12px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  background: #f9fafb;
  color: #374151;
}

.copy-button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-button:hover {
  background: #1d4ed8;
}

#pixInstructions {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

#pixInstructions p {
  margin: 0;
  color: #0369a1;
  font-size: 14px;
  line-height: 1.5;
}

#pixError {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #dc2626;
}

.retry-button {
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 12px;
}

.retry-button:hover {
  background: #b91c1c;
}

/* Responsividade */
@media (max-width: 768px) {
  .pix-modal {
    padding: 10px;
  }

  .pix-modal-content {
    max-height: 95vh;
    padding: 20px;
  }

  .pix-modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .pix-qr-code img {
    max-width: 200px;
  }

  .pix-code-container {
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }
}
/* css/pix-modal.css */

.pix-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.pix-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pix-close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.pix-close-button:hover,
.pix-close-button:focus {
  color: #000;
}

.pix-modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-size: 22px;
  color: #333;
}

.pix-qr-code {
  text-align: center;
  margin-bottom: 15px;
}

.pix-qr-code img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border: 1px solid #eee;
  border-radius: 8px;
}

.pix-copy-paste {
  margin-top: 15px;
}

.pix-code-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.pix-code-container input {
  flex-grow: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  background-color: #f8f9fa;
  color: #495057;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-button {
  background-color: #e9ecef;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #495057;
  transition: background-color 0.2s;
}

.copy-button:hover {
  background-color: #dee2e6;
}

/* Estilos para a seção "Já realizou o pagamento?" */
.already-paid-container {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.already-paid-container h3 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 8px;
}

.already-paid-container p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Estilo para o botão "Confirmar" */
.confirm-paid-button {
  background-color: #2563eb; /* Azul */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  transition: background-color 0.2s;
}

.confirm-paid-button:hover {
  background-color: #1d4ed8; /* Azul mais escuro */
}
