/* ==========================================================================
   RBM - DOSTĘPNOŚĆ (WCAG 2.1 AA) I COOKIES (RODO / PKE)
   Uniwersalne style z pełną konfiguracją zmiennych CSS oraz trybem ciemnym
   ========================================================================== */
:root {
	--rbm-dc-accent: #E5007E;
	--rbm-dc-blue: #009FE3;
	--rbm-dc-navy: #0b2545;
	--rbm-dc-text: #1e293b;
	--rbm-dc-muted: #64748b;
	--rbm-dc-surface: #ffffff;
	--rbm-dc-surface-soft: #f4f8fc;
	--rbm-dc-border: rgba(11, 37, 69, 0.12);
	--rbm-dc-shadow: 0 16px 44px rgba(11, 37, 69, 0.22);
	--rbm-dc-btn-accept-bg: #E5007E;
	--rbm-dc-btn-accept-text: #ffffff;
	--rbm-dc-btn-save-bg: #009FE3;
	--rbm-dc-btn-save-text: #ffffff;
	--rbm-dc-btn-reject: #0b2545;
	--rbm-dc-fab-bg: #0b2545;
	--rbm-dc-fab-hover: #E5007E;
	--rbm-dc-fab-text: #ffffff;
	--rbm-dc-bar-color: #E5007E;
	--rbm-dc-bar-height: 4px;
	--rbm-dc-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rbm-dc-ui,
.rbm-dc-ui * {
	box-sizing: border-box;
}

.rbm-dc-ui {
	font-family: var(--rbm-dc-font);
}

html.rbm-dark-mode .rbm-dc-ui {
	--rbm-dc-navy: #f1f5f9;
	--rbm-dc-text: #e2e8f0;
	--rbm-dc-muted: #94a3b8;
	--rbm-dc-surface: #132038;
	--rbm-dc-surface-soft: #1a2944;
	--rbm-dc-border: rgba(255, 255, 255, 0.14);
	--rbm-dc-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
	--rbm-dc-btn-reject: #e2e8f0;
}

/* ==========================================================================
   1. SKIP-LINK (WCAG 2.1 AA — widoczny po naciśnięciu Tab)
   ========================================================================== */
a.rbm-dc-skip-link {
	position: fixed;
	top: -120px;
	left: 16px;
	z-index: 1000010;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--rbm-dc-navy);
	color: #ffffff !important;
	border: 2px solid #FFCC00;
	font-family: var(--rbm-dc-font);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
	transition: top 0.18s ease;
}

a.rbm-dc-skip-link:focus {
	top: 16px;
	outline: 3px solid var(--rbm-dc-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   2. PŁYWAJĄCY PRZYCISK DOSTĘPNOŚCI (WCAG)
   ========================================================================== */
.rbm-dc-ui button.rbm-wcag-fab {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: fixed;
	z-index: 999992;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px !important;
	padding: 0 16px 0 12px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	border: 2px solid rgba(255, 255, 255, 0.85) !important;
	background: var(--rbm-dc-fab-bg) !important;
	color: var(--rbm-dc-fab-text) !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 10px 26px color-mix(in srgb, var(--rbm-dc-fab-bg) 34%, transparent) !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.rbm-dc-ui button.rbm-wcag-fab:not(.has-label) {
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	justify-content: center;
}

.rbm-dc-ui button.rbm-wcag-fab:hover {
	transform: translateY(-2px);
	background: var(--rbm-dc-fab-hover) !important;
	box-shadow: 0 14px 30px color-mix(in srgb, var(--rbm-dc-fab-hover) 42%, transparent) !important;
}

.rbm-wcag-fab.rbm-pos-bottom-left { left: 18px; bottom: 18px; }
.rbm-wcag-fab.rbm-pos-bottom-right { right: 18px; bottom: 18px; }
.rbm-wcag-fab.rbm-pos-middle-left { left: 12px; top: 50%; transform: translateY(-50%); }
.rbm-wcag-fab.rbm-pos-middle-right { right: 12px; top: 50%; transform: translateY(-50%); }
.rbm-wcag-fab.rbm-pos-middle-left:hover,
.rbm-wcag-fab.rbm-pos-middle-right:hover { transform: translateY(calc(-50% - 2px)); }

.rbm-wcag-fab-icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rbm-wcag-fab-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.rbm-wcag-active-dot {
	display: none;
	position: absolute;
	top: -2px;
	right: -2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #FFCC00;
	border: 2px solid #0b2545;
}

.rbm-wcag-fab.has-active-mods .rbm-wcag-active-dot {
	display: block;
}

/* ==========================================================================
   3. PANEL BOCZNY DOSTĘPNOŚCI (DRAWER)
   ========================================================================== */
.rbm-dc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999994;
	background: rgba(8, 17, 36, 0.52);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.rbm-dc-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.rbm-wcag-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: min(370px, 92vw);
	height: 100dvh;
	z-index: 999996;
	background: var(--rbm-dc-surface);
	color: var(--rbm-dc-navy);
	border-right: 1px solid var(--rbm-dc-border);
	box-shadow: 12px 0 42px rgba(0, 0, 0, 0.26);
	display: flex;
	flex-direction: column;
	transform: translateX(-104%);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rbm-wcag-drawer.is-open {
	transform: translateX(0);
}

.rbm-wcag-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	background: var(--rbm-dc-surface-soft);
	border-bottom: 1px solid var(--rbm-dc-border);
}

.rbm-wcag-head-left {
	display: flex;
	align-items: stretch;
	gap: 11px;
}

.rbm-dc-accent-bar {
	width: 5px;
	align-self: stretch;
	min-height: 28px;
	border-radius: 999px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--rbm-dc-accent) 82%, #ffffff) 0%, var(--rbm-dc-accent) 100%);
	flex-shrink: 0;
}

.rbm-wcag-head h2,
.rbm-cookie-modal-head h3 {
	margin: 0 !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--rbm-dc-navy) !important;
	line-height: 1.2 !important;
}

.rbm-wcag-sub {
	margin: 3px 0 0 !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	color: var(--rbm-dc-muted) !important;
}

.rbm-dc-ui button.rbm-dc-close {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 10px !important;
	border: 1px solid var(--rbm-dc-border) !important;
	background: var(--rbm-dc-surface) !important;
	color: var(--rbm-dc-navy) !important;
	font-size: 22px !important;
	line-height: 1 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none !important;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rbm-dc-ui button.rbm-dc-close:hover {
	background: var(--rbm-dc-accent) !important;
	border-color: var(--rbm-dc-accent) !important;
	color: #ffffff !important;
}

.rbm-wcag-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rbm-wcag-group-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rbm-dc-muted);
	margin-bottom: 9px;
}

.rbm-wcag-stepper {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 12px;
	background: var(--rbm-dc-surface-soft);
	border: 1px solid var(--rbm-dc-border);
}

.rbm-dc-ui button.rbm-wcag-step-btn {
	appearance: none !important;
	height: 38px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	border-radius: 9px !important;
	border: 1px solid var(--rbm-dc-border) !important;
	background: var(--rbm-dc-surface) !important;
	color: var(--rbm-dc-navy) !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rbm-dc-ui button.rbm-wcag-step-btn:hover {
	background: var(--rbm-dc-blue) !important;
	border-color: var(--rbm-dc-blue) !important;
	color: #ffffff !important;
}

.rbm-wcag-fs-val {
	font-size: 14px;
	font-weight: 800;
	color: var(--rbm-dc-navy);
	min-width: 54px;
	text-align: center;
}

.rbm-wcag-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.rbm-dc-ui button.rbm-wcag-tile {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 10px !important;
	margin: 0 !important;
	border-radius: 13px !important;
	border: 1.5px solid var(--rbm-dc-border) !important;
	background: var(--rbm-dc-surface-soft) !important;
	color: var(--rbm-dc-navy) !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rbm-dc-ui button.rbm-wcag-tile:hover {
	border-color: var(--rbm-dc-blue) !important;
	transform: translateY(-1px);
}

.rbm-dc-ui button.rbm-wcag-tile.is-active {
	background: linear-gradient(135deg, color-mix(in srgb, var(--rbm-dc-accent) 84%, #ffffff) 0%, var(--rbm-dc-accent) 100%) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--rbm-dc-accent) 34%, transparent) !important;
}

.rbm-wcag-tile-ico {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rbm-wcag-tile-ico svg {
	width: 24px;
	height: 24px;
}

.rbm-wcag-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 26px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 800;
	border: 1.5px solid #000000;
}

.rbm-wcag-swatch.is-yellow { background: #000000; color: #FFEA00; border-color: #FFEA00; }
.rbm-wcag-swatch.is-white { background: #000000; color: #ffffff; border-color: #ffffff; }

.rbm-wcag-links-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rbm-dc-ui .rbm-wcag-aux-link {
	appearance: none !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 14px !important;
	margin: 0 !important;
	border-radius: 11px !important;
	border: 1px solid var(--rbm-dc-border) !important;
	background: var(--rbm-dc-surface) !important;
	color: var(--rbm-dc-navy) !important;
	text-decoration: none !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.rbm-dc-ui .rbm-wcag-aux-link:hover {
	border-color: var(--rbm-dc-accent) !important;
	color: var(--rbm-dc-accent) !important;
}

.rbm-wcag-foot {
	padding: 14px 20px;
	border-top: 1px solid var(--rbm-dc-border);
	background: var(--rbm-dc-surface-soft);
}

.rbm-dc-ui button.rbm-wcag-reset-btn {
	appearance: none !important;
	width: 100%;
	padding: 11px 16px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	border: 1.5px solid var(--rbm-dc-border) !important;
	background: var(--rbm-dc-surface) !important;
	color: var(--rbm-dc-navy) !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rbm-dc-ui button.rbm-wcag-reset-btn:hover {
	background: var(--rbm-dc-navy) !important;
	border-color: var(--rbm-dc-navy) !important;
	color: var(--rbm-dc-surface) !important;
}

/* ==========================================================================
   4. EFEKTY WCAG NA STRONIE
   ========================================================================== */
.rbm-dc-gray-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999990;
	pointer-events: none;
	-webkit-backdrop-filter: grayscale(100%);
	backdrop-filter: grayscale(100%);
}

html.rbm-wcag-grayscale .rbm-dc-gray-overlay {
	display: block;
}

html.rbm-wcag-hc-yellow,
html.rbm-wcag-hc-yellow body,
html.rbm-wcag-hc-yellow body *:not(.rbm-dc-ui):not(.rbm-dc-ui *):not(img):not(video):not(iframe):not(svg):not(path):not(circle):not(rect):not(line):not(polygon) {
	background-color: #000000 !important;
	background-image: none !important;
	color: #FFEA00 !important;
	border-color: #FFEA00 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.rbm-wcag-hc-yellow a:not(.rbm-dc-ui *) {
	color: #ffffff !important;
	text-decoration: underline !important;
}

html.rbm-wcag-hc-yellow button:not(.rbm-dc-ui *),
html.rbm-wcag-hc-yellow input:not(.rbm-dc-ui *),
html.rbm-wcag-hc-yellow select:not(.rbm-dc-ui *),
html.rbm-wcag-hc-yellow textarea:not(.rbm-dc-ui *) {
	background-color: #000000 !important;
	color: #FFEA00 !important;
	border: 2px solid #FFEA00 !important;
}

html.rbm-wcag-hc-white,
html.rbm-wcag-hc-white body,
html.rbm-wcag-hc-white body *:not(.rbm-dc-ui):not(.rbm-dc-ui *):not(img):not(video):not(iframe):not(svg):not(path):not(circle):not(rect):not(line):not(polygon) {
	background-color: #000000 !important;
	background-image: none !important;
	color: #ffffff !important;
	border-color: #ffffff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.rbm-wcag-hc-white a:not(.rbm-dc-ui *) {
	color: #38bdf8 !important;
	text-decoration: underline !important;
}

html.rbm-wcag-links a:not(.rbm-dc-ui *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
}

html.rbm-wcag-readable body *:not(i):not(.fas):not(.far):not(.fab):not(.fa):not(.eicon):not(.dashicons) {
	font-family: Arial, Verdana, 'Segoe UI', sans-serif !important;
	font-style: normal !important;
	letter-spacing: 0.03em !important;
	word-spacing: 0.08em !important;
}

html.rbm-wcag-readable p,
html.rbm-wcag-readable li {
	line-height: 1.85 !important;
}

html.rbm-wcag-no-anim *,
html.rbm-wcag-no-anim *::before,
html.rbm-wcag-no-anim *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}

html.rbm-wcag-focus *:focus,
html.rbm-wcag-focus *:focus-visible {
	outline: 3px solid var(--rbm-dc-accent) !important;
	outline-offset: 3px !important;
}

html.rbm-wcag-hc-yellow.rbm-wcag-focus *:focus,
html.rbm-wcag-hc-white.rbm-wcag-focus *:focus {
	outline: 3px solid #FFEA00 !important;
}

html.rbm-wcag-cursor,
html.rbm-wcag-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 3 L4 34 L12 26 L18 37 L23 34 L17 23 L28 23 Z' fill='%23000000' stroke='%23ffffff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto !important;
}

/* ==========================================================================
   5. OKIENKO O CIASTECZKACH (RODO / PKE — KARTA LUB PASEK)
   ========================================================================== */
.rbm-cookie-banner {
	position: fixed;
	z-index: 999993;
	background: var(--rbm-dc-surface);
	color: var(--rbm-dc-text);
	border: 1px solid var(--rbm-dc-border);
	box-shadow: var(--rbm-dc-shadow);
	overflow: hidden;
	display: none;
}

.rbm-cookie-banner.is-visible {
	display: block;
	animation: rbmDcSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rbmDcSlideUp {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Górny pasek dekoracyjny (konfigurowalny lub usunięty) */
.rbm-cookie-top-accent {
	height: var(--rbm-dc-bar-height, 4px);
	width: 100%;
}

.rbm-cookie-top-accent--solid {
	background: var(--rbm-dc-bar-color);
}

.rbm-cookie-top-accent--duo {
	background: linear-gradient(90deg, var(--rbm-dc-accent) 0%, var(--rbm-dc-blue) 100%);
}

.rbm-cookie-top-accent--rainbow {
	background: linear-gradient(90deg, var(--rbm-dc-accent) 0%, var(--rbm-dc-blue) 52%, #FFCC00 78%, #7AB51D 100%);
}

.rbm-cookie-banner--card {
	right: 18px;
	bottom: 18px;
	width: min(460px, calc(100vw - 32px));
	border-radius: 18px;
}

.rbm-cookie-banner--card .rbm-cookie-banner-inner {
	padding: 18px 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.rbm-cookie-banner--bar {
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 1280px;
	margin: 0 auto;
	border-radius: 16px;
}

.rbm-cookie-banner--bar .rbm-cookie-banner-inner {
	padding: 16px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.rbm-cookie-title-row {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 6px;
}

.rbm-cookie-ico {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--rbm-dc-accent) 13%, transparent);
	color: var(--rbm-dc-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rbm-cookie-ico svg { width: 17px; height: 17px; }

.rbm-cookie-copy h3 {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	color: var(--rbm-dc-navy) !important;
	line-height: 1.25 !important;
}

.rbm-cookie-copy p {
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.52 !important;
	color: var(--rbm-dc-muted) !important;
}

.rbm-cookie-policy-link {
	color: var(--rbm-dc-blue) !important;
	font-weight: 700;
	text-decoration: underline;
	margin-left: 4px;
}

.rbm-cookie-policy-link:hover {
	color: var(--rbm-dc-accent) !important;
}

/* Przyciski zgód (z pełną personalizacją kolorów) */
.rbm-cookie-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.rbm-dc-ui button.rbm-cbtn {
	appearance: none !important;
	-webkit-appearance: none !important;
	height: 40px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.rbm-dc-ui button.rbm-cbtn:hover {
	transform: translateY(-1px);
}

.rbm-dc-ui button.rbm-cbtn--primary {
	background: linear-gradient(135deg, color-mix(in srgb, var(--rbm-dc-btn-accept-bg) 86%, #ffffff) 0%, var(--rbm-dc-btn-accept-bg) 100%) !important;
	border: 1.5px solid transparent !important;
	color: var(--rbm-dc-btn-accept-text) !important;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--rbm-dc-btn-accept-bg) 32%, transparent) !important;
}

.rbm-dc-ui button.rbm-cbtn--primary:hover {
	filter: brightness(1.04);
}

.rbm-dc-ui button.rbm-cbtn--blue {
	background: var(--rbm-dc-btn-save-bg) !important;
	border: 1.5px solid transparent !important;
	color: var(--rbm-dc-btn-save-text) !important;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--rbm-dc-btn-save-bg) 30%, transparent) !important;
}

.rbm-dc-ui button.rbm-cbtn--blue:hover {
	filter: brightness(1.05);
}

.rbm-dc-ui button.rbm-cbtn--outline {
	background: var(--rbm-dc-surface) !important;
	border: 1.5px solid var(--rbm-dc-btn-reject) !important;
	color: var(--rbm-dc-btn-reject) !important;
	box-shadow: none !important;
}

.rbm-dc-ui button.rbm-cbtn--outline:hover {
	background: var(--rbm-dc-btn-reject) !important;
	color: var(--rbm-dc-surface) !important;
}

.rbm-dc-ui button.rbm-cbtn--ghost {
	background: var(--rbm-dc-surface-soft) !important;
	border: 1.5px solid var(--rbm-dc-border) !important;
	color: var(--rbm-dc-navy) !important;
	box-shadow: none !important;
}

.rbm-dc-ui button.rbm-cbtn--ghost:hover {
	border-color: var(--rbm-dc-blue) !important;
	color: var(--rbm-dc-blue) !important;
}

.rbm-dc-ui button.rbm-cookie-reopen-fab {
	appearance: none !important;
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999991;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	border: 1.5px solid var(--rbm-dc-border) !important;
	background: var(--rbm-dc-surface) !important;
	color: var(--rbm-dc-navy) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(11, 37, 69, 0.16) !important;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rbm-dc-ui button.rbm-cookie-reopen-fab:hover {
	background: var(--rbm-dc-accent) !important;
	border-color: var(--rbm-dc-accent) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
}

.rbm-dc-ui button.rbm-cookie-reopen-fab svg { width: 20px; height: 20px; }

/* ==========================================================================
   6. MODAL GRANULARNYCH ZGÓD COOKIES (2. WARSTWA)
   ========================================================================== */
.rbm-cookie-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(8, 17, 36, 0.62);
	backdrop-filter: blur(4px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.rbm-cookie-modal-overlay.is-open {
	display: flex;
}

.rbm-cookie-modal-box {
	width: 100%;
	max-width: 600px;
	max-height: 88dvh;
	background: var(--rbm-dc-surface);
	color: var(--rbm-dc-text);
	border: 1px solid var(--rbm-dc-border);
	border-radius: 18px;
	box-shadow: var(--rbm-dc-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rbm-cookie-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	background: var(--rbm-dc-surface-soft);
	border-bottom: 1px solid var(--rbm-dc-border);
}

.rbm-cookie-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rbm-cm-intro {
	margin: 0 0 4px !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: var(--rbm-dc-muted) !important;
}

.rbm-cm-intro a {
	color: var(--rbm-dc-blue);
	font-weight: 700;
}

.rbm-cm-item {
	padding: 13px 15px;
	border-radius: 13px;
	background: var(--rbm-dc-surface-soft);
	border: 1px solid var(--rbm-dc-border);
}

.rbm-cm-item-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.rbm-cm-item-top strong {
	font-size: 14px;
	font-weight: 700;
	color: var(--rbm-dc-navy);
}

.rbm-cm-badge-req {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--rbm-dc-blue) 14%, transparent);
	color: var(--rbm-dc-blue);
	font-size: 10.5px;
	font-weight: 700;
	vertical-align: middle;
}

.rbm-cm-item p {
	margin: 0 !important;
	font-size: 12.5px !important;
	line-height: 1.48 !important;
	color: var(--rbm-dc-muted) !important;
}

.rbm-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex-shrink: 0;
}

.rbm-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.rbm-slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #cbd5e1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

html.rbm-dark-mode .rbm-slider {
	background: #334155;
}

.rbm-slider::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.rbm-switch input:checked + .rbm-slider {
	background: var(--rbm-dc-accent);
}

.rbm-switch input:checked + .rbm-slider::before {
	transform: translateX(20px);
}

.rbm-switch.is-locked .rbm-slider {
	background: var(--rbm-dc-blue);
	opacity: 0.78;
	cursor: not-allowed;
}

.rbm-cookie-modal-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 22px;
	background: var(--rbm-dc-surface-soft);
	border-top: 1px solid var(--rbm-dc-border);
}

/* Inline przycisk z shortcode'u [rbm_cookie_settings] / [rbm_wcag_button] */
button.rbm-dc-inline-btn {
	appearance: none !important;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px !important;
	border-radius: 999px !important;
	border: 1.5px solid var(--rbm-dc-blue) !important;
	background: transparent !important;
	color: var(--rbm-dc-blue) !important;
	font-family: var(--rbm-dc-font) !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

button.rbm-dc-inline-btn:hover {
	background: var(--rbm-dc-blue) !important;
	color: #ffffff !important;
}

/* ==========================================================================
   7. RESPONSYWNOŚĆ (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
	.rbm-cookie-banner--bar .rbm-cookie-banner-inner {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 767px) {
	.rbm-dc-ui button.rbm-wcag-fab.has-label {
		width: 46px !important;
		height: 46px !important;
		padding: 0 !important;
		justify-content: center;
	}

	.rbm-wcag-fab-label {
		display: none;
	}

	.rbm-wcag-fab.rbm-pos-bottom-left { left: 12px; bottom: 14px; }
	.rbm-wcag-fab.rbm-pos-bottom-right { right: 12px; bottom: 14px; }

	.rbm-cookie-banner--card,
	.rbm-cookie-banner--bar {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		border-radius: 15px;
	}

	.rbm-cookie-banner--card .rbm-cookie-banner-inner,
	.rbm-cookie-banner--bar .rbm-cookie-banner-inner {
		padding: 14px 15px;
		gap: 12px;
	}

	.rbm-cookie-actions,
	.rbm-cookie-modal-foot {
		flex-direction: column;
		align-items: stretch;
	}

	.rbm-dc-ui button.rbm-cbtn {
		width: 100%;
		justify-content: center;
	}
}