.ofoodi-consent[hidden],
.ofoodi-consent-manage[hidden],
.ofoodi-consent [hidden] {
	display: none !important;
}

.ofoodi-consent {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	align-items: end;
	padding: 16px;
}

.ofoodi-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(27, 10, 31, 0.54);
	backdrop-filter: blur(3px);
}

.ofoodi-consent__dialog {
	position: relative;
	width: min(100%, 680px);
	margin: 0 auto;
	padding: clamp(22px, 4vw, 34px);
	color: #2b1430;
	background: #fffaf3;
	border: 1px solid rgba(43, 20, 48, 0.14);
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(27, 10, 31, 0.28);
}

.ofoodi-consent__eyebrow {
	margin: 0 0 8px;
	color: #557f25;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ofoodi-consent h2 {
	margin: 0 0 12px;
	color: #2b1430;
	font-size: clamp(25px, 5vw, 35px);
	line-height: 1.05;
}

.ofoodi-consent p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.55;
}

.ofoodi-consent__policy {
	font-size: 13px !important;
}

.ofoodi-consent a {
	color: #2b1430;
	font-weight: 700;
	text-underline-offset: 3px;
}

.ofoodi-consent__actions {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	margin-top: 22px;
}

.ofoodi-consent__button,
.ofoodi-consent-manage {
	min-height: 46px;
	padding: 11px 16px;
	border: 2px solid #2b1430;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
}

.ofoodi-consent__button--equal {
	color: #fff;
	background: #2b1430;
}

.ofoodi-consent__button--plain {
	color: #2b1430;
	background: transparent;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ofoodi-consent__button--save {
	color: #fff;
	background: #557f25;
	border-color: #557f25;
}

.ofoodi-consent__button:focus-visible,
.ofoodi-consent-manage:focus-visible,
.ofoodi-consent input:focus-visible {
	outline: 3px solid #d29f2c;
	outline-offset: 3px;
}

.ofoodi-consent__choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 0;
	border-bottom: 1px solid rgba(43, 20, 48, 0.13);
}

.ofoodi-consent__choice strong,
.ofoodi-consent__choice span {
	display: block;
}

.ofoodi-consent__choice strong {
	margin-bottom: 3px;
	font-size: 15px;
}

.ofoodi-consent__choice span span {
	color: #5f5361;
	font-size: 13px;
	line-height: 1.4;
}

.ofoodi-consent__choice input {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	accent-color: #557f25;
}

.ofoodi-consent__required {
	flex: 0 0 auto;
	color: #557f25;
	font-size: 13px;
	font-weight: 800;
}

.ofoodi-consent__actions--preferences {
	grid-template-columns: auto 1fr;
}

.ofoodi-consent-manage {
	position: fixed;
	z-index: 2147482000;
	left: 14px;
	bottom: 14px;
	min-height: 38px;
	padding: 8px 12px;
	color: #2b1430;
	background: #fffaf3;
	border-width: 1px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(27, 10, 31, 0.16);
	font-size: 12px;
}

.ofoodi-consent-open {
	overflow: hidden;
}

@media (max-width: 620px) {
	.ofoodi-consent {
		padding: 8px;
	}

	.ofoodi-consent__dialog {
		padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
		border-radius: 18px;
	}

	.ofoodi-consent__actions {
		grid-template-columns: 1fr 1fr;
	}

	.ofoodi-consent__button--plain {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.ofoodi-consent__actions--preferences {
		grid-template-columns: auto 1fr;
	}

	.ofoodi-consent__actions--preferences .ofoodi-consent__button--plain {
		grid-column: auto;
		grid-row: auto;
	}

	.ofoodi-consent__choice {
		gap: 14px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ofoodi-consent__dialog {
		animation: ofoodi-consent-enter 180ms ease-out both;
	}

	@keyframes ofoodi-consent-enter {
		from {
			opacity: 0;
			transform: translateY(18px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}
