/* Erkado: Zgody cookies – baner na dole strony w stylu ERKADO. */
:root {
	--erk-c-accent: #c61230;
	--erk-c-accent-dark: #a50f28;
	--erk-c-dark: #1f1f24;
	--erk-c-text: #45454d;
	--erk-c-muted: #6e6e78;
	--erk-c-line: #e4e4ea;
	--erk-c-bg: #fff;
}

.erk-c, .erk-c *, .erk-c-reopen { box-sizing: border-box; }
.erk-c[hidden], .erk-c [hidden], .erk-c-reopen[hidden] { display: none !important; }

.erk-c {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
	padding: 0 16px 16px;
	font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--erk-c-text);
	pointer-events: none;
}
.erk-c__inner {
	pointer-events: auto;
	max-width: 1110px; margin: 0 auto;
	background: var(--erk-c-bg);
	border: 1px solid var(--erk-c-line); border-top: 4px solid var(--erk-c-accent);
	border-radius: 16px;
	box-shadow: 0 -4px 40px rgba(20, 20, 40, .18);
	max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain;
	animation: erk-c-in .35s ease-out;
}
@keyframes erk-c-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.erk-c__main { display: flex; align-items: center; gap: 28px; padding: 22px 28px; }
.erk-c__body { flex: 1 1 auto; min-width: 0; }
.erk-c__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--erk-c-dark); }
.erk-c__text { margin: 0; font-size: 14px; }
.erk-c__link { color: var(--erk-c-accent); text-decoration: underline; white-space: nowrap; }
.erk-c__link:hover { color: var(--erk-c-accent-dark); }

.erk-c__actions, .erk-c__panel-actions { display: flex; flex-wrap: nowrap; gap: 10px; flex: 0 0 auto; justify-content: flex-end; }

.erk-c .erk-c__btn {
	appearance: none; cursor: pointer; margin: 0;
	width: auto; max-width: none; height: auto; box-shadow: none; text-transform: none; letter-spacing: normal;
	min-width: 150px; padding: 12px 22px;
	border-radius: 32px; border: 2px solid transparent;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center;
	transition: background-color .2s, border-color .2s, color .2s;
}
.erk-c .erk-c__btn:focus-visible { outline: 3px solid rgba(198, 18, 48, .35); outline-offset: 2px; }
.erk-c .erk-c__btn--accent { background: var(--erk-c-accent); color: #fff; }
.erk-c .erk-c__btn--accent:hover { background: var(--erk-c-accent-dark); }
.erk-c .erk-c__btn--dark { background: var(--erk-c-dark); color: #fff; }
.erk-c .erk-c__btn--dark:hover { background: #000; }
.erk-c .erk-c__btn--ghost { background: #fff; color: var(--erk-c-dark); border-color: #8c8c96; }
.erk-c .erk-c__btn--ghost:hover { border-color: var(--erk-c-dark); }

.erk-c__panel { border-top: 1px solid var(--erk-c-line); padding: 20px 28px 24px; }
.erk-c__panel-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--erk-c-dark); }
.erk-c__cat { padding: 14px 0; border-bottom: 1px solid var(--erk-c-line); }
.erk-c__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.erk-c__cat-name { font-weight: 700; color: var(--erk-c-dark); }
.erk-c__cat-desc { margin: 6px 0 0 58px; font-size: 13.5px; }
.erk-c__always { font-size: 12px; font-weight: 600; color: var(--erk-c-accent); white-space: nowrap; }

.erk-c__switch { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; }
.erk-c__switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.erk-c__slider { position: relative; flex: 0 0 44px; width: 44px; height: 24px; border-radius: 24px; background: #c9c9d1; transition: background .2s; }
.erk-c__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.erk-c__switch input:checked + .erk-c__slider { background: var(--erk-c-accent); }
.erk-c__switch input:checked + .erk-c__slider::after { transform: translateX(20px); }
.erk-c__switch input:disabled + .erk-c__slider { opacity: .55; }
.erk-c__switch input:disabled { cursor: not-allowed; }
.erk-c__switch input:focus-visible + .erk-c__slider { outline: 3px solid rgba(198, 18, 48, .35); outline-offset: 2px; }

.erk-c__details { margin: 8px 0 0 58px; }
.erk-c__details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--erk-c-accent); }
.erk-c__table-wrap { overflow-x: auto; margin-top: 8px; }
.erk-c__table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.erk-c__table th, .erk-c__table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--erk-c-line); }
.erk-c__table th { font-weight: 700; color: var(--erk-c-dark); background: #f7f7fa; }
.erk-c__table code { font-size: 12px; background: none; padding: 0; color: var(--erk-c-dark); }
.erk-c__panel-actions { margin-top: 18px; }

/* Przycisk ponownego otwarcia ustawień */
.erk-c-reopen {
	min-width: 0; max-width: none;
	position: fixed; left: 18px; bottom: 18px; z-index: 2147482999;
	width: 46px; height: 46px; padding: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--erk-c-accent);
	border: 2px solid #8c8c96; box-shadow: 0 4px 16px rgba(20, 20, 40, .18);
	cursor: pointer; transition: border-color .2s, transform .2s;
}
.erk-c-reopen:hover { border-color: var(--erk-c-accent); transform: scale(1.05); }
.erk-c-reopen:focus-visible { outline: 3px solid rgba(198, 18, 48, .35); outline-offset: 2px; }

/* Deklaracja cookies w treści strony */
.erk-c-decl__state { padding: 16px 20px; margin: 0 0 24px; border: 1px solid #e4e4ea; border-left: 4px solid #c61230; border-radius: 8px; background: #fafafd; }
.erk-c-decl__state p { margin: 0 0 6px; }
.erk-c-decl__state p:last-child { margin: 0; }
.erk-c-decl .erk-c__table { margin-bottom: 24px; font-size: 14px; }

@media (max-width: 900px) {
	.erk-c__actions, .erk-c__panel-actions { flex-wrap: wrap; }
	.erk-c__main { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 18px; }
	.erk-c__actions { justify-content: stretch; }
	.erk-c .erk-c__actions .erk-c__btn { flex: 1 1 150px; }
	.erk-c__panel { padding: 16px 18px 20px; }
}
@media (max-width: 560px) {
	.erk-c { padding: 0 8px 8px; }
	.erk-c__actions, .erk-c__panel-actions { flex-direction: column; }
	.erk-c .erk-c__actions .erk-c__btn, .erk-c .erk-c__panel-actions .erk-c__btn { width: 100%; flex: 0 0 auto; }
	/* Na telefonie "Akceptuj" i "Odrzuć" na górze, "Ustawienia" na dole. */
	.erk-c .erk-c__actions .erk-c__btn--ghost { order: 3; }
	.erk-c__cat-desc, .erk-c__details { margin-left: 0; }
	.erk-c-reopen { left: 12px; bottom: 12px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
	.erk-c__inner { animation: none; }
	.erk-c__slider, .erk-c__slider::after, .erk-c-reopen { transition: none; }
}
@media print { .erk-c, .erk-c-reopen { display: none !important; } }
