/*
 * Cookie Notice plugin banner in the theme look. The plugin styles the
 * banner by id, so these overrides use the same id to win specificity.
 * Colors (bar, text) are set in the plugin settings from the theme palette.
 */
#cookie-notice {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

#cookie-notice .cookie-notice-container {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--gutter);
}

#cookie-notice .cn-text-container {
	margin: 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--10) 0;
}

/* Theme links are dark blue: on the navy bar use light colors (4.5:1+). */
#cookie-notice .cn-text-container a {
	color: var(--wp--preset--color--accent);
	text-underline-offset: 0.2em;
}

#cookie-notice .cn-text-container a:hover {
	color: var(--wp--preset--color--base);
}

#cookie-notice .cn-text-container a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

#cookie-notice .cn-button {
	margin: var(--wp--preset--spacing--10) var(--wp--preset--spacing--10) 0;
	font-size: var(--wp--preset--font-size--small);
}

#cookie-notice .cn-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}


/*
 * reCAPTCHA v3 badge (Contact Form 7) sits above the banner while it is shown.
 * Google sets `bottom: 14px` inline, hence !important. The offset follows
 * the banner height, which grows as its text wraps on narrower screens.
 */
.grecaptcha-badge {
	--gms-digital-cookie-notice-height: 155px;
}

@media (min-width: 760px) {

	.grecaptcha-badge {
		--gms-digital-cookie-notice-height: 110px;
	}
}

@media (min-width: 1020px) {

	.grecaptcha-badge {
		--gms-digital-cookie-notice-height: 79px;
	}
}

body:has(#cookie-notice.cookie-notice-visible) .grecaptcha-badge {
	bottom: calc(14px + var(--gms-digital-cookie-notice-height)) !important;
}
