/*
 * Babapeet Global Responsive Layer
 * Version: 1.0.0
 * Purpose: Shared typography, content blocks, tables and responsive behaviour.
 * Theme context: FaraTheme + Elementor + WordPress/Gutenberg + WooCommerce (RTL).
 * IMPORTANT: This file intentionally does not style .babapeet-product-page.
 */

:root {
  --bb-global-navy: #092c4b;
  --bb-global-blue: #0c4a6e;
  --bb-global-teal: #2dd4bf;
  --bb-global-orange: #ff790f;
  --bb-global-text: #3f3f3f;
  --bb-global-muted: #64748b;
  --bb-global-line: #e2e8f0;
  --bb-global-soft: #f1f5f9;
  --bb-global-blue-soft: #eef6fb;
  --bb-global-teal-soft: #effcf9;
  --bb-global-orange-soft: #fff6eb;
  --bb-global-green-soft: #f0f8f1;
  --bb-global-red-soft: #fff1f1;
  --bb-global-radius: 14px;
  --bb-global-content-gap: clamp(18px, 2.5vw, 30px);
}

/* --------------------------------------------------------------------------
   1. Safe global foundations
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--bb-global-text);
  font-family: inherit;
  text-rendering: optimizeLegibility;
}

/* Content regions only: avoids overriding header, navigation and product template. */
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) img,
:where(.elementor-widget-image, .wp-block-image) img {
  max-width: 100%;
  height: auto;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel
) :where(p, li, dd, blockquote, figcaption) {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   2. Unified typography: Gutenberg and text-editor content
   -------------------------------------------------------------------------- */

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h1,
.elementor-widget-heading .elementor-heading-title:not([style*="color"]) {
  color: var(--bb-global-navy);
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h1,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h2,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h3,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h4,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h5,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h6 {
  max-width: 100%;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h1 {
  margin: 0 0 1.05em;
  color: var(--bb-global-navy);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.5;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h2 {
  margin: 1.65em 0 0.75em;
  padding-right: 0.7em;
  border-right: 4px solid var(--bb-global-orange);
  color: var(--bb-global-blue);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h3 {
  margin: 1.35em 0 0.65em;
  padding-right: 0.65em;
  border-right: 3px solid var(--bb-global-teal);
  color: var(--bb-global-navy);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h4 {
  margin: 1.2em 0 0.6em;
  color: var(--bb-global-blue);
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h5 {
  margin: 1em 0 0.55em;
  color: var(--bb-global-navy);
  font-size: 1rem;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) h6 {
  margin: 0.9em 0 0.5em;
  color: var(--bb-global-muted);
  font-size: 0.9rem;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description
) p {
  margin: 0 0 1em;
  color: inherit;
  font-size: clamp(0.9rem, 0.9vw + 0.65rem, 1rem);
  line-height: 2;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel
) :where(ul, ol) {
  padding-inline-start: 1.5em;
  padding-inline-end: 1.2em;
  margin: 0 0 1.2em;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .elementor-widget-woocommerce-product-content,
  .woocommerce-Tabs-panel
) li {
  margin-block: 0.4em;
  line-height: 1.9;
}

/* Elementor heading widgets keep explicit per-widget inline colors and layout. */
.elementor-widget-heading .elementor-heading-title {
  max-width: 100%;
  line-height: 1.55;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* Semantic heading levels inside Elementor Heading widgets. Explicit widget colors remain intact. */
.elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.elementor-widget-heading h3.elementor-heading-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.elementor-widget-heading h4.elementor-heading-title {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
}
.elementor-widget-heading h5.elementor-heading-title {
  font-size: 1rem;
}
.elementor-widget-heading h6.elementor-heading-title {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   3. Content blocks and editorial elements
   -------------------------------------------------------------------------- */

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor
) blockquote,
.wp-block-quote,
.wp-block-pullquote {
  margin: 1.5em 0;
  padding: 1.1em 1.25em;
  border: 1px solid #dce9f1;
  border-right: 4px solid var(--bb-global-blue);
  border-radius: var(--bb-global-radius);
  background: var(--bb-global-blue-soft);
  color: var(--bb-global-navy);
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor
) blockquote > :last-child,
.wp-block-quote > :last-child,
.wp-block-pullquote > :last-child {
  margin-bottom: 0;
}

/* Gutenberg group blocks with a background become soft, readable panels. */
:where(.entry-content, .wp-block-post-content) .wp-block-group.has-background {
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid rgba(9, 44, 75, 0.07);
  border-radius: var(--bb-global-radius);
}

/* Ready-to-use Babapeet callout classes for Gutenberg/Elementor HTML blocks. */
.bb-info-box,
.bb-tip-box,
.bb-warning-box,
.bb-success-box,
.bb-highlight-box {
  display: block;
  margin: 1.25em 0;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid transparent;
  border-radius: var(--bb-global-radius);
  line-height: 1.95;
  overflow-wrap: break-word;
}

.bb-info-box {
  color: var(--bb-global-blue);
  background: var(--bb-global-blue-soft);
  border-color: #dbeaf3;
}

.bb-tip-box {
  color: #245c49;
  background: var(--bb-global-green-soft);
  border-color: #dcefe0;
}

.bb-warning-box {
  color: #80521b;
  background: var(--bb-global-orange-soft);
  border-color: #f6e4cb;
}

.bb-success-box {
  color: #245c49;
  background: var(--bb-global-teal-soft);
  border-color: #d7f3ec;
}

.bb-highlight-box {
  color: var(--bb-global-navy);
  background: #f7f8e9;
  border-color: #e8ecc3;
}

:where(.bb-info-box, .bb-tip-box, .bb-warning-box, .bb-success-box, .bb-highlight-box)
  > :first-child {
  margin-top: 0;
}

:where(.bb-info-box, .bb-tip-box, .bb-warning-box, .bb-success-box, .bb-highlight-box)
  > :last-child {
  margin-bottom: 0;
}

/* Figures, separators and embeds. */
:where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) figure {
  max-width: 100%;
  margin-inline: 0;
}

:where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) figcaption {
  margin-top: 0.55em;
  color: var(--bb-global-muted);
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: center;
}

:where(.entry-content, .wp-block-post-content) hr,
:where(.entry-content, .wp-block-post-content) .wp-block-separator {
  margin-block: 2em;
  border: 0;
  border-top: 1px solid var(--bb-global-line);
}

.wp-block-embed__wrapper,
.elementor-widget-video .elementor-wrapper,
.elementor-widget-video .elementor-video {
  max-width: 100%;
}

.wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   4. Responsive tables
   -------------------------------------------------------------------------- */

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) .wp-block-table,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) .bb-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.35em 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--bb-global-line);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b8c9d6 #f1f5f9;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table,
.bb-responsive-table {
  width: 100%;
  max-width: 100%;
  margin: 1.2em 0;
  border: 1px solid var(--bb-global-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--bb-global-text);
  font-size: 0.92rem;
  line-height: 1.8;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) .wp-block-table table,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) .bb-table-wrap table {
  min-width: 520px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table th,
:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table td,
.bb-responsive-table th,
.bb-responsive-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--bb-global-line);
  border-left: 1px solid var(--bb-global-line);
  text-align: right;
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: normal;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table th,
.bb-responsive-table th {
  background: var(--bb-global-blue);
  color: #fff;
  font-weight: 800;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table tbody tr:nth-child(even),
.bb-responsive-table tbody tr:nth-child(even) {
  background: #f2f7fa;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table tbody tr:nth-child(odd),
.bb-responsive-table tbody tr:nth-child(odd) {
  background: #fff;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table tbody tr:hover,
.bb-responsive-table tbody tr:hover {
  background: #eaf8f5;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table tr:last-child > :is(th, td),
.bb-responsive-table tr:last-child > :is(th, td) {
  border-bottom: 0;
}

:where(
  .entry-content,
  .post-content,
  .page-content,
  .wp-block-post-content,
  .elementor-widget-text-editor,
  .elementor-widget-theme-post-content,
  .woocommerce-Tabs-panel
) table tr > :last-child,
.bb-responsive-table tr > :last-child {
  border-left: 0;
}

/* Legacy tables without an existing wrapper: the table itself becomes scrollable on phones. */
@media (max-width: 767px) {
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(1.45rem, 5.2vw, 1.8rem);
  }

  .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(1.22rem, 4.5vw, 1.5rem);
  }

  .elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(1.08rem, 4vw, 1.25rem);
  }
  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .woocommerce-Tabs-panel
  ) table:not(.wp-block-table table):not(.bb-table-wrap table) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --------------------------------------------------------------------------
   5. Links, buttons and forms inside content
   -------------------------------------------------------------------------- */

:where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) a:not(.wp-block-button__link) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) :where(input, select, textarea) {
  max-width: 100%;
  min-width: 0;
  border-color: #cbd5e1;
  border-radius: 9px;
  font: inherit;
  line-height: 1.6;
}

:where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) :where(input, select, textarea):focus {
  outline: 2px solid rgba(45, 212, 191, 0.28);
  outline-offset: 1px;
  border-color: var(--bb-global-teal);
}

:where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) :where(button, input[type="submit"], .wp-block-button__link) {
  min-height: 42px;
  border-radius: 9px;
}

/* --------------------------------------------------------------------------
   6. Tablet and mobile layout safeguards
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .elementor-widget-woocommerce-product-content,
    .woocommerce-Tabs-panel
  ) :where(h1, h2, h3, h4, h5, h6) {
    scroll-margin-top: 90px;
  }

  :where(.entry-content, .wp-block-post-content) .wp-block-group.has-background {
    padding: 18px;
  }
}

@media (max-width: 767px) {
  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .elementor-widget-woocommerce-product-content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description
  ) h1 {
    font-size: clamp(1.45rem, 5.2vw, 1.8rem);
    line-height: 1.55;
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .elementor-widget-woocommerce-product-content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description
  ) h2 {
    margin-top: 1.35em;
    font-size: clamp(1.22rem, 4.5vw, 1.5rem);
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .elementor-widget-woocommerce-product-content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description
  ) h3 {
    font-size: clamp(1.08rem, 4vw, 1.25rem);
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .elementor-widget-woocommerce-product-content,
    .woocommerce-Tabs-panel
  ) p {
    font-size: 14px;
    line-height: 1.95;
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .woocommerce-Tabs-panel
  ) :where(ul, ol) {
    padding-inline-start: 1.25em;
    padding-inline-end: 1.05em;
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .woocommerce-Tabs-panel
  ) :where(blockquote, .wp-block-quote, .wp-block-pullquote) {
    padding: 14px 16px;
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .woocommerce-Tabs-panel
  ) :where(table th, table td),
  .bb-responsive-table :where(th, td) {
    padding: 10px 11px;
    font-size: 13px;
  }

  :where(.entry-content, .wp-block-post-content) .wp-block-group.has-background {
    padding: 14px;
  }

  .bb-info-box,
  .bb-tip-box,
  .bb-warning-box,
  .bb-success-box,
  .bb-highlight-box {
    padding: 14px;
    border-radius: 11px;
    font-size: 14px;
  }

  :where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) img {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .elementor-widget-woocommerce-product-content,
    .woocommerce-Tabs-panel
  ) h2 {
    padding-right: 0.55em;
    border-right-width: 3px;
  }

  :where(
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .woocommerce-Tabs-panel
  ) :where(table th, table td),
  .bb-responsive-table :where(th, td) {
    padding: 9px 10px;
    font-size: 12px;
  }

  :where(.entry-content, .wp-block-post-content, .elementor-widget-text-editor) :where(iframe, video, embed) {
    max-width: 100%;
  }
}

/* Respect visitors who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
