/**
 * Neutralizes a context leak inside the (frozen) SDC library: when one
 * component includes another with the default Twig context, the child reuses
 * the parent's already-mutated `attributes` object, so the child element
 * also carries the parent's utility classes.
 *
 * Two nested includes exist in the library:
 *   listing-card  → status-badge   (badge span inherits card classes)
 *   provider-card → rating-stars   (rating span inherits card classes)
 *
 * Components are final for this build, so instead of editing them these
 * rules target exactly the leaked combinations (an element carrying BOTH
 * class sets) and strip the parent's box styling. Remove this file if the
 * SDCs ever switch their internal includes to `with_context = false` +
 * explicit props.
 */

/* rating-stars inside provider-card: undo flex/gap-5/border/bg/p-5 leak. */
.rating-stars.provider-card {
  display: inline-flex;
  gap: 0.5rem; /* the component's own gap-2 */
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* status-badge inside listing-card: undo the border/overflow leak. */
.status-badge.listing-card {
  border: 0;
  overflow: visible;
}
