/* Laio Post-deployment: banner cookie. Colori dalle variabili impostate nel pannello. */
.lpd-root[hidden], .lpd-reopen[hidden] { display: none !important; }
.lpd-root { position: fixed; z-index: 2147483000; inset: auto 0 0 0; pointer-events: none; font-family: inherit; }
.lpd-root *, .lpd-root *::before, .lpd-root *::after { box-sizing: border-box; }
.lpd-overlay { display: none; }
.lpd-banner {
	pointer-events: auto; position: relative; background: var(--lpd-bg); color: var(--lpd-text);
	border-radius: var(--lpd-radius); box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
	padding: 22px 22px 18px; font-size: 14px; line-height: 1.5; outline: none;
	max-height: calc(100vh - 32px); overflow: auto;
}
.lpd-layout-box .lpd-banner { position: fixed; bottom: 16px; width: min(420px, calc(100vw - 32px)); }
.lpd-layout-box.lpd-pos-left .lpd-banner { left: 16px; }
.lpd-layout-box.lpd-pos-right .lpd-banner { right: 16px; }
.lpd-layout-bar .lpd-banner { border-radius: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 18px max(24px, calc((100vw - 1200px) / 2)); }
.lpd-layout-bar .lpd-main { flex: 1 1 420px; }
.lpd-layout-bar .lpd-prefs { flex: 1 1 100%; }
.lpd-layout-modal { inset: 0; display: flex; align-items: center; justify-content: center; }
.lpd-layout-modal .lpd-overlay { display: block; position: absolute; inset: 0; background: rgba(0,0,0,.45); pointer-events: auto; }
.lpd-layout-modal .lpd-banner { width: min(520px, calc(100vw - 32px)); }
.lpd-root .lpd-banner:focus, .lpd-root .lpd-banner:focus-visible { outline: none !important; }
.lpd-title { margin: 0 28px 6px 0 !important; font-weight: 700; font-size: 16px; color: inherit; }
.lpd-msg { margin: 0 0 14px !important; color: inherit; opacity: .9; }
.lpd-msg a { color: inherit; text-decoration: underline; }
.lpd-close {
	position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; padding: 0;
	background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; opacity: .7;
}
.lpd-close:hover, .lpd-close:focus-visible { opacity: 1; background: rgba(127,127,127,.15); }
.lpd-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.lpd-layout-bar .lpd-actions { flex: 0 0 auto; }
.lpd-btn {
	appearance: none; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
	border-radius: calc(var(--lpd-radius) * .7); padding: 10px 16px; border: 1px solid var(--lpd-accent); min-height: 40px;
}
.lpd-btn[hidden] { display: none; }
.lpd-btn-main { background: var(--lpd-accent); color: var(--lpd-accent-text); flex: 1 1 auto; }
.lpd-btn-save { background: transparent; color: var(--lpd-text); }
.lpd-btn-link { background: transparent; border-color: transparent; color: var(--lpd-text); text-decoration: underline; padding-left: 4px; padding-right: 4px; margin-right: auto; }
.lpd-btn:hover { filter: brightness(1.08); }
.lpd-btn:focus-visible, .lpd-switch input:focus-visible + .lpd-slider { outline: 2px solid var(--lpd-accent); outline-offset: 2px; }
.lpd-prefs { border-top: 1px solid rgba(127,127,127,.25); margin: 0 0 14px; padding-top: 6px; }
.lpd-prefs[hidden] { display: none; }
.lpd-cat { padding: 10px 0; border-bottom: 1px solid rgba(127,127,127,.15); }
.lpd-cat-desc { margin: 4px 0 0 52px !important; font-size: 13px; opacity: .8; }
.lpd-cat-svc { display: block; margin-top: 2px; font-style: italic; }
.lpd-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; position: relative; }
.lpd-switch input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.lpd-slider { flex: 0 0 40px; height: 22px; border-radius: 22px; background: rgba(127,127,127,.4); position: relative; transition: background .2s; }
.lpd-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.lpd-switch input:checked + .lpd-slider { background: var(--lpd-accent); }
.lpd-switch input:checked + .lpd-slider::after { transform: translateX(18px); }
.lpd-switch input:disabled + .lpd-slider { opacity: .55; }
.lpd-reopen {
	position: fixed; bottom: 16px; z-index: 2147482999; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--lpd-bg); color: var(--lpd-text); box-shadow: 0 4px 16px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
	display: flex; align-items: center; justify-content: center; padding: 0; opacity: .85;
}
.lpd-reopen:hover, .lpd-reopen:focus-visible { opacity: 1; }
.lpd-reopen.lpd-pos-left { left: 16px; }
.lpd-reopen.lpd-pos-right { right: 16px; }
.lpd-ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
	background: #f2f2f2; color: #333; padding: 24px; border-radius: 6px; min-height: 200px; width: 100%; font-size: 14px;
}
.lpd-ph p { margin: 0; max-width: 46ch; }
.lpd-ph-btn { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 4px; border: 0; background: #1d1d1f; color: #fff; cursor: pointer; }
@media (max-width: 600px) {
	.lpd-layout-box .lpd-banner { left: 8px !important; right: 8px !important; bottom: 8px; width: auto; }
	.lpd-btn-main { flex: 1 1 40%; }
	.lpd-btn-link { flex: 1 1 100%; text-align: center; margin: 0; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .lpd-slider, .lpd-slider::after { transition: none; } }
