/* ============================================================
   TraderForecasts — Checkout page (PMPro [pmpro_checkout])
   Scoped to .pmpro-checkout body class.
   ============================================================ */
.pmpro-checkout{
  --tf-green:var(--global-palette-btn-bg,#16a34a);
  --tf-green-dk:var(--global-palette-btn-bg-hover,#15803d);
  --tf-ink:#0b1220; --tf-muted:#5b6576; --tf-soft:#8b95a6;
  --tf-line:#e7eaf0; --tf-tint:#f6f8fc;
  --tf-radius:16px; --tf-radius-sm:12px;
  --tf-shadow-lg:0 20px 45px rgba(16,24,40,.12);
}

/* 1) Hide the hero/title banner. */
.pmpro-checkout .entry-hero,
.pmpro-checkout .page-hero-section,
.pmpro-checkout .entry-hero-container-inner,
.pmpro-checkout .kadence-hero,
.pmpro-checkout header.entry-header.page-title{
  display:none !important;
}

/* 1b) Hide PMPro error banner — replaced by red field border.
   PMPro marks invalid fields with .pmpro_form_input-error. */
.pmpro-checkout .pmpro_message.pmpro_error{display:none !important}
#pmpro_form .pmpro_form_input-error,
#pmpro_form input.pmpro_form_input-error,
#pmpro_form .tf-field-error,
#pmpro_form input.tf-field-error{border-color:#dc2626 !important;box-shadow:0 0 0 3px rgba(220,38,38,.12) !important}

/* 2) Calm gradient canvas. */
.pmpro-checkout .content-container.site-container,
.pmpro-checkout .entry-content-wrap{
  background:
    radial-gradient(760px 380px at 15% -10%,rgba(22,163,74,.08),transparent 60%),
    radial-gradient(640px 380px at 100% 0%,rgba(124,58,237,.06),transparent 55%);
}
.pmpro-checkout #primary.content-area,
.pmpro-checkout #main.site-main,
.pmpro-checkout .content-wrap,
.pmpro-checkout article.entry{padding-top:0 !important;margin-top:0 !important}
.pmpro-checkout .entry-content-wrap{padding-top:10px !important;padding-bottom:30px !important}

/* 3) Single-card layout — everything inside one card like login page. */
.pmpro-checkout .pmpro{max-width:440px;margin:0 auto}
.pmpro-checkout #pmpro_form{
  display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--tf-line);border-radius:var(--tf-radius);
  box-shadow:var(--tf-shadow-lg);padding:24px 34px 20px;overflow:hidden;
}
.pmpro-checkout #pmpro_pricing_fields{display:none !important}
.pmpro-checkout #pmpro_user_fields{order:2}
.pmpro-checkout #pmpro_payment_information_fields{order:3}
.pmpro-checkout #pmpro_billing_address_fields{order:4}
.pmpro-checkout .pmpro_form_submit{order:5;margin:4px 0 0 !important;padding:0 !important;gap:0 !important}
.pmpro-checkout #pmpro_processing_message{display:none !important}
.pmpro-checkout #pmpro_message_bottom:empty{display:none !important}
.pmpro-checkout .tf-checkout-google{order:6}

/* Remove individual card styling — form IS the card now. */
.pmpro-checkout .pmpro_card{
  background:transparent;border:none;border-radius:0;
  box-shadow:none;overflow:visible;margin:0;
}
.pmpro-checkout .pmpro_card_content{padding:0}
.pmpro-checkout .pmpro_card_title{display:none}

/* 4) Form labels. */
.pmpro-checkout .pmpro_form_label,
.pmpro-checkout label{
  display:block;font-size:12.5px;font-weight:700;color:var(--tf-ink);
  margin:0 0 3px;letter-spacing:.01em;
}

/* 5) Form fields — same size as login page.
   Use #pmpro_form ID for maximum specificity to beat PMPro's nested .pmpro .pmpro_form_input. */
#pmpro_form .pmpro_form_input,
#pmpro_form input[type=text],
#pmpro_form input[type=email],
#pmpro_form input[type=password],
#pmpro_form input[type=tel],
#pmpro_form input[type=number],
#pmpro_form select,
#pmpro_form textarea{
  width:100% !important;box-sizing:border-box !important;font-size:16px !important;color:#0b1220 !important;
  padding:12px 14px !important;border:1px solid #c0c6cf !important;border-radius:12px !important;
  background:#fff !important;box-shadow:none !important;
  transition:border-color .15s,box-shadow .15s !important;
}
#pmpro_form .pmpro_form_input:focus,
#pmpro_form input[type=text]:focus,
#pmpro_form input[type=email]:focus,
#pmpro_form input[type=password]:focus,
#pmpro_form input[type=tel]:focus,
#pmpro_form input[type=number]:focus,
#pmpro_form select:focus,
#pmpro_form textarea:focus{
  outline:none !important;border-color:#0b1220 !important;
  box-shadow:none !important;
}

/* 6) Show Password toggle — eye icon only, inside the input field. */
.pmpro-checkout .pmpro_form_field-password:has(.pmpro_form_field-password-toggle){
  position:relative !important;display:block !important;
  grid-template-areas:none !important;grid-template-columns:none !important;
}
.pmpro-checkout .pmpro_form_field-password-toggle{
  position:absolute !important;right:12px;bottom:10px;
  margin:0 !important;z-index:2;
}
.pmpro-checkout .pmpro_form_field-password-toggle .pmpro_btn-password-toggle{
  background:none;border:none;color:#8b95a6;
  padding:0 !important;display:inline-flex;align-items:center;cursor:pointer;
}
.pmpro-checkout .pmpro_form_field-password-toggle .pmpro_btn-password-toggle:hover{color:#0b1220}
.pmpro-checkout .pmpro_form_field-password-toggle .pmpro_form_field-password-toggle-state{display:none !important}
.pmpro-checkout .pmpro_form_field-password-toggle .pmpro_icon-eye svg{width:20px;height:20px}
.pmpro-checkout .pmpro_form_field-password input[type=password],
.pmpro-checkout .pmpro_form_field-password input[type=text]{padding-right:42px !important}

/* 6b) Hide confirm password and confirm email — single fields only. */
.pmpro-checkout .pmpro_form_field-bconfirmemail{display:none !important}
.pmpro-checkout .pmpro_form_field-password + .pmpro_form_field-password{display:none !important}
/* PMPro forces .pmpro_cols-2 > * to 50% width — override to full width so the
   remaining single field fills the card and its label doesn't wrap. */
.pmpro-checkout .pmpro_cols-2{display:block !important;gap:0 !important}
.pmpro-checkout .pmpro_cols-2 > *{width:100% !important;margin:0 !important;padding-top:2px !important}
.pmpro-checkout .pmpro_form_field{margin:0 !important;padding:0 !important}
.pmpro-checkout .pmpro_form_field-password{margin:0 !important;padding-top:2px !important}

/* 6c) "Already have an account" — attached grey card footer, same as login.
   The form has 34px/30px padding, so negative margins let the footer span the
   full card width and sit flush with the rounded bottom corners. */
.pmpro-checkout .pmpro_card_actions{
  order:7;
  margin:10px -34px -20px;padding:12px 34px;
  background:rgba(0,0,0,.04);border-top:1px solid var(--tf-line);
  border-radius:0 0 var(--tf-radius) var(--tf-radius);
  text-align:center;font-size:13.5px;color:var(--tf-muted);
}
.pmpro-checkout .pmpro_card_actions a{color:var(--tf-green);font-weight:700;text-decoration:none}
.pmpro-checkout .pmpro_card_actions a:hover{color:var(--tf-green-dk);text-decoration:underline}

/* 6d) Branded heading — same as login page. */
.pmpro-checkout .tf-login-head{text-align:center;margin:0 0 10px}
.pmpro-checkout .tf-login-title{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--tf-ink);margin:0}
.pmpro-checkout .tf-login-sub{font-size:14px;color:var(--tf-muted);margin:6px 0 0;line-height:1.5}

/* 7) Submit button — full-width, same as login's Log In button.
   PMPro wraps it in an inline <span id="pmpro_submit_span"> which shrink-wraps,
   so the span must be made block-level for width:100% to resolve correctly. */
.pmpro-checkout #pmpro_submit_span{display:block;width:100%}
.pmpro-checkout .pmpro_btn.pmpro_btn-submit-checkout,
.pmpro-checkout .pmpro_btn.pmpro_btn-submit{
  width:100% !important;box-sizing:border-box !important;cursor:pointer;
  border-radius:var(--tf-radius-sm) !important;padding:13px 18px !important;
  font-size:15.5px !important;font-weight:700 !important;
}

/* 7) Informational text / links. */
.pmpro-checkout .pmpro_card_content p{
  font-size:13px;line-height:1.5;color:var(--tf-muted);margin:0 0 6px;
}
.pmpro-checkout .pmpro_card_content strong{color:var(--tf-ink)}
.pmpro-checkout .pmpro_checkout-field-login_name p{font-size:13px;color:var(--tf-muted)}
.pmpro-checkout .pmpro_checkout-field-login_name a{color:var(--tf-green);font-weight:700;text-decoration:none}
.pmpro-checkout .pmpro_checkout-field-login_name a:hover{color:var(--tf-green-dk);text-decoration:underline}

/* 8) Google sign-up — bordered white button, same as login page. */
.pmpro-checkout .tf-checkout-google [id^="nsl-custom-login-form"]{margin:0 !important;padding:0 !important}
.pmpro-checkout .tf-checkout-google .nsl-container{margin:0 !important;padding:0 !important}
.pmpro-checkout .tf-checkout-google .nsl-container-buttons{margin:0 !important;padding:0 !important}
.pmpro-checkout .tf-checkout-google .nsl-container .nsl-container-buttons > div{margin:0 !important}
.pmpro-checkout .tf-checkout-google .nsl-button-default.nsl-button-google{
  border-radius:var(--tf-radius-sm) !important;
  border:1px solid var(--tf-line) !important;
  box-shadow:none !important;background:#fff !important;
  transition:border-color .15s,transform .16s ease,box-shadow .2s !important;
}
.pmpro-checkout .tf-checkout-google .nsl-button-default.nsl-button-google:hover{
  border-color:#cdd3de !important;transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(16,24,40,.08) !important;
}
.pmpro-checkout .tf-checkout-google .nsl-button-default .nsl-button-label-container{
  color:var(--tf-ink) !important;font-weight:700 !important;font-size:14.5px !important;
}
.pmpro-checkout .tf-login-or{
  display:flex;align-items:center;gap:12px;margin:6px 0 6px;
  color:var(--tf-soft);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
}
.pmpro-checkout .tf-login-or::before,
.pmpro-checkout .tf-login-or::after{content:"";flex:1;height:1px;background:var(--tf-line)}

/* to-do 24 3.3: "Continue with Google" as wide as "Create account" */
.pmpro-checkout .nsl-container-block .nsl-container-buttons,.pmpro-checkout .nsl-container-block .nsl-container-buttons a{width:100%;max-width:none;display:flex;flex-flow:column}
.pmpro-checkout .nsl-container-block .nsl-button{width:100%;max-width:none;justify-content:center}
