/* WooCommerce store notice / demo store banner */
.woocommerce-store-notice,
p.demo_store {
  background-color: #ff9100;
  color: black;
}

/* Blog tables in Gutenberg posts */
/* Handles responsiveness, readability, and prevents overflow */
.single-post .entry-content,
.single-post .wp-block-post-content {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Images, videos, iframes never exceed container width */
.single-post .entry-content img,
.single-post .entry-content video,
.single-post .entry-content iframe,
.single-post .wp-block-post-content img,
.single-post .wp-block-post-content video,
.single-post .wp-block-post-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Code blocks wrap instead of forcing the page wide */
.single-post .entry-content pre,
.single-post .wp-block-post-content pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive tables: horizontal scroll inside the table ONLY on small screens */
@media (max-width: 768px) {
  .single-post .entry-content table,
  .single-post .wp-block-table table,
  .single-post .wp-block-post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .single-post .entry-content table th,
  .single-post .entry-content table td,
  .single-post .wp-block-table table th,
  .single-post .wp-block-table table td,
  .single-post .wp-block-post-content table th,
  .single-post .wp-block-post-content table td {
    padding: 0.6rem 0.75rem;
  }
}

/* Table captions, borders, and alternating rows */
.single-post .entry-content table caption,
.single-post .wp-block-post-content table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  margin-bottom: .5rem;
}

.single-post .entry-content table th,
.single-post .entry-content table td,
.single-post .wp-block-post-content table th,
.single-post .wp-block-post-content table td {
  border: 1px solid #e6e6e6;
}

.single-post .entry-content table tbody tr:nth-child(even) td,
.single-post .wp-block-post-content table tbody tr:nth-child(even) td {
  background: #fcfcfc;
}
