JSFiddle - React, Tailwind, and code Playground

HTML

<div class="tax">
<div class="price">123</div>
<div class="details">bla-bla</div>
</div>

CSS

.tax {
  background-color: gray;
}

.tax:hover .price {
background-color: red;
}