/* CosmaPress Privacy: banner e preferenze. Pulsanti Rifiuta e Accetta con lo stesso peso. */
/* Il banner vero sta sopra a tutto: nessun contenuto può coprirne i pulsanti (classi cpp-* e z-index sono tolti dagli articoli). */
#cpp-banner { z-index: 2147483647; }
.cpp-banner {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99990;
	max-width: 760px; margin: 0 auto;
	background: #fff; color: #141414;
	border: 1px solid #dcd8d1; border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
	font: 15px/1.5 var(--cp-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	/* Testo ingrandito o schermo basso: il banner scorre al suo interno, titolo e pulsanti restano raggiungibili. */
	max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
}
.cpp-banner[hidden] { display: none; }
.cpp-banner__inner { position: relative; padding: 18px 20px 16px; }
.cpp-banner__title { margin: 0 40px 6px 0; font-size: 1.05rem; line-height: 1.3; font-family: inherit; }
.cpp-banner__text { margin: 0 0 14px; font-size: .92rem; color: #333; }
.cpp-banner__text a { color: inherit; font-weight: 600; }
.cpp-banner__x {
	position: absolute; top: 10px; right: 10px;
	width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: #f1efeb; color: #141414;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.cpp-banner__actions, .cpp-prefs__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cpp-btn {
	flex: 1 1 140px; min-height: 46px; padding: 0 18px;
	border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
	border: 1.5px solid #141414;
}
.cpp-btn--solid { background: #141414; color: #fff; }
.cpp-btn--line { background: #fff; color: #141414; }
.cpp-btn:hover { filter: brightness(1.15); }
.cpp-btn:focus-visible, .cpp-banner__x:focus-visible, .cpp-open:focus-visible { outline: 3px solid var(--cp-accent, #b3001b); outline-offset: 2px; }

.cpp-prefs {
	width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
	padding: 0; border: 0; border-radius: 16px;
	background: #fff; color: #141414;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
	font: 15px/1.5 var(--cp-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.cpp-prefs::backdrop { background: rgba(10, 10, 10, .55); }
.cpp-prefs__form { margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.cpp-prefs__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.cpp-prefs__head h2 { margin: 0; font-size: 1.15rem; font-family: inherit; }
.cpp-prefs__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1efeb; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.cpp-prefs__body { padding: 4px 20px 8px; overflow: auto; }
.cpp-cat { padding: 12px 0; border-bottom: 1px solid #ece9e4; }
.cpp-cat p { margin: 4px 0 0; font-size: .88rem; color: #4a4a4a; }
.cpp-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.cpp-cat__fixed { font-size: .82rem; color: #0b6b2e; font-weight: 600; }
.cpp-prefs__policy { font-size: .88rem; }
.cpp-prefs__policy a { color: inherit; }
.cpp-prefs__actions { padding: 12px 20px 18px; border-top: 1px solid #ece9e4; }

.cpp-switch { position: relative; flex: none; width: 48px; height: 28px; }
.cpp-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cpp-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9c5be; transition: background .15s; }
.cpp-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.cpp-switch input:checked + span { background: #141414; }
.cpp-switch input:checked + span::after { transform: translateX(20px); }
.cpp-switch input:focus-visible + span { outline: 3px solid var(--cp-accent, #b3001b); outline-offset: 2px; }

.cpp-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.cpp-footer-link { text-align: center; margin: 16px 0; }

.cpp-table-scroll { max-width: 100%; overflow-x: auto; margin-bottom: 1.5rem; }
.cpp-table-scroll:focus-visible { outline: 3px solid var(--cp-accent, #ad2436); outline-offset: 3px; }
.cpp-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .92rem; }
.cpp-table th, .cpp-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #e4e1dc; }
.cpp-table th { font-weight: 700; background: #f6f4f0; }
@media (max-width: 600px) {
	.cpp-banner { left: 0; right: 0; bottom: 0; border-radius: 16px 16px 0 0; border-width: 1px 0 0; max-height: 100vh; max-height: 100dvh; }
	.cpp-btn { flex-basis: 100%; }
	.cpp-banner__actions .cpp-btn--line { order: 3; }
}

/* Contenuti esterni bloccati */
.cpp-blocked { display: block; }
.cpp-blocked:not(.is-loaded) { margin: 0 0 1.5rem; padding: 20px; border-radius: 12px; background: #f1efeb; color: #141414; text-align: center; font: 15px/1.5 var(--cp-font-sans, system-ui, sans-serif); }
.cpp-blocked__text { display: block; margin: 0 0 10px; }
.cpp-blocked__load { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #141414; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

.cpp-blocked__open { margin-left: 12px; color: inherit; font-weight: 600; }
