/* Functional layout only — no brand styling */
.pcf-consent-root {
	position: relative;
	z-index: 99999;
}

.pcf-consent-banner {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: auto;
	width: min(26rem, calc(100vw - 2rem));
	max-height: min(80vh, 40rem);
	overflow: auto;
	padding: 1rem;
	box-sizing: border-box;
	background: #fff;
	color: #222;
	border: 1px solid #ddd;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.pcf-consent-banner[hidden],
.pcf-consent-prefs[hidden],
.pcf-consent-revoke[hidden],
.pcf-consent-btn[hidden] {
	display: none !important;
}

.pcf-consent-header {
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.pcf-consent-message {
	font-size: 0.875rem;
	line-height: 1.4;
	margin: 0 0 0.75rem;
}

.pcf-consent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
}

.pcf-consent-link {
	text-decoration: underline;
}

.pcf-consent-prefs {
	margin: 0 0 0.75rem;
	border-top: 1px solid #eee;
	padding-top: 0.75rem;
}

.pcf-consent-category {
	margin: 0 0 0.75rem;
}

.pcf-consent-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.pcf-consent-category-label {
	font-weight: 600;
	font-size: 0.875rem;
}

.pcf-consent-category-desc {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1.35;
	opacity: 0.85;
}

.pcf-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.pcf-consent-btn {
	cursor: pointer;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	border: 1px solid #ccc;
	background: #f7f7f7;
	color: #222;
}

.pcf-consent-btn-accept {
	background: #1e73be;
	border-color: #1e73be;
	color: #fff;
}

/* Semi-hidden bottom tab — peeks ~10px; full on hover / focus / .is-open */
.pcf-consent-revoke {
	position: fixed;
	left: 50%;
	bottom: 0;
	z-index: 99998;
	cursor: pointer;
	padding: 0.45rem 0.9rem 0.55rem;
	font-size: 0.75rem;
	line-height: 1.2;
	border: 1px solid #1a1a1a;
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	/* Collapsed: high-contrast so the peek strip is visible on light pages */
	background: #222;
	color: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, calc(100% - 12px));
	opacity: 0.92;
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
	max-width: calc(100vw - 2rem);
	overflow: hidden;
	text-overflow: ellipsis;
}

.pcf-consent-revoke:hover,
.pcf-consent-revoke:focus,
.pcf-consent-revoke:focus-visible,
.pcf-consent-revoke.is-open {
	transform: translate(-50%, 0);
	opacity: 1;
	outline: none;
	background: #fff;
	color: #222;
	border-color: #ccc;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
	.pcf-consent-banner {
		right: 0.5rem;
		bottom: 0.5rem;
		left: 0.5rem;
		width: auto;
	}

	.pcf-consent-revoke {
		font-size: 0.6875rem;
		padding: 0.4rem 0.7rem 0.5rem;
	}
}
