.clearfix {
	clear: both;
}

.eupopup-container {
	display: none;
	z-index: 9999999;
	box-sizing: border-box;
}

/* Bottom bar, ancorata al fondo dello schermo, coerente col brand (radius/shadow/colori da brand.css) */
.eupopup-container-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 24px;
	padding: 16px 48px 16px 20px;
	background: var(--white);
	color: var(--text);
	border-top: 1px solid var(--gray-200);
	box-shadow: var(--shadow-lg);
	font-size: 0.85rem;
	line-height: 1.4;
	text-align: left;
}

/* posizioni legacy del plugin, mantenute come fallback se mai riusate */
.eupopup-container-top,
.eupopup-container-fixedtop {
	position: fixed;
	top: 0; left: 0; right: 0;
}

.eupopup-container-bottomleft,
.eupopup-container-bottomright {
	position: fixed;
	bottom: 10px;
	width: 320px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	background: var(--white);
	padding: 16px 20px;
}
.eupopup-container-bottomleft { left: 10px; }
.eupopup-container-bottomright { right: 10px; }

.eupopup-closebutton {
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
	color: var(--text-muted);
	position: absolute;
	top: 10px;
	right: 14px;
	padding: 4px 8px;
	transition: var(--transition);
}
.eupopup-closebutton:hover,
.eupopup-closebutton:active {
	color: var(--blue);
	text-decoration: none;
}

.eupopup-head {
	font-size: 1rem;
	font-weight: 700;
	color: var(--blue-dark);
	flex-basis: 100%;
}

.eupopup-body {
	color: var(--text);
	flex: 1 1 320px;
	min-width: 220px;
}

.eupopup-body a {
	color: var(--blue);
	text-decoration: underline;
}

.eupopup-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.eupopup-button {
	display: inline-block;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
	padding: 10px 20px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: var(--transition);
}

/* Accetta: bottone primario brand */
.eupopup-button_1 {
	background: var(--blue);
	color: var(--white);
}
.eupopup-button_1:hover,
.eupopup-button_1:focus {
	background: var(--blue-dark);
	color: var(--white);
	text-decoration: none;
}

/* Link Privacy Policy: secondario, solo testo */
.eupopup-button_2 {
	background: transparent;
	color: var(--blue);
	padding: 10px 8px;
	border-color: transparent;
}
.eupopup-button_2:hover,
.eupopup-button_2:focus {
	color: var(--blue-dark);
	text-decoration: underline;
}

body .eupopup-color-inverse {
	background: var(--gray-900);
	color: var(--white);
}
body .eupopup-color-inverse .eupopup-head {
	color: var(--white);
}
body .eupopup-color-inverse .eupopup-body {
	color: var(--gray-100);
}

body .eupopup-style-compact {
	padding: 10px 48px 10px 20px;
}

@media (max-width: 640px) {
	.eupopup-container-bottom {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 12px;
	}
	.eupopup-buttons {
		justify-content: flex-end;
	}
}
