/* Okienko zgody na cookies – nie zasłania strony, przyciski równorzędne. */
.tg-zgoda {
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 9999;
	max-width: 440px;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #1d2e45);
	border-top: 4px solid var(--wp--preset--color--accent-1, #60aeea);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 10px 30px rgba(29, 46, 69, 0.18), 0 2px 6px rgba(29, 46, 69, 0.08);
	padding: 1.25rem 1.4rem 1.3rem;
	font-size: 0.95rem;
	line-height: 1.5;
}
.tg-zgoda[hidden] { display: none; }
.tg-zgoda p { margin: 0; }
.tg-zgoda__title { font-family: var(--wp--preset--font-family--archivo, inherit); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem !important; }
.tg-zgoda__text { color: #33465f; }
.tg-zgoda__text a { color: var(--wp--preset--color--contrast, #1d2e45); }
.tg-zgoda__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.tg-zgoda__btn {
	font: inherit;
	font-weight: 700;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	border: 2px solid var(--wp--preset--color--contrast, #1d2e45);
	cursor: pointer;
}
.tg-zgoda__btn--yes { background: var(--wp--preset--color--contrast, #1d2e45); color: var(--wp--preset--color--base, #fff); }
.tg-zgoda__btn--no { background: var(--wp--preset--color--base, #fff); color: var(--wp--preset--color--contrast, #1d2e45); }
.tg-zgoda__btn:hover { opacity: 0.9; }
.tg-zgoda__btn:focus-visible { outline: 3px solid var(--wp--preset--color--accent-1, #60aeea); outline-offset: 2px; }
.tg-zgoda [hidden] { display: none !important; }
.tg-zgoda__opts { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.tg-zgoda__opt { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; padding: 0.7rem 0.8rem; border: 1px solid #d6dde6; border-radius: 4px; cursor: pointer; font-size: 0.9rem; color: #33465f; }
.tg-zgoda__opt strong { display: block; color: var(--wp--preset--color--contrast, #1d2e45); font-size: 0.95rem; }
.tg-zgoda__opt input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--wp--preset--color--contrast, #1d2e45); cursor: pointer; }
.tg-zgoda__opt:has(input:focus-visible) { outline: 3px solid var(--wp--preset--color--accent-1, #60aeea); outline-offset: 2px; }
.tg-zgoda__more { display: block; margin: 0.7rem auto 0; padding: 0.2rem 0.4rem; background: none; border: 0; font: inherit; font-size: 0.9rem; color: var(--wp--preset--color--contrast, #1d2e45); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tg-zgoda__more:focus-visible { outline: 3px solid var(--wp--preset--color--accent-1, #60aeea); outline-offset: 2px; }
@media (max-width: 560px) {
	.tg-zgoda { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; padding: 1rem 1.1rem 1.1rem; }
}

/* Animacja wsunięcia okienka (2026-11-29) */
@media (prefers-reduced-motion: no-preference) {
	@keyframes tgZgodaIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
	.tg-zgoda:not([hidden]) { animation: tgZgodaIn .45s cubic-bezier(.2,.7,.2,1) both; }
	.tg-zgoda__btn { transition: transform .15s ease, opacity .2s, box-shadow .2s; }
	.tg-zgoda__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(29, 46, 69, 0.15); }
}
