.gianna-cookie-panel {
	background: #fefae2;
	color: #32150b;
	border: 1px solid #32150b;
	border-radius: 8px;
	padding: clamp(1rem, 3vw, 1.5rem);
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: 0 8px 30px #32150b33;
}

.gianna-cookie-panel h2 {
	font: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.gianna-cookie-panel p {
	margin: 0 0 0.75rem;
}

.gianna-cookie-panel a {
	color: inherit;
	text-decoration: underline;
}

.gianna-cookie-banner {
	position: fixed;
	inset: auto max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
	z-index: 100001;
	max-width: 48rem;
	max-height: calc(100dvh - 2rem);
	overflow: auto;
	margin: 0 auto;
}

.gianna-cookie-panel[hidden],
.gianna-cookie-panel [hidden] {
	display: none !important;
}

.gianna-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gianna-cookie-actions button {
	background: #fff;
	color: #32150b;
	border: 1px solid currentColor;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	padding: 0.55rem 0.8rem;
	min-height: 44px;
	cursor: pointer;
}

#gianna-cookie-preferences {
	width: min(32rem, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
	margin: auto;
}

#gianna-cookie-preferences::backdrop {
	background: #0008;
}

#gianna-cookie-preferences label {
	display: block;
	margin-bottom: 0.65rem;
}

body.home .site-footer,
body.is-real-home .site-footer {
	display: block;
	padding-block: 0;
}

body:is(.home, .is-real-home) .site-footer > :not(.footer-bar),
body:is(.home, .is-real-home) .footer-bar > :not(.footer-cookie-preferences),
body:not(.home, .is-real-home) .footer-bar:has(.footer-nav [data-gianna-cookie-open]) .footer-cookie-preferences {
	display: none;
}

body:is(.home, .is-real-home) .site-footer .footer-bar {
	justify-content: center;
	align-items: center;
	padding: 0.75rem 0;
	border: 0;
}
