:root {
	--pfc-bg: #ffffff;
	--pfc-text: #152238;
	--pfc-muted: #4b5565;
	--pfc-border: #cbd2dc;
	--pfc-accent: #173f6f;
	--pfc-accent-hover: #0f315a;
	--pfc-on-accent: #ffffff;
	--pfc-secondary-bg: #ffffff;
	--pfc-secondary-text: #173f6f;
	--pfc-secondary-hover: #eef2f6;
	--pfc-switch-active: #173f6f;
	--pfc-switch-inactive: #737d8c;
	--pfc-switch-handle: #ffffff;
	--pfc-reopen-bg: #173f6f;
	--pfc-reopen-text: #ffffff;
	--pfc-reopen-hover: #0f315a;
	--pfc-focus: #ffbf47;
}

.pfc-dialog[hidden],
.pfc-reopen[hidden],
[data-pfc-view][hidden] {
	display: none !important;
}

.pfc-dialog {
	bottom: 0;
	box-sizing: border-box;
	color: var(--pfc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	left: 0;
	padding: 16px;
	pointer-events: none;
	position: fixed;
	right: 0;
	z-index: 2147483000;
}

.pfc-dialog *,
.pfc-embed-placeholder *,
.pfc-reopen,
.pfc-reopen * {
	box-sizing: border-box;
}

.pfc-consent-root .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.pfc-dialog__panel {
	background: var(--pfc-bg);
	border: 1px solid var(--pfc-border);
	border-radius: 12px;
	box-shadow: 0 14px 45px rgba(17, 31, 51, 0.22);
	margin: 0 auto;
	max-width: 1040px;
	max-height: min(84vh, 760px);
	overflow: auto;
	padding: clamp(20px, 3vw, 32px);
	pointer-events: auto;
}

.pfc-summary {
	position: relative;
}

.pfc-summary--with-logo {
	min-height: 68px;
	padding-right: clamp(128px, 19vw, 188px);
}

.pfc-dialog__brand {
	align-items: flex-start;
	display: flex;
	justify-content: flex-end;
	position: absolute;
	right: 0;
	top: 0;
	width: clamp(108px, 16vw, 160px);
}

.pfc-dialog__logo {
	display: block;
	height: auto;
	max-height: 62px;
	max-width: 100%;
	object-fit: contain;
	object-position: right top;
	width: auto;
}

.pfc-dialog__logo--icon {
	height: 52px;
	width: 52px;
}

.pfc-dialog h2 {
	color: var(--pfc-text);
	font-size: clamp(1.25rem, 2.3vw, 1.65rem);
	line-height: 1.25;
	margin: 0 0 10px;
}

.pfc-dialog p {
	color: var(--pfc-muted);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0 0 14px;
}

.pfc-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 8px 0 18px;
}

.pfc-legal-links a,
.pfc-service a,
.pfc-embed-placeholder a {
	color: var(--pfc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pfc-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 20px;
}

.pfc-button,
.pfc-reopen,
.pfc-inline-settings,
.pfc-link-button,
.pfc-close {
	appearance: none;
	cursor: pointer;
	font: inherit;
}

.pfc-button {
	border-radius: 7px;
	font-weight: 700;
	line-height: 1.25;
	min-height: 46px;
	padding: 11px 16px;
}

.pfc-button--equal,
.pfc-button--primary {
	background: var(--pfc-accent);
	border: 2px solid var(--pfc-accent);
	color: var(--pfc-on-accent);
}

.pfc-button--equal:hover,
.pfc-button--primary:hover {
	background: var(--pfc-accent-hover);
	border-color: var(--pfc-accent-hover);
}

.pfc-button--secondary {
	background: var(--pfc-secondary-bg);
	border: 2px solid var(--pfc-secondary-text);
	color: var(--pfc-secondary-text);
}

.pfc-button--secondary:hover {
	background: var(--pfc-secondary-hover);
}

.pfc-settings-heading {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.pfc-close {
	background: transparent;
	border: 0;
	color: var(--pfc-text);
	font-size: 30px;
	line-height: 1;
	padding: 0 4px;
}

.pfc-category-list {
	border-top: 1px solid var(--pfc-border);
	margin-top: 16px;
}

.pfc-category {
	border-bottom: 1px solid var(--pfc-border);
	padding: 14px 0;
}

.pfc-category__head {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.pfc-category__head strong,
.pfc-category__head small,
.pfc-service strong,
.pfc-service small {
	display: block;
}

.pfc-category__head small,
.pfc-service small {
	color: var(--pfc-muted);
	font-size: 0.875rem;
	line-height: 1.45;
	margin-top: 4px;
}

.pfc-switch {
	display: inline-flex;
	flex: 0 0 auto;
	position: relative;
}

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

.pfc-switch span[aria-hidden] {
	background: var(--pfc-switch-inactive);
	border-radius: 20px;
	display: block;
	height: 26px;
	position: relative;
	transition: background 0.15s ease;
	width: 46px;
}

.pfc-switch span[aria-hidden]::after {
	background: var(--pfc-switch-handle);
	border-radius: 50%;
	content: "";
	height: 20px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 0.15s ease;
	width: 20px;
}

.pfc-switch input:checked + span[aria-hidden] {
	background: var(--pfc-switch-active);
}

.pfc-switch input:checked + span[aria-hidden]::after {
	transform: translateX(20px);
}

.pfc-switch input:indeterminate + span[aria-hidden] {
	background: var(--pfc-switch-active);
}

.pfc-switch input:disabled + span[aria-hidden] {
	cursor: not-allowed;
	opacity: 0.65;
}

.pfc-service-details {
	margin-top: 10px;
}

.pfc-service-details summary {
	color: var(--pfc-accent);
	cursor: pointer;
	font-weight: 650;
}

.pfc-service {
	align-items: flex-start;
	border-top: 1px dashed var(--pfc-border);
	display: flex;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
}

.pfc-service input {
	flex: 0 0 auto;
	height: 20px;
	margin-top: 2px;
	width: 20px;
}

.pfc-service span {
	flex: 1 1 auto;
}

.pfc-service em {
	color: var(--pfc-muted);
	font-size: 0.82rem;
}

.pfc-embed-placeholder {
	align-items: center;
	background: var(--pfc-bg);
	border: 1px solid var(--pfc-border);
	color: var(--pfc-text);
	display: flex;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	justify-content: center;
	min-height: var(--pfc-placeholder-height, 320px);
	padding: 24px;
	text-align: center;
	width: 100%;
}

.pfc-embed-placeholder__inner {
	max-width: 620px;
}

.pfc-embed-placeholder__inner > strong {
	display: block;
	font-size: 1.15rem;
	margin-bottom: 8px;
}

.pfc-embed-placeholder__inner p {
	color: var(--pfc-muted);
	line-height: 1.5;
	margin: 0 0 16px;
}

.pfc-link-button,
.pfc-inline-settings {
	background: transparent;
	border: 0;
	color: var(--pfc-accent);
	padding: 8px 10px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#pfc-consent-root .pfc-reopen {
	align-items: center;
	appearance: none !important;
	background-color: var(--pfc-reopen-bg) !important;
	background-image: none !important;
	block-size: 50px !important;
	border: 2px solid var(--pfc-reopen-text) !important;
	border-radius: 999px !important;
	bottom: 14px;
	box-shadow: 0 4px 18px rgba(17, 31, 51, 0.2);
	box-sizing: border-box !important;
	color: var(--pfc-reopen-text) !important;
	display: inline-flex !important;
	font-size: 13px;
	font-weight: 700;
	gap: 0;
	height: 50px !important;
	inline-size: 50px !important;
	letter-spacing: normal !important;
	line-height: 1 !important;
	margin: 0 !important;
	max-inline-size: 50px !important;
	max-width: 50px !important;
	min-inline-size: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
	padding: 0 !important;
	position: fixed;
	text-decoration: none !important;
	text-indent: 0 !important;
	text-transform: none !important;
	transition: background 0.18s ease, box-shadow 0.18s ease, width 0.24s ease;
	width: 50px !important;
	white-space: nowrap;
	z-index: 2147482000;
}

#pfc-consent-root .pfc-reopen::before,
#pfc-consent-root .pfc-reopen::after {
	content: none !important;
	display: none !important;
}

#pfc-consent-root .pfc-reopen:hover,
#pfc-consent-root .pfc-reopen:focus-visible {
	background-color: var(--pfc-reopen-hover) !important;
	box-shadow: 0 6px 24px rgba(17, 31, 51, 0.28);
	inline-size: min(238px, calc(100vw - 28px)) !important;
	max-inline-size: min(238px, calc(100vw - 28px)) !important;
	max-width: min(238px, calc(100vw - 28px)) !important;
	width: min(238px, calc(100vw - 28px)) !important;
}

.pfc-reopen__icon {
	align-items: center;
	display: inline-flex;
	flex: 0 0 46px;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.pfc-reopen__icon svg {
	fill: none;
	height: 25px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 25px;
}

.pfc-reopen__label {
	display: block;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	padding-right: 0;
	transform: translateX(-5px);
	transition: max-width 0.24s ease, opacity 0.16s ease, padding 0.24s ease, transform 0.24s ease;
}

.pfc-reopen:hover .pfc-reopen__label,
.pfc-reopen:focus-visible .pfc-reopen__label {
	max-width: 188px;
	opacity: 1;
	padding-right: 16px;
	transform: translateX(0);
}

.pfc-reopen--bottom-left {
	left: 14px;
}

.pfc-reopen--bottom-right {
	right: 14px;
}

.pfc-button:focus-visible,
.pfc-close:focus-visible,
.pfc-link-button:focus-visible,
.pfc-reopen:focus-visible,
.pfc-inline-settings:focus-visible,
.pfc-switch input:focus-visible + span[aria-hidden],
.pfc-service input:focus-visible {
	outline: 3px solid var(--pfc-focus);
	outline-offset: 3px;
}

.pfc-editor-warning {
	background: #fff4ce;
	border: 1px solid #dba617;
	padding: 12px;
}

@media (max-width: 720px) {
	.pfc-dialog {
		padding: 8px;
	}

	.pfc-dialog__panel {
		border-radius: 9px;
		max-height: 88vh;
		padding: 18px;
	}

	.pfc-summary--with-logo {
		min-height: 0;
		padding-right: 0;
	}

	.pfc-dialog__brand {
		margin: 0 0 14px auto;
		position: static;
		width: min(132px, 42vw);
	}

	.pfc-actions {
		grid-template-columns: 1fr;
	}

}

@media (prefers-reduced-motion: reduce) {
	.pfc-switch span[aria-hidden],
	.pfc-switch span[aria-hidden]::after,
	.pfc-reopen,
	.pfc-reopen__label {
		transition: none;
	}
}
