.sa-consent[hidden],
.sa-consent-fab[hidden],
.sa-consent [hidden] { display: none !important; }

.sa-consent {
	--sa-c-ink: #1d1a33;
	--sa-c-muted: #5d5a70;
	--sa-c-line: #e4e1ee;
	--sa-c-accent: #6c4cf1;
	--sa-c-accent-dark: #4f33c9;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	padding: 0 16px 16px;
	pointer-events: none;
	font-family: inherit;
}

.sa-consent__box {
	position: relative;
	pointer-events: auto;
	box-sizing: border-box;
	max-width: 960px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	margin: 0 auto;
	padding: 22px 24px 20px;
	background: #fff;
	color: var(--sa-c-ink);
	border: 1px solid var(--sa-c-line);
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(29, 26, 51, .22);
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}
.sa-consent__box *,
.sa-consent__box *::before,
.sa-consent__box *::after { box-sizing: border-box; }

.sa-consent .sa-consent__title {
	margin: 0 36px 6px 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sa-c-ink);
}
.sa-consent .sa-consent__text { margin: 0; color: var(--sa-c-muted); font-size: 14px; }
.sa-consent .sa-consent__text a { color: var(--sa-c-accent-dark); text-decoration: underline; }

.sa-consent .sa-consent__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sa-c-muted);
	cursor: pointer;
	box-shadow: none;
}
.sa-consent .sa-consent__close:hover { background: #f1eff8; color: var(--sa-c-ink); }

.sa-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.sa-consent .sa-consent__btn {
	flex: 1 1 150px;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 1.5px solid var(--sa-c-accent);
	border-radius: 10px;
	background: var(--sa-c-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.sa-consent .sa-consent__btn:hover { background: var(--sa-c-accent-dark); border-color: var(--sa-c-accent-dark); color: #fff; }
.sa-consent .sa-consent__btn--ghost { background: #fff; color: var(--sa-c-accent-dark); }
.sa-consent .sa-consent__btn--ghost:hover { background: #f4f1ff; color: var(--sa-c-accent-dark); }
.sa-consent .sa-consent__btn:focus-visible,
.sa-consent .sa-consent__close:focus-visible,
.sa-consent-fab:focus-visible { outline: 3px solid rgba(108, 76, 241, .45); outline-offset: 2px; }

.sa-consent__panel {
	margin-top: 16px;
	border-top: 1px solid var(--sa-c-line);
}
.sa-consent__cat { padding: 12px 0; border-bottom: 1px solid var(--sa-c-line); }
.sa-consent .sa-consent__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-weight: 700;
	cursor: pointer;
}
.sa-consent .sa-consent__cat-name { font-size: 15px; color: var(--sa-c-ink); }
.sa-consent .sa-consent__always { font-size: 13px; font-weight: 600; color: #15803d; }
.sa-consent .sa-consent__cat-text { margin: 4px 0 0; color: var(--sa-c-muted); font-size: 13px; }

.sa-consent__switch { position: relative; display: inline-block; flex: 0 0 auto; width: 46px; height: 26px; }
.sa-consent .sa-consent__switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.sa-consent__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #cfcbe0;
	transition: background-color .15s;
}
.sa-consent__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .15s;
}
.sa-consent__switch input:checked + .sa-consent__slider { background: var(--sa-c-accent); }
.sa-consent__switch input:checked + .sa-consent__slider::before { transform: translateX(20px); }
.sa-consent__switch input:focus-visible + .sa-consent__slider { outline: 3px solid rgba(108, 76, 241, .45); outline-offset: 2px; }

.sa-consent-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid #e4e1ee;
	border-radius: 50%;
	background: #fff;
	color: #4f33c9;
	box-shadow: 0 6px 18px rgba(29, 26, 51, .18);
	cursor: pointer;
}
.sa-consent-fab:hover { background: #f4f1ff; color: #4f33c9; }

.sa-consent-inline-btn {
	display: inline-block;
	margin: 6px 0 12px;
	padding: 11px 18px;
	border: 1.5px solid #6c4cf1;
	border-radius: 10px;
	background: #6c4cf1;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.sa-consent-inline-btn:hover { background: #4f33c9; border-color: #4f33c9; color: #fff; }

/* Barra inferiore mobile di WoodMart */
@media (max-width: 1024px) {
	.sa-consent { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.sa-consent-fab { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); left: 12px; width: 40px; height: 40px; }
}
@media (max-width: 600px) {
	.sa-consent { padding-left: 8px; padding-right: 8px; }
	.sa-consent__box { padding: 18px 16px 16px; max-height: calc(100vh - 90px); }
	.sa-consent .sa-consent__btn { flex-basis: 100%; }
	.sa-consent .sa-consent__text { font-size: 13px; }
}

/* Pagine Privacy e Cookie Policy */
.sa-legal { max-width: 900px; margin: 0 auto 48px; color: #1d1a33; line-height: 1.65; }
.sa-legal h2 { margin: 32px 0 10px; font-size: 22px; }
.sa-legal h3 { margin: 22px 0 8px; font-size: 18px; }
.sa-legal .sa-legal-meta { color: #6b6880; font-size: 14px; }
.sa-legal-scroll { overflow-x: auto; margin: 10px 0 18px; }
.sa-legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sa-legal-table th,
.sa-legal-table td { padding: 9px 10px; border: 1px solid #e4e1ee; text-align: left; vertical-align: top; }
.sa-legal-table th { background: #f6f5fb; }
.sa-legal-table code { font-size: 13px; word-break: break-all; }
