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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f5f2;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 480px;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #2c2c2c;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#summary-details p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.35rem;
}

.amount-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #eee;
  font-weight: 500;
}

.amount {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Payment methods */
.payment-card {
  padding-bottom: 1.5rem;
}

.wallet-btn-container {
  margin-bottom: 0.75rem;
}

apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 48px;
  --apple-pay-button-border-radius: 8px;
}

#google-pay-container button {
  width: 100%;
  border-radius: 8px !important;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #999;
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* Runner.js iframe container */
#runner-form {
  margin-bottom: 1rem;
  min-height: 120px;
}

#runner-form iframe {
  border: none !important;
  width: 100% !important;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  text-align: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.85;
}

/* Error message */
.error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Secure note */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

/* Centered card (processing, confirmation, error) */
.centered {
  text-align: center;
  padding: 3rem 1.5rem;
}

.centered h2 {
  margin-bottom: 0.75rem;
}

.centered p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sub-text {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  color: #888 !important;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1.5rem;
}

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

/* Checkmark */
.checkmark {
  width: 56px;
  height: 56px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
  }
  .card {
    padding: 1.25rem;
  }
}
