/* ==============================================
   PVGroup Consent Banner — IBM Carbon styling
   Navy #1B2A4A + Orange #F28C00 + IBM Plex Sans
   ============================================== */

.pvg-consent {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 99999;
	background: #1B2A4A;
	color: #ffffff;
	border-top: 3px solid #F28C00;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
	font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	transform: translateY(100%);
	transition: transform 240ms cubic-bezier(0.2, 0, 0.2, 1);
	will-change: transform;
}

.pvg-consent[hidden] {
	display: none !important;
}

.pvg-consent.is-visible {
	transform: translateY(0);
}

.pvg-consent__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 32px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}

@media (max-width: 920px) {
	.pvg-consent__container {
		grid-template-columns: 1fr;
		padding: 20px 20px;
		gap: 16px;
	}
}

.pvg-consent__body {
	min-width: 0;
}

/* !important na wszystkich kolorach/tłach — Astra child wymusza własne kolory
   z !important na globalnych selektorach (h2, button, p). Bez tego tytuł byłby
   navy na navy tle (niewidoczny), a ghost buttons dostałyby orange background. */
.pvg-consent .pvg-consent__title {
	margin: 0 0 8px 0 !important;
	font-family: 'IBM Plex Sans', sans-serif !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	color: #ffffff !important;
	letter-spacing: -0.2px !important;
	background: transparent !important;
}

.pvg-consent .pvg-consent__desc {
	margin: 0 !important;
	color: #B0BDD0 !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
}

.pvg-consent .pvg-consent__desc a {
	color: #F28C00 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.pvg-consent .pvg-consent__desc a:hover {
	color: #ffffff !important;
}

/* ───── Preferences panel ───── */

.pvg-consent__prefs {
	margin-top: 16px;
	display: grid;
	gap: 12px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.04);
	border-left: 3px solid #F28C00;
}

.pvg-consent__prefs[hidden] {
	display: none;
}

.pvg-consent__option {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 12px;
	align-items: start;
	cursor: pointer;
	padding: 8px 4px;
	border-radius: 0;
	transition: background 120ms;
}

.pvg-consent__option:hover {
	background: rgba(255, 255, 255, 0.06);
}

.pvg-consent__option--locked {
	cursor: not-allowed;
	opacity: 0.7;
}

.pvg-consent__option input[type="checkbox"] {
	grid-row: 1 / span 2;
	margin-top: 2px;
	width: 18px;
	height: 18px;
	accent-color: #F28C00;
	cursor: pointer;
}

.pvg-consent__option--locked input[type="checkbox"] {
	cursor: not-allowed;
}

.pvg-consent .pvg-consent__option-title {
	font-weight: 500 !important;
	color: #ffffff !important;
	font-size: 14px !important;
}

.pvg-consent .pvg-consent__option-desc {
	grid-column: 2;
	color: #B0BDD0 !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
}

/* ───── Actions ───── */

.pvg-consent__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 180px;
}

@media (max-width: 920px) {
	.pvg-consent__actions {
		flex-direction: column;
		width: 100%;
	}
}

/* Wszystkie button style z !important — Astra child ma
   button:not(.menu-toggle):not(.ast-search-submit):not(.close){ background: #F28C00 !important }
   więc bez !important wszystkie przyciski byłyby pomarańczowe. */
#pvg-consent .pvg-consent__btn {
	font-family: 'IBM Plex Sans', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	padding: 12px 20px !important;
	border: 1px solid transparent !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	transition: background 160ms, color 160ms, border-color 160ms !important;
	text-align: center !important;
	min-height: 44px !important;
	white-space: nowrap !important;
	width: 100% !important;
}

#pvg-consent .pvg-consent__btn[hidden] {
	display: none !important;
}

#pvg-consent .pvg-consent__btn--primary {
	background: #F28C00 !important;
	color: #ffffff !important;
	border-color: #F28C00 !important;
}

#pvg-consent .pvg-consent__btn--primary:hover,
#pvg-consent .pvg-consent__btn--primary:focus {
	background: #D97B00 !important;
	border-color: #D97B00 !important;
	color: #ffffff !important;
	outline: none !important;
}

#pvg-consent .pvg-consent__btn--ghost {
	background: transparent !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
}

#pvg-consent .pvg-consent__btn--ghost:hover,
#pvg-consent .pvg-consent__btn--ghost:focus {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
	outline: none !important;
}

.pvg-consent__btn:focus-visible {
	outline: 2px solid #F28C00;
	outline-offset: 2px;
}

/* ───── Footer settings link (shortcode) ───── */

.pvg-consent-settings-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.pvg-consent-settings-link:hover {
	color: #F28C00;
}

/* ───── Reduced motion ───── */

@media (prefers-reduced-motion: reduce) {
	.pvg-consent {
		transition: none;
	}
}
