/* Phase 11.66 — single source of truth for the live footer edge and transparent desktop header.
   This replaces the historical 56–65 footer patches to avoid reload flashes and competing offsets. */

/* Never paint the page teal during first paint. Also kill the real horizontal page scrollbar. */
html{
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  background:#fbf3ea!important;
  background-color:#fbf3ea!important;
}
body.ycare-v2-actual-home,
body.ycare-v2-managed-page,
body.ycare-v2-global-footer{
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  background:#fbf3ea!important;
  background-color:#fbf3ea!important;
}

/* Root/theme wrappers must not reserve a terminal strip after the Y-CARE canvas. */
body.ycare-v2-actual-home :is(#page-container,#page,.site,.site-container,#main-content,#primary,.site-content,.content-area,main.site-main,article,.entry-content,.et-boc,#et-boc),
body.ycare-v2-managed-page :is(#page-container,#page,.site,.site-container,#main-content,#primary,.site-content,.content-area,main.site-main,article,.entry-content,.et-boc,#et-boc){
  margin-bottom:0!important;
  padding-bottom:0!important;
  border-bottom:0!important;
  max-width:100%!important;
  width:100%!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}

/* The Y-CARE preview itself ends exactly on its footer. */
.ycare-phase4-preview,
.ycare-phase4-preview.has-ycw53-header{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow-x:hidden!important;
}

.ycare-phase4-preview > .ycare-live-section[data-ycare-live-section="footer"],
.ycare-live-section[data-ycare-live-section="footer"]{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#0c5f63!important;
  overflow:visible!important;
}

.ycare-live-section[data-ycare-live-section="footer"] > .ycw54-footer,
.ycw54-footer[data-ycare-footer],
.ycw54-footer{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding-bottom:0!important;
  border:0!important;
  border-radius:0!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
  box-shadow:none!important;
  background:#0c5f63!important;
  overflow:visible!important;
  position:relative!important;
}

/* Cover any residual theme canvas below the footer with the footer itself.
   This is attached to the footer, never fixed to the viewport, so it cannot flash
   across the page during reload and it does not follow the user while scrolling. */
.ycw54-footer[data-ycare-footer]::after,
.ycw54-footer::after{
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  left:0!important;
  right:0!important;
  bottom:-96px!important;
  height:98px!important;
  background:#0c5f63!important;
  border:0!important;
  border-radius:0!important;
  pointer-events:none!important;
}

/* No synthetic page cap. */
body.ycare-v2-actual-home::after,
body.ycare-v2-managed-page::after,
body.ycare-v2-global-footer::after{
  content:none!important;
  display:none!important;
}

/* Remove any bottom rounding/margin on the last footer row itself. */
.ycw54-footer-bottom{
  margin:0!important;
  padding-bottom:18px!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#0c5f63!important;
}

/* Footer language selector: clearly readable, same location. */
.ycw54-footer .ycw54-footer-language{
  gap:16px!important;
  align-items:center!important;
}
.ycw54-footer .ycw54-footer-language button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:800!important;
}
.ycw54-footer .ycw54-footer-language button span[aria-hidden="true"]{
  font-size:20px!important;
  line-height:1!important;
}

/* Desktop header sits directly over the hero with no veil, blur or background layer. */
@media(min-width:901px){
  body.ycare-v2-actual-home .ycare-phase4-preview > .ycw81-header[data-ycare-header],
  body.ycare-v2-actual-home .ycare-phase4-preview > .ycw81-header[data-ycare-header].is-transparent,
  body.ycare-v2-actual-home .ycare-phase4-preview > .ycw81-header[data-ycare-header].is-scrolled,
  body.ycare-v2-actual-home .ycare-phase4-preview > .ycw81-header[data-ycare-header].is-yc812-scrolled{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:none!important;
    border-color:transparent!important;
  }
  body.ycare-v2-actual-home .ycw81-header[data-ycare-header] .ycw81-header-inner,
  body.ycare-v2-actual-home .ycw81-header[data-ycare-header] .ycw81-header-shell{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:none!important;
  }
  body.ycare-v2-actual-home .ycw81-header[data-ycare-header]::before,
  body.ycare-v2-actual-home .ycw81-header[data-ycare-header]::after{
    content:none!important;
    display:none!important;
  }
}

/* Keep the approved pricing card size. Only align/breathe the actions. */
.yc510-pricing:not(.is-reference_cards) .yc510-price-button,
.yc510-pricing:not(.is-reference_cards) .yc510-reimbursement-link{
  width:calc(100% - 24px)!important;
  min-height:42px!important;
  margin-left:12px!important;
  margin-right:12px!important;
  margin-bottom:10px!important;
  align-self:center!important;
  box-sizing:border-box!important;
}
.yc510-pricing:not(.is-reference_cards) .yc510-reimbursement-link{
  margin-top:auto!important;
  padding:10px 16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #649194!important;
  border-radius:999px!important;
  background:#649194!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
