/* Thành Phát Auto v0.3.53 — captions for editorial single images only.
 * Keep galleries, storefront image cards, brand media and product thumbnails untouched. */
:is(
  .tpa-prose,
  .tpa-category-content-body,
  .woocommerce div.product .woocommerce-tabs .panel,
  .tpa-product-intro
) :is(
  figure.wp-block-image > figcaption,
  figure:not(.tpa-ux-gallery-item):not(.blocks-gallery-item) > figcaption,
  .wp-caption > .wp-caption-text,
  .wp-block-image > .wp-element-caption,
  .wp-caption-text
) {
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:8px auto 14px;
  padding:0 6px;
  color:#606872;
  font-size:14px;
  font-weight:400;
  font-style:italic;
  line-height:1.6;
  text-align:center;
}

/* UX galleries are image-only. Hide captions from existing cached gallery HTML
 * and also from galleries authored with native WordPress blocks in UX Blocks. */
.tpa-ux-gallery :is(figcaption,.wp-caption-text,.wp-element-caption),
.tpa-legacy-ux-block :is(.wp-block-gallery,.gallery,.blocks-gallery-grid) :is(figcaption,.gallery-caption,.blocks-gallery-item__caption,.wp-element-caption) {
  display:none!important;
}

/* Review form: guest name spans the full width. These selectors are only
 * fallback visuals; PHP removes the email and cookies fields from the DOM. */
body.single-product .woocommerce div.product #reviews #review_form .comment-form-author{
  grid-column:1 / -1;
}
body.single-product .woocommerce div.product #reviews #review_form :is(
  .comment-form-email,
  .comment-form-url,
  .comment-form-cookies-consent,
  .comment-notes
){
  display:none!important;
}
