/**
 * Valhalla for Vikinger — Tweaks: BuddyPress privacy-policy checkbox on Vikinger's register page.
 *
 * Loaded only on the BuddyPress register page while the compatibility fix is active. Matches the
 * theme's form labels (Vikinger: body.buddypress.registration #buddypress .page form) and the
 * terms checkbox of Valhalla Pro's Access module, so both read as one group. The error message
 * printed by BuddyPress (`div.error`) keeps the theme's own style.
 */

.vhl-privacy-policy-accept {
	margin-top: 28px;
}

.vhl-privacy-policy-accept > .error {
	margin-bottom: 10px;
}

body.buddypress.registration #buddypress .page form label.vhl-privacy-policy-label,
.vhl-privacy-policy-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--color-text, #3e3f5e);
	font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
	font-weight: 500;
	line-height: 1.5em;
	cursor: pointer;
}

body.buddypress.registration #buddypress .page form label.vhl-privacy-policy-label input[type="checkbox"],
.vhl-privacy-policy-label input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	position: static;
	accent-color: var(--color-secondary, #615dfa);
	cursor: pointer;
}

.vhl-privacy-policy-label a {
	color: var(--color-primary-dark, #00c7d9);
	font-weight: 700;
	text-decoration: none;
}

.vhl-privacy-policy-label a:hover,
.vhl-privacy-policy-label a:focus {
	text-decoration: underline;
}

/* Valhalla Pro's Access fields follow directly: keep one field gap, not two section gaps. */
.vhl-privacy-policy-accept + .vhl-access-guard {
	margin-top: 20px;
}

/* The theme puts 28px above the button after its own fields (.form-item + .submit); same here. */
body.buddypress.registration #buddypress .page form .vhl-privacy-policy-accept ~ .submit {
	margin-top: 28px;
}
