/* Paywall for All front-end styles are intentionally explicit so themes with light text on dark layouts do not make cards unreadable. */
.pfa-card,
.pfa-paywall-box,
.pfa-plan-card {
	box-sizing: border-box;
	border: 1px solid rgba(17, 24, 39, .12) !important;
	border-radius: 18px;
	padding: 24px;
	background: #ffffff !important;
	color: #111827 !important;
	box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.pfa-card *,
.pfa-paywall-box *,
.pfa-plan-card * {
	box-sizing: border-box;
}

.pfa-card h1,
.pfa-card h2,
.pfa-card h3,
.pfa-card h4,
.pfa-card h5,
.pfa-card h6,
.pfa-paywall-box h1,
.pfa-paywall-box h2,
.pfa-paywall-box h3,
.pfa-paywall-box h4,
.pfa-paywall-box h5,
.pfa-paywall-box h6,
.pfa-plan-card h1,
.pfa-plan-card h2,
.pfa-plan-card h3,
.pfa-plan-card h4,
.pfa-plan-card h5,
.pfa-plan-card h6,
.pfa-card p,
.pfa-paywall-box p,
.pfa-plan-card p,
.pfa-card li,
.pfa-paywall-box li,
.pfa-plan-card li,
.pfa-card label,
.pfa-card td,
.pfa-card th,
.pfa-plan-price,
.pfa-muted,
.pfa-small {
	color: #111827 !important;
}

.pfa-content-preview {
	margin-bottom: 24px;
	color: inherit;
}

.pfa-content-preview,
.pfa-content-preview p,
.pfa-content-preview li,
.pfa-content-preview h1,
.pfa-content-preview h2,
.pfa-content-preview h3,
.pfa-content-preview h4,
.pfa-content-preview h5,
.pfa-content-preview h6 {
	color: inherit !important;
}

.pfa-paywall-box {
	margin: 28px 0;
	text-align: left;
}

.pfa-paywall-box h2,
.pfa-card h2,
.pfa-plan-card h3 {
	margin-top: 0;
}

.pfa-paywall-actions,
.pfa-account-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 18px;
}

.pfa-button,
.wp-core-ui .pfa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
	border: 1px solid currentColor;
	cursor: pointer;
}

.pfa-button-primary,
.pfa-card .pfa-button-primary,
.pfa-paywall-box .pfa-button-primary,
.pfa-plan-card .pfa-button-primary {
	background: #111827 !important;
	color: #ffffff !important;
	border-color: #111827 !important;
}

.pfa-button-secondary,
.pfa-card .pfa-button-secondary,
.pfa-paywall-box .pfa-button-secondary,
.pfa-plan-card .pfa-button-secondary {
	background: #ffffff !important;
	color: #111827 !important;
	border-color: rgba(17,24,39,.35) !important;
}

.pfa-card a:not(.pfa-button),
.pfa-paywall-box a:not(.pfa-button),
.pfa-plan-card a:not(.pfa-button) {
	color: #1d4ed8 !important;
}

.pfa-card input,
.pfa-card select,
.pfa-card textarea {
	background: #ffffff !important;
	color: #111827 !important;
	border: 1px solid rgba(17,24,39,.28) !important;
	border-radius: 8px;
	padding: 8px 10px;
}

.pfa-plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.pfa-plan-price {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 12px 0;
}

.pfa-plan-price span {
	font-size: .95rem;
	font-weight: 500;
	opacity: .7;
}

.pfa-account-table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	background: #ffffff !important;
	color: #111827 !important;
}

.pfa-account-table th,
.pfa-account-table td {
	border-bottom: 1px solid rgba(17,24,39,.12);
	padding: 10px;
	text-align: left;
	color: #111827 !important;
}

.pfa-status {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 700;
	background: rgba(17,24,39,.08);
	color: #111827 !important;
}

.pfa-status-active {
	background: rgba(22,163,74,.14) !important;
	color: #166534 !important;
}

.pfa-status-cancelled,
.pfa-status-expired {
	background: rgba(220,38,38,.12) !important;
	color: #991b1b !important;
}

.pfa-muted,
.pfa-small {
	opacity: .82;
	font-size: .92rem;
}

.pfa-checkout-card {
	max-width: 760px;
	margin: 24px 0;
}

.pfa-checkout-summary {
	border: 1px solid rgba(17,24,39,.12);
	border-radius: 14px;
	padding: 18px;
	margin: 16px 0 20px;
	background: #f9fafb !important;
	color: #111827 !important;
}

.pfa-checkout-form label {
	display: block;
	font-weight: 700;
	margin: 14px 0 8px;
	color: #111827 !important;
}

.pfa-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.pfa-checkout-form input[type="text"],
.pfa-checkout-form input[type="email"],
.pfa-checkout-form input[type="password"] {
	width: 100%;
	min-height: 42px;
}

.pfa-test-payment-note,
.pfa-notice {
	border-radius: 12px;
	padding: 12px 14px;
	margin: 18px 0;
	background: #f3f4f6 !important;
	color: #111827 !important;
	border: 1px solid rgba(17,24,39,.14);
}

.pfa-notice-error {
	background: #fef2f2 !important;
	border-color: rgba(185,28,28,.25) !important;
	color: #7f1d1d !important;
}

.pfa-notice-success {
	background: #f0fdf4 !important;
	border-color: rgba(22,101,52,.25) !important;
	color: #14532d !important;
}

.pfa-notice-info {
	background: #eff6ff !important;
	border-color: rgba(37,99,235,.25) !important;
	color: #1e3a8a !important;
}

.pfa-section-block {
	border-top: 1px solid rgba(17,24,39,.12);
	margin-top: 24px;
	padding-top: 22px;
}

.pfa-account-upgrade h3 {
	margin-top: 0;
	color: #111827 !important;
}

.pfa-account-plan-grid {
	margin-top: 16px;
}

.pfa-current-plan {
	border-color: rgba(22,101,52,.35) !important;
	box-shadow: 0 10px 30px rgba(22,101,52,.08);
}

.pfa-plan-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: .78rem;
	font-weight: 800;
	background: #dcfce7 !important;
	color: #166534 !important;
	margin-bottom: 10px;
}

.pfa-button-disabled,
.pfa-button-disabled:hover,
.pfa-button-disabled:focus {
	cursor: default;
	opacity: .72;
	pointer-events: none;
}

.pfa-plan-change-form {
	margin: 0;
}

.pfa-plan-choice-card {
	display: block;
	cursor: pointer;
}

.pfa-plan-choice-card.pfa-current-plan {
	cursor: default;
}

.pfa-radio-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	margin-bottom: 12px;
	color: #111827 !important;
}

.pfa-radio-row input[type="radio"] {
	width: auto;
	min-height: auto;
	accent-color: #111827;
}

.pfa-inline-form {
	display: inline-block;
	margin: 0;
}

.pfa-button-small,
.pfa-card .pfa-button-small {
	font-size: .82rem;
	padding: 7px 12px;
}

.pfa-billing-table {
	margin-top: 12px;
}

.pfa-account-table td:last-child {
	white-space: nowrap;
}

/* v1.1.2 visual polish */
.pfa-card,
.pfa-paywall-box,
.pfa-plan-card {
	font-family: inherit;
	border-radius: 22px;
	border: 1px solid rgba(15, 23, 42, .10) !important;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.pfa-account.pfa-card,
.pfa-checkout-card.pfa-card,
.pfa-login-card.pfa-card {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.pfa-card h2,
.pfa-card h3,
.pfa-paywall-box h2,
.pfa-plan-card h3 {
	letter-spacing: -.025em;
	font-weight: 850;
}

.pfa-muted,
.pfa-small {
	color: #64748b !important;
	opacity: 1;
}

.pfa-plan-grid {
	align-items: stretch;
}

.pfa-plan-card {
	position: relative;
	overflow: hidden;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pfa-plan-card:before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, #111827, #2563eb);
}

.pfa-plan-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 24px 60px rgba(15, 23, 42, .13);
	border-color: rgba(37, 99, 235, .28) !important;
}

.pfa-plan-price {
	letter-spacing: -.04em;
	color: #0f172a !important;
}

.pfa-button,
.wp-core-ui .pfa-button,
.pfa-card button.pfa-button,
.pfa-paywall-box button.pfa-button,
.pfa-plan-card button.pfa-button {
	min-height: 42px;
	border-radius: 999px;
	box-shadow: none;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.pfa-button:hover,
.pfa-card button.pfa-button:hover,
.pfa-paywall-box button.pfa-button:hover,
.pfa-plan-card button.pfa-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}

.pfa-button-primary,
.pfa-card .pfa-button-primary,
.pfa-paywall-box .pfa-button-primary,
.pfa-plan-card .pfa-button-primary {
	background: linear-gradient(135deg, #0f172a, #1e3a8a) !important;
	border-color: transparent !important;
}

.pfa-account-table {
	border: 1px solid rgba(15,23,42,.10);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.pfa-account-table thead th {
	background: #f8fafc !important;
	font-size: .82rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #475569 !important;
}

.pfa-status {
	font-size: .78rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.pfa-checkout-summary,
.pfa-test-payment-note,
.pfa-notice {
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.pfa-section-block {
	border-top: 1px solid rgba(15,23,42,.10);
}

.pfa-checkout-form input[type="text"],
.pfa-checkout-form input[type="email"],
.pfa-checkout-form input[type="password"],
.pfa-card input,
.pfa-card select,
.pfa-card textarea {
	border-radius: 12px !important;
	min-height: 44px;
	box-shadow: none !important;
}

.pfa-checkout-form input:focus,
.pfa-card input:focus,
.pfa-card select:focus,
.pfa-card textarea:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .13) !important;
	outline: none !important;
}

@media (max-width: 700px) {
	.pfa-account-table,
	.pfa-account-table thead,
	.pfa-account-table tbody,
	.pfa-account-table th,
	.pfa-account-table td,
	.pfa-account-table tr {
		display: block;
		width: 100%;
	}
	.pfa-account-table thead {
		display: none;
	}
	.pfa-account-table tr {
		border-bottom: 1px solid rgba(15,23,42,.10);
		padding: 8px 0;
	}
	.pfa-account-table td {
		border: 0;
		padding: 8px 12px;
	}
}


.pfa-payment-method-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 18px 0 10px;
}
.pfa-payment-method-actions .pfa-button {
	min-width: 180px;
	justify-content: center;
}
.pfa-button-paypal,
.pfa-card .pfa-button-paypal {
	background: #0b5cab !important;
	border-color: #0b5cab !important;
	color: #fff !important;
}
.pfa-button-paypal:hover,
.pfa-button-paypal:focus {
	background: #083f78 !important;
	border-color: #083f78 !important;
	color: #fff !important;
}

.pfa-password-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	width: 100%;
}

.pfa-password-row input[type="password"],
.pfa-password-row input[type="text"] {
	flex: 1 1 auto;
}

.pfa-password-toggle {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 0 14px;
	border-radius: 10px;
	border: 1px solid rgba(17,24,39,.18) !important;
	background: #ffffff !important;
	color: #111827 !important;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}

.pfa-password-toggle:hover,
.pfa-password-toggle:focus {
	background: #f3f4f6 !important;
	color: #111827 !important;
}

@media (max-width: 520px) {
	.pfa-password-row {
		flex-direction: column;
	}
	.pfa-password-toggle {
		width: 100%;
	}
}

.pfa-proration-note {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #eef6ff;
	border: 1px solid #bfdbfe;
	color: #1e3a5f !important;
	font-size: 0.92rem;
	line-height: 1.45;
}

.pfa-terms-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 14px 0 6px;
	padding: 13px 14px;
	border-radius: 12px;
	background: #f8fafc !important;
	border: 1px solid rgba(15,23,42,.12) !important;
	color: #111827 !important;
	font-weight: 700;
}
.pfa-terms-check input { margin-top: 3px; }
.pfa-terms-check a { color: #0f5c9c !important; text-decoration: underline; }

.pfa-account-message {
	margin: 16px 0;
	padding: 16px 18px;
	border-radius: 14px;
	background: #fff7ed !important;
	border: 1px solid #fed7aa !important;
	color: #7c2d12 !important;
}
.pfa-account-message strong { display: block; margin-bottom: 6px; color: #7c2d12 !important; }
.pfa-account-message p { margin: 0 0 8px; color: #7c2d12 !important; }

.pfa-free-unlock-box {
	margin-top: 18px;
}

.pfa-free-unlock-form {
	margin-top: 14px;
}

.pfa-free-unlock-form label {
	display: block;
	font-weight: 700;
	margin: 12px 0 7px;
	color: #111827 !important;
}

.pfa-free-unlock-form input[type="email"] {
	width: 100%;
	max-width: 420px;
	min-height: 42px;
	background: #ffffff !important;
	color: #111827 !important;
	border: 1px solid rgba(17,24,39,.28) !important;
	border-radius: 8px;
	padding: 8px 10px;
}

.pfa-free-unlock-consent,
.pfa-free-unlock-limit {
	margin-top: 12px;
}

.pfa-free-unlock-confirmation h1 {
	margin-top: 0;
}

.pfa-coupon-box {
	margin: 16px 0;
	padding: 14px;
	border-radius: 12px;
	background: #f8fafc !important;
	border: 1px solid rgba(15,23,42,.12) !important;
	color: #111827 !important;
}
.pfa-coupon-box label {
	display: block;
	font-weight: 800;
	margin-bottom: 8px;
	color: #111827 !important;
}
.pfa-coupon-box input[type="text"] {
	width: 100%;
	max-width: 320px;
	min-height: 42px;
	background: #ffffff !important;
	color: #111827 !important;
	border: 1px solid rgba(17,24,39,.28) !important;
	border-radius: 8px;
	padding: 8px 10px;
	margin-top: 6px;
}
.pfa-coupon-box .pfa-button {
	margin-top: 8px;
}
.pfa-coupon-preview {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #ecfdf5 !important;
	border: 1px solid #a7f3d0 !important;
	color: #064e3b !important;
}
.pfa-coupon-preview p {
	margin: 5px 0;
	color: #064e3b !important;
}

/* One membership card, multiple billing options. */
.pfa-billing-choices { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.pfa-billing-choices legend { font-weight: 600; margin-bottom: 8px; }
.pfa-billing-choices .pfa-radio-row { margin: 6px 0; align-items: flex-start; }
.pfa-billing-option { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #ddd; }

/* Both billing prices stay visible. Native radios work without JavaScript. */
.pfa-pricing .pfa-billing-choices { margin: 12px 0 16px; border: 0; padding: 0; min-width: 0; }
.pfa-pricing .pfa-billing-choices legend { padding: 0; color: #334155 !important; font-size: .9rem; font-weight: 600; }
.pfa-pricing .pfa-billing-choices .pfa-billing-choice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #94a3b8;
    border-radius: 12px;
    padding: 12px;
    margin: 0 0 8px;
    min-height: 68px;
    background: #fff;
    cursor: pointer;
    line-height: 1.35;
    font-weight: 600;
}
.pfa-pricing .pfa-billing-choice input[type="radio"] {
    appearance: auto !important;
    -webkit-appearance: radio !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #1e3a8a;
}
.pfa-pricing .pfa-billing-choice-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.pfa-pricing .pfa-option-label { font-size: .875rem; color: #334155 !important; }
.pfa-pricing .pfa-option-price { font-size: 1.15rem; font-weight: 800; color: #0f172a !important; }
.pfa-pricing .pfa-option-price > span { font-size: .875rem; font-weight: 500; color: #475569 !important; }
.pfa-pricing .pfa-billing-choice:has(input:checked) { border-color: #1e3a8a; background: #eff6ff; box-shadow: inset 0 0 0 1px #1e3a8a; }
.pfa-pricing .pfa-billing-choice:hover { border-color: #1e3a8a; }
.pfa-pricing .pfa-billing-choice:focus-within { outline: 2px solid #2563eb; outline-offset: 2px; }
.pfa-pricing .pfa-plan-card { display: flex; flex-direction: column; min-width: 0; }
.pfa-pricing .pfa-plan-select-form { display: flex; flex-direction: column; flex: 1; }
.pfa-pricing .pfa-plan-select-form > .pfa-button { margin-top: auto; align-self: flex-start; }
.pfa-plan-card.pfa-plan-featured { border: 2px solid #1e3a8a !important; }
.pfa-plan-card .pfa-plan-popular { margin: 0 0 12px; padding: 6px 10px; background: #1e3a8a !important; color: #fff !important; border-radius: 6px; font-size: .85rem; font-weight: 700; text-align: center; }
.pfa-plan-card .pfa-plan-features { list-style: disc; margin: 12px 0 18px; padding-inline-start: 22px; overflow-wrap: anywhere; }
.pfa-plan-card .pfa-plan-features li { margin: 5px 0; }
.pfa-pricing .pfa-plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* v0.4.3: scoped publisher branding. Use high-contrast edges with pale accents. */
.pfa-card,.pfa-paywall-box,.pfa-plan-card,.pfa-pricing {
    --pfa-accent: #1e3a8a;
    --pfa-button-text: #ffffff;
    --pfa-accent-rgb: 30,58,138;
    --pfa-accent-edge: #1e3a8a;
    --pfa-link-color: #1e3a8a;
}
.pfa-card .pfa-button-primary,
.pfa-paywall-box .pfa-button-primary,
.pfa-plan-card .pfa-button-primary,
.pfa-card .pfa-button-paypal,
.pfa-card .pfa-button-paypal:hover,
.pfa-card .pfa-button-paypal:focus,
.pfa-login-card input[type="submit"] {
    background: var(--pfa-accent) !important;
    color: var(--pfa-button-text) !important;
    border: 1px solid var(--pfa-accent-edge) !important;
}
.pfa-login-card input[type="submit"] { border-radius: 999px !important; font-weight: 700; padding: 10px 18px; cursor: pointer; }
.pfa-card .pfa-button-secondary,.pfa-paywall-box .pfa-button-secondary,.pfa-plan-card .pfa-button-secondary { border-color: var(--pfa-accent-edge) !important; }
.pfa-card a:not(.pfa-button),.pfa-paywall-box a:not(.pfa-button),.pfa-plan-card a:not(.pfa-button),.pfa-card .pfa-terms-check a { color: var(--pfa-link-color) !important; }
.pfa-plan-card:before { background: var(--pfa-accent); }
.pfa-plan-card:hover { border-color: var(--pfa-accent-edge) !important; }
.pfa-plan-card.pfa-plan-featured { border-color: var(--pfa-accent-edge) !important; }
.pfa-plan-card .pfa-plan-popular { background: var(--pfa-accent) !important; color: var(--pfa-button-text) !important; }
.pfa-card input[type="radio"],.pfa-card input[type="checkbox"],.pfa-pricing .pfa-billing-choice input[type="radio"],.pfa-plan-card input[type="radio"] { accent-color: var(--pfa-accent-edge); }
.pfa-pricing .pfa-billing-choice:has(input:checked) { border-color: var(--pfa-accent-edge); background: rgba(var(--pfa-accent-rgb), .09); box-shadow: inset 0 0 0 1px var(--pfa-accent-edge); }
.pfa-pricing .pfa-billing-choice:hover { border-color: var(--pfa-accent-edge); }
.pfa-pricing .pfa-billing-choice:focus-within { outline-color: var(--pfa-accent-edge); }
.pfa-card input:focus,.pfa-card select:focus,.pfa-card textarea:focus,.pfa-checkout-form input:focus { border-color: var(--pfa-accent-edge) !important; box-shadow: 0 0 0 3px rgba(var(--pfa-accent-rgb), .18) !important; outline: 2px solid var(--pfa-accent-edge) !important; outline-offset: 1px; }
.pfa-card .pfa-button:focus-visible,.pfa-plan-card .pfa-button:focus-visible,.pfa-paywall-box .pfa-button:focus-visible { outline: 2px solid var(--pfa-accent-edge); outline-offset: 3px; }

/* v0.6.0: subscriber account and checkout readability, scoped to the plugin. */
.pfa-account.pfa-card,.pfa-checkout-card.pfa-card,.pfa-login-card.pfa-card {
    width: 100%; min-width: 0; max-width: 980px; padding: clamp(14px, 3vw, 28px);
    overflow-wrap: anywhere;
}
.pfa-checkout-card.pfa-card,.pfa-login-card.pfa-card { max-width: 720px; }
.pfa-account.pfa-card h2,.pfa-checkout-card.pfa-card h2,.pfa-login-card.pfa-card h2 {
    font-size: clamp(1.4rem, 2.7vw, 1.9rem); line-height: 1.25; margin: 0 0 12px;
    letter-spacing: -.015em; font-weight: 750;
}
.pfa-account.pfa-card h3,.pfa-checkout-card.pfa-card h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 10px; }
.pfa-account-nav { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 14px 0 22px; padding: 10px 0; border-block: 1px solid #e2e8f0; }
.pfa-account-nav a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.pfa-account-nav a:focus-visible,.pfa-table-scroll:focus-visible { outline: 2px solid var(--pfa-accent-edge); outline-offset: 3px; }
.pfa-account [id],.pfa-checkout-card[id] { scroll-margin-top: 80px; }
.pfa-membership-overview { border-top: 0; margin-top: 12px; padding-top: 0; }
.pfa-table-scroll { max-width: 100%; overflow-x: auto; margin: 12px 0 18px; }
.pfa-account-table { margin: 0; table-layout: auto; box-shadow: none; }
.pfa-account-table th,.pfa-account-table td { vertical-align: top; overflow-wrap: anywhere; }
.pfa-account-table td:last-child { white-space: normal; }
.pfa-account-table .pfa-cell-value { min-width: 0; }
.pfa-account-table .pfa-mobile-field { display: none; }
.pfa-account .pfa-status-past_due { background: #ffedd5 !important; color: #9a3412 !important; }
.pfa-account .pfa-button-small { min-height: 44px; white-space: normal; }
.pfa-account .pfa-account-plan-grid,.pfa-checkout-form .pfa-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pfa-account .pfa-plan-choice-card { cursor: default; }
.pfa-checkout-summary .pfa-summary-label { color: #475569 !important; font-size: .85rem; font-weight: 650; margin: 0 0 6px; }
.pfa-checkout-summary .pfa-plan-price { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; }
.pfa-checkout-card .pfa-existing-account { border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; padding: 12px 14px; margin: 16px 0; }
.pfa-checkout-card .pfa-existing-account a { text-decoration: underline; text-underline-offset: 3px; }
.pfa-checkout-form .pfa-password-row input { min-width: 0; }
.pfa-checkout-form .pfa-terms-check,.pfa-plan-change-form .pfa-terms-check { display: flex; align-items: flex-start; gap: 10px; }
.pfa-card .pfa-terms-check input[type="checkbox"],.pfa-account .pfa-radio-row input[type="radio"],.pfa-login-card input[type="checkbox"] {
    appearance: auto !important; position: static !important; opacity: 1 !important; display: inline-block !important;
    width: 18px !important; height: 18px !important; min-height: 0 !important; padding: 0 !important; flex: 0 0 18px; margin: 3px 0 0 !important;
    accent-color: var(--pfa-accent-edge);
}
.pfa-login-card input[type="text"],.pfa-login-card input[type="password"] { display: block; width: 100%; margin-top: 6px; }
.pfa-login-card input[type="submit"] { min-height: 44px; }
.pfa-checkout-card .pfa-payment-method-actions,.pfa-account .pfa-payment-method-actions { gap: 10px; }
.pfa-checkout-card .pfa-payment-method-actions .pfa-button,.pfa-account .pfa-payment-method-actions .pfa-button { min-width: 0; min-height: 44px; text-align: center; white-space: normal; }
@media (max-width: 700px) {
    /* Keep headers available to screen readers; provide labelled rows for visual use. */
    .pfa-account-table thead { display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
    .pfa-account-table tbody tr { padding: 8px 0; }
    .pfa-account-table tbody tr:last-child { border-bottom: 0; }
    .pfa-account-table tbody td { display: grid; grid-template-columns: minmax(76px, 36%) minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 10px; }
    .pfa-account-table .pfa-mobile-field { display: block; font-size: .8rem; font-weight: 650; color: #475569; line-height: 1.4; }
    .pfa-account-table .pfa-inline-form { display: block; max-width: 100%; }
    .pfa-account-table .pfa-button { max-width: 100%; text-align: center; }
    .pfa-account .pfa-plan-choice-card { padding: 16px; }
}
@media (max-width: 520px) {
    .pfa-checkout-card .pfa-payment-method-actions,.pfa-account .pfa-payment-method-actions { align-items: stretch; flex-direction: column; }
    .pfa-checkout-card .pfa-payment-method-actions .pfa-button,.pfa-account .pfa-payment-method-actions .pfa-button { width: 100%; }
    .pfa-account-nav a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .pfa-card .pfa-button,.pfa-pricing .pfa-plan-card,.pfa-account .pfa-plan-card,.pfa-paywall-box .pfa-button { transition: none; transform: none; }
}
