.joodit-cookie-compliance-root {
	--jcc-surface: var(--joodit-themeone-content-background, var(--joodit-themeone-paper, #fff));
	--jcc-surface-soft: var(--joodit-themeone-mist, #f6f7f7);
	--jcc-text: var(--joodit-themeone-content-text, var(--joodit-themeone-ink, #1d2327));
	--jcc-muted: var(--joodit-themeone-muted, #646970);
	--jcc-line: var(--joodit-themeone-line, #dcdcde);
	--jcc-accent: var(--joodit-themeone-menu-hover, var(--joodit-themeone-harbor, var(--wp--preset--color--primary, #2271b1)));
	--jcc-accent-text: var(--joodit-themeone-button-text, #fff);
	--jcc-backdrop: rgba(0, 0, 0, 0.38);
	--jcc-shadow: rgba(0, 0, 0, 0.24);
	position: relative;
	z-index: 99999;
}

.jcc-consent-open {
	overflow: hidden;
}

.jcc-backdrop {
	position: fixed;
	inset: 0;
	background: var(--jcc-backdrop);
}

.jcc-panel {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: min(620px, calc(100vw - 36px));
	max-height: min(760px, calc(100vh - 36px));
	overflow: auto;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--jcc-line);
	border-radius: 8px;
	background: var(--jcc-surface);
	color: var(--jcc-text);
	box-shadow: 0 24px 70px var(--jcc-shadow);
	font: 16px/1.45 var(--joodit-themeone-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.jcc-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.jcc-header h2 {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.2;
}

.jcc-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--jcc-line);
	border-radius: 4px;
	background: var(--jcc-surface);
	color: var(--jcc-text);
	font: inherit;
	cursor: pointer;
}

.jcc-intro {
	margin: 0 0 12px;
}

.jcc-privacy-link {
	display: inline-flex;
	margin: 0 0 14px;
	color: var(--jcc-accent);
}

.jcc-categories {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
}

.jcc-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--jcc-line);
	border-radius: 6px;
	background: var(--jcc-surface-soft);
}

.jcc-category-main {
	display: grid;
	gap: 3px;
}

.jcc-category-title {
	font-weight: 700;
}

.jcc-category-required {
	display: inline-flex;
	width: max-content;
	padding: 2px 7px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--jcc-accent) 14%, var(--jcc-surface));
	color: var(--jcc-accent);
	font-size: 0.78rem;
	font-weight: 700;
}

.jcc-category-description {
	color: var(--jcc-muted);
	font-size: 0.92rem;
}

.jcc-toggle {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

.jcc-toggle input {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.jcc-toggle span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: color-mix(in srgb, var(--jcc-muted) 62%, var(--jcc-surface));
	transition: background 0.16s ease;
}

.jcc-toggle span::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--jcc-surface);
	box-shadow: 0 1px 4px var(--jcc-shadow);
	transition: transform 0.16s ease;
}

.jcc-toggle input:checked + span {
	background: var(--jcc-accent);
}

.jcc-toggle input:checked + span::after {
	transform: translateX(20px);
}

.jcc-toggle input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--jcc-accent) 34%, transparent);
	outline-offset: 2px;
}

.jcc-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.jcc-button,
.jcc-reopen-button,
.joodit-cookie-compliance-shortcode-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid var(--jcc-accent);
	border-radius: 4px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.jcc-button-primary {
	background: var(--jcc-accent);
	color: var(--jcc-accent-text);
}

.jcc-button-secondary,
.jcc-reopen-button,
.joodit-cookie-compliance-shortcode-button {
	background: var(--jcc-surface);
	color: var(--jcc-accent);
}

.jcc-reopen-button {
	position: fixed;
	right: 10px;
	bottom: 8px;
	z-index: 99998;
	min-height: 24px;
	padding: 2px 4px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: color-mix(in srgb, var(--jcc-muted) 82%, transparent);
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	opacity: 0.68;
}

.jcc-reopen-button:hover,
.jcc-reopen-button:focus-visible {
	background: color-mix(in srgb, var(--jcc-surface) 92%, transparent);
	color: var(--jcc-text);
	opacity: 1;
}

@media (max-width: 640px) {
	.jcc-panel {
		right: 0;
		bottom: 0;
		width: 100vw;
		max-height: 88vh;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 8px 8px 0 0;
	}

	.jcc-category {
		align-items: flex-start;
	}

	.jcc-actions {
		display: grid;
	}

	.jcc-reopen-button {
		right: 8px;
		bottom: 6px;
		max-width: calc(100vw - 20px);
	}
}
