/* Hide tabs that are not selected via data attributes */
/* Hide description tab if not selected */
.wp-block-woocommerce-product-details[data-has-description="false"]
  .description_tab,
.wp-block-woocommerce-product-details[data-has-description="false"]
  .woocommerce-Tabs-panel--description,
.wp-block-woocommerce-product-details[data-has-description="false"]
  .wc-tabs
  .description_tab {
  display: none !important;
}

/* Hide additional_information tab if not selected */
.wp-block-woocommerce-product-details[data-has-additional-information="false"]
  .additional_information_tab,
.wp-block-woocommerce-product-details[data-has-additional-information="false"]
  .woocommerce-Tabs-panel--additional_information {
  display: none !important;
}

/* Hide reviews tab if not selected */
.wp-block-woocommerce-product-details[data-has-reviews="false"] .reviews_tab,
.wp-block-woocommerce-product-details[data-has-reviews="false"]
  .woocommerce-Tabs-panel--reviews {
  display: none !important;
}

/* Hide entire tabs wrapper if all tabs are hidden */
.wp-block-woocommerce-product-details[data-has-description="false"][data-has-additional-information="false"][data-has-reviews="false"]
  .woocommerce-tabs,
.wp-block-woocommerce-product-details[data-has-description="false"][data-has-additional-information="false"][data-has-reviews="false"]
  .wc-tabs-wrapper {
  display: none !important;
}
