CSS :has selector

Free

Team

Enterprise

Select `.pricing-card` that contains a child `.popular` element.

.pricing-card:has(.popular) { 
  border-color: blue; 
}