/** START: SearchWP Related Posts **/
.searchwp-related-results {
    margin-bottom: 35px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #e7e7e7;
    border-radius: 2px;
}

.searchwp-related-results .searchwp-related-item {
    margin-top: 0;
}

.searchwp-related-list .searchwp-related-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 0 20px;
    border-bottom: 1px solid #e8e8eb;
}

.searchwp-related-list .searchwp-related-item:first-child {
    padding-top: 0;
}

.searchwp-related-list .searchwp-related-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.searchwp-related-grid .searchwp-related-item {
    margin-top: 0;
}

.searchwp-related-item--info-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 12px;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.searchwp-related-item--info-container h5.searchwp-related-item--title {
    margin: 0;
    text-align: left;
}

.searchwp-related-item--img img,
.searchwp-related-item--img svg {
    width: 100%;
    display: block;
    height: auto;
}

.searchwp-related-item--info-container .searchwp-related-item--title a {
    color: inherit;
}

.searchwp-related-item--desc {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(14, 33, 33, 0.8);
    margin: 0;
}

/* --- Grid --- */

.searchwp-related-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 40px;
}

.searchwp-related-grid--cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.searchwp-related-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.searchwp-related-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.searchwp-related-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.searchwp-related-grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.searchwp-related-grid--cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.searchwp-related-grid--cols-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.searchwp-related-grid--cols-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.searchwp-related-grid--cols-9 {
    grid-template-columns: repeat(9, minmax(0, 1fr));
}

.searchwp-related-grid--cols-10 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.searchwp-related-grid .searchwp-related-item {
    position: relative;
}

.searchwp-related-grid .searchwp-related-item:after {
    content: '';
    position: absolute;
    border-left: 1px solid #e8e8eb;
    right: -20px;
    height: 100%;
    top: 0;
}

.searchwp-related-grid .searchwp-related-item:last-child:after {
    display: none;
}

/* --- Image --- */

.searchwp-related-grid .searchwp-related-item--img {
    margin-bottom: 18px;
    width: 50%;
}

.searchwp-related-grid.searchwp-related--img-none .searchwp-related-item--img {
    display: none;
}

.searchwp-related-grid.searchwp-related--img-sm .searchwp-related-item--img {
    width: 33%;
}

.searchwp-related-grid.searchwp-related--img-m .searchwp-related-item--img {
    width: 50%;
}

.searchwp-related-grid.searchwp-related--img-l .searchwp-related-item--img {
    width: 100%;
}

.searchwp-related-list .searchwp-related-item--img-container {
    -ms-flex-preferred-size: 20%;
    flex-basis: 20%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: 4px;
}

.searchwp-related-list.searchwp-related--img-none .searchwp-related-item--img-container {
    display: none;
}

.searchwp-related-list.searchwp-related--img-sm .searchwp-related-item--img-container {
    -ms-flex-preferred-size: 10%;
    flex-basis: 10%;
}

.searchwp-related-list.searchwp-related--img-m .searchwp-related-item--img-container {
    -ms-flex-preferred-size: 20%;
    flex-basis: 20%;
}

.searchwp-related-list.searchwp-related--img-l .searchwp-related-item--img-container {
    -ms-flex-preferred-size: 30%;
    flex-basis: 30%;
}

/******************************************************************************
/**                         CUSTOM STYLES                                   **/
/******************************************************************************

/** Post content Headers **/
body.single-post .et_pb_section .et_pb_post_title.et_pb_module {
    margin: 0 !important;
}

/* START - Blog POST Ordered Lists */
body.single #main-content .et_pb_module.et_pb_post_content ol {
    list-style-position: outside;
    padding-left: 2rem;
}

/* END - Blog POST Ordered Lists */
/** Underlines of Support pages**/

.single-support-post #main-content .support-post-content a {
    border-bottom-color: var(--noom-lagoon) !important;
    color: var(--noom-lagoon);
}

body.single-support-post #main-content .known-issues-toggle .et_pb_accordion_item {
    border: 1px solid var(--noom-gold);
}

body.single-support-post #main-content .known-issues-toggle .upvote-known-technical-issue {
    text-decoration: none;
    color: var(--noom-lagoon) !important;
    border-bottom: 1px solid var(--noom-lagoon);
}

/** Support/Known Issues - START **/
/** 
  Style the "Click to Report" links used on "Known Technical Issues" support topic.
  
  /support/faqs/question-topics/technical-issues/2021/02/known-technical-issues/ page

  Ref: Hx024b — update know technical issues page
**/
body.single-support-post .upvote-known-technical-issue-wrapper {
    text-align: right;
    text-transform: none;
}

body.single-support-post .upvote-known-technical-issue-wrapper .upvote-known-technical-issue,
body.single-support-post .upvote-known-technical-issue-wrapper .upvote-known-technical-issue-link {
    text-decoration: none;
    color: var(--noom-gold) !important;
}

body.single-support-post .upvote-known-technical-issue .fa {
    margin-left: 0.5rem;
}

body.single-support-post .wpb-submenu-indicator .wpb-submenu-indicator-icon {
    font-size: 1.5rem !important;
}


/* START — Support Content using WP Block Editor */
.single-support-post .support-post-content ol,
.single-support-post .support-post-content ul {
    padding-left: 2em;
}

/* END — Support Content using WP Block Editor */

/** START: Fix the Known Technical Issues **/
/** Hide the video container and adjust the wdith of the MixPanel voting link container **/
body.support-post-known-technical-issues p.dmach-acf-value.dmach-acf-video-container {
    display: none;
}


a.upvote-known-technical-issue-link {
    text-decoration: none;
    border-bottom: 1px solid #05727a;
    display: inline-block !important;
    padding: 0 0 5px 0 !important;
}

/** END: Fix the Known Technical Issues **/

/* START - Blog Post WP Block Editor */
.single-post #main-content .et_pb_text ul,
.single-post #main-content .et_pb_text ol,
.single-post #main-content .et-l--post ul,
.single-post #main-content .et-l--post ol,
.single-post #main-content .et_pb_de_mach_content ul,
.single-post #main-content .et_pb_de_mach_content ol {
    list-style-position: outside;
    padding: 0 0 23px 2em;
}


body.single #main-content .et_pb_post_content h2:not(first-of-type) {
    padding-top: 1.25rem;
}

body.single #main-content .et_pb_post_content h3:not(first-of-type) {
    padding-top: .75rem;
}

body.single #main-content .et_pb_post_content h4:not(first-of-type),
body.single #main-content .et_pb_post_content h5:not(first-of-type),
body.single #main-content .et_pb_post_content h6:not(first-of-type) {
    padding-top: .5rem;
}


body.single-b2b_resource .searchwp-related-item--img img,
body.single-post .searchwp-related-item--img img,
body.single-post .searchwp-related-item--img-container {
    object-fit: cover;
    object-position: center;
    height: 250px !important;
    margin-bottom: 20px;
    border-radius: 15px;
}

body.single-b2b_resource .searchwp-related-item--img img {
    height: 100% !important;
}

body.single-b2b_resource .searchwp-related-item--img {
    aspect-ratio: 1/1;
}

body.single-b2b_resource .searchwp-related .searchwp-related-item--desc {
    display: none;
}

body.single-b2b_resource .searchwp-related h2,
body.single-post .searchwp-related h4 {
    font-size: 3rem;
    text-align: center;
}

body.single-b2b_resource .searchwp-related h3,
body.single-post .searchwp-related h5 {
    font-size: 1.25rem;
}

body.single-b2b_resource .searchwp-related-results,
body.single-post .searchwp-related-results {
    padding: 0;
    background-color: transparent;
    border: none;
    margin-top: 25px;
}

body.single-b2b_resource .searchwp-related-grid .searchwp-related-item::after,
body.single-post .searchwp-related-grid .searchwp-related-item::after {
    border: none;
}

body.single-b2b_resource .searchwp-related-grid .searchwp-related-item a,
body.single-post .searchwp-related-grid .searchwp-related-item a {
    border: none !important;
}

@media (max-width:980px) {

    body.single-b2b_resource .searchwp-related-grid,
    body.single-post .searchwp-related-grid {
        display: block;
    }

    /**  body.single-post .searchwp-related-grid .searchwp-related-item { margin-bottom: 50px;} **/
}

/** END:  SearchWP Related Posts **/

/** START: Blog post aside section **/
body.single-post #main-content aside.wp-block-group {
    background-color: var(--noom-sand-2);
    padding: 50px;
    border-radius: 5px;
    margin-bottom: 50px;
}

body.single-post #main-content aside.wp-block-group h2 {
    margin: 0;
    padding-top: 0 !important;
    margin-bottom: .25em !important;
}

body.single-post #main-content aside.wp-block-group ul {
    padding-bottom: 0;
}

body.single-post #main-content aside.wp-block-group>ul>li,
body.single-post #main-content aside.wp-block-group>ul>li:before {
    margin-left: 25px;
}

/** END: Blog post aside section **/

/** START: SearchWP Related Posts on Mobile **/
@media (max-width:980px) {

    body.single-post .searchwp-related-grid .searchwp-related-item,
    body.single-b2b_resource .searchwp-related-grid .searchwp-related-item {
        margin-top: 50px;
    }
}

/** END: SearchWP Related Posts on Mobile **/

/** START: Single Post H1 and Meta section on Mobile **/
@media (max-width:980px) {
    body.single-post #main-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    body.single-post #main-content .inline_meta_items {
        font-size: 0.75rem;
    }
}

/** END: Single Post H1 on Mobile **/

/** START: Leave h3 margin alone on single Post **/
body.single-post #main-content h2:not(.gform_submission_error)+h3 {
    margin-bottom: 0;
}

/** END: Leave h3 margin alone on single Post **/



/** START: Remove top padding of ULs in B2B Posts **/
body.single-b2b_resource #main-content div.et_pb_module_inner ul { padding-top: 0 !important;}
/** END: Remove top padding of ULs in B2B Posts **/

/** START: Support FAQ H2-H4 sizes **/
body.single-support-post #main-content h2 { font-size: 2rem;}
body.single-support-post #main-content h3 { font-size: 1.75rem;}
body.single-support-post #main-content h4 { font-size: 1.5rem;}
/** START: Support FAQ H2-H4 size **/


/** B2B Webinar speakers **/
ul.b2b_sme_speakers {
    list-style: none;
    padding: 0;
}
ul.b2b_sme_speakers li {
    text-align: center;
    display: inline-block;
    padding: 20px;
}
ul.b2b_sme_speakers h3 {
    font-family: var(--common-font-label);
    text-transform: uppercase !important;
    color: var(--noom-cherry) !important;
    font-size: 1.125rem;
}
ul.b2b_sme_speakers img.size-post-thumbnail {
    width: 115px;
    border-radius: 100px !important;
}


/* START - Blog POST anchor list */
#blog-jump-links {
    margin: 0 0 25px 0;
    min-height: 100px;
    z-index: 1000;
    padding: 0;
    height: 100%;
    background-color: var(--white);
    border-radius: 20px;
  }
  
  #blog-jump-links ol {
    padding: 10px !important;
    counter-reset: jumplinkcounter;
  }
  
  #blog-jump-links ol li:before {
    content: counter(step-counter);
    color: white;
    background: var(--noom-black);
    font-family: var(--common-font-label) !important;
    font-size: .80em;
    display: inline-block;
    text-align: center;
    margin: 0 10px 0 0;
    line-height: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  
  #blog-jump-links ol li {
    position: relative;
    cursor: pointer;
    margin: 10px;
    display: flex;
    list-style: none;
    counter-increment: step-counter;
  
  }
  
  #blog-jump-links ol li .details {
    color: var(--noom-cinnamon) !important;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    /* padding: 0 0 0 10px; */
  }
  
  #blog-jump-links ol li .details a {
    color: var(--noom-black);
    text-decoration: none;
    font-family: var(--common-font-label) !important;
    border-bottom: 1px solid var(--noom-black);
    font-size: .80em;
  }
  
  #blog-jump-links ol li.visible:before {
    background: var(--noom-cinnamon);
  }
  
  #blog-jump-links ol li.visible .details a {
    color: var(--noom-cinnamon);
    border-bottom-color: var(--noom-cinnamon);
  }
  
  #blog-jump-links ol li:hover>.details {
    opacity: 1;
  }
  
  #blog-jump-links ol li:hover>.details a {
    color: var(--noom-cinnamon);
  }
  
  #blog-jump-links ol li:hover:before {
    background: var(--noom-cinnamon);
  }
  /* END - Blog POST anchor list */

  /** Custom table styling for tables created with the custom HTML block. **/
body.single-post #main-content .et_pb_post_content table { border-collapse: collapse; margin: 0 0 25px 0; width: 100%; }
body.single-post #main-content .et_pb_post_content table thead { border-bottom: 3px solid; }
body.single-post #main-content .et_pb_post_content table tr td, 
body.single-post #main-content .et_pb_post_content table tr th { border: 1px solid; padding: .5em; line-height: 1.25em; vertical-align: top; padding: 25px 10px;  }
body.single-post #main-content .et_pb_post_content table tr th { text-align: left; font-family: var(--common-font-serif); font-size: 1.4em; }
body.single-post #main-content .et_pb_post_content table tr td, body.single-post #main-content .et_pb_post_content table table tbody tr th { border-bottom: 2px solid #ccc; }
body.single-post #main-content .et_pb_post_content table tr.check-mark td { text-align: center; }
body.single-post #main-content .et_pb_post_content table tr.check-mark td .fa-xmark { color: var(--noom-tarocco); }
body.single-post #main-content .et_pb_post_content table tr.check-mark td .fa-check { color: var(--noom-blueberry); font-size: 1.25em;}
/** END: Custom table styling for tables created with the custom HTML block. **/
