/* TBPD Consent. Change the look with these variables. */
.tbpd-c {
	--tbpd-c-bg: #ffffff;
	--tbpd-c-ink: #211b14;
	--tbpd-c-muted: #4a4136;
	--tbpd-c-line: #e7e3d9;
	--tbpd-c-accent: #ff5b04;
	--tbpd-c-radius: 16px;
	--tbpd-c-font: inherit;
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	display: flex;
	justify-content: center;
	pointer-events: none;
	font-family: var(--tbpd-c-font);
}
.tbpd-c[hidden] { display: none; }
.tbpd-c *, .tbpd-c *::before, .tbpd-c *::after { box-sizing: border-box; }
.tbpd-c-box {
	pointer-events: auto;
	width: 100%;
	max-width: 1040px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 28px;
	padding: 20px 24px;
	background: var(--tbpd-c-bg);
	color: var(--tbpd-c-ink);
	border: 2px solid var(--tbpd-c-ink);
	border-radius: var(--tbpd-c-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
	font-size: 15px;
	line-height: 1.5;
}
.tbpd-c-main { flex: 1 1 420px; min-width: 0; }
.tbpd-c-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.tbpd-c-sub { font-size: 16px; margin-top: 14px; }
.tbpd-c-body { margin: 0; color: var(--tbpd-c-muted); text-wrap: pretty; }
.tbpd-c-body a { color: var(--tbpd-c-ink); text-decoration: underline; text-underline-offset: 2px; }
.tbpd-c-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
.tbpd-c-btn {
	flex: 1 1 auto;
	min-width: 112px;
	min-height: 46px;
	padding: 0 18px;
	border: 2px solid var(--tbpd-c-ink);
	border-radius: 8px;
	background: var(--tbpd-c-bg);
	color: var(--tbpd-c-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.tbpd-c-btn:hover { background: var(--tbpd-c-ink); color: var(--tbpd-c-bg); }
.tbpd-c-btn:focus-visible, .tbpd-c-switch input:focus-visible + span { outline: 3px solid var(--tbpd-c-accent); outline-offset: 2px; }
.tbpd-c-panel { margin-top: 6px; border-top: 1.5px solid var(--tbpd-c-line); }
.tbpd-c-panel[hidden] { display: none; }
.tbpd-c-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1.5px solid var(--tbpd-c-line); }
.tbpd-c-cat-text { display: flex; flex-direction: column; min-width: 0; }
.tbpd-c-cat-name { font-weight: 600; }
.tbpd-c-cat-desc { color: var(--tbpd-c-muted); font-size: 14px; }
.tbpd-c-on { font-size: 13px; color: var(--tbpd-c-muted); white-space: nowrap; }
.tbpd-c-switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: 0 0 auto; cursor: pointer; }
.tbpd-c-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tbpd-c-switch span { position: absolute; inset: 0; border: 2px solid var(--tbpd-c-ink); border-radius: 999px; background: var(--tbpd-c-bg); transition: background .15s; }
.tbpd-c-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--tbpd-c-ink); transition: transform .15s; }
.tbpd-c-switch input:checked + span { background: var(--tbpd-c-accent); }
.tbpd-c-switch input:checked + span::after { transform: translateX(18px); }
@media (max-width: 640px) {
	.tbpd-c { left: 8px; right: 8px; bottom: 8px; }
	.tbpd-c-box { padding: 16px; }
	.tbpd-c-actions { width: 100%; }
	.tbpd-c-btn { min-width: 0; flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
	.tbpd-c-switch span, .tbpd-c-switch span::after { transition: none; }
}
