/* KAMP WCAG 2.2 AA — widget front (gdy moduł włączony) */

.kamp-wcag-widget {
	--kamp-wcag-z: 100050;
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: var(--kamp-wcag-z);
	width: 0;
	height: 0;
	overflow: visible;
	pointer-events: none;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.kamp-wcag-fab {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	z-index: var(--kamp-wcag-z);
	width: 47px;
	height: 47px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: #0f1113;
	color: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	pointer-events: auto;
}

.kamp-wcag-fab:hover,
.kamp-wcag-fab:focus-visible {
	background: var(--kamp-red, #c8102e);
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.kamp-wcag-fab-ico {
	display: flex;
	line-height: 0;
}

.kamp-wcag-fab-ico svg {
	width: 25px;
	height: 25px;
	display: block;
}

.kamp-wcag-panel {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: calc(73px + env(safe-area-inset-bottom, 0px));
	z-index: calc(var(--kamp-wcag-z) + 1);
	width: min(320px, calc(100vw - 32px));
	background: #fff;
	color: #2b2f33;
	border: 1px solid #e5e8eb;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	pointer-events: auto;
}

.kamp-wcag-panel[hidden] {
	display: none !important;
}

.kamp-wcag-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: #0f1113;
	color: #fff;
}

.kamp-wcag-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	width: 36px;
	height: 36px;
	border-radius: 6px;
}

.kamp-wcag-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.kamp-wcag-panel-body {
	padding: 12px 14px 16px;
	display: grid;
	gap: 10px;
}

.kamp-wcag-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.kamp-wcag-row select {
	min-width: 110px;
	min-height: 36px;
	padding: 4px 8px;
	border: 1px solid #c5ccd1;
	border-radius: 6px;
}

.kamp-wcag-row--switch input {
	width: 20px;
	height: 20px;
}

.kamp-wcag-reset {
	margin-top: 4px;
	min-height: 40px;
	border: 1px solid #c5ccd1;
	border-radius: 8px;
	background: #f8f9fa;
	cursor: pointer;
	font-size: 14px;
}

.kamp-wcag-reset:focus-visible,
.kamp-wcag-row select:focus-visible,
.kamp-wcag-row--switch input:focus-visible {
	outline: 3px solid var(--kamp-red, #c8102e);
	outline-offset: 2px;
}

.kamp-wcag-hint {
	margin: -4px 0 0;
	font-size: 12px;
	color: #555d61;
	line-height: 1.35;
}

.kamp-wcag-help {
	margin: 4px 0 0;
	font-size: 13px;
}

.kamp-wcag-help a {
	color: var(--kamp-red, #c8102e);
	text-decoration: underline;
}

.kamp-wcag .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Profile dostępności */
html.kamp-wcag-contrast {
	--kamp-red: #a00d25;
	--kamp-accent: #a00d25;
	--kamp-accent-dark: #7a0a1c;
	--kamp-bg: #ffffff;
	--kamp-surface: #ffffff;
	--kamp-text: #000000;
	--kamp-muted: #1a1d1f;
	--kamp-border: #000000;
	--kamp-soft: #ffffff;
}

html.kamp-wcag-contrast body.kamp-host {
	background: #fff !important;
	color: #000 !important;
}

html.kamp-wcag-contrast .kamp-section,
html.kamp-wcag-contrast .kamp-page-hero__card,
html.kamp-wcag-contrast .kamp-footer,
html.kamp-wcag-contrast .kamp-header,
html.kamp-wcag-contrast .kamp-wcag-panel {
	background: #fff !important;
	color: #000 !important;
	border-color: #000 !important;
}

html.kamp-wcag-contrast a:not(.kamp-btn):not(.kamp-scroll-top) {
	color: #0000ee !important;
}

html.kamp-wcag-underline a:not(.kamp-btn):not(.kamp-scroll-top):not(.kamp-skip) {
	text-decoration: underline !important;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1.5px;
}

/* Keep review bodies / stars readable — never inherit link chrome */
html.kamp-wcag-underline .kamp-google-reviews__item,
html.kamp-wcag-underline .kamp-google-reviews__item *,
html.kamp-wcag-contrast .kamp-google-reviews__item,
html.kamp-wcag-contrast .kamp-google-reviews__item * {
	color: #000 !important;
	text-decoration: none !important;
}
html.kamp-wcag-underline .kamp-google-reviews__summary,
html.kamp-wcag-underline .kamp-google-reviews__badge,
html.kamp-wcag-contrast .kamp-google-reviews__summary,
html.kamp-wcag-contrast .kamp-google-reviews__badge {
	color: #000 !important;
	text-decoration: none !important;
}

html.kamp-wcag-motion *,
html.kamp-wcag-motion *::before,
html.kamp-wcag-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
	html.kamp-wcag-on *,
	html.kamp-wcag-on *::before,
	html.kamp-wcag-on *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

html.kamp-wcag-dyslexia body,
html.kamp-wcag-dyslexia button,
html.kamp-wcag-dyslexia input,
html.kamp-wcag-dyslexia select,
html.kamp-wcag-dyslexia textarea,
html.kamp-wcag-dyslexia a,
html.kamp-wcag-dyslexia label,
html.kamp-wcag-dyslexia p,
html.kamp-wcag-dyslexia li,
html.kamp-wcag-dyslexia h1,
html.kamp-wcag-dyslexia h2,
html.kamp-wcag-dyslexia h3 {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
	letter-spacing: 0.03em;
	word-spacing: 0.08em;
	line-height: 1.6;
}

html.kamp-wcag-text-112 { font-size: 112% !important; }
html.kamp-wcag-text-125 { font-size: 125% !important; }
html.kamp-wcag-text-150 { font-size: 150% !important; }

@supports (zoom: 1) {
	html.kamp-wcag-text-112 { font-size: 100% !important; zoom: 1.12; }
	html.kamp-wcag-text-125 { font-size: 100% !important; zoom: 1.25; }
	html.kamp-wcag-text-150 { font-size: 100% !important; zoom: 1.5; }
}

html.kamp-wcag-on :focus-visible {
	outline: 3px solid var(--kamp-red, #c8102e) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 3px #fff !important;
	scroll-margin-top: max(96px, calc(var(--kamp-header-height, 52px) + 28px));
	scroll-margin-bottom: 110px;
}

html.kamp-wcag-on #kamp-main:focus {
	outline: none;
}

html.kamp-wcag-on #kamp-main:focus-visible {
	outline: 3px solid var(--kamp-red, #c8102e) !important;
	outline-offset: 4px !important;
	box-shadow: 0 0 0 3px #fff !important;
}

.kamp-wcag-fab:focus-visible {
	outline: 3px solid #fff !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 3px var(--kamp-red, #c8102e) !important;
}

@media (max-width: 478px) {
	.kamp-wcag-fab {
		left: 12px;
		bottom: 12px;
		width: 44px;
		height: 44px;
	}

	.kamp-wcag-fab-ico svg {
		width: 24px;
		height: 24px;
	}

	.kamp-wcag-panel {
		left: 12px;
		bottom: 66px;
	}

	html.kamp-wcag-on :focus-visible {
		scroll-margin-bottom: 88px;
	}
}
