/* Steric Cookie Consent */
#steric-consent {
	--sc-blue: #157ae8;
	--sc-ink: #1d1d1f;
	--sc-muted: #55575c;
	--sc-line: #d8dbe0;
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--sc-ink);
}

#steric-consent [hidden] { display: none !important; }

#steric-consent .sc-banner {
	position: fixed;
	right: 16px;
	bottom: 76px; /* Sits above the accessibility button in the same corner. */
	z-index: 2147483300;
	width: min(560px, calc(100vw - 32px));
	box-sizing: border-box;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--sc-line);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}

#steric-consent .sc-text { margin: 0 0 14px; color: var(--sc-ink); font-size: 14px; }

#steric-consent a { color: var(--sc-blue); text-decoration: underline; }

#steric-consent .sc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

#steric-consent .sc-btn {
	flex: 1 1 auto;
	margin: 0;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	color: var(--sc-ink);
	background: #fff;
	border: 2px solid var(--sc-ink);
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
}

#steric-consent .sc-btn:hover { background: #f1f3f6; }

#steric-consent .sc-btn.sc-primary { color: #fff; background: var(--sc-blue); border-color: var(--sc-blue); }
#steric-consent .sc-btn.sc-primary:hover { background: #0f63bf; border-color: #0f63bf; }

#steric-consent .sc-btn.sc-plain { border-color: transparent; text-decoration: underline; }

#steric-consent button:focus-visible,
#steric-consent a:focus-visible,
#steric-consent input:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 2px;
}

#steric-consent .sc-dialog {
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	box-sizing: border-box;
	padding: 20px 22px;
	color: var(--sc-ink);
	background: #fff;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

#steric-consent .sc-dialog::backdrop { background: rgba(0, 0, 0, .5); }

#steric-consent .sc-dialog p { margin: 0 0 14px; font-size: 14px; color: var(--sc-muted); }

#steric-consent .sc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

#steric-consent .sc-dialog h2 { margin: 0; font-family: inherit; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--sc-ink); text-transform: none; letter-spacing: normal; }

#steric-consent .sc-close {
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	font-weight: 400;
	font-size: 26px;
	line-height: 1;
	font-family: inherit;
	color: var(--sc-ink);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

#steric-consent .sc-close:hover { background: #f1f3f6; }

#steric-consent .sc-cat {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--sc-line);
	font-size: 14px;
	color: var(--sc-muted);
}

#steric-consent .sc-cat:last-of-type { margin-bottom: 14px; border-bottom: 1px solid var(--sc-line); }

#steric-consent .sc-cat input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sc-blue); }

/* The theme styles every <label> site-wide (uppercase, bold, own font); undo that here. */
#steric-consent .sc-cat label {
	display: block;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: normal;
	color: var(--sc-muted);
}

#steric-consent .sc-cat strong {
	display: block;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	color: var(--sc-ink);
}
