.ccoagro-consent[hidden] {
	display: none !important;
}

body.ccoagro-consent-open {
	overflow: hidden;
}

.ccoagro-consent {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 1.25rem;
	opacity: 0;
	transition: opacity .2s ease;
}

.ccoagro-consent.is-visible {
	opacity: 1;
}

.ccoagro-consent__overlay {
	position: absolute;
	inset: 0;
	background: rgba(9, 24, 17, .72);
	backdrop-filter: blur(4px);
}

.ccoagro-consent__dialog {
	position: relative;
	width: min(100%, 680px);
	max-height: calc(100vh - 2.5rem);
	max-height: calc(100dvh - 2.5rem);
	overflow-y: auto;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	color: #26332d;
	background: #ffffff;
	border: 1px solid rgba(0, 107, 63, .1);
	border-radius: 20px;
	box-shadow: 0 28px 70px rgba(4, 24, 14, .28);
	opacity: 0;
	transform: translateY(18px) scale(.98);
	overscroll-behavior: contain;
	transition: opacity .2s ease, transform .2s ease;
}

.ccoagro-consent.is-visible .ccoagro-consent__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.ccoagro-consent__dialog:focus {
	outline: none;
}

.ccoagro-consent__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 38px;
	height: 38px;
	padding: 0;
	display: inline-grid;
	place-items: center;
	color: #496057;
	background: #f5f7f8;
	border: 1px solid #e9ecef;
	border-radius: 50%;
	cursor: pointer;
	transition: color .18s ease, background .18s ease, transform .18s ease;
}

.ccoagro-consent__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.ccoagro-consent__close:hover {
	color: #ffffff;
	background: #006b3f;
	transform: rotate(4deg);
}

.ccoagro-consent__eyebrow {
	margin: 0 3rem .5rem 0;
	display: block;
	color: #009e60;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ccoagro-consent__header h2 {
	max-width: 580px;
	margin: 0;
	color: #063f28;
	font-size: clamp(1.45rem, 3.5vw, 2rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.15;
}

.ccoagro-consent__copy {
	margin-top: 1rem;
	color: #526159;
	font-size: .9rem;
	line-height: 1.55;
}

.ccoagro-consent__copy p {
	margin: 0;
}

.ccoagro-consent__copy p + p {
	margin-top: .35rem;
}

.ccoagro-consent__documents {
	margin-top: 1.4rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .75rem;
}

.ccoagro-consent__document {
	min-width: 0;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #e3ebe7;
	border-radius: 14px;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ccoagro-consent__document:hover {
	border-color: rgba(0, 158, 96, .38);
	box-shadow: 0 10px 24px rgba(0, 107, 63, .09);
	transform: translateY(-2px);
}

.ccoagro-consent__pdf-icon {
	width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	color: #006b3f;
	background: #e6f5ed;
	border-radius: 10px;
}

.ccoagro-consent__pdf-icon svg {
	width: 22px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ccoagro-consent__document h3 {
	margin: .8rem 0 .9rem;
	color: #20372d;
	font-size: .78rem;
	font-weight: 750;
	line-height: 1.35;
}

.ccoagro-consent__document a {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	color: #006b3f;
	font-size: .75rem;
	font-weight: 800;
	text-decoration: none;
}

.ccoagro-consent__document a:hover {
	color: #004d2d;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ccoagro-consent__actions {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.ccoagro-consent__button {
	min-height: 48px;
	padding: .7rem 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ccoagro-consent__button--accept {
	color: #ffffff;
	background: #009e60;
	border: 1px solid #009e60;
	box-shadow: 0 8px 18px rgba(0, 158, 96, .2);
}

.ccoagro-consent__button--accept:hover {
	color: #ffffff;
	background: #006b3f;
	border-color: #006b3f;
	transform: translateY(-1px);
}

.ccoagro-consent__button--reject {
	color: #42534b;
	background: #ffffff;
	border: 1px solid #bfc9c4;
}

.ccoagro-consent__button--reject:hover {
	color: #173c2b;
	background: #f5f7f8;
	border-color: #75867d;
}

.ccoagro-consent__close:focus-visible,
.ccoagro-consent__document a:focus-visible,
.ccoagro-consent__button:focus-visible,
.ccoagro-privacy-settings:focus-visible {
	outline: 3px solid rgba(0, 158, 96, .35);
	outline-offset: 3px;
}

.ccoagro-consent__note {
	margin: .85rem 0 0;
	color: #718078;
	font-size: .7rem;
	line-height: 1.45;
	text-align: center;
}

.ccoagro-privacy-settings {
	margin-top: -.35rem;
	padding: 0;
	display: inline-flex;
	width: fit-content;
	color: inherit;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: .75rem;
	opacity: .82;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ccoagro-privacy-settings:hover {
	color: #b8dc20;
	opacity: 1;
}

@media (max-width: 640px) {
	.ccoagro-consent {
		align-items: end;
		padding: .65rem;
	}

	.ccoagro-consent__dialog {
		max-height: calc(100vh - 1.3rem);
		max-height: calc(100dvh - 1.3rem);
		padding: 1.35rem 1rem 1.15rem;
		border-radius: 18px;
		transform: translateY(24px);
	}

	.ccoagro-consent__close {
		top: .8rem;
		right: .8rem;
	}

	.ccoagro-consent__header h2 {
		padding-right: 2.25rem;
		font-size: 1.38rem;
	}

	.ccoagro-consent__copy {
		font-size: .82rem;
	}

	.ccoagro-consent__documents {
		margin-top: 1.1rem;
		grid-template-columns: 1fr;
		gap: .55rem;
	}

	.ccoagro-consent__document {
		padding: .8rem;
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr) auto;
		align-items: center;
		gap: .75rem;
	}

	.ccoagro-consent__pdf-icon {
		width: 34px;
		height: 34px;
	}

	.ccoagro-consent__document h3 {
		margin: 0;
		font-size: .74rem;
	}

	.ccoagro-consent__document a {
		margin: 0;
		font-size: 0;
	}

	.ccoagro-consent__document a span {
		font-size: 1rem;
	}

	.ccoagro-consent__actions {
		margin-top: 1rem;
		grid-template-columns: 1fr;
		gap: .55rem;
	}

	.ccoagro-consent__button {
		min-height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccoagro-consent,
	.ccoagro-consent__dialog,
	.ccoagro-consent__close,
	.ccoagro-consent__document,
	.ccoagro-consent__button {
		scroll-behavior: auto;
		transition: none;
	}
}
