.block-editor-block-list__block.wp-block-button:where([style*="--box-shadow"])
  .wp-element-button,
.block-editor-block-list__block.wp-block-woocommerce-product-button:where(
    [style*="--box-shadow"]
  )
  .wp-element-button,
.wp-block-button:where([style*="--box-shadow"]) .wp-element-button,
:where([style*="--box-shadow"]):not(
    .wp-block-button,
    .block-editor-block-list__block.wp-block-woocommerce-product-button,
    .wp-block-avatar
  ) {
  box-shadow: var(--box-shadow) !important;
}
:where([style*="--box-shadow"]).wp-block-avatar img {
  box-shadow: var(--box-shadow);
}
.block-editor-block-list__block.wp-block-button:where(
    [style*="--hover-box-shadow"]
  ):hover
  .wp-element-button,
.block-editor-block-list__block.wp-block-woocommerce-product-button:where(
    [style*="--hover-box-shadow"]
  ):hover
  .wp-element-button,
.wp-block-button:where([style*="--hover-box-shadow"]) .wp-element-button:hover,
:where([style*="--hover-box-shadow"]):not(
    .wp-block-button,
    .block-editor-block-list__block.wp-block-woocommerce-product-button,
    .wp-block-avatar
  ):hover {
  box-shadow: var(--hover-box-shadow) !important;
}

:where([style*="--hover-box-shadow"]):hover.wp-block-avatar img {
  box-shadow: var(--hover-box-shadow);
}
