/* Joseph's Well — modern UI overlay (BBW patterns) */
:root {
  --jw-ink: #0f172a;
  --jw-ink-soft: #334155;
  --jw-muted: #64748b;
  --jw-surface: #ffffff;
  --jw-bg: #ffffff;
  --jw-bg-alt: #ffffff;
  --jw-navy: #0d7377;
  --jw-navy-2: #14919b;
  --jw-gold: #f0c43a;
  --jw-gold-hover: #ebbc2e;
  --jw-gold-soft: #fff8e0;
  --jw-line: rgba(13, 115, 119, 0.12);
  --jw-shadow: 0 10px 30px rgba(13, 115, 119, 0.10);
  --jw-shadow-lg: 0 18px 50px rgba(13, 115, 119, 0.14);
  --jw-radius: 18px;
  --jw-radius-sm: 12px;
  --jw-font-display: "Jost", Arial, sans-serif;
  --jw-font-body: "Jost", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--jw-font-body) !important;
  color: var(--jw-ink) !important;
  background: var(--jw-bg) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  padding-top: 72px;
}

body.has-sticky-cta {
  padding-bottom: 96px !important;
}

/* Typography */
.display-1,
.display-2,
.display-4,
.display-5,
.display-7,
.mbr-section-title,
.mbr-section-subtitle,
.mbr-title,
.navbar-caption,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--jw-font-display) !important;
  letter-spacing: -0.02em;
}

.mbr-text,
.card-text,
.panel-text,
p,
.display-5,
.display-7 {
  font-family: var(--jw-font-body) !important;
  letter-spacing: 0;
}

.display-2 {
  line-height: 1.15 !important;
}

/* Affiliate text links — bold navy, one per section */
a.jw-aff,
a.jw-aff:link,
a.jw-aff:visited,
a.jw-aff:hover,
a.jw-aff:focus,
a.jw-aff strong {
  color: #0d7377 !important;
  font-weight: 700 !important;
  font-style: normal;
  text-decoration: none !important;
}

a.jw-aff:hover,
a.jw-aff:focus,
a.jw-aff:hover strong,
a.jw-aff:focus strong {
  color: #0a5f63 !important;
}

.mbr-text,
.mbr-text p,
.mbr-text li,
.card-text,
.panel-text,
.content8 p,
.content5 p,
.content4 p,
.display-5,
.display-7,
p {
  line-height: 1.65 !important;
}

/* Global section polish */
section {
  background-color: transparent;
}

section[class*="cid-"] {
  position: relative;
}

.container,
.container-fluid {
  width: 100%;
  max-width: 1140px;
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  margin-left: auto;
  margin-right: auto;
}

/* Same content column as the first section — no extra 10/11 inset */
section .col-md-10,
section .col-lg-10,
section .col-lg-11 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Inner copy uses the same gutter as the first section */
@media (min-width: 992px) {
  .image2 .text-wrapper,
  .image1 .text-wrapper,
  .image3 .text-wrapper,
  .team2 .card-box {
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 991px) {
  .image2 .text-wrapper,
  .image1 .text-wrapper,
  .image3 .text-wrapper,
  .team2 .card-box {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.cid-jwFooter .row-copirayt p {
  max-width: none !important;
  opacity: 0.9;
}

/* Alternating soft bands without fighting existing bg rules too hard */
.header3,
.content4,
.content5,
.content8,
.content17,
.features19,
.features23,
.image1,
.image2,
.image3,
.team1,
.team2 {
  background-image: none !important;
}

/* Navbar — fixed teal (Yu Sleep pattern) */
.cid-tADc1ENzLD {
  background: transparent !important;
  z-index: 1000;
  width: 100%;
}

.cid-tADc1ENzLD nav.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}

.cid-tADc1ENzLD .navbar,
.cid-tADc1ENzLD .navbar.opened,
.cid-tADc1ENzLD .navbar.collapsed,
.cid-tADc1ENzLD .navbar-collapse,
.cid-tADc1ENzLD .navbar-collapse.collapsing,
.cid-tADc1ENzLD .navbar-collapse.show,
.cid-tADc1ENzLD .dropdown-menu,
.cid-tADc1ENzLD .navbar.navbar-expand-lg .dropdown .dropdown-menu,
.cid-tADc1ENzLD .navbar.collapsed.opened,
.cid-tADc1ENzLD .navbar.collapsed .navbar-collapse {
  background: #0d7377 !important;
  background-color: #0d7377 !important;
  background-image: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cid-tADc1ENzLD .navbar {
  min-height: 72px;
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.22);
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

.cid-tADc1ENzLD .navbar-caption {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.45rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
}

@media (max-width: 575px) {
  .cid-tADc1ENzLD .navbar-caption {
    font-size: 1.25rem !important;
  }
}

.cid-tADc1ENzLD .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--jw-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.98rem !important;
  letter-spacing: 0.01em;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.cid-tADc1ENzLD .nav-link:hover,
.cid-tADc1ENzLD .nav-link:focus {
  color: var(--jw-gold) !important;
  opacity: 1;
}

.cid-tADc1ENzLD .hamburger span {
  background: #ffffff !important;
}

.cid-tADc1ENzLD .navbar-buttons .btn,
.cid-tADc1ENzLD .btn-warning {
  border-radius: 999px !important;
  padding: 0.7rem 1.35rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  background-color: var(--jw-gold) !important;
  border-color: var(--jw-gold) !important;
  color: var(--jw-ink) !important;
  box-shadow: 0 8px 20px rgba(240, 196, 58, 0.32) !important;
}

.cid-tADc1ENzLD .btn-warning:hover,
.cid-tADc1ENzLD .btn-warning:focus {
  background-color: var(--jw-gold-hover) !important;
  border-color: var(--jw-gold-hover) !important;
  color: var(--jw-ink) !important;
}

/* Buttons */
.btn {
  border-radius: 999px !important;
  font-family: var(--jw-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.btn-primary,
.btn-primary:active {
  background-color: var(--jw-gold) !important;
  border-color: var(--jw-gold) !important;
  color: #1a1a1a !important;
  box-shadow: 0 8px 20px rgba(240, 196, 58, 0.32) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary.active {
  background-color: var(--jw-gold-hover) !important;
  border-color: var(--jw-gold-hover) !important;
  color: #1a1a1a !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(240, 196, 58, 0.38) !important;
}

/* Hero sale headline — red text, no background */
.cid-tAFdndmopV {
  padding-top: 1.75rem !important;
  padding-bottom: 0.5rem !important;
  background: transparent !important;
  background-image: none !important;
}

.cid-tAFdndmopV .mbr-section-title,
.cid-tAFdndmopV .mbr-section-title strong,
.cid-tAFdndmopV .mbr-section-title div,
.cid-tAFdndmopV h1,
.cid-tAFdndmopV h2 {
  color: #e43f3f !important;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.85rem !important;
  line-height: 1.25 !important;
}

@media (max-width: 768px) {
  .cid-tAFdndmopV .mbr-section-title,
  .cid-tAFdndmopV h1 {
    font-size: 1.45rem !important;
  }
}

.cid-tAFdndmopV .mbr-section-title div {
  margin-top: 0.35rem;
  font-size: 1em;
}

/* Hero product block */
.cid-tB9eYJp5ux {
  padding-top: 1.5rem !important;
  padding-bottom: 3rem !important;
  background: transparent !important;
}

.cid-tB9eYJp5ux .card-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.cid-tB9eYJp5ux .mbr-title,
.cid-tB9eYJp5ux .mbr-title strong {
  font-size: 1.65rem !important;
  line-height: 1.3 !important;
}

@media (max-width: 768px) {
  .cid-tB9eYJp5ux .mbr-title,
  .cid-tB9eYJp5ux .mbr-title strong {
    font-size: 1.35rem !important;
  }
}

.cid-tB9eYJp5ux .image-wrapper img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none !important;
}

.image-wrapper img,
.image-wrap img,
.card-wrap .image-wrap img {
  border-radius: var(--jw-radius-sm);
  box-shadow: var(--jw-shadow);
}

a.jw-img-link {
  display: block;
  line-height: 0;
  text-decoration: none !important;
  color: inherit !important;
  font-weight: inherit !important;
}

a.jw-img-link img {
  width: 100%;
  height: auto;
}

.cid-tB9eYJp5ux .oldcost {
  text-decoration: line-through;
  color: var(--jw-muted) !important;
}

.cid-tB9eYJp5ux .currentcost {
  color: var(--jw-ink) !important;
}

.cid-tB9eYJp5ux .mbr-section-btn .btn {
  margin: 0.35rem 0.35rem 0.35rem 0;
}

/* Section titles — compact, consistent header bands */
.header3 {
  padding-top: 1.35rem !important;
  padding-bottom: 0.55rem !important;
}

.header3 .mbr-section-subtitle,
.header3 .mbr-section-title {
  margin-bottom: 0 !important;
  line-height: 1.25 !important;
}

/* Dark teal section bands: always white text for contrast */
.cid-tAFPGKyBRc,
.cid-vcs4qoQSG1,
.cid-tAFQyWz1Vz,
.cid-tAG9a1kY8b,
.cid-v0FGdUdgGr,
.cid-tBUceMaFj6,
.cid-vbdvdzql8j,
.cid-vcsuhzgO64,
.cid-tAVBcuRLtq {
  background-color: var(--jw-navy) !important;
  background-image: none !important;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

.cid-tAFPGKyBRc .mbr-section-subtitle,
.cid-tAFPGKyBRc .mbr-section-title,
.cid-tAFPGKyBRc .mbr-text,
.cid-tAFPGKyBRc h1,
.cid-tAFPGKyBRc h2,
.cid-tAFPGKyBRc h3,
.cid-tAFPGKyBRc h4,
.cid-tAFPGKyBRc h5,
.cid-tAFPGKyBRc h6,
.cid-tAFPGKyBRc strong,
.cid-tAFPGKyBRc p,
.cid-tAFPGKyBRc div,
.cid-vcs4qoQSG1 .mbr-section-subtitle,
.cid-vcs4qoQSG1 .mbr-section-title,
.cid-vcs4qoQSG1 .mbr-text,
.cid-vcs4qoQSG1 h1,
.cid-vcs4qoQSG1 h2,
.cid-vcs4qoQSG1 h3,
.cid-vcs4qoQSG1 h4,
.cid-vcs4qoQSG1 strong,
.cid-vcs4qoQSG1 p,
.cid-vcs4qoQSG1 div,
.cid-tAFQyWz1Vz .mbr-section-subtitle,
.cid-tAFQyWz1Vz .mbr-section-title,
.cid-tAFQyWz1Vz .mbr-text,
.cid-tAFQyWz1Vz h1,
.cid-tAFQyWz1Vz h2,
.cid-tAFQyWz1Vz h3,
.cid-tAFQyWz1Vz strong,
.cid-tAFQyWz1Vz p,
.cid-tAFQyWz1Vz div,
.cid-tAG9a1kY8b .mbr-section-subtitle,
.cid-tAG9a1kY8b .mbr-section-title,
.cid-tAG9a1kY8b .mbr-text,
.cid-tAG9a1kY8b h1,
.cid-tAG9a1kY8b h2,
.cid-tAG9a1kY8b h3,
.cid-tAG9a1kY8b strong,
.cid-tAG9a1kY8b p,
.cid-tAG9a1kY8b div,
.cid-v0FGdUdgGr .mbr-section-subtitle,
.cid-v0FGdUdgGr .mbr-section-title,
.cid-v0FGdUdgGr .mbr-text,
.cid-v0FGdUdgGr h1,
.cid-v0FGdUdgGr h2,
.cid-v0FGdUdgGr h3,
.cid-v0FGdUdgGr strong,
.cid-v0FGdUdgGr p,
.cid-v0FGdUdgGr div,
.cid-tBUceMaFj6 .mbr-section-subtitle,
.cid-tBUceMaFj6 .mbr-section-title,
.cid-tBUceMaFj6 .mbr-text,
.cid-tBUceMaFj6 h1,
.cid-tBUceMaFj6 h2,
.cid-tBUceMaFj6 h3,
.cid-tBUceMaFj6 strong,
.cid-tBUceMaFj6 p,
.cid-tBUceMaFj6 div,
.cid-vbdvdzql8j .mbr-section-subtitle,
.cid-vbdvdzql8j .mbr-section-title,
.cid-vbdvdzql8j .mbr-text,
.cid-vbdvdzql8j h1,
.cid-vbdvdzql8j h2,
.cid-vbdvdzql8j h3,
.cid-vbdvdzql8j strong,
.cid-vbdvdzql8j p,
.cid-vbdvdzql8j div,
.cid-vcsuhzgO64 .mbr-section-subtitle,
.cid-vcsuhzgO64 .mbr-section-title,
.cid-vcsuhzgO64 .mbr-text,
.cid-vcsuhzgO64 h1,
.cid-vcsuhzgO64 h2,
.cid-vcsuhzgO64 h3,
.cid-vcsuhzgO64 strong,
.cid-vcsuhzgO64 p,
.cid-vcsuhzgO64 div,
.cid-tAVBcuRLtq .mbr-section-subtitle,
.cid-tAVBcuRLtq .mbr-section-title,
.cid-tAVBcuRLtq .mbr-text,
.cid-tAVBcuRLtq h1,
.cid-tAVBcuRLtq h2,
.cid-tAVBcuRLtq h3,
.cid-tAVBcuRLtq h4,
.cid-tAVBcuRLtq strong,
.cid-tAVBcuRLtq p,
.cid-tAVBcuRLtq div,
.cid-tAVBcuRLtq a {
  color: #ffffff !important;
}

.cid-tAVBcuRLtq a:hover {
  color: var(--jw-gold) !important;
}

/* Reviews / cards */
.team1 .card-wrap,
.team2 .card-wrap,
.team1 .team-card {
  background: var(--jw-surface) !important;
  border: 1px solid var(--jw-line) !important;
  border-radius: var(--jw-radius) !important;
  box-shadow: var(--jw-shadow) !important;
  padding: 1.25rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cid-v0FhZrqEYa .card-wrap {
  background: var(--jw-surface) !important;
  border: 1px solid var(--jw-line) !important;
  border-radius: var(--jw-radius) !important;
  box-shadow: var(--jw-shadow) !important;
  padding: 1.25rem !important;
}

.cid-v0FhZrqEYa .image-wrap img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.team1 .card-wrap:hover,
.team2 .card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--jw-shadow-lg) !important;
}

.cid-v0FhZrqEYa .card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--jw-shadow-lg) !important;
}

.card-title,
.mbr-role {
  color: var(--jw-ink) !important;
}

/* Final offer CTA — modern light section (separate from teal disclaimer/footer) */
.cid-v0FwFL0NIT {
  background: #f4fafb !important;
  background-image: none !important;
  padding-top: 1.35rem !important;
  padding-bottom: 0.55rem !important;
}

.cid-v0FwFL0NIT .mbr-section-subtitle,
.cid-v0FwFL0NIT .mbr-section-subtitle strong {
  color: var(--jw-ink) !important;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem) !important;
  line-height: 1.2 !important;
  max-width: min(40rem, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cid-v0FDjT0BZ1 {
  background: #f4fafb !important;
  background-image: none !important;
  padding-top: 0.5rem !important;
  padding-bottom: 3rem !important;
}

.cid-v0FDjT0BZ1 .row {
  margin-left: 0;
  margin-right: 0;
}

.cid-v0FDjT0BZ1 .jw-offer-card,
.cid-v0FDjT0BZ1 .card-wrap {
  background: #ffffff !important;
  border: 1px solid rgba(13, 115, 119, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 48px rgba(13, 115, 119, 0.12) !important;
  padding: 1.35rem 1.25rem 1.5rem !important;
  max-width: 640px;
  margin: 0 auto;
}

.cid-v0FDjT0BZ1 .card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(13, 115, 119, 0.16) !important;
}

.cid-v0FDjT0BZ1 .image-wrap {
  margin-bottom: 0.85rem;
}

.cid-v0FDjT0BZ1 .image-wrap img {
  width: 100%;
  height: auto !important;
  max-height: 460px;
  object-fit: contain;
  border-radius: var(--jw-radius-sm);
  box-shadow: none !important;
  background: #f8fafc;
}

.cid-v0FDjT0BZ1 .content-wrap {
  padding: 0 !important;
  text-align: center;
}

.cid-v0FDjT0BZ1 .jw-offer-kicker {
  color: var(--jw-navy) !important;
  font-family: var(--jw-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
}

.cid-v0FDjT0BZ1 .mbr-role {
  color: var(--jw-ink) !important;
  font-family: var(--jw-font-body) !important;
}

.cid-v0FDjT0BZ1 .jw-old-price {
  color: var(--jw-muted) !important;
  text-decoration: line-through;
  font-weight: 600;
  margin-right: 0.35rem;
}

.cid-v0FDjT0BZ1 .jw-offer-note {
  color: var(--jw-ink-soft) !important;
  font-family: var(--jw-font-body) !important;
  font-size: 0.95rem !important;
}

.cid-v0FDjT0BZ1 .card-btn,
.cid-v0FDjT0BZ1 .mbr-section-btn.card-btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.cid-v0FDjT0BZ1 .card-btn .btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0.85rem 1.1rem !important;
  font-size: 1rem !important;
  white-space: normal;
  text-align: center !important;
  background: #f0c43a !important;
  border-color: #e6b82e !important;
  color: #111111 !important;
  box-shadow: 0 8px 22px rgba(240, 196, 58, 0.28) !important;
}

.cid-v0FDjT0BZ1 .card-btn .btn:hover,
.cid-v0FDjT0BZ1 .card-btn .btn:focus {
  background: #ebbc2e !important;
  border-color: #e0b028 !important;
  color: #111111 !important;
}

.cid-tAPaOqd8Nj {
  padding-top: 1.25rem !important;
  padding-bottom: 0.75rem !important;
  background: var(--jw-surface) !important;
}

.cid-tAPaOqd8Nj .mbr-section-title,
.cid-tAPaOqd8Nj .mbr-section-title strong {
  color: var(--jw-ink) !important;
  font-size: clamp(1.45rem, 3vw, 2.1rem) !important;
}

.cid-v9U6hSArTY {
  padding-top: 0.5rem !important;
  padding-bottom: 1rem !important;
}

.cid-v9U6hSArTY img {
  max-width: 100%;
  width: 100%;
  height: auto !important;
  margin: 0 auto;
  display: block;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.cid-v9U6hSArTY .image-wrapper {
  border-radius: 16px !important;
  overflow: visible;
}

.cid-v9U6hSArTY .jw-img-link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.cid-v9U6hSArTY .jw-img-link img {
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .cid-v0FwFL0NIT {
    padding-top: 1.2rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cid-v0FDjT0BZ1 {
    padding-bottom: 2rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cid-v0FDjT0BZ1 .image-wrap img {
    max-height: 300px;
  }

  .cid-v0FDjT0BZ1 .card-btn .btn {
    font-size: 0.95rem !important;
  }
}

/* Numbered feature steps */
.features19 .item,
.features23 .item,
.cid-tAGcJpEsP3 .item,
.cid-v0LhbKuYvL .item {
  background: var(--jw-surface);
  border: 1px solid var(--jw-line);
  border-radius: var(--jw-radius-sm);
  box-shadow: var(--jw-shadow);
  margin-bottom: 0.85rem;
  padding: 1.1rem 1.15rem !important;
}

.step-number {
  background: transparent !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cid-tAGcJpEsP3 .icon-box,
.cid-v0LhbKuYvL .icon-box {
  background: var(--jw-navy) !important;
  border-radius: 50% !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.cid-tAGcJpEsP3 .icon-box .step-number,
.cid-v0LhbKuYvL .icon-box .step-number,
.cid-tAGcJpEsP3 span.step-number,
.cid-v0LhbKuYvL span.step-number {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 1.35rem !important;
}

/* Money-back badge image — responsive on mobile */
.cid-tAGgTwCAfx .text-wrapper {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cid-vcsxSfKJGQ {
  padding-top: 0.5rem !important;
  padding-bottom: 2rem !important;
  background: transparent !important;
}

.cid-vcsxSfKJGQ .jw-order-now {
  text-align: center;
}

.cid-vcsxSfKJGQ .jw-order-now .btn {
  min-width: min(100%, 280px);
  padding: 0.9rem 1.75rem !important;
}

.cid-tAGgTwCAfx .image-wrapper img,
.cid-tAGgTwCAfx img {
  width: 100%;
  max-width: 340px;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

@media (max-width: 991px) {
  .cid-tAGgTwCAfx .image-wrapper img,
  .cid-tAGgTwCAfx img {
    max-width: 250px;
  }
}

@media (max-width: 575px) {
  .cid-tAGgTwCAfx .image-wrapper img,
  .cid-tAGgTwCAfx img {
    max-width: 210px;
  }
}

/* Bonus cards — modern bordered outer cards */
.cid-vbdvm8cvjB .item-wrapper,
.cid-vcgz9huQst .item-wrapper,
.cid-vcsre20BK0 .item-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(13, 115, 119, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(13, 115, 119, 0.10) !important;
  padding: 1.35rem 1.5rem !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.cid-vbdvm8cvjB .item-wrapper:hover,
.cid-vcgz9huQst .item-wrapper:hover,
.cid-vcsre20BK0 .item-wrapper:hover {
  border-color: rgba(13, 115, 119, 0.22) !important;
  box-shadow: 0 16px 40px rgba(13, 115, 119, 0.14) !important;
  transform: translateY(-2px);
}

.cid-vbdvm8cvjB,
.cid-vcgz9huQst,
.cid-vcsre20BK0 {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.cid-vcsre20BK0 {
  padding-bottom: 2rem !important;
}

/* Bonus images — smaller on tablet/phone */
.cid-vbdvm8cvjB .image-wrapper,
.cid-vcgz9huQst .image-wrapper,
.cid-vcsre20BK0 .image-wrapper {
  text-align: center;
}

.cid-vbdvm8cvjB .image-wrapper img,
.cid-vcgz9huQst .image-wrapper img,
.cid-vcsre20BK0 .image-wrapper img {
  width: 100%;
  max-width: 280px;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 991px) {
  .cid-vbdvm8cvjB .image-wrapper img,
  .cid-vcgz9huQst .image-wrapper img,
  .cid-vcsre20BK0 .image-wrapper img {
    max-width: 200px;
  }
}

@media (max-width: 575px) {
  .cid-vbdvm8cvjB .image-wrapper img,
  .cid-vcgz9huQst .image-wrapper img,
  .cid-vcsre20BK0 .image-wrapper img {
    max-width: 160px;
  }
}

/* FAQ accordion — modern cards */
.content17 .card,
.cid-tAP65tjn5t .card {
  border: 1px solid rgba(13, 115, 119, 0.12) !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(13, 115, 119, 0.08) !important;
  margin-bottom: 0.9rem !important;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.content17 .card:hover,
.cid-tAP65tjn5t .card:hover {
  border-color: rgba(13, 115, 119, 0.2) !important;
  box-shadow: 0 12px 28px rgba(13, 115, 119, 0.12) !important;
}

.content17 .card-header,
.cid-tAP65tjn5t .card-header {
  background: transparent !important;
  border: 0 !important;
  padding: 1.05rem 1.2rem !important;
}

.content17 .panel-title,
.cid-tAP65tjn5t .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--jw-ink) !important;
  text-decoration: none !important;
}

.content17 .panel-title-edit,
.cid-tAP65tjn5t .panel-title-edit {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.content17 .panel-title .sign,
.content17 .panel-title .mbr-iconfont,
.cid-tAP65tjn5t .panel-title .sign,
.cid-tAP65tjn5t .panel-title .mbr-iconfont,
.cid-tAP65tjn5t .mbr-iconfont {
  color: #0d7377 !important;
  flex-shrink: 0;
}

.content17 .panel-body,
.cid-tAP65tjn5t .panel-body {
  padding: 0 1.2rem 1.15rem !important;
}

.content17 .panel-text,
.cid-tAP65tjn5t .panel-text {
  margin-bottom: 0 !important;
  line-height: 1.65 !important;
}

/* CTA buttons — center on mobile, sticky-matching yellow */
@media (max-width: 767px) {
  .mbr-section-btn:not(.navbar-buttons),
  .jw-order-now,
  .mbr-section-btn.card-btn {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100%;
  }

  .mbr-section-btn:not(.navbar-buttons) .btn,
  .jw-order-now .btn,
  .mbr-section-btn.card-btn .btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .btn-primary,
  .btn-primary:active {
    background-color: #f0c43a !important;
    border-color: #e6b82e !important;
    color: #1a1a1a !important;
  }

  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary.focus,
  .btn-primary.active {
    background-color: #ebbc2e !important;
    border-color: #e6b82e !important;
    color: #1a1a1a !important;
  }
}

/* Content readability */
.content4 .mbr-section-subtitle,
.content5 .mbr-text,
.content8 .mbr-text {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.content8 .mbr-text p {
  margin-top: 1.15rem;
  margin-bottom: 0;
  line-height: 1.65 !important;
}

.content5 {
  background: var(--jw-surface) !important;
  padding-top: 1.35rem !important;
  padding-bottom: 1.1rem !important;
}

/* Consistent section-header rhythm sitewide */
.header3.cid-tAFPGKyBRc,
.header3.cid-vcs4qoQSG1,
.header3.cid-tAFQyWz1Vz,
.header3.cid-tAG9a1kY8b,
.header3.cid-v0FGdUdgGr,
.header3.cid-tBUceMaFj6,
.header3.cid-vbdvdzql8j,
.header3.cid-vcsuhzgO64,
.content4.cid-v0FGdUdgGr {
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

.content4.cid-v0FGdUdgGr .mbr-section-title,
.content4.cid-v0FGdUdgGr .title {
  margin-bottom: 0 !important;
}

.content5.cid-tAVycuVAa9,
.content5.cid-tAVz4dEhtF,
.content5.cid-tBj77nMmy6 {
  padding-top: 1.35rem !important;
  padding-bottom: 1.1rem !important;
}

.content5 .mbr-section-subtitle.display-5 {
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
}

@media (max-width: 767px) {
  .header3 {
    padding-top: 1.15rem !important;
    padding-bottom: 0.45rem !important;
  }

  .cid-tAFPGKyBRc,
  .cid-vcs4qoQSG1,
  .cid-tAFQyWz1Vz,
  .cid-tAG9a1kY8b,
  .cid-v0FGdUdgGr,
  .cid-tBUceMaFj6,
  .cid-vbdvdzql8j,
  .cid-vcsuhzgO64 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

.content5 .mbr-section-title {
  color: var(--jw-ink) !important;
}

/* Soft panels for key content sections (keep navy title bands intact) */
.cid-tAD5yK3oMD,
.cid-tAGgTwCAfx,
.cid-tAGikqr7Ht,
.cid-tAGiMQxhNR,
.cid-vcsuFQqhMj,
.cid-vcsuuGCbdL,
.cid-tAP65tjn5t,
.cid-tAGb4iUi8y,
.cid-tAGcJpEsP3,
.cid-v0LhbKuYvL {
  background: transparent !important;
}

/* Body copy on light surfaces */
.features6 .mbr-text,
.image2 .mbr-text,
.image1 .mbr-text,
.content4 .mbr-section-subtitle,
.content5 .mbr-text,
.content8 .mbr-text,
.content17 .panel-text,
.team1 .card-text,
.team2 .card-text,
.features19 .icon-text,
.features23 .icon-text {
  color: var(--jw-ink-soft) !important;
}

/* Disclaimer band — force white on teal */
.content4.cid-tAVBcuRLtq .mbr-section-subtitle,
.content4.cid-tAVBcuRLtq .mbr-section-subtitle strong,
.content4.cid-tAVBcuRLtq h3,
.content4.cid-tAVBcuRLtq p,
.content4.cid-tAVBcuRLtq div,
.content4.cid-tAVBcuRLtq a {
  color: #ffffff !important;
}

.features6 .mbr-title,
.features19 .icon-title,
.features23 .icon-title,
.team1 .card-title,
.team2 .card-title,
.content5 .mbr-section-title {
  color: var(--jw-ink) !important;
}

/* Ensure mbr-black text stays readable on light cards only */
.mbr-black {
  color: var(--jw-ink) !important;
}

/* Money-back / bonus images breathe more */
.image1,
.image2,
.image3 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Footer — Yu Sleep layout, JW navy */
.cid-jwFooter {
  background-color: var(--jw-navy) !important;
  background-image: none !important;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
  border-top: none;
}

.cid-jwFooter .media-container-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.cid-jwFooter .foot-menu {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.75rem 1.75rem;
}

.cid-jwFooter .foot-menu-item {
  padding: 0 !important;
  width: auto !important;
}

.cid-jwFooter a,
.cid-jwFooter .mbr-text,
.cid-jwFooter p {
  color: #ffffff !important;
  font-family: var(--jw-font-body) !important;
  line-height: 1.6 !important;
}

.cid-jwFooter a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.cid-jwFooter a:hover {
  color: var(--jw-gold) !important;
}

/* Sticky CTA — Yu Sleep single gold pill */
.sticky-cta-bar {
  display: none;
}

body.has-sticky-cta .sticky-cta-bar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483647 !important;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: transparent !important;
}

.sticky-cta-btn {
  pointer-events: auto;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 58px;
  padding: 14px 22px !important;
  background: #f0c43a !important;
  color: #1a1a1a !important;
  font-family: var(--jw-font-body) !important;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid #e6b82e !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(240, 196, 58, 0.32);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-cta-btn:hover,
.sticky-cta-btn:focus,
.sticky-cta-btn:visited {
  transform: translateY(-1px);
  background: #ebbc2e !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.sticky-cta-label {
  display: block;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
  color: #111111 !important;
}

.sticky-cta-sub {
  display: block;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #333333 !important;
}

@media (min-width: 768px) {
  body.has-sticky-cta .sticky-cta-bar {
    padding-left: 40px;
    padding-right: 40px;
  }

  .sticky-cta-label {
    font-size: 1.2rem !important;
  }
}

/* Review cards — Yu Sleep clients2 square photos */
.cid-jwReviews {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
  background: transparent !important;
}

.cid-jwReviews .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  align-items: stretch;
}

.cid-jwReviews .item-wrapper {
  background: #ffffff;
  border: 1px solid rgba(13, 115, 119, 0.08);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(13, 115, 119, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.cid-jwReviews .item-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13, 115, 119, 0.12);
}

.cid-jwReviews .img-wrapper {
  width: min(180px, 72%);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 1rem;
  padding-bottom: 0;
  overflow: hidden;
  border-radius: 16px;
}

.cid-jwReviews .img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px !important;
  display: block;
  margin: 0 auto;
  box-shadow: none !important;
}

.cid-jwReviews .card-title,
.cid-jwReviews .card-subtitle {
  color: var(--jw-ink) !important;
}

.cid-jwReviews .mbr-text {
  color: var(--jw-ink-soft) !important;
}

.cid-jwReviews .review-stars,
.cid-tAFPGKyBRc .review-stars {
  color: var(--jw-gold) !important;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-right: 0.25rem;
}

.cid-jwReviews .verified-purchase {
  color: #16a34a !important;
  font-weight: 600;
}

.cid-tAFPGKyBRc .text-white {
  color: #ffffff !important;
}

@media (max-width: 991px) {
  .cid-jwReviews .img-wrapper {
    width: min(150px, 68%);
  }
}

@media (max-width: 575px) {
  .cid-jwReviews .img-wrapper {
    width: min(130px, 62%);
  }
}

#scrollToTop,
.scrollToTop {
  display: none !important;
}

/* Focus visibility */
a:focus-visible,
.btn:focus-visible,
.navbar-toggler:focus-visible {
  outline: 3px solid var(--jw-gold);
  outline-offset: 3px;
}

/* Subtle entrance */
@keyframes jw-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cid-tAFdndmopV,
.cid-tB9eYJp5ux {
  animation: jw-fade-up 0.7s ease both;
}

.cid-tB9eYJp5ux {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile tweaks */
@media (max-width: 991px) {
  .cid-tAFdndmopV {
    padding-top: 1.25rem !important;
  }

  .cid-tB9eYJp5ux .card-wrapper {
    padding: 0;
  }

  .cid-tADc1ENzLD .navbar.opened,
  .cid-tADc1ENzLD .navbar-collapse,
  .cid-tADc1ENzLD .navbar-collapse.show,
  .cid-tADc1ENzLD .dropdown-menu {
    background: #0d7377 !important;
    background-color: #0d7377 !important;
  }
}


/* Pros / Cons split */
.jw-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.jw-pros-cons .jw-panel {
  background: var(--jw-surface);
  border: 1px solid var(--jw-line);
  border-radius: var(--jw-radius);
  box-shadow: var(--jw-shadow);
  padding: 1.25rem 1.35rem;
}
.jw-pros-cons h3 {
  font-family: var(--jw-font-display) !important;
  color: var(--jw-ink) !important;
  margin-bottom: 0.85rem;
}
.jw-pros-cons ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--jw-ink-soft);
}
.jw-pros-cons li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
}
@media (max-width: 767px) {
  .jw-pros-cons {
    grid-template-columns: 1fr;
  }
}

/* Comparison / factors lists */
.jw-list-block ul {
  margin: 0;
  padding-left: 1.15rem;
}
.jw-list-block li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
  color: var(--jw-ink-soft);
}

/* Round check icons — teal (override navy from mbr-additional) */
.cid-tAGiMQxhNR .counter-container ul li:before,
.cid-vcsuuGCbdL .counter-container ul li:before {
  background-color: #0d7377 !important;
  color: #ffffff !important;
}
