
/* MANYA V138 STABLE RESTORE FIX */

/* Keep Product Guide color swap from V136 */
body.page-product-guide .ref-cover,
body[class*="product-guide"] .ref-cover,
body .manya-reference.v111-product-guide .ref-cover,
body .manya-reference.v112-product-guide .ref-cover{
  background:#ffffff!important;
  background-image:none!important;
  color:#0b5d46!important;
  border-bottom:1px solid rgba(11,93,70,.12)!important;
}

body.page-product-guide .ref-cover *,
body[class*="product-guide"] .ref-cover *{
  font-family:inherit!important;
}

body.page-product-guide .ref-cover h1,
body[class*="product-guide"] .ref-cover h1,
body.page-product-guide .ref-cover h1 em,
body[class*="product-guide"] .ref-cover h1 em,
body.page-product-guide .ref-cover em,
body[class*="product-guide"] .ref-cover em,
body.page-product-guide .ref-cover p,
body[class*="product-guide"] .ref-cover p,
body.page-product-guide .ref-badge,
body[class*="product-guide"] .ref-badge{
  color:#0b5d46!important;
  font-family:inherit!important;
  font-style:normal!important;
}

body.page-product-guide .ref-cover::before,
body[class*="product-guide"] .ref-cover::before,
body.page-product-guide .ref-cover::after,
body[class*="product-guide"] .ref-cover::after{
  display:none!important;
  opacity:0!important;
}

/* Buttons visible, green/white only */
body.page-product-guide .ref-actions,
body[class*="product-guide"] .ref-actions,
body.page-product-guide .v111-guide-quickshop,
body[class*="product-guide"] .v111-guide-quickshop,
body.page-product-guide .v112-guide-quickshop,
body[class*="product-guide"] .v112-guide-quickshop{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  max-height:none!important;
}

body.page-product-guide .ref-cover a,
body[class*="product-guide"] .ref-cover a,
body.page-product-guide .ref-actions a,
body[class*="product-guide"] .ref-actions a,
body.page-product-guide .v111-guide-quickshop a,
body[class*="product-guide"] .v111-guide-quickshop a,
body.page-product-guide .v112-guide-quickshop a,
body[class*="product-guide"] .v112-guide-quickshop a{
  display:inline-flex!important;
  opacity:1!important;
  visibility:visible!important;
  background:#eaf5ef!important;
  color:#0b5d46!important;
  border:1px solid rgba(11,93,70,.22)!important;
  white-space:nowrap!important;
  font-family:inherit!important;
  font-style:normal!important;
  font-weight:800!important;
  text-decoration:none!important;
}

/* restore mattress/product logos if hidden by previous CSS */
.ref-card img,
.ref-card-header img,
.product-card img.brand-logo,
.v90-product-card img.brand-logo,
.carousel-panel img.brand-logo,
img[class*="guide-logo"],
.manya-v127-guide-logo,
.manya-v128-guide-logo,
.manya-v131-guide-logo,
.manya-v132-guide-logo,
.manya-v133-guide-logo,
.manya-v138-guide-logo{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  max-width:150px!important;
  max-height:56px!important;
  object-fit:contain!important;
}

/* pricing must show Starting at */
.cms-price,
.ref-price strong,
.price{
  white-space:normal!important;
}

/* restore hero image visibility */
body.home .hero-media,
body.home .hero-wrapper,
body.home .hero-zoom-media,
body.home .v90-zoom-media{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:hidden!important;
  position:relative!important;
  transform:none!important;
}

body.home .hero-img,
body.home .hero-media img,
body.home .hero-wrapper img,
body.home .hero-zoom-media img,
body.home .v90-zoom-media img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transform-origin:center center!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
}

/* remove white space / blank pin spacer safely */
body.home .pin-spacer:empty{
  display:none!important;
}

@media(max-width:991px){
  body.home .pin-spacer{
    display:contents!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
  }
  body.home .pin-spacer > section.product-carousel-section,
  body.home .pin-spacer > section{
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    max-height:none!important;
    transform:none!important;
  }
}

body.home .v45-zoom-section,
body.home .v45-zoom-section[style]{
  transform:none!important;
  opacity:1!important;
}

body.home section.product-carousel-section{
  display:block!important;
  position:relative!important;
  overflow:hidden!important;
  margin-top:0!important;
}

body.home section.product-carousel-section .manya-3d-carousel{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-behavior:auto!important;
}

body.home section.product-carousel-section .carousel-track{
  display:flex!important;
  flex-wrap:nowrap!important;
}

body.home section.product-carousel-section .carousel-panel{
  flex:0 0 auto!important;
}

/* footer unaffected */
body.page-product-guide footer a,
body[class*="product-guide"] footer a,
.site-footer a,
.manya-footer a,
footer a{
  background:transparent!important;
  border:0!important;
  padding:0!important;
  box-shadow:none!important;
}
