/* To control the width of body text on blog posts for desktop and tablet */

@media (min-width: 576px) {
.neve-main > .single-post-container .nv-single-post-wrap.col {
  max-width: 65%;
	}
}

@media (min-width: 960px) {
.neve-main > .single-post-container .nv-single-post-wrap.col {
  max-width: 60%;
	}
}

/* The spacing of headings and paragraphs on blog posts is quite high, this attempts to reduce some of that white space */

/* default on this one is > 20px */
.nv-single-post-wrap > div:first-child {
  margin-top: 20px;
	}

p {
	margin-bottom: 0.9em;
}

.nv-content-wrap ul {
  margin-bottom: 20px;
  margin-top: 20px
}

/* Reduce spacing on bullet points. Default line height is 27px, so have reduced by 5px */

li {
	line-height: 22px;
}

/* These two add an opacity overlay to the featured post header */
.nv-ft-post .nv-post-thumbnail-wrap {
    background-color: #343e47;
}
.nv-ft-post .content .wp-post-image {
    opacity: 0.6;
}

/* This removes the margin between the featured image and the site header */
.nv-ft-post {
  margin-top: 8px;
}

/* These two changes adjust the padding between the list of blog posts on the home page and the featured image */

.nv-index-posts {
  margin-top: 15px;
}

.nv-index-posts, .nv-single-post-wrap {
  margin-bottom: 10px;
}

/* Adjusts padding around the email newsletter signup box */
.nv-sidebar-wrap {
  padding: 0px 15px;
}

/* Breathing room above the first sidebar widget so it doesn't hug the featured image */
.nv-sidebar-wrap aside > .widget:first-child {
  margin-top: 16px;
}

.nv-ft-post .entry-summary {
	display: none;
}

.nv-meta-list {
	margin-bottom: 0;
}

/* Styling table divider lines */

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* On mobile screens it adds a bit of padding between the footer text and the top of the footer, which otherwise is tight up against it */

@media (max-width: 960px) {
#block-9 {
	padding-top: 10px;
	}
}

@media (max-width: 960px) {
#block-7 {
	padding-bottom: 50px;	
	}
}


/* Disabled - Styling TOC container to have a bit of whitespace above it */
#toc_container {
	margin-top: 0;
}

/* WP Block table styling - to remove harsh divisions */

.wp-block-table td {
 border: 0;
 border-bottom: 1px solid #ddd;
}


/* Make site title bigger */

@media (min-width: 576px) {
	.site-logo h1 {
		font-size: 1.5em;
		font-weight: 500;
	}
	.site-logo p {
		font-size: 1.5em;
		font-weight: 500;
	}
}

@media (min-width: 960px) {
	.site-logo h1 {
		font-size: 2em;
		font-weight: 500;
	}
	.site-logo p {
		font-size: 2em;
		font-weight: 500;
	}
}

/* Make TOC Full width */

#toc_container {
	width: 100%;
}

/* adding whitespace above and below the images */

.wp-block-image img {
	margin-top: 10px;
	margin-bottom: 15px
}

/* Reduce margin under headings - default is 30px */

h1, h2, h3, h4, h5, h6 {
	margin-bottom: 15px;
}

/* Remove featured post from post archive pages that aren't the first */

.home.blog.paged .nv-ft-post {
    display: none !important;
}

/* Blue block formatting */

.blue-block {
	padding: 12px 15px 2px 15px;
	color: #ffffff;
	background-color: #4c96c6;
	border: #ffffff 2px solid;
	margin-bottom: 10px;
}

.blue-block a {
	color: white;
}

.blue-block a:hover {
	color: gray;
}

/* Style header text (h1) on mobile */
@media only screen and (max-width: 768px) {
	.nv-post-cover {
		--height: 210px;
	}
	.title.entry-title {
		font-size:1.5em;
	}
}
/* End h1 styling */

/* Position scroll-to-top lower in page */

.scroll-to-top {
 bottom: 15px;
}

/* End scroll-to-top styling */

/* Adjusting and overriding table styling */

.wp-block-table thead {
  border-bottom: 0;
}

.wp-block-table th {
  border: 0;
	border-bottom: 1px solid #ddd;
  padding: .5em;
}

/* end table styling */

/* Display Posts Plugin CSS */

.popular-posts-div .listing-item {
	clear: both;
  margin-bottom: 10px; 
	position: relative;
}

.popular-posts-div .listing-item::after {
    content: "";
    display: table;
    clear: both;
}

.popular-posts-div .listing-item .image {
    float: left;
    width: 24%;
    margin-right: 15px;
}

.popular-posts-div .listing-item .title {
    float: left;
    width: 70%;
	line-height: 1.25
}

h2.display-posts-title {
    font-size: 1.3em;
}

.popular-posts-div .listing-item .comment-count {
    font-size: 0.9em;
}

/* This sets image height to auto adjust, thus avoiding narrow/warped images on mobile */

@media (max-width: 767px) {
.wp-block-image img { height: auto !important; }
}

/* Highlight text in yellow */
.highlight {
    background: #fffba4;
    padding: 2px 0 0 !important
}

/* boxes stuff */

#content ul.warnings-yellow li:before {
    color: #ffc924;
    content: "\f071";
    left: -31px
}

#content .boxed {
    background: #f4faf5;
    box-shadow: 0 0 8px 4px transparent inset, 0 0 2px 1px #57ad68 !important;
    margin: 0 0 37px !important;
    padding: 30px
}

#content p+.boxed {
    position: relative;
    top: 10px;
    margin-bottom: 47px !important
}

#content p+.boxed+.boxed {
    top: 0;
    margin-bottom: 37px !important
}

#content .boxed.red {
    background: #faf4f4;
    box-shadow: 0 0 8px 4px transparent inset, 0 0 2px 1px #ad5757 !important
}

#content .boxed.red a {
    color: #ad3434 !important
}

#content .boxed.red a:hover {
    color: #ad5757 !important
}

#content .boxed.yellow {
    background: #ffffe9;
    box-shadow: 0 0 8px 4px transparent inset, 0 0 2px 1px #d4d557 !important
}

#content .boxed ol,
#content .boxed ul,
#content ol.boxed,
#content ul.boxed {
    padding-left: 60px
}

/* CSS for BJ Supps table */

.table-container {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

#bjsuppsTable {
    display: block;
    width: 100%;
    border-collapse: collapse;
}

#bjsuppsTable tr {
    border-bottom: 1px solid #ddd;
}

#bjsuppsTable th, #bjsuppsTable td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}

#toggleButton {
    display: block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #469bd1;
    color: white;
    border: none;
    cursor: pointer;
}

#toggleButton:hover {
    background-color: #3b83b1;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.expanded {
    max-height: none;
}

.expanded .fade-overlay {
    display: none;
}

/* More CSS for styling Bryan Johnson supps table */

:root {
	--color-row-group1: #e6ffe6; /* Color for rows 2-6 */
	--color-row-group2: #ffffe6; /* Color for rows 7 and onwards */
	--color-row-group3: #ffe6e6;
}

/* Target rows 2 to 6 */
#bjsuppsTable tbody tr:nth-child(n+1):nth-child(-n+6) {
    background-color: var(--color-row-group1);
}

/* Target rows 7 to 16 */

#bjsuppsTable tbody tr:nth-child(n+7):nth-child(-n+22) {
    background-color: var(--color-row-group2);
}

/* Target rows 17 and onwards in tbody */
#bjsuppsTable tbody tr:nth-child(n+17) {
    background-color: var(--color-row-group3);
}

/* remove Bryan Johnson supps table margin-top */

#tableContainer .wp-block-table {
	margin-top: 0;
}

/* Custom CSS for discount code form + search feedback form */
/* 🔷 Container styling */
#wpforms-14847,
#wpforms-15452 {
  background: #f9fafe;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  padding: 24px;
  max-width: 640px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ✏️ Input + Textarea fields */
#wpforms-14847 input[type="email"],
#wpforms-14847 textarea,
#wpforms-15452 input[type="email"],
#wpforms-15452 textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

/* 🔖 Labels */
#wpforms-14847 .wpforms-field-label,
#wpforms-15452 .wpforms-field-label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  display: block;
}

/* 🔘 Submit button */
#wpforms-submit-14847,
#wpforms-submit-15452 {
  background-color: #2563eb;
  color: #fff !important;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#wpforms-submit-14847:hover,
#wpforms-submit-15452:hover {
  background-color: #1e40af;
}

/* 🎯 Attention headline (adjust class as needed) */
.has-text-align-center strong {
  font-size: 1.2rem;
  color: #1e293b;
}

@media (max-width: 480px) {
  /* Heading */
  .has-text-align-center strong {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  /* Optional: center all text in form block */
  .has-text-align-center,
  .wpforms-container p {
    text-align: center;
  }
  /* Form container */
  #wpforms-14847,
  #wpforms-15452 {
    padding: 16px;
  }
  /* Input + Textarea fields */
  #wpforms-14847 input,
  #wpforms-14847 textarea,
  #wpforms-15452 input,
  #wpforms-15452 textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }
  /* Submit button */
  #wpforms-submit-14847,
  #wpforms-submit-15452 {
    width: 100%;
    padding: 14px;
    font-size: 17px;
  }
}

#block-27,
#block-28 {
    margin-bottom: 0px;
}
/* End styling for forms */

/* Optional css class to resize native WP videos */

.video-size {
  max-width: 400px;
}

.video-size video {
  width: 100% !important;
  height: auto !important;
}

/* Yoast SEO Q&A CSS */

.schema-faq-section {
  border: 1px solid #e0e0e0;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.schema-faq-section:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.schema-faq-question {
  display: block;
  padding: 18px 50px 18px 20px;
  cursor: pointer;
  background: #fafafa;
  margin: 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.schema-faq-question:hover {
  background: #f0f0f0;
}

.schema-faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #666;
}

.schema-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  margin: 0;
  background: #fff;
}

.schema-faq-section.active .schema-faq-answer {
  max-height: 500px;
  padding: 20px;
}

.schema-faq-section.active .schema-faq-question {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 6px 6px 0 0;
}

.schema-faq-section.active .schema-faq-question::after {
  content: '−';
}

/* Click to expand for references section */

/* Collapsible Modern Footnotes */

.modern-footnotes-list.is-collapsible {
  max-height: 120px; /* Approximately 2 items */
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease-out;
}

.modern-footnotes-list.is-collapsible.expanded {
  max-height: none;
}

/* Fade overlay when collapsed */
.modern-footnotes-list.is-collapsible:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

/* Expand/collapse button */
.footnotes-toggle {
  display: block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.footnotes-toggle:hover {
  background: #e0e0e0;
}

.footnotes-toggle.hidden {
  display: none;
}

/**
 * Medical disclaimer styling
 */

.flh-post-disclaimer {
    margin: 2em 0 1em;
    padding: 1em 1.25em;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.875em;
    color: #666;
}

.flh-post-disclaimer p {
    margin: 0;
}

.flh-post-disclaimer a {
    color: #555;
}

.flh-post-disclaimer a:hover {
    color: #333;
    text-decoration: underline;
}

.flh-post-disclaimer p + p {
    margin-top: 0.5em;
}

.flh-post-disclaimer--expert {
    background-color: #eff6ff;
    border-left: 4px solid #93c5fd;
    color: #374151;
}

/* for scrolling wide tables in mobile */

.table-scroll {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}

/* keep for mobile */
.table-scroll table {
  min-width: 600px;
}

/* scroll hint text */

.scroll-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  color: #000;
}

@media (max-width: 768px) {
  .scroll-hint {
    display: block;
  }
}

/* Scrolling fade (small) */

@media (max-width: 768px) {
  .table-scroll {
    position: relative;
  }
  
  .table-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 25px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
  }

  .table-scroll.scrolled-end::after {
    display: none;
  }
}

/* Group block class: verdict */
/* Final line paragraph class: verdict-keys */

.verdict {
  --accent: rgb(70, 155, 209);
  --bg: #f4f8fc;
  --text: #222;

  border-left: 6px solid var(--accent);
  background: var(--bg);
  color: var(--text);
  padding: 16px 18px;
  margin: 24px 0 28px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  font-size: 1rem;
  line-height: 1.55;
}

/* Auto-style first paragraph inside the verdict group as the title */
.verdict > p:first-child {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

/* Keep normal spacing for body paragraphs */
.verdict > p {
  margin: 0 0 0.9em;
}

/* Optional class only on the final "Best for / Not for / Watch-out" paragraph */
.verdict > p.verdict-keys {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Bold labels inside the final line */
.verdict > p.verdict-keys strong {
  font-weight: 700;
}

/**
 * Expert disclaimer styling
 */

.flh-expert-disclaimer {
    background-color: #eff6ff;
    border-left: 4px solid #93c5fd;
    padding: 12px 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 0.8em;
    color: #374151;
    border-radius: 4px;
}

.flh-expert-disclaimer p {
    margin: 0;
}

.flh-expert-disclaimer a {
    color: #374151;
    text-decoration: underline;
}

.flh-expert-disclaimer a:hover {
    color: #1e3a5f;
}

@media (max-width: 768px) {
    .flh-expert-disclaimer {
        padding: 8px 12px;
        font-size: 0.75em;
        line-height: 1.3;
        margin-top: 8px;
        margin-bottom: 8px;
    }
}

/* ===== FOOTER RESTYLE ===== */

/* Dark background */
.footer--row-inner.footer-bottom-inner {
  background-color: #1a1d22;
  padding: 32px 24px 40px;
}

/* Section headings */
.footer--row-inner h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Link lists */
.footer--row-inner .widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.footer--row-inner .widget-area ul li {
  margin-bottom: 8px;
}

.footer--row-inner .widget-area a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer--row-inner .widget-area a:hover {
  color: #ffffff;
}

/* Column widths — narrow nav col, wider text col (desktop only) */
@media (min-width: 1025px) {
  .footer-bottom-inner .hfg-grid {
    grid-template-columns: 1fr 2fr 1fr !important;
  }
}

/* Paragraph text (mission statement, disclosure) */
.footer--row-inner .widget-area p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer--row-inner .widget-area p a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.footer--row-inner .widget-area p a:hover {
  color: #ffffff;
}

/* ===== EMAIL SIGNUP FORM (WPForms #14917) ===== */

/* Hide the label — section heading provides enough context */
#wpforms-form-14917 .wpforms-field-label {
  display: none;
}

/* Side-by-side layout on desktop */
#wpforms-form-14917 {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#wpforms-form-14917 .wpforms-field-container {
  flex: 1;
  margin-bottom: 0;
}

#wpforms-form-14917 .wpforms-field-email {
  margin-bottom: 0;
}

/* Email input */
#wpforms-form-14917 input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 52px;
  padding: 0 18px !important;
  font-size: 15px !important;
  border: 1.5px solid #d0d5dd !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #1a1d22;
  transition: border-color 0.2s;
}

#wpforms-form-14917 input[type="email"]:focus {
  border-color: #3a7bd5 !important;
  outline: none;
}

/* Submit button */
#wpforms-form-14917 .wpforms-submit-container {
  flex-shrink: 0;
  margin-top: 0;
}

#wpforms-form-14917 .wpforms-submit {
  height: 52px;
  padding: 0 28px !important;
  background-color: #3a7bd5 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

#wpforms-form-14917 .wpforms-submit:hover {
  background-color: #2d68c4 !important;
}

/* Stack on mobile */
@media (max-width: 767px) {
  #wpforms-form-14917 {
    flex-direction: column;
    gap: 12px;
  }

  #wpforms-form-14917 .wpforms-submit {
    width: 100%;
  }
}

/* Mobile show-more toggle — hidden on desktop */
.mobile-show-more {
  display: none;
}

/* ===== MOBILE GRID: 1-COL, 3 ITEMS (Buying Guides, Popular Articles, Recent Articles) ===== */
@media (max-width: 767px) {
  /* Buying Guides: 1-col, show first 3 only */
  .gb-element-d0000004 {
    grid-template-columns: 1fr !important;
  }
  .gb-element-d0000004 > div:nth-child(n+4) {
    display: none;
  }

  /* Popular Articles: 1-col, show first 3 only */
  .gb-looper-e0000005 {
    grid-template-columns: 1fr !important;
  }
  .gb-looper-e0000005 > .gb-loop-item:nth-child(n+4) {
    display: none;
  }

  /* Recent Articles: 1-col, show first 3 only */
  .gb-looper-10000005 {
    grid-template-columns: 1fr !important;
  }
  .gb-looper-10000005 > .gb-loop-item:nth-child(n+4) {
    display: none;
  }

  /* Show-more toggle buttons */
  .mobile-show-more {
    display: block;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 24px;
  }
  .show-more-btn {
    background: none;
    border: none;
    color: #3a7bd5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
  }
  .show-more-btn:hover {
    background: none;
    color: #2d68c4;
    text-decoration: underline;
  }

  /* Override nth-child hiding when toggled open */
  .gb-element-d0000004.show-all > div:nth-child(n+4),
  .gb-looper-e0000005.show-all > .gb-loop-item:nth-child(n+4),
  .gb-looper-10000005.show-all > .gb-loop-item:nth-child(n+4) {
    display: block !important;
  }

  /* Hide "View all articles" links until section is expanded */
  .view-all-articles {
    display: none;
  }
}

/* "View all articles" links */
.view-all-articles {
  text-align: center;
  margin-top: -50px;
  margin-bottom: 20px;
}
.view-all-link {
  color: #3a7bd5;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.view-all-link:hover {
  color: #2d68c4;
  text-decoration: underline;
}

/* Make table scrollable */
.wp-block-group.scroll-table {
  overflow-x: auto;
}

.wp-block-group.scroll-table table {
  min-width: 600px;
}

/* ===== EMAIL SIGNUP FORM (Mautic #flhsignupform) =====
   Stacked on all viewports: email on top, full-width Subscribe button below.
   Plain block layout — no flex, no gap, no wrap risk. */

#mauticform_flhsignupform {
  max-width: 480px;
}

/* Keep these as block so any sidebar Mautic form still has a sane default layout */
#mauticform_flhsignupform .mauticform-innerform,
#mauticform_flhsignupform .mauticform-page-wrapper {
  display: block;
  position: relative;
}

/* Email row + input */
#mauticform_flhsignupform .mauticform-email {
  margin-bottom: 12px;
}
#mauticform_flhsignupform .mauticform-input {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  color: #1a1d22 !important;
  background: #fff !important;
  border: 1.5px solid #d0d5dd !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s;
}
#mauticform_flhsignupform .mauticform-input:focus {
  border-color: #3a7bd5 !important;
  outline: none !important;
}

/* Subscribe button — full width, overrides btn / btn-ghost theme classes */
#mauticform_flhsignupform .mauticform-button-wrapper {
  width: 100%;
}
#mauticform_flhsignupform .mauticform-button {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  padding: 0 28px !important;
  background-color: #3a7bd5 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 52px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background-color 0.2s;
  min-height: unset !important;
  min-width: unset !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
#mauticform_flhsignupform .mauticform-button:hover {
  background-color: #2d68c4 !important;
}

/* Invisible Turnstile — take out of flow so it can't affect layout */
#mauticform_flhsignupform_cloudflare_turnstile {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* Hide error spans by default; show form-level messages */
#mauticform_flhsignupform .mauticform-errormsg { display: none; }
#mauticform_flhsignupform .mauticform-message {
  font-size: 15px;
  color: #1a1d22;
  padding: 12px 0;
}

/* Hide form fields after successful submission */
#mauticform_flhsignupform:has(.mauticform-message:not(:empty)) .mauticform-innerform {
  display: none;
}

/* ===== SIDEBAR NEWSLETTER CTA (replaces Mautic form in widget) ===== */
.flh-newsletter-cta {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 4px;
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  text-decoration: none !important;
  transition: border-color 0.2s;
}
.flh-newsletter-cta:hover {
  border-color: #3a7bd5;
}
.flh-newsletter-cta:hover .flh-newsletter-cta__button {
  background-color: #2d68c4;
}
.flh-newsletter-cta__placeholder {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  color: #6b7280;
  min-height: 44px;
}
.flh-newsletter-cta__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background-color: #3a7bd5;
  color: #fff !important;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}
@media (max-width: 767px) {
  .flh-newsletter-cta__placeholder { padding: 0 10px; font-size: 14px; }
  .flh-newsletter-cta__button { padding: 0 14px; }
}

/* Hide the sidebar newsletter-signup widget on the /newsletter/ page itself (page ID 4736) */
body.page-id-4736 #block-28,
body.page-id-4736 #block-31 {
  display: none;
}

/* ===== SIDEBAR EMAIL FORM (Mautic in sidebar) ===== */

/* In the sidebar, always stack vertically */
.nv-sidebar-wrap #mauticform_flhsignupform .mauticform-page-wrapper {
  flex-direction: column;
  gap: 10px;
}

/* Full-width email input in sidebar */
.nv-sidebar-wrap #mauticform_flhsignupform .mauticform-email {
  width: 100% !important;
}

/* Button sizes to its content */
.nv-sidebar-wrap #mauticform_flhsignupform .mauticform-button-wrapper {
  width: auto !important;
}

.nv-sidebar-wrap #mauticform_flhsignupform .mauticform-button {
  width: auto !important;
}

/* Wide comparison tables: give the last (long-form text) column more room.
   Add class "wide-last-col" to the figure via Block, Advanced, Additional CSS classes. */
.wide-last-col table {
  table-layout: fixed;
}

.wide-last-col table th:last-child,
.wide-last-col table td:last-child {
  width: 32%;
}

.wide-last-col.table-scroll table {
  min-width: 900px;
}
