.ecc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999998;
}

.ecc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: #14202b;
	color: #f2f2f2;
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
	font-size: 15px;
	line-height: 1.5;
}
.ecc-banner.ecc-pos-bottom { bottom: 0; }
.ecc-banner.ecc-pos-top { top: 0; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25); }

.ecc-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
}

.ecc-title { margin: 0 0 6px; font-size: 17px; flex-basis: 100%; }
.ecc-text { flex: 1 1 420px; margin: 0; }
.ecc-text a { color: var(--ecc-accent, #4caf7d); text-decoration: underline; }

.ecc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.ecc-btn {
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid transparent;
	font-weight: 600;
	white-space: nowrap;
}
.ecc-btn-primary {
	background: var(--ecc-accent, #4caf7d);
	color: #fff;
	border-color: var(--ecc-accent, #4caf7d);
}
.ecc-btn-outline {
	background: transparent;
	color: #f2f2f2;
	border-color: rgba(255, 255, 255, 0.4);
}
.ecc-btn-outline:hover { border-color: #fff; }

/* Stesso peso visivo di ecc-btn-primary: Rifiuta tutto deve essere
   percepibile/cliccabile quanto Accetta tutto (parita' richiesta dal Garante). */
.ecc-btn-secondary {
	background: #4a5a68;
	color: #fff;
	border-color: #4a5a68;
}
.ecc-btn-secondary:hover { background: #5a6c7c; border-color: #5a6c7c; }

.ecc-btn-link {
	background: transparent;
	color: #f2f2f2;
	border: none;
	text-decoration: underline;
	padding: 10px 4px;
	font-weight: 500;
}

.ecc-panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 999999;
	background: #fff;
	color: #14202b;
	max-width: 560px;
	width: calc(100% - 32px);
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.ecc-panel-inner { padding: 24px; }
.ecc-panel h2 { margin-top: 0; }

.ecc-category {
	border-top: 1px solid #eee;
	padding: 14px 0;
}
.ecc-category:first-of-type { border-top: none; }
.ecc-category-head label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ecc-category-desc { margin: 6px 0 0 28px; color: #555; font-size: 13px; }

.ecc-panel .ecc-actions { justify-content: flex-end; margin-top: 18px; }
.ecc-panel .ecc-btn-outline { color: #14202b; border-color: #ccc; }

.ecc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ecc-accent, #4caf7d);
	color: #fff;
	border: none;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	display: none;
}
.ecc-reopen.ecc-visible { display: block; }

@media (max-width: 640px) {
	.ecc-banner-inner { flex-direction: column; align-items: stretch; }
	.ecc-actions { justify-content: stretch; }
	.ecc-btn { flex: 1; }
}
