/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { __toESM } from "../_virtual/_rolldown/runtime.js";
import { require_plugin } from "../node_modules/.bun/tailwindcss@3.4.19_7500dce058369e0a/node_modules/tailwindcss/plugin.js";
import { BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX } from "../packages/css-tokens/dist/index.js";
//#region ../tailwind-internal/dist/plugins/blurBgFallback.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
const blurBgFallbackPlugin = (/* @__PURE__ */ __toESM(require_plugin(), 1)).default.withOptions(() => ({ addUtilities }) => {
	addUtilities({
		".uds-bgBlurFillFallback": { fill: `var(--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX})` },
		".uds-bgBlurFallback": { backgroundColor: `var(--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX})` },
		"@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))": {
			".uds-bgBlurFillFallback": { fill: `var(--${BACKGROUND_BLUR_COLOR_PREFIX})` },
			".uds-bgBlurFallback": {
				backgroundColor: `var(--${BACKGROUND_BLUR_COLOR_PREFIX})`,
				WebkitBackdropFilter: "var(--uds-backdrop-blur)",
				backdropFilter: "var(--uds-backdrop-blur)"
			}
		},
		"@media (prefers-reduced-transparency)": {
			".uds-bgBlurFillFallback": { fill: `var(--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX})` },
			".uds-bgBlurFallback": {
				backgroundColor: `var(--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX})`,
				WebkitBackdropFilter: "none",
				backdropFilter: "none"
			}
		}
	});
}, () => ({ safelist: ["uds-bgBlurFillFallback", "uds-bgBlurFallback"] }));
//#endregion
export { blurBgFallbackPlugin };
