/* Official wallet controls in one clear, spacious alternative-payment panel. */
.swd-pay #gform_14 [data-swd-wallets] {
  grid-column: 1 / -1;
  flex-basis: 100%;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid #dedfd6;
  border-radius: 14px;
  background: #f7f7f2;
}
.swd-pay #gform_14 [data-swd-wallet-title] {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  color: #17201d;
}
.swd-pay #gform_14 [data-swd-wallet-buttons] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.swd-pay #gform_14 [data-swd-apple-pay] {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 48px;
  --apple-pay-button-border-radius: 8px;
  --apple-pay-button-padding: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 48px;
}
.swd-pay #gform_14 [data-swd-google-pay] {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 48px;
}
.swd-pay #gform_14 [data-swd-google-pay] > button,
.swd-pay #gform_14 button[data-swd-google-pay] {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 10px 16px !important;
  background-origin: content-box !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  border-radius: 8px !important;
  background-color: #000 !important;
  box-shadow: none !important;
}
/* Do not crop or reposition Google's artwork/iframes. The official fill-size
   checkout button handles its own artwork inside the full-width control. */
.swd-pay #gform_14 [data-swd-paypal-choice] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid #89958d;
  border-radius: 8px;
  background: #fff;
  color: #17201d;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
.swd-pay #gform_14 [data-swd-paypal-choice][hidden] { display: none; }
.swd-pay #gform_14 [data-swd-wallet-status] {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.swd-pay #gform_14 [data-swd-wallet-status]:empty { display: none; }
.swd-pay #gform_ppcp_smart_payment_buttons_14 {
  box-sizing: border-box;
  max-width: 100%;
  margin: 12px 0 20px;
  padding: 16px;
  border: 1px solid #dedfd6;
  border-radius: 14px;
  background: #f7f7f2;
}
.swd-pay #gform_14[data-swd-native-wallet-choice="true"] [data-swd-wallets] {
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding-bottom: 12px;
}
.swd-pay #gform_14[data-swd-native-wallet-choice="true"] #gform_ppcp_smart_payment_buttons_14 {
  width: 100%;
  margin-top: -12px;
  padding: 0 20px 20px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.swd-pay #gform_14 .gform_previous_button {
  padding: 10px 16px;
  border: 1px solid #c4cbc5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
/* Card entry is the default. Native PayPal/Venmo buttons are available below it
   immediately; no second method selector or duplicate payment implementation. */
.swd-pay #gform_14[data-swd-all-methods="true"] .gform_ppcp_payment_method { display: none !important; }
.swd-pay #gform_14[data-swd-all-methods="true"] [data-swd-wallets] {
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding-bottom: 12px;
}
.swd-pay #gform_14[data-swd-all-methods="true"] #gform_ppcp_smart_payment_buttons_14 {
  display: block !important;
  width: 100%;
  margin-top: -12px;
  padding: 0 20px 20px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

/* Native GF fields use a twelve-column grid, including inserted status text. */
.swd-pay #gform_14 [data-swd-card-status] {
  grid-column: 1 / -1;
  flex-basis: 100%;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 4px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
}
.swd-pay .swd-pay__progress {
  grid-column: 1 / -1;
  flex-basis: 100%;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #dedfd6;
  border-radius: 14px;
  background: #f7f7f2;
  color: #17201d;
}
.swd-pay .swd-pay__progress [data-swd-progress-label] {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}
.swd-pay .swd-pay__progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 9px;
  background: #e1e5dc;
}
.swd-pay .swd-pay__progress-track span {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: #697c58;
}
.swd-pay [data-progress-state="checking"] .swd-pay__progress-track span {
  animation: swd-payment-check 1.8s ease-in-out infinite alternate;
}
.swd-pay [data-progress-state="confirmed"] {
  border-color: #bbd6c4;
  background: #f0f7f1;
}
.swd-pay [data-progress-state="confirmed"] .swd-pay__progress-track span { width: 100%; background: #287744; }
.swd-pay [data-progress-state="waiting"] .swd-pay__progress-track span { width: 100%; background: #abb3a4; }
.swd-pay .swd-pay__progress-steps { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: #5d6961; }
@keyframes swd-payment-check { from { transform: translateX(-25%); } to { transform: translateX(210%); } }
@media (prefers-reduced-motion: reduce) {
  .swd-pay [data-progress-state="checking"] .swd-pay__progress-track span { animation: none; width: 65%; }
}

/* One viewport-anchored checking page before and after the native form POST.
   The provider's bank-verification layer remains above this local view. */
.swd-pay:has(.swd-pay__checking-stage) { isolation: auto; }
body:has(.swd-pay .swd-pay__checking-stage) { overflow: hidden; }
.swd-pay .swd-pay__checking-stage {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: safe center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #161d1c66;
  backdrop-filter: blur(4px);
  color: #161d1c;
  text-align: center;
}
.swd-pay .swd-pay__checking-card {
  box-sizing: border-box;
  flex: 0 1 520px;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 32px;
  border: 1px solid #dfe2db;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px #161d1c0d;
}
.swd-pay .swd-pay__response-stage iframe {
  display: block;
  width: min(760px, 100%);
  height: min(820px, calc(100dvh - 48px));
  border: 1px solid #dfe2db;
  border-radius: 16px;
  background: #fff;
}
.swd-pay .swd-pay__response-stage iframe[hidden] { display: none; }
/* A validation response may initialize native card fields before load fires.
   Keep the transport laid out off-screen; moving or display:none would break it. */
.swd-pay .swd-pay__checking-stage > iframe[data-swd-native-response][hidden] {
  display: block !important;
  position: fixed;
  left: -10000px;
  top: 0;
  width: min(760px, 100vw);
  height: min(820px, 100dvh);
  visibility: hidden;
  pointer-events: none;
}
.swd-pay .swd-pay__checking-card .swd-pay__stage-brand {
  margin: 0 0 20px;
  color: #67745f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.swd-pay .swd-pay__checking-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6em;
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}
.swd-pay .swd-pay__checking-card .swd-pay__stage-invoice { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.swd-pay .swd-pay__checking-card [data-swd-stage-message] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.swd-pay .swd-pay__checking-card [data-swd-stage-actions] { min-height: 48px; }
.swd-pay .swd-pay__checking-card [data-swd-stage-actions] button { width: 100%; min-height: 48px; }
.swd-pay .swd-pay__checking-card .swd-pay__stage-signoff { margin: 20px 0 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 600px) {
  .swd-pay .swd-pay__checking-stage { padding: 16px; }
  .swd-pay .swd-pay__checking-card { padding: 24px; }
  .swd-pay .swd-pay__checking-card h3 { font-size: 26px; }
}
