* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f9;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkout-container {
  width: 100%;
  max-width: 520px;
  padding: 32px 16px;
  flex: 1;
}

.checkout-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.5px;
}

.checkout-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.payment-summary {
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.payment-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.company-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.amount {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.description {
  font-size: 15px;
  color: #6b7280;
}

#checkout-mount {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 1px solid #eee;
  border-radius: 0 0 12px 12px;
  padding: 24px;
  min-height: 300px;
}

/* Loading spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #652CD1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error state */
.error-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef2f2;
  color: #ef4444;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

#error h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

#error p {
  font-size: 14px;
  color: #6b7280;
}

/* Footer */
.checkout-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: #9ca3af;
}

.checkout-footer strong {
  color: #6b7280;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #652CD1;
}

@media (max-width: 480px) {
  .checkout-container { padding: 16px 12px; }
  .checkout-card { padding: 24px 16px; }
  .amount { font-size: 28px; }
}
