/**
 * iubenda Cookie Solution — CSS shield.
 *
 * The problem: the site's button styling (Elementor / CMSMasters global button
 * CSS) paints a decorative gradient on EVERY <button> through a
 * `::before` / `::after` pseudo with `content:""; position:absolute; inset:0`
 * (background `linear-gradient(70deg, #008cff, #a900ff)`, the Elementor kit
 * primary). iubenda's buttons are `position:static`, so that pseudo resolves
 * its `inset:0` against the nearest positioned ancestor — a modal/banner-sized
 * container — and paints a full-width gradient block over the content.
 *
 * It hits every iubenda surface: the cookie banner (`#iubenda-cs-banner`), the
 * preferences / TCF modal (`#iubenda-iframe`, `.purposes-*`, `.iub-btn`,
 * `.iub-cmp-*`), and the floating privacy widget.
 *
 * The fix: iubenda's controls build their own content from real <svg> / <span>
 * children (never from `::before` / `::after`), so we can safely strip pseudo
 * decoration from every iubenda button / link. Scoped by iubenda's own
 * ids/classes — nothing else on the site is affected.
 *
 * Loaded site-wide by functions.php (iubenda can appear on any page).
 */

/* --- pseudo decoration off every iubenda button / link ------------------- */
#iubenda-cs-banner button::before,        #iubenda-cs-banner button::after,
#iubenda-cs-banner a::before,             #iubenda-cs-banner a::after,
#iubenda-iframe button::before,           #iubenda-iframe button::after,
#iubenda-iframe a::before,                #iubenda-iframe a::after,
.iubenda-cs-container button::before,     .iubenda-cs-container button::after,
.iub-cs-container button::before,         .iub-cs-container button::after,
[id^="iubenda-cs-widget"] button::before, [id^="iubenda-cs-widget"] button::after,
.iubenda-tp-btn::before,                  .iubenda-tp-btn::after,
.iub-btn::before,                         .iub-btn::after,
[class*="purposes-btn"]::before,          [class*="purposes-btn"]::after,
.purposes-item-title-btn::before,         .purposes-item-title-btn::after,
.iub-cmp-collapse-header::before,         .iub-cmp-collapse-header::after {
	content: none !important;
	background: none !important;
	box-shadow: none !important;
	display: none !important;
}

/* --- defence in depth: keep any survivor clipped to its own button ------- */
#iubenda-cs-banner button,
#iubenda-iframe button,
.iubenda-cs-container button,
.iub-cs-container button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
