:root {
  --tcf-v2-blue: #0967f2;
  --tcf-v2-blue-dark: #0649bd;
  --tcf-v2-blue-soft: #eef6ff;
  --tcf-v2-navy: #09285e;
  --tcf-v2-text: #132b4f;
  --tcf-v2-muted: #677a98;
  --tcf-v2-line: #dbe6f3;
  --tcf-v2-bg: #f5f8fc;
  --tcf-v2-green: #12a363;
  --tcf-v2-radius: 16px;
  --tcf-v2-shadow: 0 10px 30px rgba(19, 61, 112, .08);
}

/* 3.1: two-column design without moving any native payment/form nodes. */
body .mp_wrapper.tcf-checkout-v2.tcf-v31-layout,
body .mp_wrapper.tcf-checkout-v2 .tcf-v31-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr);
  gap: 20px;
  align-items: start;
}
body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form[data-tcf-v2="1"] {
  min-width: 0;
  grid-column: 1;
  padding: 26px 28px !important;
  background: #fff !important;
  border: 1px solid #dbe6f3 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(19,61,112,.08) !important;
}
body .tcf-v31-layout > .tcf-v2-summary { grid-column: 2; }
body .tcf-v31-layout > :not(form):not(.tcf-v2-summary) { grid-column: 1 / -1; }
body .mp_wrapper.tcf-checkout-v2 .mp-form-row { margin-bottom: 16px; }
body .mp_wrapper.tcf-checkout-v2 .have-coupon-link {
  color: #0967f2;
  font-size: 13px;
  font-weight: 700;
}
body .mp_wrapper.tcf-checkout-v2 .mp-form-row.mepr_coupon {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  background: #f8fbff;
}
body .mp_wrapper.tcf-checkout-v2 .mepr_coupon > label { display: block; margin-bottom: 6px !important; }
body .mp_wrapper.tcf-checkout-v2 .mepr_price,
body .mp_wrapper.tcf-checkout-v2 .mepr-transaction-invoice-wrapper,
body .mp_wrapper.tcf-checkout-v2 .mp_invoice {
  max-width: 100%;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
body .mp_wrapper.tcf-checkout-v2 .mepr_error {
  padding: 12px 16px;
  border: 1px solid #f3c2bf;
  border-radius: 10px;
  color: #a62318;
  background: #fff1f1;
}
.tcf-v31-account-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tcf-v31-plan-name { color: #09285e; font-size: 17px; }
.tcf-v31-summary-note { font-size: 13px; line-height: 1.6; color: #677a98; }
@media (max-width: 920px) {
  body .mp_wrapper.tcf-checkout-v2.tcf-v31-layout,
  body .mp_wrapper.tcf-checkout-v2 .tcf-v31-layout { grid-template-columns: minmax(0, 1fr); }
  body .tcf-v31-layout > .tcf-v2-summary { grid-column: 1; order: 2; }
}
@media (max-width: 640px) {
  body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form[data-tcf-v2="1"] { padding: 20px 16px !important; }
}

.tcf-v2-banner,
.tcf-checkout-v2,
.tcf-v2-banner *,
.tcf-checkout-v2 * {
  box-sizing: border-box;
}

/* Checkout-only minimal header */
body.tcf-checkout-minimal-header #masthead,
body.tcf-checkout-minimal-header .site-header,
body.tcf-checkout-minimal-header .ast-mobile-header-wrap,
body.tcf-checkout-minimal-header .ast-primary-header-bar,
body.tcf-checkout-minimal-header .main-header-bar {
  display: none !important;
}

body.tcf-checkout-minimal-header #content,
body.tcf-checkout-minimal-header .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.tcf-v2-minimal-header {
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 4px;
  box-sizing: border-box;
}

.tcf-v2-minimal-logo {
  display: inline-flex;
  align-items: center;
  color: var(--tcf-v2-navy) !important;
  text-decoration: none !important;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.tcf-v2-minimal-logo strong { color: var(--tcf-v2-blue); font-weight: 900; }
.tcf-v2-minimal-logo span { color: var(--tcf-v2-navy); font-weight: 800; }
.tcf-v2-minimal-logo img { max-height: 42px; width: auto; display: block; }

.tcf-v2-minimal-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #46617f;
  font-size: 12.5px;
  font-weight: 700;
}

.tcf-v2-minimal-secure__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tcf-v2-green);
  background: #e9f8f0;
}

.tcf-v2-minimal-secure__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Compact plan banner */
.tcf-v2-banner {
  width: min(1160px, calc(100% - 32px));
  margin: 26px auto 16px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(110deg, #0b58c8 0%, #1680f5 68%, #3b9cff 100%);
  box-shadow: 0 12px 26px rgba(15, 99, 213, .16);
  overflow: hidden;
  position: relative;
}

.tcf-v2-banner::after {
  content: "";
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: absolute;
  right: 140px;
  top: -150px;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}

.tcf-v2-banner__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.tcf-v2-banner__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
}

.tcf-v2-banner__icon svg,
.tcf-v2-summary svg,
.tcf-v2-step svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tcf-v2-banner__title,
.tcf-v2-banner__subtitle {
  display: block;
}

.tcf-v2-banner__title {
  font-size: 27px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tcf-v2-banner__subtitle {
  margin-top: 6px;
  font-size: 14px;
  opacity: .92;
}

.tcf-v2-banner__price {
  position: relative;
  z-index: 1;
  text-align: right;
  flex: 0 0 auto;
}

.tcf-v2-banner__price > strong,
.tcf-v2-banner__price > span {
  display: block;
}

.tcf-v2-banner__price > strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.03em;
}

.tcf-v2-banner__price > span {
  margin-top: 7px;
  font-size: 13px;
  opacity: .9;
}

/* Price style: 5€ large + .99 smaller, like the selected reference */
.tcf-v2-price {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1px;
  white-space: nowrap;
}

.tcf-v2-price__major,
.tcf-v2-price__minor {
  display: inline-block !important;
  margin: 0 !important;
  opacity: 1 !important;
  line-height: 1 !important;
}

.tcf-v2-price--hero .tcf-v2-price__major {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.tcf-v2-price--hero .tcf-v2-price__minor {
  margin-top: 8px !important;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.tcf-v2-price--summary .tcf-v2-price__major {
  font-size: 18px;
  font-weight: 850;
}

.tcf-v2-price--summary .tcf-v2-price__minor {
  margin-top: 2px !important;
  font-size: 10px;
  font-weight: 850;
}

.tcf-v2-price--total .tcf-v2-price__major {
  font-size: 20px;
  font-weight: 900;
}

.tcf-v2-price--total .tcf-v2-price__minor {
  margin-top: 2px !important;
  font-size: 11px;
  font-weight: 900;
}

/* Hard reset against the old child-theme MemberPress layout */
body .mp_wrapper.tcf-checkout-v2,
body .mp_wrapper.tcf-checkout-v2 * {
  box-sizing: border-box;
}

body .mp_wrapper.tcf-checkout-v2 {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
  margin: 0 auto 34px !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  -webkit-column-count: initial !important;
  -moz-column-count: initial !important;
  column-count: initial !important;
  column-gap: normal !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form > .tcf-v2-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .8fr) !important;
  gap: 18px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  break-inside: auto !important;
}

/* Original MemberPress pricing/invoice stay in DOM as data sources */
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-source-price,
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-source-invoice {
  display: none !important;
}

.tcf-v2-main,
.tcf-v2-summary {
  background: #fff;
  border: 1px solid var(--tcf-v2-line);
  border-radius: var(--tcf-v2-radius);
  box-shadow: var(--tcf-v2-shadow);
}

.tcf-v2-main {
  min-width: 0;
  padding: 26px 28px 24px;
}

.tcf-v2-summary {
  align-self: start;
  position: sticky;
  top: 20px;
  padding: 24px;
}

/* section headings */
.tcf-v2-section-head {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tcf-v2-step {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tcf-v2-blue);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(9,103,242,.17);
}

.tcf-v2-section-copy h2,
.tcf-v2-summary__title h2 {
  margin: 0 !important;
  color: var(--tcf-v2-navy) !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  text-transform: none !important;
}

.tcf-v2-section-copy p {
  margin: 3px 0 0 !important;
  color: var(--tcf-v2-muted) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.tcf-v2-login {
  color: var(--tcf-v2-blue) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.tcf-v2-login:hover { text-decoration: underline !important; }

/* Account grid */
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  width: 100% !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid > .mp-form-row,
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid > .have-coupon-link {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  break-inside: auto !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid > .mepr_coupon,
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid > .have-coupon-link,
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid > .mp-form-row:not(.mepr_username):not(.mepr_email):not(.mepr_password):not(.mepr_password_confirm):not(.mepr_first_name):not(.mepr_last_name) {
  grid-column: 1 / -1;
}

body .mp_wrapper.tcf-checkout-v2 .mp-form-label {
  min-height: 0 !important;
  display: block !important;
  margin: 0 0 6px !important;
}

body .mp_wrapper.tcf-checkout-v2 .mp-form-label label,
body .mp_wrapper.tcf-checkout-v2 .mp-form-row > label {
  color: var(--tcf-v2-text) !important;
  font-size: 12.5px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-form-input,
body .mp_wrapper.tcf-checkout-v2 input:not([type]),
body .mp_wrapper.tcf-checkout-v2 input[type="text"],
body .mp_wrapper.tcf-checkout-v2 input[type="email"],
body .mp_wrapper.tcf-checkout-v2 input[type="password"],
body .mp_wrapper.tcf-checkout-v2 input[type="tel"],
body .mp_wrapper.tcf-checkout-v2 select,
body .mp_wrapper.tcf-checkout-v2 textarea {
  width: 100% !important;
  min-height: 45px !important;
  height: 45px !important;
  padding: 0 13px !important;
  color: var(--tcf-v2-text) !important;
  background: #fff !important;
  border: 1.5px solid #cddbed !important;
  border-radius: 9px !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}

body .mp_wrapper.tcf-checkout-v2 textarea {
  height: auto !important;
  min-height: 88px !important;
  padding-top: 10px !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-form-input:focus,
body .mp_wrapper.tcf-checkout-v2 input[type="text"]:focus,
body .mp_wrapper.tcf-checkout-v2 input[type="email"]:focus,
body .mp_wrapper.tcf-checkout-v2 input[type="password"]:focus,
body .mp_wrapper.tcf-checkout-v2 input[type="tel"]:focus,
body .mp_wrapper.tcf-checkout-v2 select:focus,
body .mp_wrapper.tcf-checkout-v2 textarea:focus {
  border-color: var(--tcf-v2-blue) !important;
  box-shadow: 0 0 0 3px rgba(9,103,242,.09) !important;
}

body .mp_wrapper.tcf-checkout-v2 .mp-hide-pw { position: relative !important; }
body .mp_wrapper.tcf-checkout-v2 .mp-hide-pw input { padding-right: 42px !important; }
body .mp_wrapper.tcf-checkout-v2 .mp-hide-pw .button.mp-hide-pw {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6f819b !important;
  box-shadow: none !important;
}


/* Reliable password eye icon: no dependency on Dashicons/webfonts */
body .mp_wrapper.tcf-checkout-v2 .mp-hide-pw button.tcf-v2-password-toggle,
body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #607896 !important;
  box-shadow: none !important;
  line-height: 1 !important;
  font-size: 0 !important;
  cursor: pointer !important;
  z-index: 4 !important;
}

body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle:hover,
body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle:focus-visible {
  color: var(--tcf-v2-blue) !important;
  background: #eef6ff !important;
  outline: none !important;
}

body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle .dashicons,
body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle i,
body .mp_wrapper.tcf-checkout-v2 button.tcf-v2-password-toggle span:not(.screen-reader-text) {
  display: none !important;
}

/* MemberPress controls visibility, including AJAX and server-side errors. */
body .mp_wrapper.tcf-checkout-v2 .mepr-validation-error,
body .mp_wrapper.tcf-checkout-v2 .cc-error {
  color: #d92d20 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 5px 0 0 !important;
}

/* MemberPress and gateway messages injected after submit. */
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-runtime-error {
  margin: 7px 0 0 !important;
  color: #b42318 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-global-error {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 0 !important;
  padding: 10px 12px !important;
  color: #a62318 !important;
  background: #fff1f1 !important;
  border: 1px solid #f3c2bf !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-global-error::before {
  content: '!' !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: #e5483f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Coupon: compact local accordion under the account fields */
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon > a.have-coupon-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  color: var(--tcf-v2-blue) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon > a.have-coupon-link::before {
  content: "+" !important;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tcf-v2-blue);
  background: var(--tcf-v2-blue-soft);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon.tcf-v2-coupon-open > a.have-coupon-link::before {
  content: "−" !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields {
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields:empty {
  display: none !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields > .mp-form-row,
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields > .mepr_coupon,
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields > .mepr_coupon_code {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #dbe7f4 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields .mp-form-label {
  margin-bottom: 5px !important;
}

body .mp_wrapper.tcf-checkout-v2 .tcf-v2-coupon-fields input[type="text"] {
  height: 42px !important;
  min-height: 42px !important;
  background: #fff !important;
}

/* Payment */
.tcf-v2-payment {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e7eef7;
}

body .mp_wrapper.tcf-checkout-v2 fieldset.mepr-payment-methods-wrapper {
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
  break-before: auto !important;
  column-break-before: auto !important;
}

body .mp_wrapper.tcf-checkout-v2 fieldset.mepr-payment-methods-wrapper legend {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-icons {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-icons img {
  width: auto !important;
  max-width: 54px !important;
  height: 22px !important;
  object-fit: contain !important;
  border: 1px solid #e2e9f2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 9px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios label {
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  color: var(--tcf-v2-navy) !important;
  background: #fff !important;
  border: 1.5px solid #cfdcec !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: .15s ease !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios label:hover {
  border-color: var(--tcf-v2-blue) !important;
  background: #f7fbff !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios input[type="radio"] {
  width: 17px !important;
  height: 17px !important;
  accent-color: var(--tcf-v2-blue) !important;
  flex: 0 0 auto;
}

body .mp_wrapper.tcf-checkout-v2 .mepr_payment_method {
  width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #f8fbff !important;
  border: 1px solid #dce8f5 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

/* A mounted Stripe/PayPal widget stays in its original DOM position. */
body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form > fieldset.tcf-v2-payment--in-place {
  width: min(100%, 760px) !important;
  margin: 18px 0 0 !important;
  padding: 20px !important;
  border: 1px solid #dce8f5 !important;
  border-radius: 11px !important;
  background: #f8fbff !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form > fieldset.tcf-v2-payment--in-place .tcf-v2-section-head {
  margin-bottom: 14px !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form > .mp-form-submit {
  width: min(100%, 760px) !important;
  margin: 18px 0 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .mp-stripe-element {
  background: #fff !important;
  border: 1px solid #d6e2ef !important;
  border-radius: 8px !important;
  padding: 12px !important;
  box-shadow: none !important;
}

/* Submit */
body .mp_wrapper.tcf-checkout-v2 .mp-form-submit {
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 .mp-form-submit::after {
  content: "Vérifiez le récapitulatif avant de confirmer votre commande." !important;
  display: block !important;
  margin-top: 8px !important;
  color: #8999af !important;
  text-align: center !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

body .mp_wrapper.tcf-checkout-v2 input.mepr-submit,
body .mp_wrapper.tcf-checkout-v2 button.mepr-submit,
body .mp_wrapper.tcf-checkout-v2 .mepr-submit {
  width: 100% !important;
  min-height: 51px !important;
  height: 51px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(100deg, #0967f2, #0c74f5) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(9,103,242,.2) !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
}

body .mp_wrapper.tcf-checkout-v2 .mepr-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(9,103,242,.27) !important;
}

/* Summary */
.tcf-v2-summary__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tcf-v2-summary__title-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tcf-v2-blue);
  background: var(--tcf-v2-blue-soft);
}

.tcf-v2-plan {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #e5eef8;
}

.tcf-v2-plan__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tcf-v2-blue);
  background: #eaf4ff;
}

.tcf-v2-plan__copy strong,
.tcf-v2-plan__copy span {
  display: block;
}

.tcf-v2-plan__copy strong {
  color: var(--tcf-v2-navy);
  font-size: 14px;
  font-weight: 800;
}

.tcf-v2-plan__copy span {
  margin-top: 2px;
  color: var(--tcf-v2-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.tcf-v2-plan__price {
  color: var(--tcf-v2-blue);
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.tcf-v2-features {
  list-style: none !important;
  margin: 16px 0 !important;
  padding: 0 !important;
}

.tcf-v2-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px !important;
  padding: 0 !important;
  color: #405674;
  font-size: 12.5px;
  line-height: 1.35;
}

.tcf-v2-check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tcf-v2-blue);
}

.tcf-v2-check svg { width: 13px; height: 13px; stroke-width: 2.5; }

.tcf-v2-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #dfe8f2;
  border-bottom: 1px solid #dfe8f2;
  color: var(--tcf-v2-navy);
  font-size: 18px;
}

.tcf-v2-total__value { color: var(--tcf-v2-blue); font-size: 21px; }

.tcf-v2-secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 11px;
  background: #effaf4;
  border: 1px solid #cfedda;
}

.tcf-v2-secure__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--tcf-v2-green);
  background: #ddf6e8;
}

.tcf-v2-secure strong,
.tcf-v2-secure span { display: block; }
.tcf-v2-secure strong { color: #087d4c; font-size: 12.5px; font-weight: 800; }
.tcf-v2-secure span { margin-top: 2px; color: #47715d; font-size: 10.8px; }

.tcf-v2-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 17px;
}

.tcf-v2-trust > div {
  min-width: 0;
  padding: 0 7px;
  text-align: center;
  border-right: 1px solid #e5ecf4;
}
.tcf-v2-trust > div:last-child { border-right: 0; }

.tcf-v2-trust__icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tcf-v2-blue);
}
.tcf-v2-trust__icon svg { width: 22px; height: 22px; }
.tcf-v2-trust strong,
.tcf-v2-trust span { display: block; }
.tcf-v2-trust strong { color: var(--tcf-v2-text); font-size: 10.5px; line-height: 1.25; font-weight: 800; }
.tcf-v2-trust span { margin-top: 2px; color: var(--tcf-v2-muted); font-size: 9.5px; line-height: 1.25; }

/* Hidden/security inputs must never occupy layout space */
body .mp_wrapper.tcf-checkout-v2 input[type="hidden"],
body .mp_wrapper.tcf-checkout-v2 input.mepr-hidden,
body .mp_wrapper.tcf-checkout-v2 .mepr-hidden-input {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Tablet */
@media (max-width: 920px) {
  .tcf-v2-banner,
  body .mp_wrapper.tcf-checkout-v2 {
    width: min(760px, calc(100% - 24px)) !important;
  }

  body .mp_wrapper.tcf-checkout-v2 .mepr-signup-form > .tcf-v2-layout {
    grid-template-columns: 1fr !important;
  }

  .tcf-v2-summary {
    position: static;
    order: -1;
  }

  .tcf-v2-trust { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .tcf-v2-minimal-header {
    width: calc(100% - 20px);
    min-height: 56px;
    padding: 8px 2px;
    margin-bottom: 2px;
  }
  .tcf-v2-minimal-logo { font-size: 18px; }
  .tcf-v2-minimal-logo img { max-height: 34px; }
  .tcf-v2-minimal-secure { font-size: 11px; }
  .tcf-v2-minimal-secure__icon { width: 27px; height: 27px; }

  .tcf-v2-banner {
    width: calc(100% - 20px);
    min-height: 0;
    margin: 14px auto 12px;
    padding: 18px;
    border-radius: 14px;
    align-items: flex-start;
  }

  .tcf-v2-banner__icon { width: 44px; height: 44px; }
  .tcf-v2-banner__title { font-size: 21px; }
  .tcf-v2-banner__subtitle { font-size: 12px; }
  .tcf-v2-banner__price > span { font-size: 10px; }
  .tcf-v2-price--hero .tcf-v2-price__major { font-size: 31px; }
  .tcf-v2-price--hero .tcf-v2-price__minor { margin-top: 6px !important; font-size: 14px; }

  body .mp_wrapper.tcf-checkout-v2 {
    width: calc(100% - 20px) !important;
    margin-bottom: 22px !important;
  }

  .tcf-v2-main { order: 0; }
  .tcf-v2-summary { order: 2; }

  .tcf-v2-main,
  .tcf-v2-summary {
    border-radius: 13px;
    box-shadow: 0 7px 22px rgba(19,61,112,.07);
  }

  .tcf-v2-main { padding: 20px 16px; }
  .tcf-v2-summary { padding: 18px 16px; }

  .tcf-v2-section-head {
    grid-template-columns: 38px minmax(0,1fr);
    gap: 10px;
    margin-bottom: 15px;
  }

  .tcf-v2-step { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
  .tcf-v2-section-copy h2,
  .tcf-v2-summary__title h2 { font-size: 18px !important; }
  .tcf-v2-login { grid-column: 2; margin-top: -6px; white-space: normal; }

  body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body .mp_wrapper.tcf-checkout-v2 .tcf-v2-account-grid > * { grid-column: 1 !important; }

  .tcf-v2-payment { margin-top: 20px; padding-top: 18px; }
  body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios {
    grid-template-columns: 1fr 1fr !important;
  }

  .tcf-v2-plan { grid-template-columns: 36px minmax(0,1fr) auto; padding: 12px; }
  .tcf-v2-plan__icon { width: 36px; height: 36px; }
  .tcf-v2-trust strong { font-size: 9.5px; }
  .tcf-v2-trust span { font-size: 8.7px; }
}

@media (max-width: 430px) {
  .tcf-v2-banner { gap: 10px; padding: 16px 14px; }
  .tcf-v2-banner__icon { display: none; }
  .tcf-v2-banner__title { font-size: 19px; }
  .tcf-v2-banner__price > span { max-width: 90px; }
  .tcf-v2-price--hero .tcf-v2-price__major { font-size: 28px; }
  .tcf-v2-price--hero .tcf-v2-price__minor { margin-top: 5px !important; font-size: 12px; }
  body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios { grid-template-columns: 1fr !important; }
}

/* 3.1.1: restore the original compact account grid without reparenting fields. */
body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  align-content: start;
}
body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] > * {
  grid-column: 1 / -1;
  min-width: 0;
}
body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] > .mp-form-row {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] > :is(.mepr_username,.mepr_email,.mepr_password,.mepr_password_confirm,.mepr_first_name,.mepr_last_name) {
  grid-column: auto;
}
body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] > .mepr_coupon {
  padding: 12px !important;
}
body .mp_wrapper.tcf-checkout-v2 .mepr_spacer { display: none !important; }
body .mp_wrapper.tcf-checkout-v2 .tcf-v311-mirrored { display: none !important; }
body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] > .tcf-v2-section-head { margin-bottom: 3px; }
body .mp_wrapper.tcf-checkout-v2 .tcf-v311-terms { margin: 10px 0; color: #677a98; font-size: 12px; line-height: 1.5; }
body .mp_wrapper.tcf-checkout-v2 .tcf-v311-invoice-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; color: #405674; }
body .mp_wrapper.tcf-checkout-v2 .tcf-v311-invoice-row strong { white-space: nowrap; }
body .mp_wrapper.tcf-checkout-v2 .tcf-v2-total { margin-top: 10px; }
body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-wrapper { padding-top: 18px !important; border-top: 1px solid #e7eef7 !important; }
/* Only a server-confirmed no-payment checkout may restore a hidden native CTA.
   Disabled/processing controls and required order bumps are never overridden. */
body .mp_wrapper.tcf-checkout-v2 form.tcf-v311-free-checkout:not(.mepr-order-bumps-required-error) .mp-form-submit .mepr-submit:not(:disabled) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 640px) {
  body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] { grid-template-columns: minmax(0,1fr) !important; }
  body .mp_wrapper.tcf-checkout-v2 form.mepr-signup-form[data-tcf-v2="1"] > :is(.mepr_username,.mepr_email,.mepr_password,.mepr_password_confirm,.mepr_first_name,.mepr_last_name) { grid-column: 1; }
}

/* 3.1.3: mobile checkout fixes. Keep the order summary before the fields and
   preserve two payment choices on one row, including narrow phones. */
@media (max-width: 920px) {
  body .tcf-v31-layout > .tcf-v2-summary {
    grid-column: 1;
    order: -1;
  }
}
@media (max-width: 430px) {
  body .mp_wrapper.tcf-checkout-v2 .mepr-payment-methods-radios {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* -------------------------------------------------------------------------
 * 3.1.6 - MemberPress top/server errors
 * MemberPress renders submit errors in a separate .mp_wrapper above the
 * checkout form, so they must be styled independently from .tcf-checkout-v2.
 * ------------------------------------------------------------------------- */
body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error {
  position: relative !important;
  width: min(1496px, calc(100% - 32px)) !important;
  margin: 18px auto 22px !important;
  padding: 16px 20px 16px 58px !important;
  border: 1px solid #ffd49a !important;
  border-left: 5px solid #f59e0b !important;
  border-radius: 14px !important;
  background: #fffaf0 !important;
  color: #7a4a05 !important;
  box-shadow: 0 10px 28px rgba(19, 61, 112, .08) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error::before {
  content: '!' !important;
  position: absolute !important;
  left: 19px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 27px !important;
  height: 27px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #f59e0b !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error strong {
  color: #8a5300 !important;
  font-weight: 800 !important;
}

body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error a {
  color: #0967f2 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(9, 103, 242, .28) !important;
}

body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error a:hover,
body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error a:focus-visible {
  color: #0649bd !important;
  border-bottom-color: currentColor !important;
}

@media (max-width: 640px) {
  body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error {
    width: calc(100% - 24px) !important;
    margin: 12px auto 16px !important;
    padding: 14px 14px 14px 48px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }

  body.tcf-checkout-context .mp_wrapper > #mepr_jump.mepr_error::before {
    left: 13px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
  }
}
