/* Thành Phát Auto v0.3.33 — editorial fixes; do not style shop/cart tables. */
:root{--tpa-editor-blue:#0073e6;--tpa-editor-blue-hover:#0056b3;--tpa-editor-orange-pale:#fff1e6;--tpa-editor-orange-head:#ffe2c9;--tpa-editor-border:#edc9af}

/* Only inside real prose; never change menu/nav/card/button links. */
.tpa-prose :is(p,li,td,blockquote) a[href]:not(.button):not(.wp-block-button__link):not(.tpa-button),
.tpa-category-content-body :is(p,li,td,blockquote) a[href]:not(.button):not(.tpa-button),
.woocommerce div.product .woocommerce-tabs .panel :is(p,li,td,blockquote) a[href]:not(.button):not(.tpa-button){
  color:var(--tpa-editor-blue)!important;
  text-decoration:underline;
  text-decoration-color:rgba(0,115,230,.38);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  display:inline!important;
  white-space:normal!important;
  vertical-align:baseline;
  max-width:none!important;
  overflow-wrap:break-word;
}
.tpa-prose :is(p,li,td,blockquote) a[href]:not(.button):hover,
.tpa-category-content-body :is(p,li,td,blockquote) a[href]:not(.button):hover,
.woocommerce div.product .woocommerce-tabs .panel :is(p,li,td,blockquote) a[href]:not(.button):hover{
  color:var(--tpa-editor-blue-hover)!important;
  text-decoration-color:currentColor;
}
.tpa-prose :is(p,li,td,blockquote) a[href]:focus-visible,
.tpa-category-content-body :is(p,li,td,blockquote) a[href]:focus-visible,
.woocommerce div.product .woocommerce-tabs .panel :is(p,li,td,blockquote) a[href]:focus-visible{
  outline:2px solid #0073e6;outline-offset:2px;
}

/* Scoped content tables, not WooCommerce checkout/price/cart tables. */
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes){
  width:100%!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  margin:20px 0 24px!important;
  border:1px solid var(--tpa-editor-border)!important;
  background:#fff;
  font-size:clamp(13px,1vw,15px);
  line-height:1.55;
}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(th,td){
  padding:12px 14px!important;
  border:1px solid var(--tpa-editor-border)!important;
  vertical-align:middle!important;
  text-align:left;
  color:#222e38;
  min-width:95px;
  background:transparent!important;
  overflow-wrap:break-word;
}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(thead tr,tbody tr:first-child:has(th)){
  background:var(--tpa-editor-orange-head)!important;
}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(thead th,tbody tr:first-child > th){
  color:#753b16!important;
  font-weight:700!important;
}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody tr:nth-child(odd){background:#fff!important}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody tr:nth-child(even){background:var(--tpa-editor-orange-pale)!important}
/* First tbody row often contains column headings instead of thead.
   Keep the FIRST DATA row white rather than two orange rows in a row. */
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody:has(> tr:first-child > th) > tr:nth-child(even){background:#fff!important}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody:has(> tr:first-child > th) > tr:nth-child(odd){background:var(--tpa-editor-orange-pale)!important}
:is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody tr:first-child:has(th){background:var(--tpa-editor-orange-head)!important}
.tpa-editor-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;border-radius:10px}
.tpa-editor-table-scroll > table{min-width:540px}
@media(max-width:640px){
 .tpa-editor-table-scroll > table{margin:0 0 2px!important}
 :is(.tpa-prose,.tpa-category-content-body,.woocommerce div.product .woocommerce-tabs .panel) table:not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(th,td){padding:10px 12px!important;min-width:90px}
}

.tpa-ux-gallery-admin-note{padding:12px 14px;margin:12px 0;border:1px dashed #e6a47d;border-radius:8px;background:#fff6ef;color:#874319;font-size:14px}
