/**
 * MsM WooCore v8.40 - content and product specification tables.
 */

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) {
  --msm-table-border: var(--msm-product-table-border, #d8dce2);
  --msm-table-surface: color-mix(in srgb, var(--msm-content-bg, #fff) 88%, transparent);
  --msm-table-stripe: color-mix(in srgb, var(--msm-primary, #ec1b8c) 3.5%, #fff);
  --msm-table-label-1: color-mix(in srgb, var(--msm-primary, #ec1b8c) 10%, #fff);
  --msm-table-label-2: color-mix(in srgb, var(--msm-secondary, #ffc400) 14%, #fff);
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--msm-product-table-radius, 14px);
  scrollbar-color: color-mix(in srgb, var(--msm-primary, #ec1b8c) 55%, #bbb) rgba(17, 17, 17, .07);
  scrollbar-width: thin;
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  border: 1px solid var(--msm-table-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--msm-product-table-radius, 14px);
  background: var(--msm-table-surface);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .055);
  color: var(--msm-text, #222);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) :where(th, td) {
  height: auto;
  padding: 11px 13px !important;
  border: 0 !important;
  border-right: 1px solid var(--msm-table-border) !important;
  border-bottom: 1px solid var(--msm-table-border) !important;
  background-clip: padding-box;
  color: inherit;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) tr > :last-child {
  border-right: 0 !important;
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) tbody tr:last-child > * {
  border-bottom: 0 !important;
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description
) table:not(.shop_table):not(.variations) thead th {
  background: linear-gradient(135deg, color-mix(in srgb, var(--msm-product-table-gradient-1, #ffc400) 78%, transparent), color-mix(in srgb, var(--msm-product-table-gradient-2, #ec1b8c) 74%, transparent)) !important;
  color: var(--msm-product-table-header-text, #111) !important;
  font-weight: 850 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .26);
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description
) table:not(.shop_table):not(.variations) tbody tr:nth-child(even) > * {
  background-color: var(--msm-table-stripe);
}

/* Product descriptions and WooCommerce attributes use the richer gradient table language. */
:where(
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) thead th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .24), transparent 48%),
    linear-gradient(135deg, color-mix(in srgb, var(--msm-product-table-gradient-1, #ffc400) 84%, transparent), color-mix(in srgb, var(--msm-product-table-gradient-2, #ec1b8c) 80%, transparent)) !important;
  color: var(--msm-product-table-header-text, #111) !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

:where(
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) tbody :where(th, td:first-child:not(:only-child)) {
  width: 34%;
  background: linear-gradient(135deg, var(--msm-table-label-1), var(--msm-table-label-2)) !important;
  color: color-mix(in srgb, var(--msm-text, #222) 88%, #000) !important;
  font-weight: 820 !important;
}

:where(
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) tbody tr:nth-child(even) td:not(:first-child) {
  background: var(--msm-table-stripe);
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) tbody tr:hover > * {
  filter: brightness(.985) saturate(1.035);
}

:where(
  .msm-entry-content,
  .entry-content,
  .msm-seo-text-content,
  .msm-home-seo-content,
  .term-description,
  .woocommerce-products-header__description,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-Tabs-panel,
  .single-product .woocommerce-tabs .panel
) table:not(.shop_table):not(.variations) caption {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--msm-table-border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: color-mix(in srgb, var(--msm-primary, #ec1b8c) 7%, #fff);
  color: var(--msm-text, #222);
  font-weight: 850;
  text-align: left;
}

@media (max-width: 640px) {
  :where(
    .msm-entry-content,
    .entry-content,
    .msm-seo-text-content,
    .msm-home-seo-content,
    .term-description,
    .woocommerce-products-header__description,
    .single-product .woocommerce-product-details__short-description,
    .single-product .woocommerce-Tabs-panel,
    .single-product .woocommerce-tabs .panel
  ) table:not(.shop_table):not(.variations) {
    font-size: 12.5px;
  }

  :where(
    .msm-entry-content,
    .entry-content,
    .msm-seo-text-content,
    .msm-home-seo-content,
    .term-description,
    .woocommerce-products-header__description,
    .single-product .woocommerce-product-details__short-description,
    .single-product .woocommerce-Tabs-panel,
    .single-product .woocommerce-tabs .panel
  ) table:not(.shop_table):not(.variations) :where(th, td) {
    padding: 9px 10px !important;
  }
}

@media (forced-colors: active) {
  :where(.msm-entry-content, .entry-content, .single-product .woocommerce-Tabs-panel) table:not(.shop_table):not(.variations),
  :where(.msm-entry-content, .entry-content, .single-product .woocommerce-Tabs-panel) table:not(.shop_table):not(.variations) :where(th, td) {
    border-color: CanvasText !important;
    box-shadow: none !important;
  }
}
