/*
 * My Contact Profile — Paid Memberships Pro frontend integration.
 *
 * PMPro remains fully authoritative for markup, forms, membership, checkout,
 * billing and account logic. This file only maps PMPro's frontend design
 * system to the My Contact Profile light/dark palette and adds presentation
 * refinements that work across the nine core PMPro frontend pages.
 */

:root {
	--pmpro--base--border-radius: 14px;
	--pmpro--btn--border-radius: 12px;
	--pmpro--btn--top-bottom-padding: 11px;
	--pmpro--btn--left-right-padding: 18px;
	--pmpro--color--accent: var(--mcp-brand);
	--pmpro--color--accent--variation: var(--mcp-brand-strong);
	--pmpro--color--base: #ffffff;
	--pmpro--color--base-2: #edf6f2;
	--pmpro--color--contrast: #10211b;
	--pmpro--color--border: rgba(16, 75, 57, 0.28);
	--pmpro--color--border--variation: rgba(16, 75, 57, 0.13);
	--pmpro--box-shadow: 0 18px 54px rgba(17, 67, 51, 0.09);
	--mcp-pmpro-table-head: rgba(224, 241, 233, 0.78);
	--mcp-pmpro-row-hover: rgba(17, 125, 96, 0.055);
	--mcp-pmpro-muted-bg: rgba(242, 248, 245, 0.96);
	--pmpro--color--info-background: #e6f4f0;
	--pmpro--color--info-border: #bcded3;
	--pmpro--color--info-text: #285f50;
	--pmpro--color--info-link: #075f47;
	--pmpro--color--success-background: #e2f5e9;
	--pmpro--color--success-border: #b8dfc6;
	--pmpro--color--success-text: #245f3c;
	--pmpro--color--success-link: #134f30;
	--pmpro--color--error-background: #fbe8e9;
	--pmpro--color--error-border: #efc3c6;
	--pmpro--color--error-text: #8a3037;
	--pmpro--color--error-link: #6f1e25;
	--pmpro--color--alert-background: #fff6dd;
	--pmpro--color--alert-border: #ead7a3;
	--pmpro--color--alert-text: #735b1e;
	--pmpro--color--alert-link: #59430f;
	--pmpro--color--alert2-background: #fff0df;
	--pmpro--color--alert2-border: #edceb0;
	--pmpro--color--alert2-text: #88551f;
	--pmpro--color--alert2-link: #6d3f12;
}

html[data-mcp-theme="dark"] {
	--pmpro--color--accent: var(--mcp-brand);
	--pmpro--color--accent--variation: var(--mcp-brand-strong);
	--pmpro--color--base: #0d211a;
	--pmpro--color--base-2: #122c23;
	--pmpro--color--contrast: #effaf6;
	--pmpro--color--border: rgba(139, 241, 209, 0.31);
	--pmpro--color--border--variation: rgba(139, 241, 209, 0.14);
	--pmpro--box-shadow: 0 22px 68px rgba(0, 0, 0, 0.28);
	--mcp-pmpro-table-head: #0f3025;
	--mcp-pmpro-row-hover: rgba(105, 230, 189, 0.07);
	--mcp-pmpro-muted-bg: rgba(9, 31, 23, 0.92);
	--pmpro--color--info-background: #103229;
	--pmpro--color--info-border: #245d4b;
	--pmpro--color--info-text: #a5e6d1;
	--pmpro--color--info-link: #c5f6e5;
	--pmpro--color--success-background: #103322;
	--pmpro--color--success-border: #286244;
	--pmpro--color--success-text: #9fe1b6;
	--pmpro--color--success-link: #c6f3d4;
	--pmpro--color--error-background: #35191c;
	--pmpro--color--error-border: #713239;
	--pmpro--color--error-text: #f3a2a8;
	--pmpro--color--error-link: #ffd0d3;
	--pmpro--color--alert-background: #342c14;
	--pmpro--color--alert-border: #6e5c27;
	--pmpro--color--alert-text: #f0d184;
	--pmpro--color--alert-link: #ffe6a8;
	--pmpro--color--alert2-background: #382616;
	--pmpro--color--alert2-border: #754c29;
	--pmpro--color--alert2-text: #efb776;
	--pmpro--color--alert2-link: #ffd3a0;
}

/* -------------------------------------------------------------------------
 * Shared PMPro page shell
 * ---------------------------------------------------------------------- */

.pmpro {
	color: var(--mcp-ink);
	font-family: inherit;
}

.pmpro a:not(.pmpro_btn) {
	color: var(--mcp-brand);
	text-decoration-color: rgba(var(--mcp-brand-rgb), 0.42);
}

.pmpro a:not(.pmpro_btn):hover,
.pmpro a:not(.pmpro_btn):focus-visible {
	color: var(--mcp-brand-strong);
	text-decoration-color: currentColor;
}

.pmpro .pmpro_section {
	margin-block: 32px;
}

.pmpro .pmpro_section:first-child {
	margin-top: 0;
}

.pmpro .pmpro_section_title,
.pmpro .pmpro_card_title,
.pmpro .pmpro_form_heading,
.pmpro .pmpro_form_legend {
	color: var(--mcp-ink);
	letter-spacing: -0.025em;
}

.pmpro .pmpro_section_title {
	margin-bottom: 13px;
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	font-weight: 820;
}

.pmpro .pmpro_card {
	background: var(--mcp-container-background);
	border-color: var(--mcp-line-strong);
	border-radius: 18px;
	box-shadow: var(--pmpro--box-shadow);
	color: var(--mcp-ink);
	backdrop-filter: blur(14px) saturate(1.06);
	-webkit-backdrop-filter: blur(14px) saturate(1.06);
}

.pmpro .pmpro_card_title {
	color: var(--mcp-ink);
}

.pmpro .pmpro_card_content {
	color: var(--mcp-ink);
}

.pmpro .pmpro_card_actions {
	background: var(--mcp-container-bg-soft);
	border-color: var(--mcp-line);
	color: var(--mcp-muted);
}

.pmpro .pmpro_card_action_separator {
	color: var(--mcp-muted);
	opacity: 0.42;
}

/* Preserve PMPro's intentionally flat nested cards. */
.pmpro .pmpro_card .pmpro_card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.pmpro .pmpro_heading-with-avatar img.avatar {
	border: 2px solid rgba(var(--mcp-brand-rgb), 0.26);
	box-shadow: 0 6px 20px rgba(9, 70, 50, 0.12);
}

.pmpro .pmpro_list,
.pmpro .pmpro_list_item,
.pmpro .pmpro_list_item_label,
.pmpro .pmpro_list_item_value,
.pmpro p,
.pmpro address {
	color: inherit;
}

.pmpro .pmpro_list_item_label,
.pmpro .pmpro_form_hint,
.pmpro .pmpro_form_field-description,
.pmpro .pmpro_form_field-description-small,
.pmpro small {
	color: var(--mcp-muted);
}

.pmpro hr {
	border: 0;
	border-top: 1px solid var(--mcp-line);
}

/* -------------------------------------------------------------------------
 * Buttons and action navigation
 * ---------------------------------------------------------------------- */

.pmpro .pmpro_btn,
.pmpro input[type="submit"].pmpro_btn,
.pmpro button.pmpro_btn,
.pmpro .button:not(.pmpro_btn-plain) {
	min-height: 46px;
	padding: 10px 17px;
	border: 1px solid var(--mcp-button-border);
	border-radius: 12px;
	background: var(--mcp-button-bg);
	box-shadow: var(--mcp-button-shadow);
	color: var(--mcp-button-text);
	font-weight: 790;
	text-shadow: none;
	transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.pmpro .pmpro_btn:not(.pmpro_btn-delete):not(.pmpro_btn-plain):hover,
.pmpro .pmpro_btn:not(.pmpro_btn-delete):not(.pmpro_btn-plain):focus-visible,
.pmpro input[type="submit"].pmpro_btn:hover,
.pmpro input[type="submit"].pmpro_btn:focus-visible,
.pmpro button.pmpro_btn:hover,
.pmpro button.pmpro_btn:focus-visible,
.pmpro .button:not(.pmpro_btn-plain):hover,
.pmpro .button:not(.pmpro_btn-plain):focus-visible {
	transform: translateY(-1px);
	background: var(--mcp-button-bg-hover);
	border-color: var(--mcp-button-border-hover);
	box-shadow: var(--mcp-button-shadow-hover);
	color: var(--mcp-button-text);
	outline: none;
}

.pmpro .pmpro_btn-outline,
.pmpro .pmpro_btn-cancel {
	background: var(--mcp-button-secondary-bg);
	border-color: var(--mcp-button-secondary-border);
	color: var(--mcp-button-secondary-text);
	box-shadow: var(--mcp-button-secondary-shadow);
}

.pmpro .pmpro_btn-outline:hover,
.pmpro .pmpro_btn-outline:focus-visible,
.pmpro .pmpro_btn-cancel:hover,
.pmpro .pmpro_btn-cancel:focus-visible {
	background: var(--mcp-button-secondary-hover);
	border-color: var(--mcp-button-border-hover);
	color: var(--mcp-button-secondary-text);
}

.pmpro .pmpro_btn-delete {
	background: transparent;
	border-color: var(--pmpro--color--error-border);
	color: var(--pmpro--color--error-text);
	box-shadow: none;
}

.pmpro .pmpro_btn-delete:hover,
.pmpro .pmpro_btn-delete:focus-visible {
	background: var(--pmpro--color--error-background);
	border-color: var(--pmpro--color--error-text);
	color: var(--pmpro--color--error-text);
}

.pmpro .pmpro_btn-plain,
.pmpro .pmpro_btn-plain:hover,
.pmpro .pmpro_btn-plain:focus {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: var(--mcp-brand-strong);
}

.pmpro .pmpro_actions_nav {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--mcp-line);
}

.pmpro .pmpro_actions_nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--mcp-button-border);
	border-radius: 11px;
	background: var(--mcp-button-secondary-bg);
	color: var(--mcp-button-secondary-text);
	font-weight: 740;
	text-decoration: none;
}

.pmpro .pmpro_actions_nav a:hover,
.pmpro .pmpro_actions_nav a:focus-visible {
	background: var(--mcp-button-secondary-hover);
	border-color: var(--mcp-button-border-hover);
	color: var(--mcp-button-secondary-text);
	outline: none;
}

/* -------------------------------------------------------------------------
 * Forms — Billing, Checkout, Login, Profile Edit, Change Password
 * ---------------------------------------------------------------------- */

.pmpro .pmpro_form_fieldset {
	min-width: 0;
}

.pmpro .pmpro_form_label,
.pmpro label {
	color: var(--mcp-ink);
	font-weight: 680;
}

.pmpro :where(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	input[type="search"],
	input[type="date"],
	input[type="month"],
	select,
	textarea
),
.pmpro .pmpro_form_input {
	background: var(--mcp-field-bg);
	border: 1px solid var(--mcp-field-border);
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: var(--mcp-ink);
	min-height: 48px;
	outline: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pmpro textarea,
.pmpro textarea.pmpro_form_input {
	min-height: 120px;
	resize: vertical;
}

.pmpro :where(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	input[type="search"],
	input[type="date"],
	input[type="month"],
	select,
	textarea
):hover,
.pmpro .pmpro_form_input:hover {
	background: var(--mcp-field-bg-hover);
	border-color: var(--mcp-field-border-hover);
}

.pmpro :where(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	input[type="search"],
	input[type="date"],
	input[type="month"],
	select,
	textarea
):focus,
.pmpro .pmpro_form_input:focus {
	background: var(--mcp-field-bg-focus);
	border-color: var(--mcp-field-border-hover);
	box-shadow: 0 0 0 3px var(--mcp-focus);
}

.pmpro input::placeholder,
.pmpro textarea::placeholder {
	color: var(--mcp-muted);
	opacity: 0.72;
}

.pmpro select option {
	background: var(--pmpro--color--base);
	color: var(--pmpro--color--contrast);
}

.pmpro input[type="checkbox"],
.pmpro input[type="radio"],
.pmpro .pmpro_form_input-checkbox,
.pmpro .pmpro_form_input-radio {
	accent-color: var(--mcp-brand);
}

.pmpro input:disabled,
.pmpro select:disabled,
.pmpro textarea:disabled {
	background: var(--mcp-pmpro-muted-bg);
	color: var(--mcp-muted);
	opacity: 0.84;
}

.pmpro .pmpro_form_field-password-toggle button,
.pmpro .pmpro_form_field-password-toggle button:hover,
.pmpro .pmpro_form_field-password-toggle button:focus {
	color: var(--mcp-brand);
}

.pmpro .pmpro_form_field-password-toggle svg,
.pmpro .pmpro_icon svg {
	stroke: currentColor;
}

.pmpro #pass-strength-result {
	border-radius: 10px;
}

.pmpro .select2-container .select2-selection,
.pmpro .select2-container--default .select2-selection--single,
.pmpro .select2-container--default .select2-selection--multiple {
	background: var(--mcp-field-bg);
	border-color: var(--mcp-line-strong);
	border-radius: 12px;
	color: var(--mcp-ink);
	min-height: 48px;
}

/* -------------------------------------------------------------------------
 * Contextual notices
 * ---------------------------------------------------------------------- */

.pmpro .pmpro_message {
	border-radius: 14px;
	box-shadow: none;
	font-weight: 560;
}

.pmpro .pmpro_message a {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Tables — Account memberships/orders, invoices and billing summaries
 * ---------------------------------------------------------------------- */

.pmpro .pmpro_table,
.pmpro table.pmpro_table {
	background: transparent;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--mcp-line);
	border-radius: 14px;
	overflow: hidden;
	color: var(--mcp-ink);
}

.pmpro .pmpro_table thead th {
	background: var(--mcp-pmpro-table-head);
	border-color: var(--mcp-line);
	color: var(--mcp-ink);
	font-weight: 760;
}

.pmpro .pmpro_table tbody th,
.pmpro .pmpro_table tbody td,
.pmpro .pmpro_table tfoot td,
.pmpro .pmpro_table tfoot th {
	background: var(--mcp-container-background);
	border-color: var(--mcp-line);
	color: var(--mcp-ink);
}

.pmpro .pmpro_table tbody tr:hover td,
.pmpro .pmpro_table tbody tr:hover th {
	background: var(--mcp-pmpro-row-hover);
}

.pmpro .pmpro_table tfoot td,
.pmpro .pmpro_table tfoot th {
	font-weight: 720;
}

/* -------------------------------------------------------------------------
 * Membership Levels / Pricing
 * ---------------------------------------------------------------------- */

.pmpro .pmpro_level_group,
.pmpro .pmpro_levels {
	color: var(--mcp-ink);
}

.pmpro #pmpro_levels_table,
.pmpro .pmpro_levels_table {
	border-radius: 16px;
	overflow: hidden;
}

.pmpro .pmpro_level,
.pmpro [class*="pmpro_level-"] {
	color: var(--mcp-ink);
}

/* -------------------------------------------------------------------------
 * Checkout / Register
 * ---------------------------------------------------------------------- */

body.pmpro-checkout .pmpro_form_fieldset > .pmpro_card,
body.pmpro-checkout #pmpro_pricing_fields.pmpro_card {
	background: var(--mcp-container-background);
}

body.pmpro-checkout .pmpro_form_fieldset + .pmpro_form_fieldset {
	margin-top: 22px;
}

body.pmpro-checkout #pmpro_submit_span,
body.pmpro-checkout .pmpro_submit {
	margin-top: 24px;
}

body.pmpro-checkout #pmpro_btn-submit,
body.pmpro-checkout input[name="submit-checkout"] {
	min-height: 50px;
}

/* Keep off-site gateway widgets intact while giving their host area contrast. */
body.pmpro-checkout [class*="pmpro_checkout_gateway-"] .pmpro_card_content {
	color: var(--mcp-ink);
}

/* -------------------------------------------------------------------------
 * Billing Information
 * ---------------------------------------------------------------------- */

body.pmpro-billing .mcp-content-page,
body.pmpro-member-profile-edit .mcp-content-page {
	width: min(calc(100% - 40px), 920px);
}

body.pmpro-billing .pmpro_form,
body.pmpro-member-profile-edit .pmpro_form,
body.pmpro-billing .pmpro_section,
body.pmpro-member-profile-edit .pmpro_section {
	max-width: 100%;
}

body.pmpro-billing .pmpro_form .pmpro_card,
body.pmpro-billing .pmpro_section .pmpro_card,
body.pmpro-member-profile-edit .pmpro_form .pmpro_card,
body.pmpro-member-profile-edit .pmpro_section .pmpro_card {
	background: var(--mcp-container-background);
}

body.pmpro-billing .pmpro_form_fieldset + .pmpro_form_fieldset,
body.pmpro-member-profile-edit .pmpro_form_fieldset + .pmpro_form_fieldset {
	margin-top: 20px;
}

body.pmpro-billing .pmpro_form_submit,
body.pmpro-member-profile-edit .pmpro_form_submit {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

/* -------------------------------------------------------------------------
 * Cancellation
 * ---------------------------------------------------------------------- */

body.pmpro-cancel .mcp-content-page {
	width: min(calc(100% - 40px), 900px);
}

body.pmpro-cancel .pmpro_card,
body.pmpro-cancel .pmpro_section_content {
	color: var(--mcp-ink);
}

body.pmpro-cancel .pmpro_card {
	max-width: 820px;
	background: var(--mcp-container-background);
}

body.pmpro-cancel .pmpro_card_content {
	font-size: 0.95rem;
	line-height: 1.7;
}

body.pmpro-cancel .pmpro_actions_nav {
	max-width: 820px;
	justify-content: flex-start;
}

body.pmpro-cancel .pmpro_btn-delete,
body.pmpro-cancel a.pmpro_btn-delete {
	box-shadow: none;
}

/* -------------------------------------------------------------------------
 * Confirmation
 * ---------------------------------------------------------------------- */

body.pmpro-confirmation .mcp-content-page {
	width: min(calc(100% - 40px), 920px);
}

body.pmpro-confirmation .pmpro_section > .pmpro_card:first-of-type {
	border-color: rgba(var(--mcp-brand-rgb), 0.36);
	background:
		radial-gradient(circle at 96% 0%, rgba(var(--mcp-brand-rgb), 0.07), transparent 30%),
		var(--mcp-container-background);
}

body.pmpro-confirmation .pmpro_card_content {
	line-height: 1.7;
}

/* -------------------------------------------------------------------------
 * Orders / Invoice
 * ---------------------------------------------------------------------- */

body.pmpro-invoice .mcp-content-page,
body.pmpro-orders .mcp-content-page {
	width: min(calc(100% - 40px), 1040px);
}

body.pmpro-invoice .pmpro_card,
body.pmpro-orders .pmpro_card {
	background: var(--mcp-container-background);
}

.pmpro .pmpro_price_part-total {
	border-color: var(--mcp-line);
}

.pmpro .pmpro_order-info,
.pmpro .pmpro_invoice,
.pmpro .pmpro_invoice_details {
	color: var(--mcp-ink);
}

body.pmpro-invoice .pmpro_table,
body.pmpro-orders .pmpro_table {
	margin-top: 18px;
}

/* -------------------------------------------------------------------------
 * Member Profile Edit / Change Password
 * ---------------------------------------------------------------------- */

body.pmpro-member-profile-edit .pmpro_form,
body.pmpro-member-profile-edit .pmpro_card,
.pmpro #pmpro_member_profile_edit,
.pmpro #pmpro_change_password {
	color: var(--mcp-ink);
}

body.pmpro-member-profile-edit .wp-pwd {
	color: var(--mcp-ink);
}

body.pmpro-member-profile-edit .pmpro_form_fieldset > .pmpro_card_title,
body.pmpro-billing .pmpro_form_fieldset > .pmpro_card_title {
	font-size: 0.98rem;
}

/* -------------------------------------------------------------------------
 * Pagination and misc PMPro UI
 * ---------------------------------------------------------------------- */

.pmpro .pmpro_pagination a,
.pmpro .pmpro_pagination span {
	background: var(--mcp-field-bg);
	border-color: var(--mcp-line-strong);
	color: var(--mcp-ink);
}

.pmpro .pmpro_pagination a:hover,
.pmpro .pmpro_pagination a:focus-visible,
.pmpro .pmpro_pagination .pmpro_pagination-current {
	background: var(--mcp-button-bg-hover);
	border-color: var(--mcp-button-border);
	color: var(--mcp-button-text);
}

.pmpro .pmpro_tag {
	border-color: var(--mcp-line-strong);
}

/* -------------------------------------------------------------------------
 * Responsive cleanup
 * ---------------------------------------------------------------------- */

@media (max-width: 782px) {
	.pmpro .pmpro_card_title,
	.pmpro .pmpro_card_content,
	.pmpro .pmpro_card_actions {
		padding-left: 18px;
		padding-right: 18px;
	}

	.pmpro .pmpro_form_fields-inline {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.pmpro .pmpro_form_fields-inline > * {
		max-width: 100%;
	}

	.pmpro .pmpro_table {
		font-size: 0.92rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmpro .pmpro_btn,
	.pmpro .pmpro_form_input,
	.pmpro input,
	.pmpro select,
	.pmpro textarea {
		transition: none;
	}
}


/* ==========================================================================
 * 0.9.6 — Product-grade PMPro frontend system
 *
 * Design principles: strong hierarchy, quiet surfaces, one clear primary CTA,
 * explicit price context, generous field spacing, and visually separated form
 * steps. PMPro markup and processing remain native.
 * ========================================================================== */

/* Shared PMPro management page shell ------------------------------------- */
body:is(.pmpro-account,.pmpro-billing,.pmpro-cancel,.pmpro-confirmation,.pmpro-invoice,.pmpro-orders,.pmpro-member-profile-edit) .mcp-content-page {
	width: min(calc(100% - 40px), 1120px);
	padding-top: clamp(48px, 6vw, 76px);
	padding-bottom: clamp(76px, 8vw, 116px);
}

.mcp-pmpro-page-hero {
	position: relative;
	max-width: 820px;
	margin: 0 0 40px;
	padding: 0;
}

.mcp-pmpro-page-eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	border: 1px solid rgba(var(--mcp-brand-rgb), 0.25);
	border-radius: 999px;
	background: rgba(var(--mcp-brand-rgb), 0.055);
	color: var(--mcp-brand-strong);
	font-size: 0.68rem;
	font-weight: 880;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mcp-pmpro-page-hero .mcp-entry-title {
	max-width: 780px;
	margin: 15px 0 12px;
	font-size: clamp(2.5rem, 5vw, 4.6rem);
	line-height: 0.99;
	letter-spacing: -0.058em;
	font-weight: 820;
	text-wrap: balance;
}

.mcp-pmpro-page-lead {
	max-width: 670px;
	margin: 0;
	color: var(--mcp-muted);
	font-size: 1rem;
	line-height: 1.72;
}

.mcp-pmpro-page-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 20px;
	color: var(--mcp-muted);
	font-size: 0.82rem;
	font-weight: 740;
	text-decoration: none;
}

.mcp-pmpro-page-back:hover,
.mcp-pmpro-page-back:focus-visible {
	color: var(--mcp-ink);
}

.pmpro .pmpro_card {
	border-radius: 21px;
	border-color: var(--mcp-line-strong);
	box-shadow: 0 18px 54px rgba(10, 63, 47, 0.07);
}

html[data-mcp-theme="dark"] .pmpro .pmpro_card {
	box-shadow: 0 20px 64px rgba(0, 0, 0, 0.22);
}

.pmpro .pmpro_card > .pmpro_card_title {
	padding: 22px 24px 18px;
	background: transparent;
	border-bottom-color: var(--mcp-line);
	font-size: 1.02rem;
}

.pmpro .pmpro_card > .pmpro_card_content {
	padding: 24px;
}

.pmpro .pmpro_card > .pmpro_card_actions {
	padding: 15px 24px;
	background: var(--mcp-container-bg-soft);
	border-top-color: var(--mcp-line);
}

.pmpro .pmpro_form_fields {
	display: grid;
	gap: 19px;
}

.pmpro .pmpro_cols-2 {
	gap: 18px;
}

.pmpro .pmpro_form_field {
	min-width: 0;
}

.pmpro .pmpro_form_label,
.pmpro label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 7px;
	font-size: 0.85rem;
	font-weight: 750;
	letter-spacing: -0.01em;
}

.pmpro :where(
	input[type="text"],input[type="email"],input[type="url"],input[type="tel"],input[type="number"],input[type="password"],input[type="search"],input[type="date"],input[type="month"],select,textarea
),
.pmpro .pmpro_form_input {
	min-height: 52px;
	padding: 12px 14px;
	border-radius: 13px;
	font-size: 0.96rem;
}

.pmpro .pmpro_form_field-description,
.pmpro .pmpro_form_hint,
.pmpro .pmpro_form_field-description-small {
	margin-top: 7px;
	font-size: 0.79rem;
	line-height: 1.5;
}

/* Treat PMPro fieldsets like deliberate settings panels, not raw forms. */
body:is(.pmpro-billing,.pmpro-member-profile-edit) .pmpro_form_fieldset,
.mcp-auth-register .pmpro_form_fieldset {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

body:is(.pmpro-billing,.pmpro-member-profile-edit) .pmpro_form_fieldset > .pmpro_card {
	background: var(--mcp-container-background);
}

/* Membership Account — responsive dashboard ----------------------------- */
body.pmpro-account .mcp-content-page {
	width: min(calc(100% - 40px), var(--mcp-shell));
	max-width: var(--mcp-shell);
}

body.pmpro-account .mcp-entry-content > .pmpro {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
}

body.pmpro-account .pmpro_section {
	margin: 0;
	min-width: 0;
}

body.pmpro-account #pmpro_account-profile {
	grid-column: span 7;
}

body.pmpro-account #pmpro_account-membership {
	grid-column: span 5;
}

body.pmpro-account #pmpro_account-orders,
body.pmpro-account #pmpro_account-links {
	grid-column: 1 / -1;
}

body.pmpro-account .pmpro_section_title {
	margin: 0 0 11px;
	color: var(--mcp-muted);
	font-size: 0.72rem;
	font-weight: 880;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

body.pmpro-account .pmpro_card {
	height: 100%;
	background: var(--mcp-container-background);
}

body.pmpro-account #pmpro_account-profile .pmpro_card_title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 76px;
	font-size: 1.08rem;
}

body.pmpro-account #pmpro_account-profile .pmpro_heading-with-avatar img.avatar {
	width: 58px;
	height: 58px;
	border: 1px solid var(--mcp-button-border);
	border-radius: 50%;
	background: var(--mcp-field-bg);
	box-shadow: none;
}

body.pmpro-account #pmpro_account-profile .pmpro_list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
}

body.pmpro-account #pmpro_account-profile .pmpro_list_item {
	margin: 0;
	padding: 13px 14px;
	border: 1px solid var(--mcp-line);
	border-radius: 12px;
	background: var(--mcp-field-bg);
	line-height: 1.45;
}

body.pmpro-account #pmpro_account-profile .pmpro_list_item {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: normal;
}

body.pmpro-account #pmpro_account-profile .pmpro_list_item strong {
	display: block;
	margin-bottom: 2px;
	color: var(--mcp-muted);
	font-size: 0.68rem;
	font-weight: 820;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

body.pmpro-account .pmpro_card_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
}

body.pmpro-account .pmpro_card_action_separator {
	display: none;
}

body.pmpro-account .pmpro_card_action a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 11px;
	border: 1px solid var(--mcp-button-border);
	border-radius: 10px;
	background: var(--mcp-button-bg);
	color: var(--mcp-button-text);
	font-size: 0.8rem;
	font-weight: 750;
	text-decoration: none;
	transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

body.pmpro-account .pmpro_card_action a:hover,
body.pmpro-account .pmpro_card_action a:focus-visible {
	transform: translateY(-1px);
	background: var(--mcp-button-bg-hover);
	border-color: var(--mcp-button-border-hover);
	color: var(--mcp-button-text);
	outline: none;
}

body.pmpro-account #pmpro_account-membership-none .pmpro_card_content {
	display: flex;
	align-items: center;
	min-height: 154px;
	padding: 25px;
}

body.pmpro-account #pmpro_account-membership-none .pmpro_card_content p {
	margin: 0;
	color: var(--mcp-muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

body.pmpro-account #pmpro_account-membership-none .pmpro_card_content a {
	display: inline-flex;
	margin-top: 14px;
	padding: 8px 11px;
	border: 1px solid var(--mcp-button-border);
	border-radius: 10px;
	background: var(--mcp-button-bg);
	color: var(--mcp-button-text);
	font-weight: 750;
	text-decoration: none;
}

body.pmpro-account #pmpro_account-membership-none .pmpro_card_content a:hover,
body.pmpro-account #pmpro_account-membership-none .pmpro_card_content a:focus-visible {
	background: var(--mcp-button-bg-hover);
	border-color: var(--mcp-button-border-hover);
}

body.pmpro-account #pmpro_account-orders .pmpro_table {
	margin: 0;
}

body.pmpro-account #pmpro_account-links .pmpro_card_content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

/* Account dashboard collapses cleanly before tablet widths. */
@media (max-width: 860px) {
	body.pmpro-account .mcp-entry-content > .pmpro {
		grid-template-columns: 1fr;
	}

	body.pmpro-account #pmpro_account-profile,
	body.pmpro-account #pmpro_account-membership,
	body.pmpro-account #pmpro_account-orders,
	body.pmpro-account #pmpro_account-links {
		grid-column: 1;
	}
}

@media (max-width: 560px) {
	body.pmpro-account #pmpro_account-profile .pmpro_list {
		grid-template-columns: 1fr;
	}
}

/* Confirmation / invoice / cancellation pages. */
body.pmpro-confirmation .pmpro_section > .pmpro_card:first-of-type,
body.pmpro-invoice .pmpro_section > .pmpro_card:first-of-type {
	border-color: rgba(var(--mcp-brand-rgb), 0.34);
}

body.pmpro-cancel .pmpro_card {
	max-width: 820px;
}

/* Membership Levels — product-first pricing reference -------------------- */
body.mcp-pmpro-levels-page .mcp-content-page {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.mcp-pmpro-levels-page .mcp-entry-header {
	display: none;
}

body.mcp-pmpro-levels-page .mcp-entry,
body.mcp-pmpro-levels-page .mcp-entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
}

.mcp-pricing-page {
	position: relative;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: clamp(68px, 8vw, 108px) 0 104px;
}

.mcp-pricing-page::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 56%;
	top: 0;
	width: min(930px, 88vw);
	height: 570px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(var(--mcp-brand-rgb), 0.13), transparent 70%);
	filter: blur(22px);
	pointer-events: none;
}

.mcp-pricing-hero-split {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
	gap: clamp(48px, 7vw, 92px);
	align-items: center;
	min-height: 560px;
}

.mcp-pricing-eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 12px;
	border: 1px solid rgba(var(--mcp-brand-rgb), 0.24);
	border-radius: 999px;
	background: rgba(var(--mcp-brand-rgb), 0.065);
	color: var(--mcp-brand);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.mcp-pricing-hero-copy h1 {
	max-width: 720px;
	margin: 19px 0 18px;
	font-size: clamp(3rem, 5.8vw, 5.5rem);
	line-height: 0.95;
	letter-spacing: -0.065em;
	font-weight: 840;
	text-wrap: balance;
}

.mcp-pricing-hero-copy > p {
	max-width: 680px;
	margin: 0;
	color: var(--mcp-muted);
	font-size: clamp(1rem, 1.5vw, 1.11rem);
	line-height: 1.72;
}

.mcp-pricing-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-top: 30px;
}

.mcp-pricing-hero-actions > span {
	color: var(--mcp-muted);
	font-size: 0.74rem;
	font-weight: 650;
}

.mcp-pricing-primary-action {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 56px;
	padding: 0 21px;
	border: 1px solid var(--mcp-button-border);
	border-radius: 15px;
	background: var(--mcp-button-bg);
	box-shadow: var(--mcp-button-shadow);
	color: var(--mcp-button-text) !important;
	font-size: 0.96rem;
	font-weight: 850;
	text-decoration: none !important;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.mcp-pricing-primary-action:hover,
.mcp-pricing-primary-action:focus-visible {
	transform: translateY(-1px);
	background: var(--mcp-button-bg-hover);
	border-color: var(--mcp-button-border-hover);
	box-shadow: var(--mcp-button-shadow-hover);
	outline: none;
}

.mcp-pricing-preview-showcase {
	position: relative;
	min-height: 500px;
	padding: 28px;
	border: 1px solid var(--mcp-line-strong);
	border-radius: 30px;
	background:
		radial-gradient(circle at 22% 12%, rgba(var(--mcp-brand-rgb), .15), transparent 38%),
		linear-gradient(145deg, rgba(var(--mcp-brand-rgb), .05), rgba(var(--mcp-brand-rgb), .015)),
		var(--mcp-container-background);
	box-shadow: 0 34px 90px rgba(17, 74, 54, .12);
	overflow: hidden;
}

html[data-mcp-theme="dark"] .mcp-pricing-preview-showcase {
	background:
		radial-gradient(circle at 22% 12%, rgba(var(--mcp-brand-rgb), .17), transparent 38%),
		linear-gradient(145deg, rgba(15, 49, 36, .98), rgba(7, 27, 20, .98));
	box-shadow: 0 38px 100px rgba(0, 0, 0, .30);
}

.mcp-pricing-preview-stack {
	position: relative;
	height: 390px;
}

.mcp-pricing-preview-card {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 220px;
	margin: 0;
	aspect-ratio: 9 / 16;
	border: 5px solid rgba(255,255,255,.88);
	border-radius: 26px;
	background: #092018;
	box-shadow: 0 28px 70px rgba(10, 41, 31, .26);
	overflow: hidden;
}

html[data-mcp-theme="dark"] .mcp-pricing-preview-card {
	border-color: rgba(190, 235, 219, .10);
}

.mcp-pricing-preview-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.mcp-pricing-preview-card--1 {
	z-index: 3;
	transform: translateX(-50%) rotate(-1deg) translateY(10px);
}

.mcp-pricing-preview-card--2 {
	z-index: 2;
	transform: translateX(-94%) rotate(-8deg) translateY(42px) scale(.89);
	opacity: .92;
}

.mcp-pricing-preview-card--3 {
	z-index: 1;
	transform: translateX(-6%) rotate(8deg) translateY(42px) scale(.89);
	opacity: .92;
}

.mcp-pricing-preview-caption {
	position: absolute;
	left: 25px;
	right: 25px;
	bottom: 23px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 17px;
	border: 1px solid var(--mcp-line);
	border-radius: 16px;
	background: rgba(var(--mcp-brand-rgb), .055);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.mcp-pricing-preview-caption strong,
.mcp-pricing-preview-caption span {
	display: block;
}

.mcp-pricing-preview-caption strong {
	font-size: .82rem;
}

.mcp-pricing-preview-caption span {
	color: var(--mcp-muted);
	font-size: .72rem;
	text-align: right;
}

.mcp-pricing-rate-section {
	display: grid;
	grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
	gap: clamp(36px, 6vw, 80px);
	align-items: start;
	margin-top: clamp(82px, 10vw, 132px);
	padding-top: 34px;
	border-top: 1px solid var(--mcp-line);
}

.mcp-pricing-rate-intro {
	position: sticky;
	top: 105px;
}

.mcp-pricing-rate-intro > span,
.mcp-pricing-flow-head > span,
.mcp-pricing-included__head > span,
.mcp-pricing-final-cta span {
	color: var(--mcp-brand);
	font-size: .67rem;
	font-weight: 900;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.mcp-pricing-rate-intro h2,
.mcp-pricing-flow-head h2,
.mcp-pricing-included__head h2,
.mcp-pricing-final-cta h2 {
	margin: 10px 0 0;
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	line-height: 1.02;
	letter-spacing: -.048em;
	text-wrap: balance;
}

.mcp-pricing-rate-intro p {
	max-width: 420px;
	margin: 18px 0 0;
	color: var(--mcp-muted);
	font-size: .88rem;
	line-height: 1.65;
}

.mcp-pricing-rate-table {
	border-top: 1px solid var(--mcp-line-strong);
}

.mcp-pricing-rate-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	min-height: 78px;
	padding: 0 4px;
	border-bottom: 1px solid var(--mcp-line);
}

.mcp-pricing-rate-row--head {
	min-height: 42px;
	color: var(--mcp-muted);
	font-size: .64rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.mcp-pricing-rate-row:not(.mcp-pricing-rate-row--head) > span:first-child {
	font-size: 1rem;
	font-weight: 790;
}

.mcp-pricing-rate-row:not(.mcp-pricing-rate-row--head) > span:last-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: baseline;
	gap: 4px 8px;
	text-align: right;
}

.mcp-pricing-rate-row strong {
	color: var(--mcp-brand);
	font-size: clamp(1.5rem, 2.6vw, 2.05rem);
	letter-spacing: -.04em;
}

.mcp-pricing-rate-row small {
	color: var(--mcp-ink);
	font-size: 1rem;
	font-weight: 850;
	letter-spacing: -.02em;
}

.mcp-pricing-rate-row em {
	flex-basis: 100%;
	color: var(--mcp-brand);
	font-size: .78rem;
	font-style: normal;
	font-weight: 850;
	line-height: 1.2;
}

.mcp-pricing-monthly-callout {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 12px;
	align-items: baseline;
	margin-top: 18px;
	padding: 13px 16px;
	border: 1px solid rgba(var(--mcp-brand-rgb), .22);
	border-radius: 15px;
	background: rgba(var(--mcp-brand-rgb), .07);
}

.mcp-pricing-monthly-callout strong {
	color: var(--mcp-brand);
	font-size: 1.08rem;
	font-weight: 900;
	letter-spacing: -.025em;
}

.mcp-pricing-monthly-callout span {
	color: var(--mcp-muted);
	font-size: .9rem;
	font-weight: 720;
}

.mcp-pricing-flow {
	margin-top: clamp(82px, 10vw, 126px);
	padding: clamp(34px, 5vw, 58px);
	border: 1px solid var(--mcp-line-strong);
	border-radius: 28px;
	background:
		linear-gradient(135deg, rgba(var(--mcp-brand-rgb), .09), transparent 58%),
		var(--mcp-container-background);
	box-shadow: 0 22px 70px rgba(18, 74, 55, .08);
}

.mcp-pricing-flow-head {
	max-width: 700px;
}

.mcp-pricing-flow-list {
	list-style: none;
	margin: 38px 0 0;
	padding: 0;
	border-top: 1px solid var(--mcp-line);
}

.mcp-pricing-flow-list li {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	padding: 26px 0;
	border-bottom: 1px solid var(--mcp-line);
}

.mcp-pricing-flow-list li > span {
	color: var(--mcp-brand);
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .08em;
}

.mcp-pricing-flow-list strong {
	display: block;
	font-size: 1.03rem;
}

.mcp-pricing-flow-list p {
	max-width: 760px;
	margin: 7px 0 0;
	color: var(--mcp-muted);
	font-size: .82rem;
	line-height: 1.58;
}

.mcp-pricing-included--standalone {
	margin-top: 18px;
	padding: clamp(30px, 4vw, 44px);
	border: 1px solid var(--mcp-line);
	border-radius: 26px;
	background: var(--mcp-container-background);
	box-shadow: 0 18px 58px rgba(24, 79, 60, .07);
}

.mcp-pricing-included__head {
	display: grid;
	grid-template-columns: minmax(0, .7fr) minmax(260px, 1.3fr);
	gap: 28px;
	align-items: end;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--mcp-line);
}

.mcp-pricing-included__head h2 {
	grid-column: 2;
	grid-row: 1;
	margin-top: 0;
	font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.mcp-pricing-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 28px;
	padding-top: 27px;
}

.mcp-pricing-feature-item {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 11px;
	align-items: start;
}

.mcp-pricing-check {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	border: 1px solid rgba(var(--mcp-brand-rgb), .28);
	border-radius: 9px;
	background: rgba(var(--mcp-brand-rgb), .08);
	color: var(--mcp-brand);
}

.mcp-pricing-check svg {
	width: 15px;
	height: 15px;
}

.mcp-pricing-feature-item strong,
.mcp-pricing-feature-item small {
	display: block;
}

.mcp-pricing-feature-item strong {
	font-size: .86rem;
	line-height: 1.35;
}

.mcp-pricing-feature-item small {
	margin-top: 4px;
	color: var(--mcp-muted);
	font-size: .75rem;
	line-height: 1.5;
}

.mcp-pricing-final-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 46px;
	margin-top: 18px;
	padding: clamp(32px, 5vw, 52px);
	border: 1px solid var(--mcp-line-strong);
	border-radius: 28px;
	background:
		radial-gradient(circle at 10% 20%, rgba(var(--mcp-brand-rgb), .13), transparent 36%),
		var(--mcp-container-background);
}

.mcp-pricing-final-cta h2 {
	max-width: 720px;
	font-size: clamp(1.8rem, 3.4vw, 3.1rem);
}

.mcp-pricing-final-cta p {
	max-width: 640px;
	margin: 13px 0 0;
	color: var(--mcp-muted);
	font-size: .82rem;
	line-height: 1.6;
}

.mcp-pricing-final-cta .mcp-pricing-primary-action {
	flex: 0 0 auto;
}

@media (max-width: 980px) {
	.mcp-pricing-hero-split,
	.mcp-pricing-rate-section {
		grid-template-columns: 1fr;
	}

	.mcp-pricing-hero-copy {
		max-width: 790px;
	}

	.mcp-pricing-preview-showcase {
		width: min(100%, 720px);
		justify-self: center;
	}

	.mcp-pricing-rate-intro {
		position: static;
		max-width: 760px;
	}
}

@media (max-width: 720px) {
	.mcp-pricing-page {
		width: min(100% - 24px, 620px);
		padding-top: 54px;
	}

	.mcp-pricing-hero-split {
		min-height: 0;
		gap: 38px;
	}

	.mcp-pricing-hero-copy h1 {
		font-size: clamp(2.8rem, 14vw, 4.5rem);
	}

	.mcp-pricing-hero-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mcp-pricing-primary-action {
		width: 100%;
		justify-content: center;
	}

	.mcp-pricing-preview-showcase {
		min-height: 430px;
		padding: 20px;
	}

	.mcp-pricing-preview-stack {
		height: 335px;
	}

	.mcp-pricing-preview-card {
		width: 180px;
	}

	.mcp-pricing-preview-caption {
		left: 18px;
		right: 18px;
		bottom: 17px;
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.mcp-pricing-preview-caption span {
		text-align: left;
	}

	.mcp-pricing-rate-section,
	.mcp-pricing-flow {
		margin-top: 70px;
	}

	.mcp-pricing-rate-row {
		min-height: 68px;
	}

	.mcp-pricing-flow {
		padding: 28px 22px;
	}

	.mcp-pricing-flow-list li {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 14px;
	}

	.mcp-pricing-included__head,
	.mcp-pricing-feature-grid {
		grid-template-columns: 1fr;
	}

	.mcp-pricing-included__head h2 {
		grid-column: 1;
		grid-row: auto;
		margin-top: 10px;
	}

	.mcp-pricing-final-cta {
		align-items: stretch;
		flex-direction: column;
	}
}

/* 0.9.9 light-mode surface rhythm. Dark mode intentionally keeps 0.9.8 colours. */
html:not([data-mcp-theme="dark"]) body.pmpro-account .pmpro_section:nth-of-type(even) .pmpro_card,
html:not([data-mcp-theme="dark"]) body:is(.pmpro-billing,.pmpro-member-profile-edit) .pmpro_form_fieldset:nth-of-type(even) > .pmpro_card,
html:not([data-mcp-theme="dark"]) body.pmpro-checkout .pmpro_form_fieldset:nth-of-type(even) .pmpro_card,
html:not([data-mcp-theme="dark"]) body.mcp-pmpro-levels-page .pmpro_level:nth-of-type(even) .pmpro_card {
	background: var(--mcp-container-background-alt);
}

/* Profile Builder is a workspace, not a narrow content page. */
body.mcp-profile-builder-page .mcp-content-page {
	width: calc(100% - 24px);
	max-width: none;
	margin-inline: auto;
	padding-top: 22px;
	padding-bottom: 28px;
}

body.mcp-profile-builder-page .mcp-pmpro-page-hero {
	width: 100%;
	max-width: none;
	margin: 0 0 14px;
}

body.mcp-profile-builder-page .mcp-pmpro-page-hero .mcp-entry-title {
	font-size: clamp(2rem, 3.1vw, 3.25rem);
	line-height: .95;
}

body.mcp-profile-builder-page .mcp-pmpro-page-lead {
	max-width: 760px;
	margin-top: 8px;
}

body.mcp-profile-builder-page .mcp-entry-content {
	margin-top: 10px;
}

@media (min-width: 1360px) {
	body.mcp-profile-builder-page .mcp-pmpro-page-hero {
		display: grid;
		grid-template-columns: auto auto minmax(280px, 1fr);
		grid-template-areas:
			"back eyebrow eyebrow"
			"title title lead";
		align-items: end;
		column-gap: 24px;
		row-gap: 7px;
	}

	body.mcp-profile-builder-page .mcp-pmpro-page-back { grid-area: back; margin: 0; }
	body.mcp-profile-builder-page .mcp-pmpro-page-eyebrow { grid-area: eyebrow; align-self: center; }
	body.mcp-profile-builder-page .mcp-pmpro-page-hero .mcp-entry-title { grid-area: title; margin: 0; }
	body.mcp-profile-builder-page .mcp-pmpro-page-lead { grid-area: lead; margin: 0 0 3px; justify-self: end; text-align: right; }
}


/* 0.9.37 — Member Profile Details must use the available account shell. */
body.pmpro-member-profile-edit .mcp-content-page {
	width: min(calc(100% - 40px), var(--mcp-shell));
	max-width: var(--mcp-shell);
}

body.pmpro-member-profile-edit .mcp-pmpro-page-hero {
	max-width: 940px;
}

body.pmpro-member-profile-edit .mcp-entry-content,
body.pmpro-member-profile-edit .mcp-entry-content > .pmpro,
body.pmpro-member-profile-edit #pmpro_member_profile_edit,
body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_form,
body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_form_fieldset,
body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_card,
body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_card_content,
body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_form_fields {
	width: 100% !important;
	max-width: none !important;
}

body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_form_fields,
body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_cols-2 {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 18px !important;
}

body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_form_field {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

body.pmpro-member-profile-edit #pmpro_member_profile_edit :where(
	input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"],
	input[type="password"], input[type="search"], select, textarea, .pmpro_form_input
) {
	display: block;
	width: 100% !important;
	max-width: none !important;
}

body.pmpro-member-profile-edit #pmpro_member_profile_edit .pmpro_card_content {
	padding: clamp(24px, 4vw, 38px) !important;
}


/* ==========================================================================
 * 0.9.38 — Change-password form alignment
 * ========================================================================== */
body.mcp-pmpro-change-password-page .mcp-content-page {
	width: min(calc(100% - 40px), var(--mcp-shell));
	max-width: var(--mcp-shell);
}

body.mcp-pmpro-change-password-page .mcp-entry-content,
body.mcp-pmpro-change-password-page .pmpro,
body.mcp-pmpro-change-password-page #pmpro_change_password {
	width: 100%;
	max-width: 860px;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_card {
	width: 100%;
	max-width: 860px;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_form_fields,
body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_cols-2 {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 20px !important;
	width: 100% !important;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_form_field,
body.mcp-pmpro-change-password-page #pmpro_change_password [class*="pmpro_form_field-"] {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_form_label,
body.mcp-pmpro-change-password-page #pmpro_change_password label {
	display: block !important;
	width: 100% !important;
	margin: 0 0 8px !important;
}

body.mcp-pmpro-change-password-page #pmpro_change_password input[type="password"],
body.mcp-pmpro-change-password-page #pmpro_change_password input[type="text"] {
	width: 100% !important;
	max-width: none !important;
	min-height: 54px !important;
}

/* app.js moves PMPro's native visibility control into this wrapper. */
body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-input-wrap {
	position: relative;
	display: block;
	isolation: isolate;
	width: 100% !important;
	max-width: none !important;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-input-wrap > input {
	position: relative;
	z-index: 1;
	padding-right: 54px !important;
	pointer-events: auto;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-toggle-inline,
body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-input-wrap > .pmpro_form_field-password-toggle {
	position: absolute !important;
	top: 50%;
	right: 8px !important;
	left: auto !important;
	z-index: 2;
	width: 38px !important;
	height: 38px !important;
	max-width: 38px !important;
	margin: 0 !important;
	transform: translateY(-50%);
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-input-wrap > .pmpro_form_field-password-toggle {
	pointer-events: none;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-input-wrap > .pmpro_form_field-password-toggle button {
	pointer-events: auto;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-eye-toggle,
body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-input-wrap .pmpro_form_field-password-toggle button {
	display: grid !important;
	place-items: center;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--mcp-muted) !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-eye-toggle:hover,
body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-eye-toggle:focus-visible {
	background: rgba(var(--mcp-brand-rgb), .10) !important;
	color: var(--mcp-brand) !important;
	outline: none;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-eye-toggle > :not(.mcp-password-eye-icon),
body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_form_field-password-toggle button > :not(.mcp-password-eye-icon):not(svg) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .mcp-password-eye-icon {
	display: block;
	width: 20px;
	height: 20px;
}

body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_form_submit,
body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_card_actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
	margin-top: 24px;
}

@media (max-width: 640px) {
	body.mcp-pmpro-change-password-page .mcp-entry-content,
	body.mcp-pmpro-change-password-page .pmpro,
	body.mcp-pmpro-change-password-page #pmpro_change_password,
	body.mcp-pmpro-change-password-page #pmpro_change_password .pmpro_card {
		max-width: 100%;
	}
}

/* R84: complete feature catalogue sits before the pricing table. */
.mcp-pricing-page > .mcp-pricing-feature-catalog {
	margin-top: clamp(74px, 9vw, 118px);
}

.mcp-pricing-page > .mcp-pricing-feature-catalog + .mcp-pricing-rate-section {
	margin-top: clamp(48px, 6vw, 76px);
}

@media (max-width: 680px) {
	.mcp-pricing-page > .mcp-pricing-feature-catalog {
		margin-top: 58px;
	}

	.mcp-pricing-page > .mcp-pricing-feature-catalog + .mcp-pricing-rate-section {
		margin-top: 52px;
	}
}
