/* ============================================================
   Scientek Records — Stripe Hosted Checkout styles
   Drop-in: <link rel="stylesheet" href="scientek-payment.css">
   Loads alongside scientek.css
   ============================================================ */

/* Hide the legacy card-form bits inside the Payment section.
   These are belt-and-braces — JS also hides them, but if JS is
   delayed we don't want fields flashing on screen. */
#view-checkout .pay-methods,
#view-checkout .form-row,
#view-checkout .secure-note { display: none !important; }

/* Hide the form-group wrapping the card number input */
#view-checkout .checkout-section .form-group:has(.card-num) { display: none !important; }
#view-checkout .checkout-section .form-group:has(input[placeholder*="Name on card" i]) { display: none !important; }
#view-checkout .checkout-section .form-group:has(input[placeholder*="Card" i]) { display: none !important; }

/* Fallback for browsers without :has() — hide by class added by JS too */
#view-checkout .form-group.is-hidden,
#view-checkout .pay-method-row.is-hidden { display: none !important; }

/* ---------- Stripe notice card ---------- */
.stripe-notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 200, 50, 0.04), rgba(255, 200, 50, 0.08));
  border: 1px solid rgba(255, 200, 50, 0.25);
  border-radius: 12px;
}

.stripe-notice .sn-icon {
  font-size: 1.4rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.stripe-notice .sn-body {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.stripe-notice .sn-body strong {
  color: #ffd470;
}

.stripe-notice .sn-cards {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Pay button loading state ---------- */
.btn-pay.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.btn-pay.is-loading::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  animation: snPaySpin 0.7s linear infinite;
}

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