/*
 * Cookie banner (design .cookie-notification, Blocksy type 1; inc/integrations/consent.php), lennlucy.eu only.
 * Same floating card as the region hint (locale.css): bottom left above the sticky bar, full width on phones.
 * Accept = primary button, Decline = ghost button.
 */

:root .cookie-notification[data-type] { /* [data-type] outranks Blocksy's type-1 padding */
	position: fixed;
	z-index: var(--ll-z-hint);
	inset: auto auto var(--ll-space-24) var(--ll-pad-x);
	width: min(var(--ll-hint-w), calc(100% - 2 * var(--ll-pad-x)));
	max-width: none;
	padding: var(--ll-space-24);
	border-radius: var(--ll-r-lg);
	background: var(--ll-white);
	box-shadow: var(--ll-shadow-float);
	color: var(--ll-ink);
	text-align: left;
}
:root .cookie-notification:focus {
	outline: none;
}
:root .cookie-notification:focus-visible {
	outline: var(--ll-focus-w) solid var(--ll-petrol);
	outline-offset: var(--ll-focus-offset);
}
:root .cookie-notification[data-type] .container { /* Blocksy's type-1 inner card: the outer element is the card */
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
:root .cookie-notification .ct-cookies-content,
:root .cookie-notification .ct-cookies-content p {
	margin: 0;
	font-size: var(--ll-small);
	line-height: var(--ll-lh-relaxed);
	color: var(--ll-ink-soft);
}
:root .cookie-notification .ct-cookies-content a {
	color: var(--ll-petrol);
	text-decoration: underline;
	text-decoration-thickness: var(--ll-border-w);
	text-underline-offset: var(--ll-underline-gap);
}
:root .cookie-notification .ct-cookies-content a:hover {
	color: var(--ll-ink);
}
:root .cookie-notification .ct-button-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ll-space-8);
	margin: var(--ll-space-16) 0 0;
}
:root .cookie-notification .ct-button { /* design .btn--sm */
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: var(--ll-space-12) var(--ll-space-24);
	border: var(--ll-border-w-strong) solid transparent;
	font-size: var(--ll-small);
	line-height: var(--ll-lh-relaxed);
}
:root .cookie-notification .ct-cookies-decline-button {
	border-color: var(--ll-border-strong);
	background-color: transparent;
	color: var(--ll-ink);
}
:root .cookie-notification .ct-cookies-decline-button:hover {
	border-color: var(--ll-ink);
	background-color: transparent;
	color: var(--ll-ink);
}

/* Design: while the banner is open the region hint waits (also when the banner is reopened from the footer). */
:root body:has(.cookie-notification) .ll-locale-hint {
	display: none;
}

@media (max-width: 689.98px) {
	:root .cookie-notification[data-type] {
		inset: auto var(--ll-space-12) var(--ll-space-12);
		width: auto;
	}
	:root .cookie-notification .ct-button { /* design: phone buttons */
		padding: var(--ll-space-16) var(--ll-space-24);
	}
}
