/* RF – Zgody Cookies */
.rfcc {
	--rfcc-bg: #fff;
	--rfcc-fg: #1d1d1d;
	--rfcc-muted: #5c5c5c;
	--rfcc-line: #e3e3e3;
	--rfcc-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rfcc-fg);
}
.rfcc [hidden] { display: none !important; }
.rfcc p { margin: 0 0 8px; }
.rfcc a { color: var(--rfcc-accent); text-decoration: underline; }
.rfcc-title { font-weight: 700; font-size: 16px; margin-bottom: 6px !important; }

/* przyciski: odrzucenie i akceptacja mają taką samą wagę wizualną.
   Selektor z #rfcc / .rfcc-embed — wygrywa ze stylami przycisków motywu. */
:is(#rfcc, .rfcc-embed) .rfcc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 42px; padding: 8px 18px; margin: 0; border-radius: 6px;
	border: 2px solid var(--rfcc-accent, #8a1c22); cursor: pointer; box-shadow: none;
	font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	text-transform: none; letter-spacing: 0; white-space: normal;
}
:is(#rfcc, .rfcc-embed) .rfcc-btn--primary,
:is(#rfcc, .rfcc-embed) .rfcc-btn--primary:hover,
:is(#rfcc, .rfcc-embed) .rfcc-btn--primary:focus { background: var(--rfcc-accent, #8a1c22); color: #fff; }
:is(#rfcc, .rfcc-embed) .rfcc-btn--ghost,
:is(#rfcc, .rfcc-embed) .rfcc-btn--ghost:hover,
:is(#rfcc, .rfcc-embed) .rfcc-btn--ghost:focus { background: #fff; color: var(--rfcc-accent, #8a1c22); }
:is(#rfcc, .rfcc-embed) .rfcc-btn:hover { filter: brightness(1.12); }
#rfcc .rfcc-modal__close, #rfcc .rfcc-modal__close:hover { position: absolute; top: 8px; right: 10px; left: auto; width: 36px; height: 36px; margin: 0; background: none; box-shadow: none; border: 0; padding: 0; min-height: 0; font-size: 26px; line-height: 1; color: var(--rfcc-muted); }
#rfcc .rfcc-reopen, #rfcc .rfcc-reopen:hover { background: var(--rfcc-bg); padding: 0; min-height: 0; color: var(--rfcc-accent); }
.rfcc-btn:focus-visible, .rfcc-switch:focus-visible, .rfcc-modal__close:focus-visible, .rfcc-reopen:focus-visible {
	outline: 3px solid #1a73e8; outline-offset: 2px;
}

/* baner */
.rfcc-banner {
	position: fixed; z-index: 2147483600; background: var(--rfcc-bg);
	box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
}
.rfcc--box .rfcc-banner {
	left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px));
	border-radius: var(--rfcc-radius); padding: 20px;
}
.rfcc--bar .rfcc-banner {
	left: 0; right: 0; bottom: 0; padding: 16px 24px;
	display: flex; gap: 24px; align-items: center; justify-content: space-between;
}
.rfcc-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rfcc--bar .rfcc-banner__actions { margin-top: 0; flex-shrink: 0; }
.rfcc--box .rfcc-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
.rfcc--box .rfcc-banner__actions [data-rfcc-action="settings"] { grid-column: 1 / -1; order: 3; }

/* okno ustawień */
.rfcc-modal {
	position: fixed; inset: 0; z-index: 2147483601;
	background: rgba(0, 0, 0, .5);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rfcc-modal__box {
	position: relative; background: var(--rfcc-bg); border-radius: var(--rfcc-radius);
	width: min(600px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	padding: 24px; outline: none;
}
.rfcc-modal__close {
	position: absolute; top: 8px; right: 10px; width: 36px; height: 36px;
	border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--rfcc-muted);
}
.rfcc-cat { border-top: 1px solid var(--rfcc-line); padding: 12px 0 4px; }
.rfcc-cat p { color: var(--rfcc-muted); font-size: 13px; }
.rfcc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; margin: 0 0 4px; }
.rfcc-cat__name { font-weight: 600; }
.rfcc-cat__always { font-size: 12px; font-weight: 600; color: #2e7d32; }
.rfcc-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--rfcc-line); padding-top: 16px; margin-top: 8px; }
.rfcc-id { font-size: 11px; color: var(--rfcc-muted); margin-top: 10px !important; }

/* przełącznik */
.rfcc-switch {
	-webkit-appearance: none; appearance: none; flex-shrink: 0;
	width: 44px; height: 24px; border-radius: 12px; background: #bdbdbd;
	position: relative; cursor: pointer; transition: background .2s; margin: 0;
}
.rfcc-switch::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
	border-radius: 50%; background: #fff; transition: transform .2s;
}
.rfcc-switch:checked { background: var(--rfcc-accent); }
.rfcc-switch:checked::after { transform: translateX(20px); }

/* przycisk ponownego otwarcia */
.rfcc-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 99998;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--rfcc-bg); color: var(--rfcc-accent);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
	display: flex; align-items: center; justify-content: center;
}

/* zablokowane osadzenia */
.rfcc-embed { position: relative; }
.rfcc-embed__ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	min-height: 220px; padding: 20px; text-align: center;
	background: #f4f1ec; border: 1px dashed #c9c1b4; border-radius: 8px; color: #333;
}
.rfcc-embed:not(.is-loaded) iframe { display: none; }

@media (max-width: 767px) {
	.rfcc--bar .rfcc-banner { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; }
	.rfcc--box .rfcc-banner { left: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 16px; }
	.rfcc--bar .rfcc-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.rfcc--bar .rfcc-banner__actions [data-rfcc-action="settings"] { grid-column: 1 / -1; order: 3; }
	.rfcc-modal__actions .rfcc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.rfcc-switch, .rfcc-switch::after { transition: none; }
}
