.gform_body iframe {
  width: 100%;
  height: 54px;
}

.gform_footer input[disabled],
.gform_footer input[type=submit]:disabled,
.gform_footer input[type=submit]:disabled:hover {
  opacity: 0.25;
  background: #333;
}

.gform_ou_donation_amount_choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

.gform_ou_donation_amount_layout_list .gform_ou_donation_amount_choices {
  grid-template-columns: 1fr;
}

.gform_ou_donation_amount_choice {
  position: relative;
  display: block;
  margin: 0;
}

.gform_ou_donation_amount_choice_input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gform_ou_donation_amount_choice_label {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.65rem 0.85rem;
  text-align: center;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.gform_ou_donation_amount_choice_input:checked + .gform_ou_donation_amount_choice_label {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.gform_ou_donation_amount_choice_input:focus-visible + .gform_ou_donation_amount_choice_label {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

credit-card:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.gform_ou_donation_amount_other {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.gform_ou_donation_amount_other[hidden] {
  display: none;
}

.gform_ou_donation_amount_other_control {
  display: flex;
  max-width: 14rem;
  align-items: center;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
}

.gform_ou_donation_amount_other_control:focus-within {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.gform_ou_donation_amount_currency {
  color: #4b5563;
  padding-left: 0.75rem;
}

.gform_ou_donation_amount_other_input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem 0.65rem 0.35rem;
}

.gf-oucheckout-status-table {
  margin-top: 0.5rem;
}

.gf-oucheckout-status-table th {
  width: 220px;
}

.gf-oucheckout-status-badge {
  display: inline-flex;
  min-width: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-right: 0.5rem;
  padding: 0.35rem 0.45rem;
}

.gf-oucheckout-status-error .gf-oucheckout-status-badge {
  background: #fee2e2;
  color: #991b1b;
}

.gf-oucheckout-status-warning .gf-oucheckout-status-badge {
  background: #fef3c7;
  color: #92400e;
}

.gf-oucheckout-status-optional .gf-oucheckout-status-badge {
  background: #f3f4f6;
  color: #374151;
}

.gf-oucheckout-status-ok .gf-oucheckout-status-badge {
  background: #dcfce7;
  color: #166534;
}

.gf-oucheckout-status-detail {
  margin-top: 0.35rem;
  color: #4b5563;
}

.gf-oucheckout-status-actions {
  margin-top: 0.5rem;
}

.gf-oucheckout-launch-panel {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #16a34a;
  margin: 0.75rem 0 1rem;
  padding: 1rem;
}

.gf-oucheckout-launch-panel-test-only {
  border-left-color: #d97706;
  background: #fffbeb;
}

.gf-oucheckout-launch-panel-needs-setup {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.gf-oucheckout-launch-panel-header h4 {
  font-size: 18px;
  margin: 0 0 0.25rem;
}

.gf-oucheckout-launch-panel-header p {
  margin: 0;
}

.gf-oucheckout-launch-eyebrow {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.gf-oucheckout-launch-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1rem 0;
}

.gf-oucheckout-launch-summary div {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
}

.gf-oucheckout-launch-summary dt {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gf-oucheckout-launch-summary dd {
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.gf-oucheckout-launch-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gf-oucheckout-feed-docs {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  margin: 0.75rem 0 1rem;
  padding: 1rem;
}

.gf-oucheckout-feed-docs-header h4 {
  color: #0f172a;
  font-size: 16px;
  margin: 0 0 0.25rem;
}

.gf-oucheckout-feed-docs-header p {
  margin: 0;
}

.gf-oucheckout-feed-docs-steps {
  counter-reset: gf-oucheckout-feed-step;
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.gf-oucheckout-feed-docs-steps li {
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 0.75rem;
}

.gf-oucheckout-feed-docs-steps li::before {
  align-items: center;
  background: #1d4ed8;
  color: #fff;
  content: counter(gf-oucheckout-feed-step);
  counter-increment: gf-oucheckout-feed-step;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 1.5rem;
  justify-content: center;
  width: 1.5rem;
}

.gf-oucheckout-feed-docs-steps strong,
.gf-oucheckout-feed-docs-steps span {
  grid-column: 2;
}

.gf-oucheckout-feed-docs-steps strong {
  color: #0f172a;
}

.gf-oucheckout-feed-docs-steps span {
  color: #475569;
}

.gf-oucheckout-admin-verdict {
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
}

.gf-oucheckout-admin-verdict strong {
  display: block;
  color: #14532d;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.gf-oucheckout-admin-verdict p {
  margin: 0;
}

.gf-oucheckout-admin-verdict-needs-setup {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.gf-oucheckout-admin-verdict-needs-setup strong {
  color: #991b1b;
}

.gf-oucheckout-admin-verdict-test-only {
  border-left-color: #d97706;
  background: #fffbeb;
}

.gf-oucheckout-admin-verdict-test-only strong {
  color: #92400e;
}

.gf-oucheckout-advanced-diagnostics {
  margin-top: 1rem;
}

.gf-oucheckout-advanced-diagnostics summary {
  cursor: pointer;
  font-weight: 600;
}

.gf-oucheckout-unsaved-mapping-notice {
  margin: 0.75rem 0;
}

.gf-oucheckout-last-feed-test {
  margin-top: 0.75rem;
  overflow-wrap: anywhere;
}

.ou-checkout-fallback-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border: 2px solid rgba(17, 24, 39, 0.25);
  border-top-color: #111827;
  border-radius: 50%;
  vertical-align: middle;
  animation: ou-checkout-spin 0.75s linear infinite;
}

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

/* ---------------------------------------------------------------------------
 * Processing overlay
 * Shown while a Gravity Form is submitting so users get visible feedback
 * during the (sometimes long) payment / server round-trip. The tint is
 * form-scoped to block re-tapping the form. The spinner panel is fixed to
 * the viewport so it stays visible on tall mobile forms regardless of
 * scroll position. Includes iOS Safari < 14.5 and older Android WebView
 * fallbacks (`top/right/bottom/left` longhand, `-webkit-` prefixes).
 * ------------------------------------------------------------------------- */
.ou-checkout-form-processing {
  position: relative;
}

.ou-checkout-form-processing > * {
  -webkit-filter: blur(1px);
  filter: blur(1px);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.ou-checkout-processing-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: none !important;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at top, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0) 60%),
    rgba(248, 250, 252, 0.85);
  z-index: 2147483646;
  text-align: center;
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  backdrop-filter: blur(4px) saturate(140%);
  -webkit-animation: ou-checkout-processing-fade 240ms ease-out both;
  animation: ou-checkout-processing-fade 240ms ease-out both;
  pointer-events: auto;
}

.ou-checkout-processing-overlay.is-active {
  display: block !important;
}

.ou-checkout-processing-overlay__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: calc(100vw - 2rem);
  min-width: min(20rem, calc(100vw - 2rem));
  padding: 1.15rem 1.4rem;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 45px -10px rgba(15, 23, 42, 0.28),
    0 6px 14px -4px rgba(15, 23, 42, 0.12);
  z-index: 2147483647;
  -webkit-animation: ou-checkout-processing-pop 280ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation: ou-checkout-processing-pop 280ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.ou-checkout-processing-overlay__spinner {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  /* Fallback for browsers without conic-gradient (iOS Safari < 12.2,
   * older Android stock browsers). A simple two-tone border ring
   * keeps the spinner visible everywhere. */
  border: 0.25rem solid rgba(37, 99, 235, 0.18);
  border-top-color: #2563eb;
  background: transparent;
  -webkit-animation: ou-checkout-processing-spin 0.85s linear infinite;
  animation: ou-checkout-processing-spin 0.85s linear infinite;
}

@supports (background: conic-gradient(red, blue)) {
  .ou-checkout-processing-overlay__spinner {
    border: 0;
    background: conic-gradient(from 0deg, #2563eb 0%, #38bdf8 35%, rgba(56, 189, 248, 0) 70%, rgba(56, 189, 248, 0) 100%);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
    mask: radial-gradient(circle, transparent 52%, #000 54%);
  }
}

.ou-checkout-processing-overlay__spinner::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0) 70%);
  -webkit-animation: ou-checkout-processing-pulse 1.6s ease-in-out infinite;
  animation: ou-checkout-processing-pulse 1.6s ease-in-out infinite;
  z-index: -1;
}

.ou-checkout-processing-overlay__text {
  text-align: left;
}

.ou-checkout-processing-overlay__label {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #0f172a, #1d4ed8, #0f172a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: ou-checkout-processing-shimmer 2.6s linear infinite;
  animation: ou-checkout-processing-shimmer 2.6s linear infinite;
}

.ou-checkout-processing-overlay__subtitle {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #475569;
  max-width: 22rem;
}

[dir="rtl"] .ou-checkout-processing-overlay__text {
  text-align: right;
}

@-webkit-keyframes ou-checkout-processing-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes ou-checkout-processing-spin {
  to { transform: rotate(360deg); }
}

@-webkit-keyframes ou-checkout-processing-pulse {
  0%, 100% { -webkit-transform: scale(0.95); transform: scale(0.95); opacity: 0.6; }
  50%      { -webkit-transform: scale(1.15); transform: scale(1.15); opacity: 1; }
}

@keyframes ou-checkout-processing-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 1; }
}

@-webkit-keyframes ou-checkout-processing-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ou-checkout-processing-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@-webkit-keyframes ou-checkout-processing-pop {
  from { -webkit-transform: translate(-50%, -48%) scale(0.92); transform: translate(-50%, -48%) scale(0.92); opacity: 0; }
  to   { -webkit-transform: translate(-50%, -50%) scale(1);    transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

@keyframes ou-checkout-processing-pop {
  from { transform: translate(-50%, -48%) scale(0.92); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

@keyframes ou-checkout-processing-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ou-checkout-processing-overlay,
  .ou-checkout-processing-overlay__panel,
  .ou-checkout-processing-overlay__spinner::after,
  .ou-checkout-processing-overlay__label {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .ou-checkout-processing-overlay__label {
    -webkit-text-fill-color: #0f172a;
  }
  .ou-checkout-processing-overlay__spinner {
    -webkit-animation-duration: 2.5s;
    animation-duration: 2.5s;
  }
}
