.nffat-cookies {
	position: fixed;
	left: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 100;
	box-sizing: border-box;
	width: min(400px, calc(100vw - 48px));
	padding: 24px 24px 22px;
	border-radius: var(--nffat-radius-inner);
	background: var(--wp--preset--color--teal-900);
	color: var(--wp--preset--color--white);
	box-shadow: 0 24px 60px rgb(4 41 39 / 0.35);
	animation: nffat-cookies-in 360ms var(--nffat-ease-out) both;
}

.nffat-cookies[hidden] {
	display: none;
}

.nffat-cookies.is-leaving {
	animation: nffat-cookies-out 200ms ease-in both;
}

.nffat-cookies__title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	line-height: 1.15;
	color: inherit;
}

.nffat-cookies__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--teal-100);
}

.nffat-cookies__text a {
	color: var(--wp--preset--color--white);
	text-underline-offset: 3px;
	border-radius: 4px;
}

.nffat-cookies__actions {
	display: flex;
	gap: 10px;
}

.nffat-cookies__actions .nffat-btn {
	flex: 1;
	justify-content: center;
	cursor: pointer;
}

.nffat-cookies__actions .nffat-btn--outline-light {
	background: transparent;
}

@media (hover: hover) and (pointer: fine) {
	.nffat-cookies__actions .nffat-btn--outline-light:hover {
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--teal-900);
	}
}

.nffat-cookies :focus-visible {
	outline: 3px solid var(--wp--preset--color--magenta-100);
	outline-offset: 3px;
}

.nffat-footer__cookies {
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.nffat-footer__cookies:hover {
		text-decoration: underline;
	}
}

@media (max-width: 599px) {
	.nffat-cookies {
		left: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		width: calc(100vw - 24px);
		padding: 20px;
	}
}

@keyframes nffat-cookies-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@keyframes nffat-cookies-out {
	to {
		opacity: 0;
		transform: translateY(8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nffat-cookies,
	.nffat-cookies.is-leaving {
		animation: none;
	}
}
