.pdcc-root {
	--pdcc-accent: #2457d6;
	--pdcc-background: #fff;
	--pdcc-text: #172033;
	--pdcc-border: #d8dee9;
	--pdcc-overlay: rgb(16 21 34 / 64%);
	--pdcc-radius: 12px;
	--pdcc-z-index: 999999;

	color: var(--pdcc-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.pdcc-root *,
.pdcc-root *::before,
.pdcc-root *::after {
	box-sizing: border-box;
}

.pdcc-root [hidden] {
	display: none !important;
}

.pdcc-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--pdcc-z-index);
	margin: 0;
	padding: 18px max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	border-top: 1px solid var(--pdcc-border);
	background: var(--pdcc-background);
	box-shadow: 0 -8px 30px rgb(16 21 34 / 12%);
	color: var(--pdcc-text);
}

.pdcc-root[data-position="top"] .pdcc-banner {
	top: 0;
	bottom: auto;
	padding-top: max(18px, env(safe-area-inset-top));
	border-top: 0;
	border-bottom: 1px solid var(--pdcc-border);
	box-shadow: 0 8px 30px rgb(16 21 34 / 12%);
}

.pdcc-banner__content {
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.pdcc-banner__copy {
	max-width: 760px;
}

.pdcc-root .pdcc-title,
.pdcc-root h3,
.pdcc-root p {
	margin-top: 0;
	color: var(--pdcc-text);
	font-family: inherit;
}

.pdcc-root .pdcc-title {
	margin-bottom: 8px;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.2;
}

.pdcc-root p {
	margin-bottom: 12px;
}

.pdcc-banner__actions,
.pdcc-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pdcc-banner__actions {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.pdcc-button,
.pdcc-manage-control {
	appearance: none;
	min-height: 44px;
	margin: 0;
	padding: 10px 17px;
	border: 2px solid var(--pdcc-accent);
	border-radius: max(5px, calc(var(--pdcc-radius) - 4px));
	background: transparent;
	box-shadow: none;
	color: var(--pdcc-accent);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.pdcc-button--primary {
	background: var(--pdcc-accent);
	color: #fff;
}

.pdcc-button--secondary {
	background: transparent;
	color: var(--pdcc-accent);
}

.pdcc-button--text {
	min-height: 40px;
	padding-right: 8px;
	padding-left: 8px;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pdcc-button:hover,
.pdcc-manage-control:hover {
	filter: brightness(0.9);
}

.pdcc-button:focus-visible,
.pdcc-manage-control:focus-visible,
.pdcc-modal__close:focus-visible,
.pdcc-switch input:focus-visible + .pdcc-switch__control,
.pdcc-policy-links a:focus-visible,
.pdcc-fixed-button:focus-visible {
	outline: 3px solid var(--pdcc-text);
	outline-offset: 3px;
}

.pdcc-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.pdcc-policy-links a {
	color: var(--pdcc-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pdcc-root[data-layout="centered"] .pdcc-banner {
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border: 0;
	background: var(--pdcc-overlay);
}

.pdcc-root[data-layout="centered"] .pdcc-banner__content {
	display: block;
	width: min(620px, 100%);
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid var(--pdcc-border);
	border-radius: var(--pdcc-radius);
	background: var(--pdcc-background);
	box-shadow: 0 22px 70px rgb(0 0 0 / 30%);
}

.pdcc-root[data-layout="centered"] .pdcc-banner__actions {
	justify-content: flex-start;
	margin-top: 20px;
}

.pdcc-overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--pdcc-z-index) + 1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	background: var(--pdcc-overlay);
}

.pdcc-modal {
	display: flex;
	flex-direction: column;
	width: min(780px, 100%);
	max-height: min(88vh, 840px);
	overflow: hidden;
	border: 1px solid var(--pdcc-border);
	border-radius: var(--pdcc-radius);
	background: var(--pdcc-background);
	box-shadow: 0 22px 70px rgb(0 0 0 / 35%);
	color: var(--pdcc-text);
}

.pdcc-modal__header {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	justify-content: space-between;
	padding: clamp(20px, 4vw, 30px);
	border-bottom: 1px solid var(--pdcc-border);
}

.pdcc-modal__header p {
	margin-bottom: 0;
}

.pdcc-modal__close {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: -8px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pdcc-text);
	font-family: inherit;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.pdcc-modal__body {
	overflow: auto;
	padding: clamp(20px, 4vw, 30px);
	overscroll-behavior: contain;
}

.pdcc-category {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	border-bottom: 1px solid var(--pdcc-border);
}

.pdcc-category:first-child {
	padding-top: 0;
}

.pdcc-category__copy {
	max-width: 620px;
}

.pdcc-category h3,
.pdcc-cookie-list h3 {
	margin-bottom: 5px;
	font-size: 1.05rem;
	font-weight: 700;
}

.pdcc-category p {
	margin-bottom: 0;
	font-size: 0.94rem;
}

.pdcc-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 52px;
	height: 30px;
	cursor: pointer;
}

.pdcc-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pdcc-switch__control {
	position: absolute;
	inset: 0;
	border: 2px solid var(--pdcc-border);
	border-radius: 999px;
	background: #687386;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.pdcc-switch__control::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgb(0 0 0 / 30%);
	content: "";
	transition: transform 160ms ease;
}

.pdcc-switch input:checked + .pdcc-switch__control {
	border-color: var(--pdcc-accent);
	background: var(--pdcc-accent);
}

.pdcc-switch input:checked + .pdcc-switch__control::after {
	transform: translateX(22px);
}

.pdcc-switch input:disabled + .pdcc-switch__control {
	opacity: 0.72;
}

.pdcc-switch:has(input:disabled) {
	cursor: not-allowed;
}

.pdcc-cookie-list {
	margin-top: 30px;
}

.pdcc-table-wrap {
	overflow-x: auto;
}

.pdcc-cookie-list table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.pdcc-cookie-list th,
.pdcc-cookie-list td {
	padding: 10px;
	border: 1px solid var(--pdcc-border);
	color: var(--pdcc-text);
	text-align: left;
	vertical-align: top;
}

.pdcc-cookie-list thead th {
	background: color-mix(in srgb, var(--pdcc-border) 36%, var(--pdcc-background));
	font-weight: 700;
}

.pdcc-modal__footer {
	padding: 18px clamp(20px, 4vw, 30px);
	border-top: 1px solid var(--pdcc-border);
	background: var(--pdcc-background);
}

.pdcc-fixed-button {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: var(--pdcc-z-index);
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	place-items: center;
	border: 2px solid var(--pdcc-accent);
	border-radius: 50%;
	background: var(--pdcc-background);
	box-shadow: 0 5px 18px rgb(16 21 34 / 20%);
	color: var(--pdcc-accent);
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.pdcc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.pdcc-modal-open {
	overflow: hidden;
}

@media (width <= 760px) {
	.pdcc-banner__content {
		display: block;
	}

	.pdcc-banner__actions {
		justify-content: flex-start;
		margin-top: 16px;
	}

	.pdcc-banner__actions .pdcc-button {
		flex: 1 1 145px;
	}

	.pdcc-modal {
		max-height: calc(100vh - 24px);
	}

	.pdcc-modal__footer .pdcc-button {
		flex: 1 1 180px;
	}

	.pdcc-cookie-list thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.pdcc-cookie-list table,
	.pdcc-cookie-list tbody,
	.pdcc-cookie-list tr,
	.pdcc-cookie-list th,
	.pdcc-cookie-list td {
		display: block;
		width: 100%;
	}

	.pdcc-cookie-list tr {
		margin-bottom: 14px;
		border: 1px solid var(--pdcc-border);
	}

	.pdcc-cookie-list th,
	.pdcc-cookie-list td {
		border: 0;
		border-bottom: 1px solid var(--pdcc-border);
	}

	.pdcc-cookie-list td::before {
		display: block;
		margin-bottom: 2px;
		content: attr(data-label);
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pdcc-root *,
	.pdcc-root *::before,
	.pdcc-root *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
