/* VemRent Cookie Consent — stile banner & pannello.
   Font e dimensioni ereditano dal tema (Source Sans 3 / Inter); le misure sono
   in em così da rispettare la scala tipografica del sito. Override opzionali da BO. */

#vemcc-root {
	position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
	font-family: var(--vemcc-font, inherit);
	font-size: 100%; /* eredita la base del tema (16px); sovrascrivibile via scala */
	line-height: 1.6;
}
#vemcc-root[hidden] { display: none; }
#vemcc-root .vemcc-banner,
#vemcc-root .vemcc-prefs { pointer-events: auto; }

/* ---------- Banner primo livello ---------- */
.vemcc-banner {
	position: fixed; left: 0; right: 0; margin: 0 auto;
	max-width: 1080px; background: #fff; color: var(--vemcc-dark, #1c2b38);
	box-shadow: 0 -2px 30px rgba(0,0,0,.18); border-radius: 14px 14px 0 0;
	padding: 1.4em 1.5em; box-sizing: border-box;
}
.vemcc-banner.vemcc--bottom { bottom: 0; }
.vemcc-banner.vemcc--center { top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 14px; max-width: 560px; }
.vemcc-banner[hidden] { display: none; }
.vemcc-banner__title { font-family: var(--vemcc-font-title, inherit); font-size: 1.25em; font-weight: 700; margin: 0 0 .5em; color: var(--vemcc-dark,#1c2b38); line-height: 1.25; }
.vemcc-banner__body { font-size: .9em; line-height: 1.55; margin: 0 0 1em; color: #333; }
.vemcc-banner__body a { color: var(--vemcc-accent, #3a7230); text-decoration: underline; }
.vemcc-banner__btns { display: flex; gap: .65em; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Pulsanti ---------- */
.vemcc-btn {
	font-family: inherit; font-size: .9em; font-weight: 600; line-height: 1; cursor: pointer;
	padding: .8em 1.25em; border-radius: 8px; border: 2px solid transparent; transition: .15s;
}
.vemcc-btn--primary { background: var(--vemcc-primary, #EF9F27); color: #1c2b38; border-color: var(--vemcc-primary,#EF9F27); }
.vemcc-btn--primary:hover { filter: brightness(.95); }
.vemcc-btn--accent { background: var(--vemcc-accent, #3a7230); color: #fff; border-color: var(--vemcc-accent,#3a7230); }
.vemcc-btn--ghost { background: #fff; color: var(--vemcc-dark,#1c2b38); border-color: #cfd6dc; }
.vemcc-btn--ghost:hover { border-color: var(--vemcc-dark,#1c2b38); }

/* ---------- Pannello preferenze ---------- */
.vemcc-prefs { position: fixed; inset: 0; background: rgba(20,30,40,.55); display: flex; align-items: center; justify-content: center; padding: 1em; }
.vemcc-prefs[hidden] { display: none; }
.vemcc-prefs__box { background: #fff; max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; border-radius: 14px; padding: 1.4em 1.5em; box-sizing: border-box; }
.vemcc-prefs__head { display: flex; align-items: center; justify-content: space-between; }
.vemcc-prefs__head h2 { font-family: var(--vemcc-font-title, inherit); font-size: 1.3em; margin: 0; color: var(--vemcc-dark,#1c2b38); }
.vemcc-x { background: none; border: 0; font-size: 1.8em; line-height: 1; cursor: pointer; color: #888; }
.vemcc-prefs__intro { font-size: .9em; color: #555; margin: .5em 0 1.1em; }

.vemcc-cat { border-top: 1px solid #eee; padding: .9em 0; }
.vemcc-cat__row { display: flex; align-items: center; gap: .75em; }
.vemcc-cat__name { font-size: .95em; font-weight: 700; color: var(--vemcc-dark,#1c2b38); }
.vemcc-cat__always { margin-left: auto; font-size: .82em; font-weight: 600; color: var(--vemcc-accent,#3a7230); }
.vemcc-cat__desc { font-size: .82em; line-height: 1.5; color: #555; margin: .5em 0 0; }
.vemcc-prefs__btns { display: flex; gap: .65em; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.25em; }

/* ---------- Switch ---------- */
.vemcc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.vemcc-switch input { opacity: 0; width: 0; height: 0; }
.vemcc-slider { position: absolute; inset: 0; background: #c9ced3; border-radius: 26px; transition: .2s; }
.vemcc-slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.vemcc-switch input:checked + .vemcc-slider { background: var(--vemcc-accent, #3a7230); }
.vemcc-switch input:checked + .vemcc-slider:before { transform: translateX(20px); }
.vemcc-switch input:focus-visible + .vemcc-slider { outline: 2px solid var(--vemcc-dark,#1c2b38); outline-offset: 2px; }

/* ---------- Pulsante riapri ---------- */
.vemcc-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482000;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: #1c2b38; box-shadow: 0 2px 12px rgba(0,0,0,.22);
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.vemcc-reopen[hidden] { display: none; }
.vemcc-reopen:hover { transform: scale(1.06); }
.vemcc-reopen i { color: #fff; font-size: 20px; line-height: 1; }

/* ---------- Facade YouTube ---------- */
.vemcc-yt-ph {
	font-family: var(--vemcc-font, inherit);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	background: #f7f4f0; border: 1px dashed #cfd6dc; border-radius: 10px; padding: 28px 20px; text-align: center; min-height: 180px;
}
.vemcc-yt-ph p { margin: 0; font-size: .9em; color: #444; max-width: 360px; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.vemcc-banner { padding: 1.1em 1em; border-radius: 12px 12px 0 0; }
	.vemcc-banner__btns { justify-content: stretch; }
	.vemcc-banner__btns .vemcc-btn { flex: 1 1 100%; padding: .85em 1em; }
	.vemcc-prefs__btns .vemcc-btn { flex: 1 1 100%; }
}
