/* ============================================================
   Prospen Shared Blocks — Auto Bullets
   Applies the tick-icon bullet style to PLAIN lists typed
   directly into an Elementor Text Editor widget — no psc-
   class required.

   Scoped strictly to .elementor-widget-text-editor so it can
   never reach the psc- component blocks (cards, outline,
   button group), which live in a different widget type
   (HTML widgets, .elementor-widget-html) entirely. The
   :not(.psc-bullet-list) guard is a second, belt-and-braces
   safeguard in case a psc-bullet-list is ever placed inside a
   Text Editor widget by mistake — it is left to its own rules
   in psc-styles.css rather than being restyled here.

   Deliberately does NOT require a .elementor-widget-container
   wrapper between the widget and the <ul> — newer Elementor
   markup (Container/Flexbox, "Atomic" widgets) places the <ul>
   directly inside .elementor-widget-text-editor with no such
   wrapper, while older markup still uses one. A plain
   descendant selector matches both.

   Loaded ONLY when the current URL matches a configured
   pattern (see psc_url_matches_pattern() in
   shared-blocks.php) — never via the content-scan fallback,
   since a plain list has no marker to detect.
   ============================================================ */

.elementor-widget-text-editor ul:not(.psc-bullet-list) {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
}

.elementor-widget-text-editor ul:not(.psc-bullet-list) li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
	line-height: 1.45;
}

/* Elementor wraps each list item's text in a <p>, which carries its own
   margin and pushes the text out of alignment with the tick icon (which
   is positioned relative to the <li>, not the <p>). Zeroing the margin
   and forcing the same line-height as the <li> keeps the icon aligned
   with the first line of text — a theme-set line-height on <p> that
   differs from the <li>'s would otherwise still throw off the offset. */
.elementor-widget-text-editor ul:not(.psc-bullet-list) li > p {
	margin: 0;
	line-height: 1.45;
}

.elementor-widget-text-editor ul:not(.psc-bullet-list) li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.25em;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D58037'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}
