/* Lead Tracking & Consent – banner + preference centre */

:root {
	--ltc-accent: #0d76ce;
	--ltc-ink: #1c2333;
	--ltc-muted: #4b5565;
	--ltc-border: #e3e6ee;
}

/* Hide the theme's own simple cookie bar – this plugin replaces it. */
.smd-cookie { display: none !important; }

/* ---------- banner ---------- */
.ltc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: #ffffff;
	border-top: 1px solid var(--ltc-border);
	box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
	padding: 16px 0;
	display: none;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ltc-muted);
}
.ltc-banner.is-visible { display: block; }
.ltc-banner__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.ltc-banner__text { flex: 1 1 420px; }
.ltc-banner__text strong { color: var(--ltc-ink); display: block; margin-bottom: 4px; font-size: 15px; }
.ltc-banner__text p { margin: 0; }
.ltc-banner__text a { color: var(--ltc-ink); text-decoration: underline; }
.ltc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ltc-btn {
	border: 0;
	cursor: pointer;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	padding: 11px 18px;
	line-height: 1;
	transition: filter 0.15s ease, background 0.15s ease;
}
.ltc-btn:hover { filter: brightness(0.95); }
.ltc-btn--accent { background: var(--ltc-accent); color: #ffffff; }
.ltc-btn--ghost { background: #eef1f6; color: var(--ltc-ink); }

/* ---------- preference modal ---------- */
.ltc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99995;
	background: rgba(15, 23, 42, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ltc-overlay.is-open { display: flex; }
.ltc-modal {
	background: #ffffff;
	border-radius: 12px;
	width: 100%;
	max-width: 680px;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
	font-size: 14px;
	color: var(--ltc-muted);
}
.ltc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--ltc-border);
	color: var(--ltc-ink);
	font-size: 16px;
}
.ltc-close {
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--ltc-muted);
	padding: 0 4px;
}
.ltc-modal__body { padding: 8px 20px; overflow-y: auto; }
.ltc-modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid var(--ltc-border);
}

.ltc-cat { border-bottom: 1px solid var(--ltc-border); padding: 14px 0; }
.ltc-cat:last-child { border-bottom: 0; }
.ltc-cat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ltc-cat__head strong { color: var(--ltc-ink); font-size: 15px; }
.ltc-cat__head p { margin: 4px 0 0; }
.ltc-always { color: var(--ltc-accent); font-weight: 700; white-space: nowrap; font-size: 13px; margin-top: 3px; }

/* toggle switch */
.ltc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.ltc-switch input { opacity: 0; width: 0; height: 0; }
.ltc-switch span {
	position: absolute;
	inset: 0;
	background: #cbd2df;
	border-radius: 26px;
	cursor: pointer;
	transition: background 0.2s;
}
.ltc-switch span::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ltc-switch input:checked + span { background: var(--ltc-accent); }
.ltc-switch input:checked + span::before { transform: translateX(20px); }
.ltc-switch input:focus-visible + span { outline: 3px solid rgba(13, 118, 206, 0.5); }

/* cookie table */
.ltc-table-wrap { overflow-x: auto; margin-top: 10px; }
.ltc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ltc-table th,
.ltc-table td { text-align: left; padding: 6px 10px; border: 1px solid var(--ltc-border); vertical-align: top; }
.ltc-table th { background: #f5f7fb; color: var(--ltc-ink); }
.ltc-table code { background: #f5f7fb; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* floating reopen button – round cookie icon */
.ltc-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99980;
	width: 48px;
	height: 48px;
	border: 1px solid var(--ltc-border);
	background: #ffffff;
	color: var(--ltc-ink);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
	transition: transform 0.15s ease, background 0.15s ease;
}
.ltc-float:hover { background: #f5f7fb; transform: scale(1.07); }
.ltc-float svg { display: block; }

@media (max-width: 640px) {
	.ltc-banner__actions { width: 100%; }
	.ltc-banner__actions .ltc-btn { flex: 1 1 auto; }
	.ltc-float { left: 10px; bottom: 10px; }
}
