/**
 * Cookie notice (Cookie Compliance plugin), restyled to match the site.
 *
 * Same treatment as the Bay State notice (November 2026): white card, square
 * corners, a dark top rule, soft shadow, two equal buttons. Phones: full width
 * above the browser toolbar. 640px and up: a narrow card in the bottom-left
 * corner. The plugin prints inline colours on the notice, so the background
 * and text colour need !important.
 *
 * The plugin's close "x" accepts cookies but is labelled "No" to screen
 * readers, so it is hidden; Accept does the same job and says so.
 */
#cookie-notice.cn-position-bottom {
	box-sizing: border-box;
	left: 0.75rem;
	right: 0.75rem;
	bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
	width: auto;
	min-width: 0;
	padding: 0;
	border: 1px solid #d6d8de;
	border-top: 3px solid #111013;
	border-radius: 0;
	background: #fff !important;
	box-shadow: 0 10px 30px rgba(17, 16, 19, 0.14), 0 2px 6px rgba(17, 16, 19, 0.06);
	text-align: left;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.5;
}

#cookie-notice *,
#cookie-notice *::before,
#cookie-notice *::after {
	box-sizing: border-box;
}

#cookie-notice:not(.cookie-notice-hidden) .cookie-notice-container {
	display: grid;
	gap: 0.875rem;
	padding: 1rem 1.125rem 1.125rem;
	color: #47464d !important;
	text-align: left;
}

#cookie-notice .cookie-notice-container #cn-notice-text {
	display: block;
	margin: 0;
	color: #47464d;
}

#cookie-notice .cookie-notice-container #cn-notice-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
}

#cookie-notice .cn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.5rem 1rem;
	border: 1px solid #111013;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#cookie-notice #cn-accept-cookie {
	background: #111013;
	color: #fff;
}

#cookie-notice #cn-accept-cookie:hover {
	border-color: #fd4499;
	background: #fd4499;
	color: #111013;
}

#cookie-notice #cn-more-info {
	border-color: #c9ccd3;
	background: #fff;
	color: #111013;
}

#cookie-notice #cn-more-info:hover {
	border-color: #111013;
}

#cookie-notice .cn-button:focus-visible {
	outline: 3px solid #d1176c;
	outline-offset: 2px;
}

#cookie-notice .cn-close-icon {
	display: none;
}

@media (min-width: 640px) {
	#cookie-notice.cn-position-bottom {
		left: 1.25rem;
		right: auto;
		bottom: 1.25rem;
		width: 24rem;
	}
}
