:root {
	--wpcm-panel: #262c3d;
	--wpcm-panel-soft: rgba(255, 255, 255, 0.05);
	--wpcm-text: #eef1f7;
	--wpcm-muted: #a6adc0;
	--wpcm-border: rgba(255, 255, 255, 0.12);
	--wpcm-line: rgba(255, 255, 255, 0.08);
	--wpcm-shadow: 0 18px 50px rgba(8, 10, 20, 0.45);
	--wpcm-accent: #4d8bf5;
	--wpcm-accent-strong: #6ba0ff;
	--wpcm-accent-soft: rgba(77, 139, 245, 0.16);
	--wpcm-on-accent: #ffffff;
	--wpcm-focus: #4d8bf5;
}

.wpcm-v2-theme-white {
	--wpcm-panel: #ffffff;
	--wpcm-panel-soft: rgba(20, 24, 42, 0.035);
	--wpcm-text: #161a2a;
	--wpcm-muted: #5a6178;
	--wpcm-border: rgba(20, 24, 42, 0.1);
	--wpcm-line: rgba(20, 24, 42, 0.07);
	--wpcm-shadow: 0 18px 50px rgba(20, 24, 42, 0.14);
	--wpcm-accent: #2563eb;
	--wpcm-accent-strong: #1d4ed8;
	--wpcm-accent-soft: rgba(37, 99, 235, 0.08);
	--wpcm-focus: #2563eb;
}

.wpcm-v2-lock-scroll {
	overflow: hidden;
}

.wpcm-v2-root {
	color: var(--wpcm-text);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: relative;
	z-index: 2147483000;
}

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

/* No backdrop / blur behind the banner: the page stays fully visible and usable. */

.wpcm-v2-banner {
	align-items: center;
	animation: wpcm-v2-fadeup 420ms cubic-bezier(0.16, 0.84, 0.44, 1) both;
	background: var(--wpcm-panel);
	border: 1px solid var(--wpcm-border);
	border-radius: 16px;
	bottom: 22px;
	box-shadow: var(--wpcm-shadow);
	display: flex;
	flex-direction: row;
	gap: 28px;
	left: 50%;
	max-width: 720px;
	padding: 22px 24px;
	position: fixed;
	transform: translate(-50%, 0);
	width: calc(100% - 40px);
	z-index: 2147483001;
}

.wpcm-v2-banner-copy {
	flex: 1 1 auto;
	min-width: 0;
}

@keyframes wpcm-v2-fadeup {
	from {
		opacity: 0;
		transform: translate(-50%, 20px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes wpcm-v2-fadeup-mobile {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wpcm-v2-brandrow {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 10px;
	min-height: 24px;
}

.wpcm-v2-brand-left,
.wpcm-v2-brand-right {
	align-items: center;
	display: inline-flex;
}

.wpcm-v2-brand {
	display: inline-flex;
	text-decoration: none;
}

.wpcm-v2-brand img {
	display: block;
	height: 20px !important;
	max-height: 20px !important;
	max-width: 120px !important;
	object-fit: contain;
	opacity: 0.92;
	width: auto !important;
}

.wpcm-v2-site-logo img {
	display: block;
	height: 30px !important;
	max-height: 30px !important;
	max-width: 150px !important;
	object-fit: contain;
	width: auto !important;
}

.wpcm-v2-banner-copy h2,
.wpcm-v2-modal h2 {
	color: var(--wpcm-text);
	font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 6px;
}

.wpcm-v2-banner-copy p,
.wpcm-v2-modal p,
.wpcm-v2-toggle-copy small {
	color: var(--wpcm-muted);
	font-size: 13px;
	line-height: 1.55;
	margin: 0;
}

.wpcm-v2-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 10px;
}

.wpcm-v2-links a {
	color: var(--wpcm-muted);
	font-size: 11.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color 140ms ease;
}

.wpcm-v2-links a:hover {
	color: var(--wpcm-text);
}

.wpcm-v2-link-primary {
	color: var(--wpcm-accent) !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.wpcm-v2-link-primary:hover {
	color: var(--wpcm-accent-strong) !important;
}

.wpcm-v2-actions {
	display: flex;
	flex: 0 0 196px;
	flex-direction: column;
	gap: 8px;
}

.wpcm-v2-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	justify-content: center;
	line-height: 1;
	min-height: 44px;
	padding: 12px 16px;
	transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
	width: 100%;
}

.wpcm-v2-btn:focus-visible,
.wpcm-v2-close:focus-visible,
.wpcm-v2-sticky:focus-visible,
.wpcm-v2-toggle-row input:focus-visible + .wpcm-v2-toggle {
	box-shadow: 0 0 0 3px var(--wpcm-accent-soft);
	outline: 2px solid var(--wpcm-focus);
	outline-offset: 2px;
}

/* Accept: the single clear primary action — solid blue, no loud green. */
.wpcm-v2-btn-primary {
	background: var(--wpcm-accent);
	color: var(--wpcm-on-accent);
	order: -3;
}

.wpcm-v2-btn-primary:hover {
	background: var(--wpcm-accent-strong);
}

/* Customize: low-emphasis ghost. */
.wpcm-v2-btn-ghost {
	background: var(--wpcm-panel-soft);
	color: var(--wpcm-text);
	order: -2;
}

.wpcm-v2-btn-ghost:hover {
	background: var(--wpcm-accent-soft);
}

/* Reject: neutral outline, deliberately quiet (no red). */
.wpcm-v2-btn-secondary {
	background: transparent;
	border-color: var(--wpcm-border);
	color: var(--wpcm-muted);
	order: -1;
}

.wpcm-v2-btn-secondary:hover {
	border-color: var(--wpcm-text);
	color: var(--wpcm-text);
}

.wpcm-v2-btn-save {
	background: var(--wpcm-accent);
	color: var(--wpcm-on-accent);
}

.wpcm-v2-btn-save:hover {
	background: var(--wpcm-accent-strong);
}

/* Floating cookie launcher: flush to the screen edge, always clickable, grows on hover. */
.wpcm-v2-sticky {
	align-items: center;
	background: var(--wpcm-panel);
	border: 1px solid var(--wpcm-border);
	border-radius: 0 14px 14px 0;
	bottom: 18px;
	box-shadow: var(--wpcm-shadow);
	color: var(--wpcm-accent);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 48px;
	justify-content: center;
	left: 0;
	padding: 0;
	position: fixed;
	transform-origin: left center;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
	width: 46px;
	z-index: 2147482999;
}

.wpcm-v2-sticky:hover,
.wpcm-v2-sticky:focus-visible {
	background: var(--wpcm-accent-soft);
	transform: scale(1.08);
}

/* Position presets — flush to the chosen edge, scale grows inward so it never overflows. */
.wpcm-v2-pos-left-top .wpcm-v2-sticky,
.wpcm-v2-pos-left-middle .wpcm-v2-sticky,
.wpcm-v2-pos-left-bottom .wpcm-v2-sticky {
	border-radius: 0 14px 14px 0;
	left: 0;
	right: auto;
	transform-origin: left center;
}

.wpcm-v2-pos-right-top .wpcm-v2-sticky,
.wpcm-v2-pos-right-middle .wpcm-v2-sticky,
.wpcm-v2-pos-right-bottom .wpcm-v2-sticky {
	border-radius: 14px 0 0 14px;
	left: auto;
	right: 0;
	transform-origin: right center;
}

.wpcm-v2-pos-left-top .wpcm-v2-sticky,
.wpcm-v2-pos-right-top .wpcm-v2-sticky {
	bottom: auto;
	top: 18px;
}

.wpcm-v2-pos-left-bottom .wpcm-v2-sticky,
.wpcm-v2-pos-right-bottom .wpcm-v2-sticky {
	bottom: 18px;
	top: auto;
}

.wpcm-v2-pos-left-middle .wpcm-v2-sticky,
.wpcm-v2-pos-right-middle .wpcm-v2-sticky {
	bottom: auto;
	margin-top: -24px;
	top: 50%;
}

.wpcm-v2-sticky svg {
	height: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 22px;
}

.wpcm-v2-sticky svg circle {
	fill: currentColor;
	stroke: none;
}

.wpcm-v2-banner-visible .wpcm-v2-sticky {
	display: none;
}

/* Preferences modal — centered, calm, with internal scroll on the category list. */
.wpcm-v2-overlay {
	background: rgba(10, 12, 22, 0.5);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 180ms ease;
	z-index: 2147483000;
}

.wpcm-v2-theme-white .wpcm-v2-overlay {
	background: rgba(20, 24, 42, 0.28);
}

.wpcm-v2-modal {
	background: var(--wpcm-panel);
	border: 1px solid var(--wpcm-border);
	border-radius: 18px;
	box-shadow: var(--wpcm-shadow);
	display: flex;
	flex-direction: column;
	left: 50%;
	max-height: min(620px, calc(100vh - 32px));
	max-width: min(540px, calc(100% - 32px));
	opacity: 0;
	overflow: hidden;
	padding: 24px;
	pointer-events: none;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -48%) scale(0.98);
	transition: opacity 180ms ease, transform 180ms ease;
	width: 100%;
	z-index: 2147483001;
}

.wpcm-v2-panel-open .wpcm-v2-overlay,
.wpcm-v2-panel-open .wpcm-v2-modal {
	opacity: 1;
	pointer-events: auto;
}

.wpcm-v2-panel-open .wpcm-v2-modal {
	transform: translate(-50%, -50%) scale(1);
}

.wpcm-v2-modal-head {
	align-items: flex-start;
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.wpcm-v2-modal h2 {
	font-size: 18px;
	margin-bottom: 6px;
}

.wpcm-v2-modal .wpcm-v2-brand {
	margin-bottom: 12px;
}

.wpcm-v2-close {
	align-items: center;
	background: transparent;
	border: 1px solid var(--wpcm-line);
	border-radius: 999px;
	color: var(--wpcm-muted);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	font-size: 22px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	transition: color 140ms ease, border-color 140ms ease;
	width: 34px;
}

.wpcm-v2-close:hover {
	border-color: var(--wpcm-text);
	color: var(--wpcm-text);
}

.wpcm-v2-details-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid var(--wpcm-border);
	border-radius: 999px;
	color: var(--wpcm-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	margin-top: 12px;
	padding: 7px 14px;
	transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.wpcm-v2-details-toggle svg {
	height: 16px;
	width: 16px;
}

.wpcm-v2-details-toggle:hover {
	background: var(--wpcm-accent-soft);
	border-color: var(--wpcm-accent);
	color: var(--wpcm-accent);
}

.wpcm-v2-details {
	background: var(--wpcm-panel-soft);
	border: 1px solid var(--wpcm-line);
	border-radius: 12px;
	margin-top: 12px;
	padding: 12px 14px;
}

.wpcm-v2-detail-list {
	display: grid;
	gap: 10px;
	margin: 0;
}

.wpcm-v2-detail-row {
	display: grid;
	gap: 2px;
}

.wpcm-v2-detail-row dt {
	color: var(--wpcm-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: 0;
	text-transform: uppercase;
}

.wpcm-v2-detail-row dd {
	color: var(--wpcm-text);
	font-size: 14px;
	margin: 0;
	word-break: break-all;
}

.wpcm-v2-detail-row dd code {
	background: var(--wpcm-panel-soft);
	border: 1px solid var(--wpcm-line);
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	padding: 2px 6px;
}

/* Category list scrolls internally: ~3 rows visible, the rest reachable by scroll. */
.wpcm-v2-form {
	display: grid;
	flex: 1 1 auto;
	gap: 2px;
	max-height: 240px;
	min-height: 0;
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-color: var(--wpcm-accent-soft) transparent;
	scrollbar-width: thin;
}

.wpcm-v2-form::-webkit-scrollbar {
	width: 6px;
}

.wpcm-v2-form::-webkit-scrollbar-track {
	background: transparent;
}

.wpcm-v2-form::-webkit-scrollbar-thumb {
	background: var(--wpcm-accent-soft);
	border-radius: 999px;
}

.wpcm-v2-toggle-row {
	align-items: center;
	border-bottom: 1px solid var(--wpcm-line);
	cursor: pointer;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 14px 2px;
}

.wpcm-v2-toggle-row:last-of-type {
	border-bottom: 0;
}

.wpcm-v2-toggle-copy {
	align-items: center;
	display: grid;
	gap: 11px;
	grid-template-columns: auto minmax(0, 1fr);
}

.wpcm-v2-category-icon {
	align-items: center;
	color: var(--wpcm-accent);
	display: inline-flex;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.wpcm-v2-category-icon svg {
	height: 19px;
	width: 19px;
}

.wpcm-v2-category-text {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.wpcm-v2-toggle-copy strong {
	color: var(--wpcm-text);
	font-size: 14px;
	font-weight: 600;
}

.wpcm-v2-toggle-row input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.wpcm-v2-toggle {
	background: rgba(166, 173, 192, 0.32);
	border-radius: 999px;
	flex: 0 0 auto;
	height: 24px;
	position: relative;
	transition: background 160ms ease;
	width: 44px;
}

.wpcm-v2-toggle::after {
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.22);
	content: "";
	height: 18px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 160ms ease;
	width: 18px;
}

.wpcm-v2-toggle-row input:checked + .wpcm-v2-toggle {
	background: var(--wpcm-accent);
}

.wpcm-v2-toggle-row input:checked + .wpcm-v2-toggle::after {
	transform: translateX(20px);
}

.wpcm-v2-toggle-row input:disabled + .wpcm-v2-toggle {
	opacity: 0.6;
}

.wpcm-v2-modal-actions {
	border-top: 1px solid var(--wpcm-line);
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 16px;
	padding-top: 16px;
}

.wpcm-v2-modal-actions .wpcm-v2-btn {
	flex: 1 1 140px;
	width: auto;
}

.wpcm-v2-embed-placeholder {
	align-items: center;
	background: var(--wpcm-panel-soft);
	border: 1px solid var(--wpcm-line);
	border-radius: 14px;
	display: grid;
	gap: 12px;
	justify-items: center;
	min-height: 200px;
	padding: 24px;
	text-align: center;
}

.wpcm-v2-embed-placeholder iframe {
	display: none;
}

.wpcm-v2-embed-unlocked {
	background: transparent;
	border: 0;
	display: block;
	min-height: 0;
	padding: 0;
}

.wpcm-v2-embed-unlocked > p,
.wpcm-v2-embed-unlocked > button {
	display: none;
}

.wpcm-v2-embed-unlocked iframe {
	display: block;
}

/* Mobile: near full-width bottom card. */
@media (max-width: 680px) {
	/* Pinned to both edges so the banner can never widen the page on mobile. */
	.wpcm-v2-banner {
		animation-name: wpcm-v2-fadeup-mobile;
		bottom: 12px;
		flex-direction: column;
		gap: 14px;
		left: 12px;
		max-width: none;
		padding: 18px;
		right: 12px;
		transform: none;
		width: auto;
	}

	.wpcm-v2-actions {
		flex: 0 0 auto;
		width: 100%;
	}

	.wpcm-v2-modal {
		max-height: calc(100svh - 20px);
		max-width: calc(100% - 20px);
		padding: 20px;
	}

	.wpcm-v2-modal-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.wpcm-v2-modal-actions .wpcm-v2-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcm-v2-banner,
	.wpcm-v2-btn,
	.wpcm-v2-overlay,
	.wpcm-v2-modal,
	.wpcm-v2-toggle,
	.wpcm-v2-toggle::after,
	.wpcm-v2-sticky {
		animation: none;
		transition: none;
	}
}
