/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
const require_index = require('../../css-tokens/dist/index.cjs');
let tailwindcss_plugin_js = require("tailwindcss/plugin.js");
tailwindcss_plugin_js = require_runtime.__toESM(tailwindcss_plugin_js);

//#region src/tailwind/plugins/blurBgFallback.ts
const blurBgFallbackPlugin = tailwindcss_plugin_js.default.withOptions(() => ({ addUtilities }) => {
	addUtilities({
		".uds-bgBlurFillFallback": { fill: `var(--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX})` },
		"@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))": {
			".uds-bgBlurFillFallback": { fill: `var(--${require_index.BACKGROUND_BLUR_COLOR_PREFIX})` },
			".uds-bgBlurFallback": {
				WebkitBackdropFilter: "var(--uds-backdrop-blur)",
				backdropFilter: "var(--uds-backdrop-blur)"
			}
		},
		"@media (prefers-reduced-transparency)": {
			".uds-bgBlurFillFallback": { fill: `var(--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX})` },
			".uds-bgBlurFallback": {
				WebkitBackdropFilter: "none",
				backdropFilter: "none"
			}
		}
	});
}, () => ({ safelist: ["uds-bgBlurFillFallback", "uds-bgBlurFallback"] }));

//#endregion
exports.blurBgFallbackPlugin = blurBgFallbackPlugin;