/*
 * Elementor bridge. Loaded after Elementor's frontend CSS and before makemake.css.
 *
 * Containers with a DRG role (.drg-box) behave like makemake's plain block elements, so the makemake classes on the
 * same element (substrate, display--grid, align-self--*, decorations) set their layout as they did in the sequencer.
 * Elementor's own container rules are reset here at the same specificity; makemake.css, which loads later, wins ties.
 */

.drg-box { display: block; width: auto; min-width: 0; margin: 0; padding: 0; gap: 0; text-align: inherit; }
.e-con.drg-box { flex-direction: row; flex-wrap: nowrap; justify-content: normal; align-items: normal; align-content: normal; }

/* makemake sizes boxes with content-box (Elementor sets border-box on everything inside .elementor) */
:is(.drg, [data-widget_type^="drg-"]), :is(.drg, [data-widget_type^="drg-"]) :where(*:not(button, input, select, textarea)), :is(.drg, [data-widget_type^="drg-"]) ::before, :is(.drg, [data-widget_type^="drg-"]) ::after { box-sizing: content-box; }

/* Elementor removes link underlines inside .elementor; makemake's base links are underlined */
.elementor :where(.drg, [data-widget_type^="drg-"]) a { text-decoration: var(--link-decoration); }
