/* ----------------------------------- Base ----------------------------------- */
.sc-donation-form,
.sc-donation-form * {
  box-sizing: border-box;
}
.sc-donation-form {
  --sc-border: #e5e7eb;
  --sc-border-strong: #d1d5db;
  --sc-bg: #ffffff;
  --sc-bg-soft: #f8fafc;
  --sc-bg-subtle: #f3f4f6;
  --sc-text: #0f172a;
  --sc-text-soft: #475569;
  --sc-text-muted: #64748b;
  --sc-success: #059669;
  --sc-error: #dc2626;
  --sc-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --sc-shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.05);
  --sc-radius: 18px;
  --sc-radius-sm: 12px;
  --sc-radius-xs: 10px;
  --sc-space: 20px;
  max-width: 460px;
  margin: 0 auto;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  overflow: hidden;
  color: var(--sc-text);
}
.sc-form-banner {
  width: 100%;
  height: 132px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--sc-border);
}
.sc-form-content {
  padding: 24px;
}
.sc-donation-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-text);
  letter-spacing: -0.01em;
}
.sc-field-group + .sc-field-group {
  margin-top: 14px;
}
.sc-field-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sc-text-muted);
} /* ----------------------------------- Suggested amounts ----------------------------------- */
.sc-suggested-amounts {
  margin-bottom: 18px;
}
.sc-amounts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.sc-suggest-btn {
  appearance: none;
  border: 1px solid var(--sc-border);
  background: #fff;
  color: var(--sc-text);
  border-radius: var(--sc-radius-xs);
  min-height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sc-suggest-btn:hover {
  background: var(--sc-bg-soft);
  border-color: var(--sc-border-strong);
}
.sc-suggest-btn:active {
  transform: translateY(1px);
}
.sc-suggest-btn:focus-visible {
  outline: 2px solid rgba(30, 41, 59, 0.18);
  outline-offset: 2px;
} /* ----------------------------------- Inputs ----------------------------------- */
.sc-amount,
.sc-receipt-email {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-xs);
  background: #fff;
  color: var(--sc-text);
  font-size: 16px;
  line-height: 1.2;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.sc-amount::placeholder,
.sc-receipt-email::placeholder {
  color: #94a3b8;
}
.sc-amount:hover,
.sc-receipt-email:hover {
  border-color: var(--sc-border-strong);
}
.sc-amount:focus,
.sc-receipt-email:focus {
  border-color: #94a3b8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
} /* ----------------------------------- Cover fees ----------------------------------- */
.sc-fee-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sc-fee-wrapper input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
  position: relative;
  top: 1px;
}

.sc-fee-wrapper span {
  display: inline;
  font-size: 14px;
  line-height: 1.35;
  color: var(--sc-text);
  font-weight: 500;
} /* ----------------------------------- Express checkout ----------------------------------- */
.sc-express-wrap {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sc-express-checkout {
  min-height: 48px;
}
.sc-express-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sc-text-muted);
  text-align: left;
} /* ----------------------------------- Divider ----------------------------------- */
.sc-payment-divider {
  position: relative;
  margin: 18px 0 16px;
  text-align: center;
}
.sc-payment-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  height: 1px;
  background: var(--sc-border);
}
.sc-payment-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: var(--sc-bg);
  color: var(--sc-text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
} /* ----------------------------------- Payment element wrapper ----------------------------------- */
.sc-payment-element-wrap {
  padding: 0;
  border: 0;
  background: transparent;
}
.sc-payment-element {
  min-height: 56px;
} /* ----------------------------------- Total ----------------------------------- */
.sc-total-display {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-bg-soft);
  text-align: center;
  font-size: 15px;
  color: var(--sc-text-soft);
}
.sc-total-display strong {
  color: var(--sc-text);
  font-weight: 700;
}
.sc-total-value {
  color: var(--sc-success);
} /* ----------------------------------- Main pay button ----------------------------------- */
.sc-pay-btn,
.sc-receipt-btn,
.sc-reset-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}
.sc-pay-btn {
  width: 100%;
  margin-top: 18px;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}
.sc-pay-btn:hover:not(:disabled) {
  background: #0f172a;
}
.sc-pay-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.sc-pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
} /* Spinner */
.sc-pay-btn {
  position: relative;
}
.sc-pay-btn.loading {
  color: transparent;
}
.sc-pay-btn.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: sc-spin 0.85s linear infinite;
}
@keyframes sc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
} /* ----------------------------------- Message box ----------------------------------- */
.sc-message {
  min-height: 20px;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
} /* ----------------------------------- Success screen ----------------------------------- */
.sc-success-screen {
  padding: 30px 24px 24px;
  text-align: center;
  background: #fff;
  animation: sc-fade-in 0.32s ease-out;
}
.sc-success-icon {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 76px;
  line-height: 1;
  color: #10b981;
  animation: sc-pop-in 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.sc-success-screen h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sc-text);
}
.sc-success-screen p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sc-text-soft);
}
.sc-success-subtext {
  margin-top: 18px !important;
  font-size: 13px !important;
  line-height: 1.5;
  color: var(--sc-text-muted) !important;
}
@keyframes sc-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes sc-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} /* ----------------------------------- Receipt box ----------------------------------- */
.sc-success-receipt-box {
  margin: 22px auto 0;
  padding: 16px;
  max-width: 360px;
  text-align: left;
  background: var(--sc-bg-soft);
  border: 1px solid var(--sc-border);
  border-radius: 14px;
}
.sc-success-receipt-title {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--sc-text);
}
.sc-success-receipt-text {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  line-height: 1.5;
  color: var(--sc-text-muted) !important;
}
.sc-success-receipt-form {
  display: grid;
  gap: 10px;
}
.sc-receipt-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  background: #fff;
  color: var(--sc-text-soft);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.sc-receipt-btn:hover:not(:disabled) {
  background: var(--sc-bg-soft);
  border-color: var(--sc-border-strong);
  color: var(--sc-text);
}

.sc-receipt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sc-receipt-message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
} /* ----------------------------------- Gift Aid CTA ----------------------------------- */
.sc-success-giftaid-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 16px auto 0;
  padding: 16px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  box-shadow: var(--sc-shadow-soft);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.sc-success-giftaid-btn:hover {
  transform: translateY(-1px);
  border-color: var(--sc-border-strong);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  background: #fff;
}
.ga-icon {
  width: auto;
  height: 30px;
  flex: 0 0 auto;
}
.sc-ga-text {
  flex: 1 1 auto;
  text-align: left;
}
.sc-ga-text strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--sc-text);
}
.sc-ga-text span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sc-text-muted);
}
.ga-arrow {
  font-size: 20px;
  color: #94a3b8;
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}
.sc-success-giftaid-btn:hover .ga-arrow {
  transform: translateX(3px);
  color: var(--sc-text);
} /* ----------------------------------- Reset button ----------------------------------- */
.sc-reset-btn {
  width: 100%;
  max-width: 360px;
  margin: 14px auto 0;
  background: transparent;
  color: var(--sc-text-soft);
  border: 1px solid var(--sc-border);
}
.sc-reset-btn:hover {
  background: var(--sc-bg-soft);
  border-color: var(--sc-border-strong);
  color: var(--sc-text);
} /* ----------------------------------- Responsive ----------------------------------- */
@media (max-width: 520px) {
  .sc-donation-form {
    border-radius: 16px;
  }
  .sc-form-content,
  .sc-success-screen {
    padding: 20px;
  }
  .sc-form-banner {
    height: 118px;
  }
  .sc-amounts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sc-success-icon {
    font-size: 68px;
  }
  .sc-success-screen h3 {
    font-size: 23px;
  }
}
@media (max-width: 380px) {
  .sc-form-content,
  .sc-success-screen {
    padding: 18px;
  }
  .sc-suggest-btn,
  .sc-pay-btn,
  .sc-receipt-btn,
  .sc-reset-btn {
    min-height: 46px;
  }
  .sc-payment-divider span {
    padding: 0 10px;
  }
}
