/* Gaja: okno zgód na pliki cookie (moduł „Zgody cookies”).
   Wygląd domyślny: czarne tło, kanciaste kształty, linia światła w kolorze cyjan.
   Kolory, czcionka i zaokrąglenie są zmiennymi CSS w .ph2c, więc motyw strony je nadpisuje. */
.ph2c {
	--ph2c-bg: #05070A;
	--ph2c-panel: #05070A;
	--ph2c-soft: #0C1116;
	--ph2c-line: rgba(255, 255, 255, .16);
	--ph2c-line2: rgba(255, 255, 255, .08);
	--ph2c-btn-line: rgba(255, 255, 255, .45);
	--ph2c-text: #AAB6C0;
	--ph2c-muted: #8C99A5;
	--ph2c-head: #F3F7F9;
	--ph2c-accent: #F3F7F9;
	--ph2c-accent-hover: #FFFFFF;
	--ph2c-on-accent: #05070A;
	--ph2c-link: #2BE4F3;
	--ph2c-glow: #2BE4F3;
	--ph2c-ok: #69E3B1;
	--ph2c-radius: 2px;
	--ph2c-font: "Archivo", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ph2c-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-family: var(--ph2c-font);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
.ph2c [hidden], .ph2c[hidden] { display: none !important; }
.ph2c p { margin: 0; }
.ph2c a { color: var(--ph2c-link); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.ph2c a:hover { color: #FFFFFF; }

/* Buttons. "Accept" and "reject" look the same on purpose: refusing must be as easy as accepting. */
.ph2c-btn {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	min-height: 44px; margin: 0; padding: .55rem 1rem;
	border: 1px solid var(--ph2c-btn-line); border-radius: var(--ph2c-radius);
	background: rgba(255, 255, 255, .03); color: var(--ph2c-head);
	font-family: var(--ph2c-font); font-size: .875rem; font-weight: 700; line-height: 1.2; font-stretch: 105%;
	text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0;
	cursor: pointer; white-space: nowrap; box-shadow: none; -webkit-tap-highlight-color: transparent;
	transition: background-color .2s, border-color .2s, color .2s;
}
.ph2c-btn:hover { border-color: var(--ph2c-glow); background: rgba(43, 228, 243, .07); color: var(--ph2c-glow); }
.ph2c-btn:active { background: rgba(43, 228, 243, .12); }
.ph2c-btn--ghost { background: transparent; }

/* "Settings" in the banner: a quiet text button next to the title. */
.ph2c-more {
	display: inline-flex; align-items: center; gap: .4em; flex: none; box-sizing: border-box;
	min-height: 32px; margin: -6px; padding: 6px;
	border: 0; border-radius: var(--ph2c-radius); background: none; box-shadow: none;
	color: var(--ph2c-link); font-family: var(--ph2c-font); font-size: .8125rem; font-weight: 700; line-height: 1.2;
	text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
	text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .28em; text-decoration-thickness: 1px;
	transition: color .2s, text-decoration-color .2s;
}
.ph2c-more::after { content: ""; flex: none; width: .4em; height: .4em; margin-left: .05em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.ph2c-more:hover { color: #FFFFFF; text-decoration-color: currentColor; }

.ph2c-btn:focus-visible, .ph2c-more:focus-visible, .ph2c-x:focus-visible, .ph2c-icon:focus-visible, .ph2c-cat summary:focus-visible, .ph2c-open:focus-visible { outline: 2px solid var(--ph2c-glow); outline-offset: 2px; }

/* Banner: a sheet at the bottom of a phone, a card in the corner of a larger screen. */
.ph2c-banner {
	position: fixed; z-index: 2147483000;
	left: 8px; right: 8px; bottom: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px));
	overflow-y: auto; overscroll-behavior: contain;
	display: grid; gap: .55rem; padding: .9rem 1rem 1rem;
	/* Faint glow under the top edge (the line of light itself is ::before). */
	background-image: radial-gradient(60% 56px at 50% 0, rgba(43, 228, 243, .1), transparent);
	background-repeat: no-repeat; background-position: 50% 0; background-size: 100% 100%; background-origin: border-box; background-clip: border-box;
	background-color: var(--ph2c-bg);
	background-color: color-mix(in srgb, var(--ph2c-bg) 92%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
	border: 1px solid var(--ph2c-line); border-top-color: transparent; border-radius: var(--ph2c-radius);
	box-shadow: 0 22px 60px rgba(0, 0, 0, .62), 0 2px 10px rgba(0, 0, 0, .4);
	color: var(--ph2c-text); font-size: .8125rem; line-height: 1.5;
	opacity: 0; transform: translateY(12px);
	transition: opacity .3s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
/* Line of light along the top edge: it spreads from the middle when the banner opens (a transform, so no repaint in every frame). */
.ph2c-banner::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--ph2c-glow) 22%, var(--ph2c-glow) 78%, transparent);
	transform: scaleX(.14); transition: transform .8s .1s cubic-bezier(.2, .7, .2, 1);
}
.ph2c-banner.is-open { opacity: 1; transform: none; }
.ph2c-banner.is-open::before { transform: none; }
.ph2c-banner__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .75rem; }
.ph2c-banner__title { margin: 0 !important; font-family: var(--ph2c-font); font-size: .9375rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; color: var(--ph2c-head); }
.ph2c-banner__text { margin: 0 !important; text-wrap: pretty; }
.ph2c-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.ph2c-banner__actions .ph2c-btn { flex: 1 1 0; min-width: max-content; padding-left: .6rem; padding-right: .6rem; font-stretch: 100%; }

@media (min-width: 600px) {
	.ph2c-banner { left: 20px; right: auto; bottom: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(31rem, calc(100% - 40px)); gap: .6rem; padding: 1.1rem 1.25rem 1.2rem; font-size: .84375rem; }
	.ph2c-banner__title { font-size: 1rem; }
	.ph2c-banner__actions .ph2c-btn { padding-left: 1rem; padding-right: 1rem; font-stretch: 105%; }
}
@media (min-width: 1024px) {
	.ph2c-banner { left: 24px; bottom: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 32.5rem; }
}
/* Phone held sideways and other short screens: text on the left, buttons on the right, as low as possible. */
@media (min-width: 600px) and (max-height: 520px) {
	.ph2c-banner {
		left: 12px; right: 12px; bottom: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: 58rem; margin: 0 auto;
		grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head actions" "text actions";
		column-gap: 1.25rem; row-gap: .35rem; padding: .8rem 1rem .85rem; font-size: .8125rem;
	}
	.ph2c-banner__head { grid-area: head; }
	.ph2c-banner__text { grid-area: text; }
	.ph2c-banner__actions { grid-area: actions; flex-direction: column; flex-wrap: nowrap; justify-content: center; margin: 0; }
	.ph2c-banner__actions .ph2c-btn { flex: none; min-height: 40px; }
}

/* Settings window: a sheet from the bottom on a phone, a window in the middle on a larger screen. */
.ph2c-modal { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: end center; padding: 0; box-sizing: border-box; }
.ph2c-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.ph2c-modal.is-open .ph2c-modal__backdrop { opacity: 1; }
.ph2c-modal__dialog {
	position: relative; display: flex; flex-direction: column; box-sizing: border-box;
	width: 100%; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px);
	background-image: linear-gradient(90deg, transparent, var(--ph2c-glow) 22%, var(--ph2c-glow) 78%, transparent), radial-gradient(60% 64px at 50% 0, rgba(43, 228, 243, .09), transparent);
	background-repeat: no-repeat; background-position: 50% 0, 50% 0; background-size: 100% 1px, 100% 100%; background-origin: border-box;
	background-color: var(--ph2c-panel); color: var(--ph2c-text);
	border: 1px solid var(--ph2c-line); border-top-color: transparent; border-bottom: 0; border-radius: var(--ph2c-radius) var(--ph2c-radius) 0 0;
	box-shadow: 0 -10px 60px rgba(0, 0, 0, .6);
	font-size: .875rem; line-height: 1.55; outline: none; overflow: hidden;
	opacity: 0; transform: translateY(24px);
	transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.ph2c-modal.is-open .ph2c-modal__dialog { opacity: 1; transform: none; }
.ph2c-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .75rem .7rem 1rem; border-bottom: 1px solid var(--ph2c-line2); }
.ph2c-modal__title { margin: 0 !important; font-family: var(--ph2c-font); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--ph2c-head); }
.ph2c-x { display: grid; place-items: center; flex: none; box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--ph2c-line); border-radius: var(--ph2c-radius); background: transparent; color: var(--ph2c-head); cursor: pointer; transition: border-color .2s, color .2s; }
.ph2c-x:hover { border-color: var(--ph2c-glow); color: var(--ph2c-glow); }
.ph2c-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: .9rem 1rem 1rem; }
.ph2c-modal__intro { margin-bottom: .85rem !important; }
.ph2c-modal__foot {
	display: flex; flex-wrap: wrap; gap: .5rem;
	padding: .75rem 1rem .85rem; padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ph2c-line2); background: #020304;
}
.ph2c-modal__foot .ph2c-btn { flex: 1 1 0; min-width: max-content; padding-left: .7rem; padding-right: .7rem; }
.ph2c-modal__foot [data-ph2c="save"] { flex-basis: 100%; border-color: rgba(43, 228, 243, .55); color: var(--ph2c-glow); }
.ph2c-modal__foot [data-ph2c="save"]:hover { background: rgba(43, 228, 243, .1); border-color: var(--ph2c-glow); }
@media (min-width: 600px) {
	.ph2c-modal { place-items: center; padding: 20px; }
	.ph2c-modal__dialog { width: min(40rem, 100%); max-height: min(46rem, calc(100vh - 40px)); max-height: min(46rem, calc(100dvh - 40px)); border-bottom: 1px solid var(--ph2c-line); border-radius: var(--ph2c-radius); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); transform: translateY(12px); }
	.ph2c-modal__head { padding: .85rem .9rem .85rem 1.4rem; }
	.ph2c-modal__title { font-size: 1.1875rem; }
	.ph2c-modal__body { padding: 1.1rem 1.4rem 1.2rem; }
	.ph2c-modal__foot { flex-wrap: nowrap; padding: .9rem 1.4rem; }
	.ph2c-modal__foot .ph2c-btn { flex: 0 0 auto; padding-left: 1rem; padding-right: 1rem; }
	.ph2c-modal__foot [data-ph2c="save"] { flex-basis: auto; margin-right: auto; }
}

.ph2c-cat { margin: 0 0 .5rem; padding: .85rem 1rem; border: 1px solid var(--ph2c-line2); border-radius: var(--ph2c-radius); background: var(--ph2c-soft); }
/* Title and switch in one row, the description below them across the whole card. */
.ph2c-cat__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; row-gap: .3rem; }
.ph2c-cat__text { display: contents; }
.ph2c-cat__title { grid-column: 1; grid-row: 1; margin: 0 !important; font-weight: 700; line-height: 1.35; color: var(--ph2c-head); }
.ph2c-cat__desc { grid-column: 1 / -1; grid-row: 2; font-size: .8125rem; line-height: 1.5; color: var(--ph2c-text); }
.ph2c-cat__head > .ph2c-always, .ph2c-cat__head > .ph2c-switch { grid-column: 2; grid-row: 1; }
.ph2c-always { flex: none; margin: 0; padding: .22rem .55rem; border: 1px solid rgba(105, 227, 177, .3); border-radius: var(--ph2c-radius); background: rgba(105, 227, 177, .07); color: var(--ph2c-ok); font: 600 .72rem/1.4 var(--ph2c-font); white-space: nowrap; }
.ph2c-switch { position: relative; flex: none; display: block; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.ph2c-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ph2c-switch span { position: absolute; inset: 0; border-radius: var(--ph2c-radius); background: #1D2730; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .2s, box-shadow .2s; }
.ph2c-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: max(0px, calc(var(--ph2c-radius) - 1px)); background: #DCE3EA; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition: transform .2s cubic-bezier(.2, .7, .2, 1), background-color .2s; }
.ph2c-switch input:checked + span { background: var(--ph2c-glow); box-shadow: 0 0 14px rgba(43, 228, 243, .35); }
.ph2c-switch input:checked + span::after { transform: translateX(20px); background: #001216; }
.ph2c-switch input:focus-visible + span { outline: 2px solid var(--ph2c-glow); outline-offset: 3px; }
.ph2c-cat__cookies { margin-top: .65rem; }
.ph2c-cat summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; cursor: pointer; list-style: none; font-size: .8125rem; font-weight: 700; color: var(--ph2c-link); border-radius: var(--ph2c-radius); }
.ph2c-cat summary::-webkit-details-marker { display: none; }
.ph2c-cat summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.ph2c-cat details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.ph2c-none { margin-top: .5rem !important; font-size: .8125rem; color: var(--ph2c-muted); }
.ph2c-meta { margin-top: .9rem !important; font-size: .78rem; color: var(--ph2c-muted); overflow-wrap: anywhere; }
.ph2c-meta:empty { display: none; }
.ph2c-policy { margin-top: .5rem !important; font-size: .8125rem; }

/* Cookie table (settings window and the list on the cookie policy page) */
.ph2c-table { width: 100%; margin: .6rem 0 0; border-collapse: collapse; font-size: .78rem; line-height: 1.45; background: transparent; color: var(--ph2c-text, #AAB6C0); }
.ph2c-table th, .ph2c-table td { padding: .5rem .55rem; text-align: left; vertical-align: top; border: 0; border-top: 1px solid var(--ph2c-line2, #1E2935); background: transparent; }
.ph2c-table th { font-weight: 600; color: var(--ph2c-head, #E9EEF5); }
.ph2c-table code { font: 500 .76rem/1.4 var(--ph2c-mono, ui-monospace), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #A9B3FF; background: none; padding: 0; overflow-wrap: anywhere; }
.ph2c-names { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; }
@media (min-width: 600px) {
	.ph2c-table { table-layout: fixed; }
	.ph2c-table th:nth-child(1) { width: 24%; }
	.ph2c-table th:nth-child(2) { width: 21%; }
	.ph2c-table th:nth-child(4) { width: 19%; }
}
@media (max-width: 599px) {
	.ph2c-table thead { display: none; }
	.ph2c-table, .ph2c-table tbody, .ph2c-table tr, .ph2c-table td { display: block; width: 100%; box-sizing: border-box; }
	.ph2c-table tr { padding: .5rem 0; border-top: 1px solid var(--ph2c-line2, #1E2935); }
	.ph2c-table td { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .6rem; padding: .12rem 0; border: 0; }
	.ph2c-table td::before { content: attr(data-th); font-weight: 600; color: var(--ph2c-head, #E9EEF5); }
}

/* Corner icon (after the choice, when switched on or when the page has no "Cookie settings" link) */
.ph2c-icon { position: fixed; z-index: 2147482999; left: 16px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--ph2c-line); border-radius: var(--ph2c-radius); background: var(--ph2c-bg); color: var(--ph2c-glow); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .7); cursor: pointer; transition: transform .2s, border-color .2s; }
.ph2c-icon:hover { border-color: var(--ph2c-glow); transform: translateY(-2px); }

html.ph2c-lock, html.ph2c-lock body { overflow: hidden; }

/* List of cookies on the cookie policy page (shortcode [ph2_cookies]) */
.ph2c-decl { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 22px 24px; border: 1px solid #1E2935; border-radius: 2px; background: #0B1016; color: #A3B2C4; font-size: 14.5px; line-height: 1.6; }
.ph2c-decl p { margin: 0; }
.ph2c-decl__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; color: #E9EEF5; }
.ph2c-decl__cat { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: #E9EEF5; }
.ph2c-decl__desc { font-size: 13.5px; color: #A3B2C4; }
.ph2c-decl .ph2c-table { margin: 2px 0 0; font-size: 13px; color: #A3B2C4; }
.ph2c-decl .ph2c-table th { font: 500 11px/1.4 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: #8A9BB0; background: #111822; border-top: 0; }
.ph2c-decl .ph2c-table td:first-child { color: #E9EEF5; }
.ph2c-decl .ph2c-none { margin: 0 !important; font-size: 13.5px; color: #8A9BB0; }
.ph2c-decl__mine { font-size: 13px; color: #8A9BB0; overflow-wrap: anywhere; }
.ph2c-decl__mine:empty { display: none; }
.ph2c-decl__actions { margin-top: 8px !important; }
.ph2c-open { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.25rem; border: 1px solid rgba(255, 255, 255, .34); border-radius: 2px; background: transparent; color: #E9EEF5; font: 700 14.5px/1.2 "Archivo", "Manrope", "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ph2c-open:hover { border-color: #2BE4F3; color: #2BE4F3; background: rgba(43, 228, 243, .07); }
@media (max-width: 599px) { .ph2c-decl { padding: 18px 16px; } }

/* The same list shown in the WordPress admin (white background) */
.wp-admin .ph2c-decl { border-color: #c3c4c7; background: #fff; color: #3c434a; }
.wp-admin .ph2c-decl__title, .wp-admin .ph2c-decl__cat, .wp-admin .ph2c-decl .ph2c-table td:first-child, .wp-admin .ph2c-table th { color: #1d2327; }
.wp-admin .ph2c-decl__desc, .wp-admin .ph2c-table, .wp-admin .ph2c-decl .ph2c-none { color: #50575e; }
.wp-admin .ph2c-table th, .wp-admin .ph2c-table td { border-top-color: #dcdcde; }
.wp-admin .ph2c-decl .ph2c-table th { background: #f6f7f7; color: #50575e; }
.wp-admin .ph2c-table code { color: #0b6e84; }

@media (prefers-reduced-motion: reduce) {
	.ph2c-banner, .ph2c-banner::before, .ph2c-modal__dialog, .ph2c-modal__backdrop, .ph2c-btn, .ph2c-more, .ph2c-switch span, .ph2c-switch span::after { transition: none !important; }
	.ph2c-banner, .ph2c-modal__dialog { transform: none !important; }
}
@media (forced-colors: active) {
	.ph2c-banner, .ph2c-modal__dialog { border: 1px solid CanvasText; }
	.ph2c-switch span { border: 1px solid CanvasText; }
}
@media print { .ph2c { display: none !important; } }

/* Blocked embeds keep inside the column on narrow screens. */
iframe[data-ph2-src] { max-width: 100%; }
