.pcc-banner {
	--pcc-accent: #1a56db;
	--pcc-bg: #ffffff;
	--pcc-text: #111827;
	--pcc-radius: 14px;
	--pcc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--pcc-muted: color-mix(in srgb, var(--pcc-text) 55%, transparent);
	--pcc-border: color-mix(in srgb, var(--pcc-text) 12%, transparent);

	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	font-family: var(--pcc-font);
	color: var(--pcc-text);
	animation: pcc-rise 0.35s ease-out;
}
.pcc-banner[hidden] { display: none; }

@keyframes pcc-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.pcc-banner { animation: none; }
}

.pcc-position-bottom {
	bottom: 0;
	padding: 16px;
}
.pcc-position-bottom .pcc-banner__inner {
	max-width: 1040px;
	margin: 0 auto;
	border-radius: var(--pcc-radius);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

.pcc-position-top {
	top: 0;
	padding: 16px;
}
.pcc-position-top .pcc-banner__inner {
	max-width: 1040px;
	margin: 0 auto;
	border-radius: var(--pcc-radius);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

.pcc-position-modal {
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(2px);
	padding: 16px;
}
.pcc-position-modal .pcc-banner__inner {
	max-width: 460px;
	border-radius: calc(var(--pcc-radius) + 4px);
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.pcc-banner__inner {
	background: var(--pcc-bg);
	padding: 22px 24px 20px;
	border: 1px solid var(--pcc-border);
}

.pcc-banner__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}
.pcc-banner__icon {
	display: inline-flex;
	color: var(--pcc-accent);
	flex-shrink: 0;
}
.pcc-banner__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.pcc-banner__text {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--pcc-muted);
}
.pcc-banner__privacy {
	color: var(--pcc-text);
	text-decoration: underline;
	white-space: nowrap;
}

/* Category list */
.pcc-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 8px;
	margin: 4px 0 16px;
}
.pcc-categories[hidden] { display: none; }

.pcc-category {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid var(--pcc-border);
	border-radius: calc(var(--pcc-radius) * 0.6);
	background: color-mix(in srgb, var(--pcc-text) 3%, var(--pcc-bg));
}
.pcc-category.is-locked { opacity: 0.85; }

.pcc-category__icon {
	color: var(--pcc-accent);
	flex-shrink: 0;
	margin-top: 2px;
}

.pcc-category__body {
	flex: 1;
	min-width: 0;
}
.pcc-category__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.pcc-category__row strong {
	font-size: 12.5px;
	font-weight: 650;
}
.pcc-category small {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	line-height: 1.4;
	color: var(--pcc-muted);
}

/* Per-category cookie list */
.pcc-cookie-list {
	margin-top: 6px;
	font-size: 11px;
}
.pcc-cookie-list summary {
	cursor: pointer;
	color: var(--pcc-accent);
	font-weight: 600;
	list-style: none;
}
.pcc-cookie-list summary::-webkit-details-marker { display: none; }
.pcc-cookie-list summary::before { content: '▸ '; }
.pcc-cookie-list[open] summary::before { content: '▾ '; }
.pcc-cookie-list__items {
	margin: 6px 0 0;
	padding-left: 14px;
	max-height: 120px;
	overflow-y: auto;
}
.pcc-cookie-list__items li {
	margin-bottom: 3px;
	color: var(--pcc-muted);
}
.pcc-cookie-list__items code {
	background: color-mix(in srgb, var(--pcc-text) 8%, transparent);
	padding: 1px 4px;
	border-radius: 4px;
}
.pcc-cookie-list__empty {
	display: block;
	margin-top: 6px;
	font-style: italic;
	color: var(--pcc-muted);
}

/* Toggle switch */
.pcc-toggle {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 20px;
	flex-shrink: 0;
	cursor: pointer;
}
.pcc-toggle input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}
.pcc-toggle__slider {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--pcc-text) 22%, transparent);
	border-radius: 999px;
	transition: background 0.15s ease;
}
.pcc-toggle__slider::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s ease;
}
.pcc-toggle input:checked + .pcc-toggle__slider {
	background: var(--pcc-accent);
}
.pcc-toggle input:checked + .pcc-toggle__slider::before {
	transform: translateX(14px);
}
.pcc-toggle input:disabled + .pcc-toggle__slider {
	cursor: not-allowed;
}
.pcc-toggle input:focus-visible + .pcc-toggle__slider {
	outline: 2px solid var(--pcc-accent);
	outline-offset: 2px;
}

/* Actions */
.pcc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.pcc-actions__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pcc-btn {
	border: none;
	border-radius: calc(var(--pcc-radius) * 0.55);
	padding: 9px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	transition: transform 0.1s ease, opacity 0.15s ease;
}
.pcc-btn:hover { opacity: 0.88; }
.pcc-btn:active { transform: scale(0.97); }
.pcc-btn:focus-visible { outline: 2px solid var(--pcc-accent); outline-offset: 2px; }

.pcc-btn--solid { background: var(--pcc-accent); color: #fff; }
.pcc-btn--outline { background: transparent; color: var(--pcc-text); border: 1.5px solid var(--pcc-border); }
.pcc-btn--text {
	background: transparent;
	color: var(--pcc-accent);
	padding: 9px 4px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.pcc-chevron { transition: transform 0.2s ease; }
.pcc-btn--text.is-open .pcc-chevron { transform: rotate(180deg); }

/* Floating reopen button */
.pcc-float-btn {
	--pcc-accent: #1a56db;
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 999998;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--pcc-bg, #fff);
	color: var(--pcc-accent);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease;
}
.pcc-float-btn:hover { transform: scale(1.08); }
.pcc-float-btn[hidden] { display: none; }

.pcc-reopen-banner {
	background: none;
	border: none;
	color: var(--pcc-accent, #1a56db);
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
	padding: 0;
}

@media (max-width: 600px) {
	.pcc-actions { flex-direction: column; align-items: stretch; }
	.pcc-actions__buttons { flex-direction: column; }
	.pcc-btn { width: 100%; text-align: center; }
	.pcc-btn--text { align-self: flex-start; width: auto; }
	.pcc-categories { grid-template-columns: 1fr; }
}

/* Blocked iframe embeds (YouTube, Vimeo, Google Maps, etc.) */
.pcc-iframe-facade {
	position: relative;
	width: 100%;
	border-radius: calc(var(--pcc-radius, 14px) * 0.6);
	overflow: hidden;
	background: #111827;
}
.pcc-iframe-facade__btn {
	all: unset;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 180px;
	padding: 24px;
	cursor: pointer;
	color: #fff;
	text-align: center;
	background: rgba(17, 23, 42, 0.55);
	font-family: var(--pcc-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}
.pcc-iframe-facade__btn:hover { background: rgba(17, 23, 42, 0.7); }
.pcc-iframe-facade__btn:focus-visible { outline: 2px solid var(--pcc-accent, #1a56db); outline-offset: 2px; }
.pcc-iframe-facade__play {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--pcc-accent, #1a56db);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.pcc-iframe-facade__label {
	font-size: 13px;
	max-width: 340px;
	line-height: 1.45;
}

@media print {
	#pcc-banner,
	.pcc-float-btn { display: none !important; }
}
