/**
 * Piante.it Cookie Consent — stile banner.
 * I colori arrivano da custom property inline (impostabili dal pannello
 * del plugin), per restare facilmente in stile con qualunque tema.
 */

.pcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999998;
	background: var(--pcc-bg, #1e3312);
	color: var(--pcc-text, #fff);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}

.pcc-banner[hidden] {
	display: none;
}

.pcc-banner-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.pcc-banner-copy {
	flex: 1;
	min-width: 240px;
}

.pcc-banner-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
}

.pcc-banner-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	opacity: 0.85;
}

.pcc-banner-text a {
	color: inherit;
	text-decoration: underline;
}

.pcc-banner-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}

.pcc-banner-prefs {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.pcc-banner-prefs[hidden] {
	display: none;
}

.pcc-banner-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	opacity: 0.9;
	white-space: nowrap;
}

.pcc-banner-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s;
}

.pcc-btn:hover {
	opacity: 0.85;
}

.pcc-btn-outline {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: var(--pcc-text, #fff);
}

.pcc-btn-accept {
	background: var(--pcc-btn, #7cb829);
	border: 0;
	color: var(--pcc-btn-text, #1e3312);
}

.pcc-reopen {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 999997;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--pcc-bg, #1e3312);
	color: var(--pcc-text, #fff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.pcc-reopen[hidden] {
	display: none;
}

@media (max-width: 640px) {
	.pcc-banner-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 18px 18px 20px;
	}

	.pcc-banner-actions {
		align-items: stretch;
	}

	.pcc-banner-buttons {
		flex-direction: column;
	}

	.pcc-btn {
		width: 100%;
	}
}
