/**
 * Print styles for the Annex I(B) model withdrawal form.
 *
 * When the customer prints the page (via the "Print this form" button or the
 * browser's own print command), only the form section should reach the paper,
 * not the surrounding theme chrome (header, navigation, sidebar, footer).
 *
 * The heavy lifting is done by buddypilot-withdrawal-print.js, which on
 * `beforeprint` walks from the form up to <body> and tags every off-path
 * element with `.buddypilot-withdrawal-print-hidden`. We hide those with
 * `display: none` (not `visibility: hidden`) so they collapse out of the
 * layout entirely - otherwise the hidden chrome keeps its height and the
 * printout still spans several mostly-blank pages. The class is only present
 * while printing; the JS removes it again on `afterprint`.
 *
 * Enqueued only on pages that contain the [buddypilot_withdrawal_form]
 * shortcode, so it never affects other pages.
 */

/* Toggled on by the print script around the print job; collapses everything
   except the form's ancestor chain so the document shrinks to the form. */
.buddypilot-withdrawal-print-hidden {
	display: none !important;
}

/* Also set by the print script, on each of the form's ancestors. Zeroes the
   padding/margin the theme adds around the content so the form is not pushed
   onto a second, near-blank page by leftover wrapper spacing. */
.buddypilot-withdrawal-print-reset {
	margin: 0 !important;
	padding: 0 !important;
}

@media print {

	/* The "Print this form" button lives inside the form section, so the
	   collapse logic above keeps it on the page. Hide it explicitly so it
	   never appears on the printout. */
	.buddypilot-withdrawal-legal-form-print {
		display: none !important;
	}

	/* Drop the form's own outer spacing so it starts at the top of the sheet. */
	.buddypilot-withdrawal-legal-form {
		margin: 0;
	}
}
