/* 100X Elementor Text Fix
   - Gives Elementor Text Editor widget the final say using higher specificity + !important
   - Safe: affects only Elementor areas (.elementor scope)
*/

/* Base text color & links from widget controls */
.elementor .elementor-widget-text-editor .elementor-widget-container,
.elementor .elementor-widget-text-editor .elementor-widget-container p,
.elementor .elementor-widget-text-editor .elementor-widget-container a,
.elementor .elementor-widget-text-editor .elementor-widget-container span,
.elementor .elementor-widget-text-editor .elementor-widget-container li {
  color: inherit !important;
}

/* Headings inside Text Editor should respect widget settings */
.elementor .elementor-widget-text-editor .elementor-widget-container h1,
.elementor .elementor-widget-text-editor .elementor-widget-container h2,
.elementor .elementor-widget-text-editor .elementor-widget-container h3,
.elementor .elementor-widget-text-editor .elementor-widget-container h4,
.elementor .elementor-widget-text-editor .elementor-widget-container h5,
.elementor .elementor-widget-text-editor .elementor-widget-container h6 {
  color: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
}

/* Respect Typography controls from the widget */
.elementor .elementor-widget-text-editor .elementor-widget-container {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* Neutralize common theme overrides inside Elementor canvas */
.elementor .entry-content p,
.elementor .entry-content a,
.elementor .site-content p,
.elementor .site-content a {
  color: inherit !important;
}

/* Make sure global tokens still work (Site Settings) */
:root {
  --e-global-color-text: #ffffff;
  --e-global-color-primary: #EA3A53;
}

/* Optional: Button edge cases in some themes */
.elementor .elementor-button {
  letter-spacing: inherit !important;
}

/* Debug helper (toggle off after confirming) */
/*
body.debug-100x .elementor .elementor-widget-text-editor .elementor-widget-container { outline: 1px dashed #EA3A53; }
*/
