/* SpedPay Frontend Styles */
.spedpay-pix-instructions {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.spedpay-pix-instructions h3 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.spedpay-pix-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.pix-qr-code {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pix-code-text {
  width: 100%;
  max-width: 500px;
}

.pix-code-text label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #495057;
}

.pix-code-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

#spedpay-pix-code {
  flex: 1;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  background: #fff;
}

#spedpay-copy-code {
  padding: 12px 20px;
  background: #007cba;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#spedpay-copy-code:hover {
  background: #005a87;
}

.spedpay-payment-status {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
}

.spedpay-payment-status p {
  margin: 0 0 10px 0;
  color: #856404;
  font-weight: bold;
}

#spedpay-check-status {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#spedpay-check-status:hover {
  background: #218838;
}

#spedpay-check-status:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Success/Error Messages */
.spedpay-message {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 10px 0;
  font-weight: bold;
}

.spedpay-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.spedpay-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading Animation */
.spedpay-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007cba;
  border-radius: 50%;
  animation: spedpay-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spedpay-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .spedpay-pix-instructions {
    padding: 15px;
    margin: 15px 0;
  }

  .spedpay-pix-code {
    gap: 15px;
  }

  .pix-code-container {
    flex-direction: column;
    gap: 8px;
  }

  #spedpay-pix-code {
    width: 100%;
    font-size: 11px;
  }

  #spedpay-copy-code {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .spedpay-pix-instructions h3 {
    font-size: 1.2em;
  }

  .pix-qr-code {
    padding: 10px;
  }

  .spedpay-payment-status {
    padding: 12px;
  }
}
