/**
 * Paid Memberships Pro pages: Membership Account (pattern pdfflipbook/account) and its child pages
 * (patterns pdfflipbook/member-*): levels, checkout, confirmation, invoice, billing, cancel, profile.
 *
 * Every page is a .pf-account section: the page heading, the PMPro shortcode, a support card.
 * PMPro's optional variation stylesheet is left out on these pages (inc/pmpro-login.php), and the
 * rules below sit under .pf-account .pmpro so they also win over PMPro's base stylesheet.
 */

/* --------------------------------------------------------------------------
 * Page heading
 * ----------------------------------------------------------------------- */

.pf-account-head > * { margin: 0; }
.pf-account-head .is-style-tag { width: fit-content; margin-inline: 0 !important; }
.pf-account .pf-account-head__title { margin-top: 20px; color: var(--wp--preset--color--neutral); }
.pf-account .pf-account-head__lead { margin-top: 14px; color: var(--wp--preset--color--paragraph); font-size: 18px; line-height: 1.6; }
.pf-account-head__lead a { color: var(--wp--preset--color--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
 * Sections and cards
 * ----------------------------------------------------------------------- */

.pf-account .pmpro { margin-top: clamp(36px, 4vw, 56px); color: var(--wp--preset--color--neutral); font-size: 15px; line-height: 1.6; }
.pf-account .pmpro + .pmpro { margin-top: 20px; }
.pf-account .pmpro .pmpro_section { margin: 0; }
.pf-account .pmpro .pmpro_section + .pmpro_section { margin-top: 40px; }
.pf-account .pmpro .pmpro_section_title { margin: 0 0 14px; color: var(--wp--preset--color--neutral); font: 700 20px/1.3 var(--wp--preset--font-family--heading); letter-spacing: -0.2px; }
.pf-account .pmpro .pmpro_section_content { display: flex; flex-direction: column; gap: 16px; }

.pf-account .pmpro .pmpro_card { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: #fff; box-shadow: none; }
.pf-account .pmpro .pmpro_card + .pmpro_card,
.pf-account .pmpro .pmpro_form > .pmpro_card + .pmpro_form_fieldset,
.pf-account .pmpro .pmpro_form_fieldset + .pmpro_form_fieldset { margin-top: 20px; }
.pf-account .pmpro .pmpro_card_title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 22px 24px 0; color: var(--wp--preset--color--neutral); font: 600 18px/1.35 var(--wp--preset--font-family--heading); }
.pf-account .pmpro .pmpro_card_title.pmpro_font-x-large { font-size: 22px; }
.pf-account .pmpro .pmpro_card_title .avatar { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; }
.pf-account .pmpro .pmpro_card_content { padding: 16px 24px 24px; }
.pf-account .pmpro .pmpro_card > .pmpro_card_content:first-child { padding-top: 24px; }
.pf-account .pmpro .pmpro_card_content p { margin: 0 0 12px; color: var(--wp--preset--color--paragraph); }
.pf-account .pmpro .pmpro_card_content p:last-child { margin-bottom: 0; }
.pf-account .pmpro .pmpro_card_content strong { color: var(--wp--preset--color--neutral); font-weight: 600; }
.pf-account .pmpro a { color: var(--wp--preset--color--brand); }
.pf-account .pmpro .pmpro_card_content a { font-weight: 600; text-underline-offset: 3px; }
.pf-account .pmpro .pmpro_spacer { height: 20px; }
.pf-account .pmpro .pmpro_divider { height: 1px; margin: 20px 0; background: var(--wp--preset--color--line); }
.pf-account .pmpro .pmpro_font-small { margin: 4px 0 0; color: var(--wp--preset--color--paragraph); font-size: 13px; font-weight: 400; }
.pf-account .pmpro .pmpro_card_content h3.pmpro_font-large { margin: 0 0 12px; color: var(--wp--preset--color--neutral); font: 600 16px/1.4 var(--wp--preset--font-family--heading); }

/* Card links strip (Edit Profile, Cancel, "Already have an account?", discount code, Print) */
.pf-account .pmpro .pmpro_card_actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; padding: 14px 24px; border: 0; border-top: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--light); color: var(--wp--preset--color--paragraph); font-size: 14px; }
.pf-account .pmpro .pmpro_card > .pmpro_card_actions:first-child { justify-content: flex-end; border-top: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.pf-account .pmpro .pmpro_card_action_separator { display: none; }
/* Plain sentences with a link ("Already have an account? Log in here") flow as text */
.pf-account .pmpro .pmpro_card_actions:not(:has(.pmpro_card_action)) { display: block; }
.pf-account .pmpro .pmpro_card_actions a { color: var(--wp--preset--color--brand); font-weight: 600; text-decoration: none; }
.pf-account .pmpro .pmpro_card_actions a:hover { color: var(--wp--preset--color--neutral); text-decoration: underline; text-underline-offset: 3px; }
.pf-account .pmpro a[id^="pmpro_actionlink-cancel"],
.pf-account .pmpro #pmpro_actionlink-logout { color: var(--wp--preset--color--paragraph); }
.pf-account .pmpro a[id^="pmpro_actionlink-cancel"]:hover { color: #b42318; }

/* Links under a section: "← View All Orders" on the left, "View Your Membership Account →" on the right */
.pf-account .pmpro .pmpro_actions_nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: 20px 0 0; font-size: 14px; }
.pf-account .pmpro .pmpro_actions_nav-left { order: -1; }
.pf-account .pmpro .pmpro_actions_nav-right { margin-left: auto; }
.pf-account .pmpro .pmpro_actions_nav a { color: var(--wp--preset--color--brand); font-weight: 600; text-decoration: none; }
.pf-account .pmpro .pmpro_actions_nav a:hover { color: var(--wp--preset--color--neutral); }

/* --------------------------------------------------------------------------
 * Lists with labels (plan details, order details)
 * ----------------------------------------------------------------------- */

.pf-account .pmpro .pmpro_list { margin: 0; padding: 0; list-style: none; }
.pf-account .pmpro .pmpro_list-with-labels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; }
.pf-account .pmpro .pmpro_list-with-labels.pmpro_cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-account .pmpro .pmpro_list-with-labels.pmpro_cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-account .pmpro .pmpro_list-with-labels .pmpro_list_item { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; color: var(--wp--preset--color--neutral); overflow-wrap: anywhere; }
.pf-account .pmpro .pmpro_list_item_label { display: block; color: var(--wp--preset--color--paragraph); font-size: 13px; font-weight: 500; }
.pf-account .pmpro .pmpro_list-with-labels .pmpro_list_item_value { font-weight: 600; }

/* --------------------------------------------------------------------------
 * Tables (levels, orders, invoice lines)
 * ----------------------------------------------------------------------- */

.pf-account .pmpro .pmpro_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; }
.pf-account .pmpro .pmpro_table th,
.pf-account .pmpro .pmpro_table td { padding: 12px 0; border: 0; border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--neutral); font-weight: 400; text-align: left; vertical-align: middle; }
.pf-account .pmpro .pmpro_table thead th { border-top: 0; color: var(--wp--preset--color--paragraph); font-size: 13px; font-weight: 500; }
.pf-account .pmpro .pmpro_table th:last-child,
.pf-account .pmpro .pmpro_table td:last-child { text-align: right; }
.pf-account .pmpro .pmpro_table tfoot td { font-size: 15px; font-weight: 700; }
.pf-account .pmpro .pmpro_table tbody th a { font-weight: 600; text-decoration: none; }
.pf-account .pmpro .pmpro_table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* A table that fills its card: no card padding, a light header row */
.pf-account .pmpro .pmpro_card_content:has(> .pmpro_table),
.pf-account .pmpro .pmpro_card > .pmpro_card_content:first-child:has(> .pmpro_table) { padding: 0; }
.pf-account .pmpro .pmpro_card_content > .pmpro_table th,
.pf-account .pmpro .pmpro_card_content > .pmpro_table td { padding: 14px 24px; }
.pf-account .pmpro .pmpro_card_content > .pmpro_table thead th { background: var(--wp--preset--color--light); }
.pf-account .pmpro .pmpro_table_orders th:last-child,
.pf-account .pmpro .pmpro_table_orders td:last-child { text-align: left; }

/* Status tags */
.pf-account .pmpro .pmpro_tag { display: inline-block; padding: 3px 10px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; }
.pf-account .pmpro .pmpro_tag-success { background: #e7f6ec; color: #1e7b3c; }
.pf-account .pmpro .pmpro_tag-alert { background: #fff4db; color: #8a5a00; }
.pf-account .pmpro .pmpro_tag-error { background: #fdecec; color: #b42318; }

/* --------------------------------------------------------------------------
 * Buttons
 * ----------------------------------------------------------------------- */

.pf-account .pmpro .pmpro_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 6px;
	background: var(--wp--preset--color--brand);
	box-shadow: var(--pf-shadow-btn);
	color: #fff;
	font: 500 15px/1.2 var(--wp--preset--font-family--body);
	letter-spacing: -0.2px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.pf-account .pmpro .pmpro_btn:hover,
.pf-account .pmpro .pmpro_btn:focus { border-color: var(--wp--preset--color--neutral); background: var(--wp--preset--color--neutral); color: #fff; }
.pf-account .pmpro .pmpro_btn:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 3px; }
.pf-account .pmpro .pmpro_btn:disabled,
.pf-account .pmpro .pmpro_btn:disabled:hover { border-color: var(--wp--preset--color--brand); background: var(--wp--preset--color--brand); opacity: 0.45; cursor: not-allowed; }

/* Secondary: "Your Level", "No, keep this membership", "Cancel" */
.pf-account .pmpro .pmpro_btn-outline,
.pf-account .pmpro .pmpro_btn-cancel { border-color: var(--wp--preset--color--line); background: #fff; box-shadow: none; color: var(--wp--preset--color--neutral); }
.pf-account .pmpro .pmpro_btn-outline:hover,
.pf-account .pmpro .pmpro_btn-outline:focus,
.pf-account .pmpro .pmpro_btn-cancel:hover,
.pf-account .pmpro .pmpro_btn-cancel:focus { border-color: var(--wp--preset--color--neutral); background: #fff; color: var(--wp--preset--color--neutral); }

/* Plain: the password eye, "Print or Save as PDF" */
.pf-account .pmpro .pmpro_btn-plain,
.pf-account .pmpro .pmpro_btn-plain:hover,
.pf-account .pmpro .pmpro_btn-plain:focus { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--wp--preset--color--brand); }
.pf-account .pmpro .pmpro_btn-print { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--wp--preset--color--brand); font: 600 14px/1.4 var(--wp--preset--font-family--body); cursor: pointer; }
.pf-account .pmpro .pmpro_btn-print:hover { color: var(--wp--preset--color--neutral); }
.pf-account .pmpro .pmpro_btn-print svg { width: 18px; height: 18px; stroke: currentColor; }

/* Form buttons row */
.pf-account .pmpro .pmpro_form_submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.pf-account .pmpro .pmpro_form > .pmpro_form_submit,
.pf-account .pmpro .pmpro_form > .pmpro_form_fieldset + .pmpro_form_submit { margin-top: 24px; }
.pf-account .pmpro #pmpro_submit_span { display: block; width: 100%; }
.pf-account .pmpro .pmpro_btn-submit-checkout { width: 100%; min-height: 54px; font-size: 16px; }
.pf-account .pmpro #pmpro_processing_message { color: var(--wp--preset--color--paragraph); font-size: 14px; }

/* --------------------------------------------------------------------------
 * Forms (checkout, billing, profile, cancel)
 * ----------------------------------------------------------------------- */

.pf-account .pmpro .pmpro_form_fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pf-account .pmpro .pmpro_form_legend { margin: 0 0 16px; padding: 0; }
.pf-account .pmpro .pmpro_form_heading { margin: 0; color: var(--wp--preset--color--neutral); font: 600 18px/1.35 var(--wp--preset--font-family--heading); }
.pf-account .pmpro .pmpro_form_fieldset + .pmpro_form_fieldset .pmpro_form_legend { margin-top: 28px; }
.pf-account .pmpro .pmpro_form_fields { display: flex; flex-direction: column; gap: 18px; }
.pf-account .pmpro .pmpro_cols-2:not(.pmpro_list) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.pf-account .pmpro .pmpro_form_field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.pf-account .pmpro .pmpro_form_label { color: var(--wp--preset--color--neutral); font: 600 14px/1.4 var(--wp--preset--font-family--body); }
.pf-account .pmpro .pmpro_asterisk { color: var(--wp--preset--color--brand); }
.pf-account .pmpro .pmpro_asterisk abbr { border: 0; text-decoration: none; }
.pf-account .pmpro .pmpro_form_hint { color: var(--wp--preset--color--paragraph); font-size: 13px; }

/* Fields, and the Stripe card boxes (card number, expiry, CVC) that sit in the same place */
.pf-account .pmpro .pmpro_form_input,
.pf-account .pmpro #AccountNumber,
.pf-account .pmpro #Expiry,
.pf-account .pmpro #CVV,
.pf-account .pmpro .StripeElement {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--input);
	box-shadow: none;
	color: var(--wp--preset--color--neutral);
	font: 400 15px/1.4 var(--wp--preset--font-family--body);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.pf-account .pmpro #AccountNumber,
.pf-account .pmpro #Expiry,
.pf-account .pmpro #CVV,
.pf-account .pmpro .StripeElement { padding: 15px 14px; }
.pf-account .pmpro textarea.pmpro_form_input { height: auto; min-height: 120px; padding: 12px 14px; }
.pf-account .pmpro select.pmpro_form_input { padding-right: 40px; appearance: none; background: var(--wp--preset--color--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23646A77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; cursor: pointer; }
.pf-account .pmpro .pmpro_form_input:hover,
.pf-account .pmpro #AccountNumber:hover,
.pf-account .pmpro #Expiry:hover,
.pf-account .pmpro #CVV:hover { border-color: color-mix(in srgb, var(--wp--preset--color--brand) 45%, var(--wp--preset--color--line)); }
.pf-account .pmpro .pmpro_form_input:focus,
.pf-account .pmpro .StripeElement--focus { border-color: var(--wp--preset--color--brand); outline: none; background-color: #fff; box-shadow: 0 0 0 3px rgba(9, 99, 126, 0.12); }
.pf-account .pmpro .pmpro_form_input-error,
.pf-account .pmpro .StripeElement--invalid { border-color: #d64545; }
/* PMPro's own Stripe rule is very specific (form + two ids); match it so the card boxes look like the other fields */
.pf-account .pmpro form.pmpro_form #pmpro_payment_information_fields div:is(#AccountNumber, #Expiry, #CVV) { padding: 15px 14px; border: 1px solid var(--wp--preset--color--line); }
.pf-account .pmpro form.pmpro_form #pmpro_payment_information_fields div:is(#AccountNumber, #Expiry, #CVV):hover { border-color: color-mix(in srgb, var(--wp--preset--color--brand) 45%, var(--wp--preset--color--line)); }
.pf-account .pmpro form.pmpro_form #pmpro_payment_information_fields div:is(#AccountNumber, #Expiry, #CVV).StripeElement--focus { border-color: var(--wp--preset--color--brand); background-color: #fff; box-shadow: 0 0 0 3px rgba(9, 99, 126, 0.12); }
.pf-account .pmpro form.pmpro_form #pmpro_payment_information_fields div:is(#AccountNumber, #Expiry, #CVV).StripeElement--invalid { border-color: #d64545; }

/* Checkboxes (terms, "Remember me") */
.pf-account .pmpro input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--wp--preset--color--brand); cursor: pointer; }
.pf-account .pmpro .pmpro_form_field-checkbox .pmpro_form_label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }

/* Show / hide password: an eye button inside the field, on the right */
.pf-account .pmpro .pmpro_form_field-password .pmpro_form_input { padding-right: 52px; }
.pf-account .pmpro .pmpro_form_field-password-toggle { position: absolute; top: 33px; right: 5px; display: block; width: 40px; height: 40px; margin: 0; padding: 0; }
.pf-account .pmpro .pmpro_form_field-password-toggle button,
.pf-account .pmpro .pmpro_form_field-password-toggle button:hover,
.pf-account .pmpro .pmpro_form_field-password-toggle button:focus,
.pf-account .pmpro .pmpro_form_field-password-toggle button:active { position: static; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: none; cursor: pointer; transition: background-color 0.2s ease; }
.pf-account .pmpro .pmpro_form_field-password-toggle button:hover { background: var(--wp--preset--color--tag); }
.pf-account .pmpro .pmpro_form_field-password-toggle button:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: -2px; }
.pf-account .pmpro .pmpro_form_field-password-toggle .pmpro_icon { display: flex; width: 18px; height: 18px; }
.pf-account .pmpro .pmpro_form_field-password-toggle svg { width: 18px; height: 18px; stroke: var(--wp--preset--color--paragraph); transition: stroke 0.2s ease; }
.pf-account .pmpro .pmpro_form_field-password-toggle button:hover svg,
.pf-account .pmpro .pmpro_form_field-password-toggle button[data-toggle="1"] svg { stroke: var(--wp--preset--color--brand); }
.pf-account .pmpro .pmpro_form_field-password-toggle-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Change password view: PMPro puts the label and the eye in one wrapper above the field; keep the label in place and move the eye into the field */
.pf-account .pmpro .pmpro_form_field-password_current .pmpro_form_input { padding-right: 52px; }
.pf-account .pmpro .pmpro_form_field-password-toggle:has(> .pmpro_form_label) { position: static; width: auto; height: auto; }
.pf-account .pmpro .pmpro_form_field-password-toggle:has(> .pmpro_form_label) button,
.pf-account .pmpro .pmpro_form_field-password-toggle:has(> .pmpro_form_label) button:hover,
.pf-account .pmpro .pmpro_form_field-password-toggle:has(> .pmpro_form_label) button:focus,
.pf-account .pmpro .pmpro_form_field-password-toggle:has(> .pmpro_form_label) button:active { position: absolute; right: 5px; bottom: 5px; }

/* Password strength (change password) */
.pf-account .pmpro #pass-strength-result { width: fit-content; margin: 0; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--wp--preset--color--light); color: var(--wp--preset--color--paragraph); font-size: 13px; font-weight: 600; }
.pf-account .pmpro #pass-strength-result.empty { display: none; }
.pf-account .pmpro #pass-strength-result.short,
.pf-account .pmpro #pass-strength-result.bad { background: #fdecec; color: #b42318; }
.pf-account .pmpro #pass-strength-result.good { background: #fff4db; color: #8a5a00; }
.pf-account .pmpro #pass-strength-result.strong { background: #e7f6ec; color: #1e7b3c; }

/* Discount code: a field with its Apply button, and the "Click here" link that opens it */
.pf-account .pmpro .pmpro_form_fields-inline { display: flex; gap: 10px; }
.pf-account .pmpro .pmpro_form_fields-inline .pmpro_form_input { flex: 1; min-width: 0; }
.pf-account .pmpro .pmpro_btn-submit-discount-code { min-height: 50px; border-color: var(--wp--preset--color--neutral); background: #fff; box-shadow: none; color: var(--wp--preset--color--neutral); }
.pf-account .pmpro .pmpro_btn-submit-discount-code:hover { background: var(--wp--preset--color--neutral); color: #fff; }
.pf-account .pmpro #other_discount_code_toggle { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--wp--preset--color--brand); font: 600 14px/1.4 var(--wp--preset--font-family--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-account .pmpro #other_discount_code_fields { flex-basis: 100%; }

/* Messages (errors, discount applied, saved) */
.pf-account .pmpro .pmpro_message { margin: 0 0 20px; padding: 12px 16px; border: 0; border-radius: 6px; background: var(--wp--preset--color--tag); color: var(--wp--preset--color--neutral); font-size: 14px; line-height: 1.5; }
.pf-account .pmpro .pmpro_message.pmpro_success { background: #e7f6ec; color: #1e5f33; }
.pf-account .pmpro .pmpro_message.pmpro_error { background: #fdecec; color: #8f1d14; }
.pf-account .pmpro .pmpro_message.pmpro_alert { background: #fff4db; color: #6b4600; }
.pf-account .pmpro .pmpro_message a { color: inherit; font-weight: 600; text-decoration: underline; }
.pf-account .pmpro .pmpro_form_fields .pmpro_message { margin: 8px 0 0; }
.pf-account .pmpro #pmpro_message_bottom { margin: 20px 0 0; }

/* --------------------------------------------------------------------------
 * Membership Account (two columns: profile on the left)
 * ----------------------------------------------------------------------- */

.pf-account .pmpro:has(> #pmpro_account-profile) { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; gap: 40px 32px; }
.pf-account .pmpro:has(> #pmpro_account-profile) > .pmpro_section { grid-column: 2; margin: 0; }
.pf-account .pmpro:has(> #pmpro_account-profile) > #pmpro_account-profile { grid-column: 1; grid-row: 1 / span 4; }

.pf-account .pmpro #pmpro_account-profile .pmpro_list_item { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0; border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--neutral); overflow-wrap: anywhere; }
.pf-account .pmpro #pmpro_account-profile .pmpro_list_item:first-child { padding-top: 4px; border-top: 0; }
.pf-account .pmpro #pmpro_account-profile .pmpro_list_item:last-child { padding-bottom: 0; }
.pf-account .pmpro #pmpro_account-profile .pmpro_list_item strong { color: var(--wp--preset--color--paragraph); font-size: 13px; font-weight: 500; }

/* No membership yet: the text, then the link as a button */
.pf-account .pmpro #pmpro_account-membership-none p { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pf-account .pmpro #pmpro_account-membership-none a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 6px; background: var(--wp--preset--color--brand); box-shadow: var(--pf-shadow-btn); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 0.25s ease; }
.pf-account .pmpro #pmpro_account-membership-none a:hover { background: var(--wp--preset--color--neutral); }

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

.pf-account .pmpro .pmpro_levels_table tbody th { color: var(--wp--preset--color--neutral); font: 600 16px/1.4 var(--wp--preset--font-family--heading); }
.pf-account .pmpro .pmpro_level-price { margin: 0; color: var(--wp--preset--color--paragraph); font-size: 14px; }
.pf-account .pmpro .pmpro_level-price strong { color: var(--wp--preset--color--neutral); font-size: 15px; font-weight: 600; }
.pf-account .pmpro .pmpro_levels_table td:last-child { width: 1%; }
.pf-account .pmpro .pmpro_levels_table .pmpro_btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.pf-account .pmpro .pmpro_levels_table tr.pmpro_level-current > * { background: color-mix(in srgb, var(--wp--preset--color--tag) 55%, #fff); }
.pf-account .pmpro .pmpro_levels_table tbody tr:hover > * { background: var(--wp--preset--color--light); }
.pf-account .pmpro .pmpro_levels_table tbody tr.pmpro_level-current:hover > * { background: color-mix(in srgb, var(--wp--preset--color--tag) 55%, #fff); }
.pf-account .pmpro .pmpro_level_group + .pmpro_level_group { margin-top: 20px; }

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

.pf-account .pmpro #pmpro_pricing_fields .pmpro_level_cost_text p { margin: 0; }
.pf-account .pmpro #pmpro_pricing_fields .pmpro_level_name_text { margin: 0 0 6px; }
.pf-account .pmpro #pmpro_pricing_fields .pmpro_level_cost_text strong { color: var(--wp--preset--color--brand); }
.pf-account .pmpro #pmpro_account_loggedin { color: var(--wp--preset--color--paragraph); }
.pf-account .pmpro #pmpro_account_loggedin a { font-weight: 600; }
.pf-account .pmpro .pmpro_check_instructions p,
.pf-account .pmpro .pmpro_payment_instructions p { margin: 0; }

/* --------------------------------------------------------------------------
 * Confirmation and invoice
 * ----------------------------------------------------------------------- */

/* The thank-you text above the receipt */
.pf-account .pmpro [id^="pmpro_confirmation-"] { padding: 24px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: #fff; }
.pf-account .pmpro [id^="pmpro_confirmation-"] p { margin: 0 0 10px; color: var(--wp--preset--color--paragraph); }
.pf-account .pmpro [id^="pmpro_confirmation-"] p:first-child { color: var(--wp--preset--color--neutral); font-size: 17px; font-weight: 600; }
.pf-account .pmpro [id^="pmpro_confirmation-"] p:last-child { margin-bottom: 0; }

/* Receipt: the order meta, then the order lines */
.pf-account .pmpro #pmpro_order_single .pmpro_card_content > .pmpro_spacer { display: none; }
.pf-account .pmpro #pmpro_order_single-meta .pmpro_list_item { font-size: 15px; }
.pf-account .pmpro #pmpro_order_single-items { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); }

/* --------------------------------------------------------------------------
 * Cancel
 * ----------------------------------------------------------------------- */

.pf-account .pmpro #pmpro_cancel .pmpro_card_content p:first-child { color: var(--wp--preset--color--neutral); font-size: 17px; font-weight: 600; }
.pf-account .pmpro #pmpro_cancel .pmpro_btn-submit { border-color: #b42318; background: #b42318; }
.pf-account .pmpro #pmpro_cancel .pmpro_btn-submit:hover,
.pf-account .pmpro #pmpro_cancel .pmpro_btn-submit:focus { border-color: #8f1d14; background: #8f1d14; }

/* --------------------------------------------------------------------------
 * Support card
 * ----------------------------------------------------------------------- */

.pf-account .pf-account-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 40px; padding: 28px 32px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: var(--wp--preset--color--light); }
.pf-account-help__text > * { margin: 0; }
.pf-account .pf-account-help__title { color: var(--wp--preset--color--neutral); font-size: 20px; line-height: 1.35; }
.pf-account-help__text p { margin-top: 6px; color: var(--wp--preset--color--paragraph); font-size: 15px; }
.pf-account .pf-account-help__actions { gap: 12px; margin: 0; }

/* --------------------------------------------------------------------------
 * Smaller screens
 * ----------------------------------------------------------------------- */

@media (max-width: 900px) {
	.pf-account .pmpro:has(> #pmpro_account-profile) { grid-template-columns: minmax(0, 1fr); }
	.pf-account .pmpro:has(> #pmpro_account-profile) > .pmpro_section,
	.pf-account .pmpro:has(> #pmpro_account-profile) > #pmpro_account-profile { grid-column: 1; grid-row: auto; }
}

@media (max-width: 767px) {
	.pf-account .pf-account-head__lead { font-size: 16px; }
	.pf-account .pmpro .pmpro_list-with-labels.pmpro_cols-2,
	.pf-account .pmpro .pmpro_list-with-labels.pmpro_cols-3,
	.pf-account .pmpro .pmpro_cols-2:not(.pmpro_list) { grid-template-columns: minmax(0, 1fr); }
	.pf-account .pmpro .pmpro_list-with-labels { gap: 12px; }
	.pf-account .pmpro .pmpro_card_title { padding: 20px 20px 0; }
	.pf-account .pmpro .pmpro_card_content { padding: 14px 20px 20px; }
	.pf-account .pmpro .pmpro_card > .pmpro_card_content:first-child { padding-top: 20px; }
	.pf-account .pmpro .pmpro_card_actions { padding: 14px 20px; }
	.pf-account .pmpro .pmpro_form_submit .pmpro_btn { width: 100%; }

	/* PMPro turns each table row into a stack of "Label: value" lines on small screens */
	.pf-account .pmpro .pmpro_table thead { display: none; }
	.pf-account .pmpro .pmpro_table tbody tr,
	.pf-account .pmpro .pmpro_table tfoot tr { display: block; padding: 12px 0; border-top: 1px solid var(--wp--preset--color--line); }
	.pf-account .pmpro .pmpro_card_content > .pmpro_table tbody tr { padding: 14px 20px; }
	.pf-account .pmpro .pmpro_card_content > .pmpro_table tbody tr:first-child { border-top: 0; }
	.pf-account .pmpro .pmpro_table tbody th,
	.pf-account .pmpro .pmpro_table tbody td,
	.pf-account .pmpro .pmpro_table tfoot td,
	.pf-account .pmpro .pmpro_card_content > .pmpro_table th,
	.pf-account .pmpro .pmpro_card_content > .pmpro_table td { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; padding: 4px 0; border: 0; background: none; text-align: left; }
	.pf-account .pmpro .pmpro_table tbody th::before,
	.pf-account .pmpro .pmpro_table tbody td::before,
	.pf-account .pmpro .pmpro_table tfoot td::before { content: attr(data-title); color: var(--wp--preset--color--paragraph); font-size: 13px; font-weight: 500; }
	.pf-account .pmpro .pmpro_table tfoot td:first-child { display: none; }
	.pf-account .pmpro .pmpro_tag { justify-self: start; }

	/* Levels: name, price, then a full-width button */
	.pf-account .pmpro .pmpro_card_content > .pmpro_levels_table tbody th,
	.pf-account .pmpro .pmpro_card_content > .pmpro_levels_table tbody td { display: block; width: auto; }
	.pf-account .pmpro .pmpro_card_content > .pmpro_levels_table tbody th::before,
	.pf-account .pmpro .pmpro_card_content > .pmpro_levels_table tbody td::before { content: none; }
	.pf-account .pmpro .pmpro_card_content > .pmpro_levels_table tbody td:last-child { padding-top: 12px; }
	.pf-account .pmpro .pmpro_levels_table .pmpro_btn { width: 100%; }

	/* Receipt lines: the description in full, then "Amount" and "Total" with the value on the right */
	.pf-account .pmpro #pmpro_order_single-items .pmpro_table tbody th { display: block; }
	.pf-account .pmpro #pmpro_order_single-items .pmpro_table tbody th::before { content: none; }
	.pf-account .pmpro #pmpro_order_single-items .pmpro_table tbody td,
	.pf-account .pmpro #pmpro_order_single-items .pmpro_table tfoot td:last-child { display: flex; justify-content: space-between; gap: 16px; }

	.pf-account .pf-account-help { padding: 24px 20px; }
}
