/* Okienko zgody na pliki cookie (includes/dokumenty.php). Kolory z motywu, a bez niego — marki. */
.gf-zgody {
	position: fixed; z-index: 95; left: 1rem; bottom: 1rem;
	width: min(34rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto;
	padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line, #d9e0ea); border-radius: 1rem;
	background: #fff; color: var(--text, #22304a); box-shadow: 0 1rem 3rem rgba(7, 30, 61, .22);
	font-size: .9375rem; line-height: 1.55;
}
.gf-zgody[hidden] { display: none; }
.gf-zgody__title { margin: 0 0 .375rem; color: var(--ink, #071e3d); font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.gf-zgody__text { margin: 0 0 1rem; }
.gf-zgody__text a { color: var(--ink, #071e3d); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.gf-zgody__form[hidden] { display: none; }
.gf-zgody__form fieldset { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.gf-zgody__opt {
	display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .75rem;
	padding: .75rem .875rem; border-radius: .75rem; background: var(--mist, #f1f4f8); cursor: pointer;
	font-size: .875rem; line-height: 1.5;
}
.gf-zgody__opt strong { color: var(--ink, #071e3d); }
.gf-zgody__opt input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--ink, #071e3d); }
.gf-zgody__opt:has(input:disabled) { cursor: default; }
/* „Akceptuję wszystkie” i „Odrzucam opcjonalne” — ten sam wygląd i rozmiar (równorzędny wybór) */
.gf-zgody__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gf-zgody__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: .625rem 1rem;
	border: 1.5px solid var(--ink, #071e3d); border-radius: 999px; background: var(--ink, #071e3d); color: #fff;
	font-family: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
}
.gf-zgody__btn:hover { background: var(--ink-2, #163058); border-color: var(--ink-2, #163058); }
.gf-zgody__btn[hidden], .gf-zgody__more[hidden] { display: none; }
.gf-zgody__btn--save { grid-column: 1 / -1; background: #fff; color: var(--ink, #071e3d); }
.gf-zgody__btn--save:hover { background: var(--mist, #f1f4f8); color: var(--ink, #071e3d); }
.gf-zgody__more {
	grid-column: 1 / -1; justify-self: center; min-height: 2.5rem; padding: .25rem .75rem; border: 0; background: none;
	color: var(--ink, #071e3d); font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2; text-decoration: underline; text-underline-offset: .25em; cursor: pointer;
}
.gf-zgody__status:empty { display: none; }
.gf-zgody__status { margin: .75rem 0 0; color: var(--danger, #b3261e); font-size: .875rem; }
.gf-zgody :focus-visible { outline: 3px solid var(--gold, #c49a5e); outline-offset: 2px; }
@media (max-width: 600px) {
	.gf-zgody { left: .5rem; right: .5rem; bottom: calc(.5rem + env(safe-area-inset-bottom)); width: auto; max-height: calc(100vh - 1rem); padding: 1rem 1rem .75rem; font-size: .875rem; }
	.gf-zgody__title { font-size: 1.0625rem; }
	.gf-zgody__btn { font-size: .875rem; padding-inline: .5rem; }
}
@media (max-width: 359px) { .gf-zgody__actions { grid-template-columns: 1fr; } }
