/* ---- Consent.php: baner zgody na cookies (Consent Mode v2) ----
   Własna, stała paleta (granat + pomarańcz) niezależna od brandingu
   strony/klubu — to banner zgodności, nie element marki, więc musi
   wyglądać identycznie na myclass.pl, classme.pl i każdej wizytówce
   klubu, niezależnie od jej własnego accent_color. */
.cm-consent {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(10, 17, 38, 0); overflow-y: auto;
	transition: background .35s ease;
}
.cm-consent[hidden] { display: none; }
.cm-consent.is-visible { background: rgba(10, 17, 38, .55); }
.cm-consent-card {
	width: 100%; max-width: 460px; margin: auto;
	background: #fff; border-radius: 22px;
	box-shadow: 0 30px 70px rgba(19, 34, 75, .35), 0 2px 8px rgba(19, 34, 75, .08);
	padding: 26px 26px 22px;
	transform: scale(.94); opacity: 0;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
}
.cm-consent.is-visible .cm-consent-card { transform: scale(1); opacity: 1; }

.cm-consent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cm-consent-cookie { flex: 0 0 auto; display: flex; }
.cm-consent-head h2 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #13224B; }

.cm-consent-body { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #3C4A6B; }
.cm-consent-body a { color: #F6762A; font-weight: 700; text-decoration: none; }
.cm-consent-body a:hover { text-decoration: underline; }

.cm-consent-prefs { display: flex; flex-direction: column; gap: 14px; margin: 2px 0 16px; padding-top: 14px; border-top: 1px solid rgba(19, 34, 75, .1); }
.cm-consent-prefs[hidden] { display: none; }
.cm-consent-pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; cursor: pointer; }
.cm-consent-pref-text { flex: 1 1 auto; }
.cm-consent-pref-text strong { display: block; font-size: 13.5px; font-weight: 800; color: #13224B; margin-bottom: 2px; }
.cm-consent-pref-text small { display: block; font-size: 12.5px; line-height: 1.5; color: #5C6B8A; }

.cm-consent-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cm-consent-switch { flex: 0 0 auto; width: 40px; height: 24px; border-radius: 999px; background: #E3E7F2; position: relative; margin-top: 2px; transition: background .2s ease; }
.cm-consent-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(19, 34, 75, .3); transition: transform .2s ease; }
.cm-consent-toggle:checked + .cm-consent-switch { background: #F6762A; }
.cm-consent-toggle:checked + .cm-consent-switch span { transform: translateX(16px); }
.cm-consent-toggle:focus-visible + .cm-consent-switch { outline: 3px solid #F6762A; outline-offset: 2px; }
.cm-consent-switch--locked { background: #13224B; opacity: .55; }
.cm-consent-switch--locked span { transform: translateX(16px); }

.cm-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-consent-actions[hidden] { display: none; }
.cm-consent-actions--save { margin-top: 2px; }
.cm-consent-btn {
	flex: 1 1 auto; border-radius: 12px; padding: 11px 14px;
	font: 800 13.5px/1.2 'Manrope', system-ui, sans-serif; white-space: nowrap;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cm-consent-btn--primary { background: #F6762A; color: #fff; }
.cm-consent-btn--primary:hover { background: #DE661E; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(246, 118, 42, .35); }
.cm-consent-btn--outline { background: #fff; border-color: #13224B; color: #13224B; }
.cm-consent-btn--outline:hover { background: #F3F5FA; }
.cm-consent-btn--ghost { flex: 0 0 auto; background: transparent; color: #13224B; text-decoration: underline; padding: 11px 6px; }
.cm-consent-btn:focus-visible { outline: 3px solid #F6762A; outline-offset: 2px; }

@media (max-width: 640px) {
	.cm-consent { padding: 16px; }
	.cm-consent-card { padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
	.cm-consent-actions { flex-direction: column; }
	.cm-consent-btn { flex: 1 1 100%; }
	.cm-consent-btn--ghost { text-align: left; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
	.cm-consent-card { transition: none; }
}

/* ---- Rejestr cookies na /legal/?doc=cookies (tabela dostawców) ---- */
.cm-cookie-registry { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.cm-cookie-registry th, .cm-cookie-registry td { padding: 10px 12px; border-bottom: 1px solid var(--cm-border, #e5e9f2); text-align: left; vertical-align: top; }
.cm-cookie-registry th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #5C6B8A; font-weight: 800; }
.cm-cookie-registry td { color: #3C4A6B; }
.cm-cookie-cat { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.cm-cookie-cat--necessary { background: rgba(19, 34, 75, .1); color: #13224B; }
.cm-cookie-cat--analytics { background: rgba(52, 133, 255, .12); color: #1958B8; }
.cm-cookie-cat--marketing { background: rgba(246, 118, 42, .14); color: #C2530F; }
