/* NatureTech theme — legacy-compat.css
   Tokenized fallbacks for Flatsome UX Builder shortcodes that still live in
   legacy post/product/page content. Paired with inc/legacy-content-compat.php.
*/

.ntl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  margin: 0 0 20px;
}
.ntl-row.is-full { width: 100%; }

.ntl-col {
  flex: 1 1 calc(var(--ntl-col-sm, 12) / 12 * 100% - 20px);
  min-width: 0;
}

@media (min-width: 900px) {
  .ntl-col {
    flex-basis: calc(var(--ntl-col, 12) / 12 * 100% - 20px);
  }
}

.ntl-section {
  margin: 24px 0;
}

.ntl-title {
  font-family: var(--font-display, "Frank Ruhl Libre", serif);
  margin: 18px 0 10px;
  line-height: 1.25;
}

.ntl-gap { display: block; }

.ntl-divider {
  border: 0;
  height: 1px;
  background: var(--line-soft, rgba(0, 0, 0, 0.08));
  margin: 24px 0;
}

.ntl-featured-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-soft, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  background: #fff;
}
.ntl-featured-box--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ntl-featured-box__media img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
.ntl-featured-box__body > :first-child { margin-top: 0; }
.ntl-featured-box__body > :last-child { margin-bottom: 0; }

.ntl-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

/* Strip legacy bracket text that might still squeak past our shortcode
   handlers (e.g. orphaned [row/] self-closing variants that the WP parser
   can't resolve when nested inside prose). Visually hide only when wrapped
   in .entry-content fallback paths so we never swallow intentional HTML. */
.entry-content :is(p, div) > em:only-child:where([class*="ux-"]) { display: none; }

/* Minor spacing polish for Woo single product description prose */
.woocommerce-product-details__short-description .ntl-row,
.woocommerce-Tabs-panel .ntl-row {
  margin-top: 0;
}
