/* Style Italiano Endodontics — cookie consent. Colours match the site's footer blue. */
.si-cc {
	--si-cc-blue: #0d5e84;
	--si-cc-blue-dark: #0a4a69;
	--si-cc-ink: #1d2a33;
	--si-cc-muted: #55626b;
	--si-cc-line: #dbe3e8;
	position: fixed;
	z-index: 2147483000;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: min(720px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
	color: var(--si-cc-ink);
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(13, 37, 51, .28);
	font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 400;
}
.si-cc[hidden] { display: none; }
.si-cc *, .si-cc *::before, .si-cc *::after { box-sizing: border-box; }
.si-cc__inner { padding: 22px 24px 20px; }
.si-cc__close {
	position: absolute; top: 10px; right: 10px;
	width: 36px; height: 36px; padding: 0;
	border: 0; background: transparent; color: var(--si-cc-muted);
	font-size: 22px; line-height: 1; cursor: pointer; border-radius: 4px;
}
.si-cc__close:hover { background: #f1f5f7; color: var(--si-cc-ink); }
.si-cc__title { margin: 0 40px 6px 0; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--si-cc-ink); }
.si-cc__text { margin: 0 0 16px; color: var(--si-cc-muted); }
.si-cc__text a { color: var(--si-cc-blue); text-decoration: underline; }
.si-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.si-cc__btn {
	flex: 0 1 auto; min-height: 44px; padding: 10px 20px;
	border-radius: 4px; border: 1px solid var(--si-cc-blue);
	background: #fff; color: var(--si-cc-blue);
	font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.si-cc__btn:hover { background: #eef5f9; }
.si-cc__btn--primary { background: var(--si-cc-blue); color: #fff; }
.si-cc__btn--primary:hover { background: var(--si-cc-blue-dark); }
.si-cc__btn--link { border-color: transparent; text-decoration: underline; margin-right: auto; padding-left: 0; padding-right: 0; }
.si-cc__btn--link:hover { background: transparent; }
.si-cc__btn:focus-visible, .si-cc__close:focus-visible, .si-cc__switch input:focus-visible + span {
	outline: 3px solid #f2b705; outline-offset: 2px;
}

/* Reject and Accept share the same weight on purpose (Garante 2021: no nudging towards consent). */

/* Preferences */
.si-cc__prefs { margin: 4px 0 16px; border-top: 1px solid var(--si-cc-line); }
.si-cc__prefs[hidden] { display: none; }
.si-cc__cat { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--si-cc-line); }
.si-cc__cat h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--si-cc-ink); }
.si-cc__cat p { margin: 0; font-size: 14px; color: var(--si-cc-muted); }
.si-cc__always { font-size: 13px; color: var(--si-cc-muted); white-space: nowrap; padding-top: 2px; }
.si-cc__switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; margin-top: 2px; }
.si-cc__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.si-cc__switch span { position: absolute; inset: 0; background: #b8c4cc; border-radius: 28px; transition: background .15s; }
.si-cc__switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.si-cc__switch input:checked + span { background: var(--si-cc-blue); }
.si-cc__switch input:checked + span::after { transform: translateX(20px); }

@media (max-width: 560px) {
	.si-cc { bottom: 0; width: 100%; border-radius: 10px 10px 0 0; }
	.si-cc__inner { padding: 20px 16px 16px; }
	.si-cc__actions { flex-direction: column-reverse; }
	.si-cc__btn { width: 100%; }
	.si-cc__btn--link { margin-right: 0; }
}

/* Video placeholder (same look as the old click-to-load snippet) */
.si-embed {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; width: 100%; aspect-ratio: 16 / 9; padding: 20px;
	background: #0d5e84; color: #fff; text-align: center; border-radius: 4px; font-family: inherit;
}
.si-embed__title { font-weight: 600; font-size: 16px; line-height: 1.35; max-width: 90%; margin: 0; }
.si-embed__btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: #fff; color: #0d5e84; border: 0; border-radius: 3px;
	padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit;
}
.si-embed__btn:hover { background: #e6f0f5; }
.si-embed__btn svg { width: 18px; height: 18px; fill: currentColor; }
.si-embed__note { font-size: 12px; line-height: 1.4; opacity: .9; margin: 0; max-width: 90%; }
.si-embed__note a, .si-embed__note button {
	color: #fff; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
/* When the iframe was absolutely positioned inside a responsive wrapper, fill the same box. */
.si-embed.si-embed--fill { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }

.si-cc-reopen { cursor: pointer; }
