/**
 * Cookie banner (inc/tracking.php). Both buttons look the same, so
 * declining is as easy as accepting.
 */

.nook-consent {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	position: fixed;
	inset: auto auto var(--wp--custom--gutter) var(--wp--custom--gutter);
	z-index: 1000;
	width: min(24rem, 100% - 2 * var(--wp--custom--gutter));
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--wp--preset--border-radius--m);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--lifted);
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--m);
	line-height: var(--wp--custom--line-height--small);

	&[hidden] {
		display: none;
	}

	a {
		color: inherit;
	}
}

.nook-consent__text {
	margin: 0;
}

.nook-consent__actions {
	display: flex;
	gap: var(--wp--preset--spacing--30);
}

.nook-consent__button {
	min-height: 44px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	border: 0;
	border-radius: var(--wp--preset--border-radius--xs);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 600;
	text-transform: uppercase;
	flex: 1;
	cursor: pointer;
	transition: background-color var(--wp--custom--transition);

	&:hover {
		background: color-mix(in srgb, var(--wp--preset--color--blue) 85%, var(--wp--preset--color--black));
	}
}
