/* ------------------------------------------------------------------
   Divi 4 only. Everything here depends on Divi 4 markup, the default Divi header, module
   order classes (et_pb_*_0) or a Divi 4 plugin (Blurb Extended). Review this file at the
   Divi 5 cutover: re-create what's still needed against the new markup, then delete it.
------------------------------------------------------------------ */

/* Default single.php post header */
.single-post .et_pb_post .et_post_meta_wrapper,
.single-post .et_pb_post.has-post-thumbnail .et_post_meta_wrapper {
  text-align: center;
}
.single-post .et_pb_post.has-post-thumbnail .et_post_meta_wrapper {
  display: flex;
  flex-flow: column wrap;
}
.single-post .et_pb_post.has-post-thumbnail .et_post_meta_wrapper img {
  margin: 0 auto 2rem;
  order: -1;
}
@media (max-width: 1080px) {
  .single-post .et_pb_post.has-post-thumbnail .et_post_meta_wrapper img {
    width: 100%;
  }
}
.single-post .et_pb_post .et_post_meta_wrapper h1,
h1.entry-title.main_title {
  color: var(--color-teal);
  font-size: var(--font-size-h1);
}
.single-post .format-video .et_main_video_container .wp-video {
  margin: auto;
}
.et_pb_post .entry-content {
  padding-top: 0;
}
#comment-wrap {
  text-align: left;
}

/* "Back to top" label added by js/app.js */
.et_pb_scroll_top span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 0 0.625rem 0.625rem;
}

/* Worth The Read clock icon uses the Divi 4 icon font */
#content .wtr-time-wrap:not(.vid) .wtr-time-number::before,
#content .vid.wtr-time-wrap span.before::before {
  color: var(--color-text-muted);
  content: "\7d";
  font-family: "ETmodules";
  font-size: 1em;
  font-weight: bold;
  margin-right: 0.5em;
}

/* Divi 4 buttons and Woo buttons keep white text */
body.et_pb_button_helper_class .et_pb_button,
body.et_pb_button_helper_class .et_pb_module.et_pb_button,
.woocommerce.et_pb_button_helper_class a.button,
.woocommerce-page.et_pb_button_helper_class a.button,
.woocommerce.et_pb_button_helper_class button.button,
.woocommerce-page.et_pb_button_helper_class button.button,
.woocommerce.et_pb_button_helper_class input.button,
.woocommerce-page.et_pb_button_helper_class input.button,
.woocommerce.et_pb_button_helper_class #respond input#submit,
.woocommerce-page.et_pb_button_helper_class #respond input#submit,
.woocommerce.et_pb_button_helper_class #content input.button,
.woocommerce-page.et_pb_button_helper_class #content input.button,
#respond .form-submit .et_pb_button {
  color: var(--color-white);
}

/* Module order classes from the Theme Builder templates */
.et_pb_wc_checkout_payment_info_0.et_pb_wc_checkout_payment_info {
  background-color: var(--color-surface) !important;
}
.et_pb_blog_0 .et_pb_post a.more-link {
  color: var(--color-teal) !important;
}
.single.no-toc .et_pb_row_0_tb_body {
  display: flex;
}
.single.has-toc .et_pb_row_0_tb_body {
  margin-left: 0;
  max-width: 100%;
}
@media (max-width: 980px) {
  .et-db #et-boc .et-l .et_pb_wc_images div.images ol.flex-control-thumbs.flex-control-nav {
    display: flex;
    gap: 0.375rem;
  }
  .et_pb_wc_images_0 .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
