/* Contact Form 7 wraps the form and each field in elements the approved page does not have: let them not take part in
   the layout, so the approved form CSS applies as it did (build plan, Contract F). The same for the spans around radio
   buttons, checkboxes and the consent box: CF7 makes each option an inline block with a 1em left margin. */
.wpcf7,
.wpcf7-form-control-wrap,
.wpcf7-radio,
.wpcf7-checkbox,
.wpcf7-acceptance,
.wpcf7-list-item {
	display: contents;
}

/* CF7's script puts a spinner after the send button. The approved form has none, and in a grid or flex form the
   spinner took a cell of its own (VPS paid test build: an extra row under the button). The button shows the wait. */
.wpcf7-spinner {
	display: none;
}

.wpcf7 form.submitting .wpcf7-submit {
	cursor: progress;
	opacity: 0.6;
}

/* The add-ons' line under the approved footer (inc/addons.php): small text in the page's own colours, centred, and
   wrapping on phones. The Manage consent button looks like the links next to it. */
.pal-addon-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 20px;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 12px 16px 16px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.pal-addon-links a,
.pal-addon-links .pal-addon-consent {
	padding: 4px 0;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pal-addon-links .pal-addon-consent {
	appearance: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

/* On phones the accessibility button (bottom left, 48 px) would sit on the line's first link at the end of the page. */
@media (max-width: 560px) {
	body:has(#cya11y-container) .pal-addon-links {
		padding-bottom: 84px;
	}
}

/* The add-on pages (accessibility statement, Cookie Policy): the theme prints no page title, so each starts with its
   own H1. A readable width, in the site's fonts and colours. */
.pal-addon-page {
	box-sizing: border-box;
	width: 100%;
	max-width: 792px;
	margin: 0 auto;
	padding: 48px 16px 64px;
	overflow-wrap: break-word;
}

.pal-addon-page > * + * {
	margin-top: 16px;
}

.pal-addon-page h1 {
	margin: 0 0 24px;
	font-size: clamp(30px, 5vw, 42px);
	line-height: 1.2;
}

.pal-addon-page h2 {
	margin-top: 40px;
	font-size: clamp(22px, 3.2vw, 28px);
	line-height: 1.25;
}

.pal-addon-page ul {
	padding-left: 24px;
	list-style: disc;
}

.pal-addon-page li + li {
	margin-top: 6px;
}

.pal-addon-page a {
	text-decoration: underline;
}

/* Complianz's buttons fall back to Arial: they take the site's font. */
.cmplz-cookiebanner .cmplz-btn,
#cmplz-manage-consent .cmplz-btn {
	font-family: inherit;
}

/* The accessibility button (z-index 500000) covered the banner's "View preferences" and Cookie Policy link at 375. Under
   the banner (z-index 99999) it waits until the visitor has chosen; at 1440 they do not meet. */
#cya11y-container {
	position: relative;
	z-index: 99990;
}

/* Videos and embeds in a story's text (the block editor's Video and Embed blocks) fit the column: a video file is
   drawn at its own size otherwise (CofC import, 2026-12-05: 1980px wide on a phone). */
.wp-block-video video,
.wp-block-embed iframe {
	max-width: 100%;
	height: auto;
}

.wp-block-embed iframe {
	aspect-ratio: 16 / 9;
	width: 100%;
}

/* The PDF tag a PDF story's card shows in place of its reading time (inc/blog-wp.php pal_client_blog_pdf_tag). The
   design styles it only on the page it was drawn for, so any listing that shows a PDF story gets it here too. */
.p-pdf {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--tint-2, #e8eefc);
	color: var(--navy, #13294b);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
}

.p-pdf svg {
	flex: none;
	width: 14px;
	height: 14px;
}
