/********************************************************/
/*
/*      Colors CSS
/*
/********************************************************/
	
	/******************************/
	/* Text color override
	/******************************/
	body .has-text-color.has-black-color 			{ color: var(--wp--preset--color--black) !important; }
	body .has-text-color.has-off-black-color 		{ color: var(--wp--preset--color--off-black) !important; }
	body .has-text-color.has-gray-color 			{ color: var(--wp--preset--color--gray) !important; }
	body .has-text-color.has-off-gray-color 		{ color: var(--wp--preset--color--off-gray) !important; }
	body .has-text-color.has-white-color 			{ color: var(--wp--preset--color--white) !important; }
	body .has-text-color.has-off-white-color 		{ color: var(--wp--preset--color--off-white) !important; }
	body .has-text-color.has-green-color 			{ color: var(--wp--preset--color--green) !important; }
	body .has-text-color.has-off-green-color 		{ color: var(--wp--preset--color--off-green) !important; }
	body .has-text-color.has-yellow-color 			{ color: var(--wp--preset--color--yellow) !important; }
	body .has-text-color.has-off-yellow-color 		{ color: var(--wp--preset--color--off-yellow) !important; }
	
	body.has-black-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--black) !important; }
	body.has-off-black-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--off-black) !important; }
	body.has-gray-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--gray) !important; }
	body.has-off-gray-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--off-gray) !important; }
	body.has-white-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--white) !important; }
	body.has-off-white-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--off-white) !important; }
	body.has-green-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--green) !important; }
	body.has-off-green-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--off-green) !important; }
	body.has-yellow-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--yellow) !important; }
	body.has-off-yellow-background-color :is(.edit-post-visual-editor, .editor-styles-wrapper)::before
													{ background-color: var(--wp--preset--color--off-yellow) !important; }
	
	/******************************/
	/* BG color adaptation
	/******************************/
	/* Light (default) */
	:is(
		.has-gray-background-color,
		.has-off-gray-background-color,
		.has-white-background-color,
		.has-off-white-background-color,
		.has-green-background-color,
		.has-off-green-background-color,
		.has-yellow-background-color,
		.has-off-yellow-background-color
	) {
		color : var(--wp--custom--color--default--text);
	}
	
	body:is(
		.has-gray-background-color,
		.has-off-gray-background-color,
		.has-white-background-color,
		.has-off-white-background-color,
		.has-green-background-color,
		.has-off-green-background-color,
		.has-yellow-background-color,
		.has-off-yellow-background-color
	) :is(main > .wp-block-post-content, .edit-post-visual-editor, .editor-styles-wrapper) {
		--wp--custom--color--default--text: var(--wp--custom--color--default--text);
	}
	
	/* Dark */
	:is(
		.has-black-background-color,
		.has-off-black-background-color
	) {
		color : var(--wp--custom--color--default--bg);
	}
	
	body:is(
		.has-black-background-color,
		.has-off-black-background-color
	) :is(main > .wp-block-post-content, .edit-post-visual-editor, .editor-styles-wrapper) {
		--wp--custom--color--default--text: var(--wp--custom--color--default--bg);
	}