/* Floating controls stay below the WordPress menu and consent dialogs. */
.cbg-proposta-nav .wp-block-navigation__responsive-container-open.cbg-menu-floating {
  position: fixed;
  top: var(--cbg-floating-top, 0px);
  right: max(16px, calc((100vw - 1200px) / 4 - 66px));
  z-index: 900;
  height: 50px;
  border-radius: 999px;
  background: #10933C;
  box-shadow: 0 3px 14px #0002;
}
.cbg-back-to-top {
  position: fixed;
  right: max(16px, calc((100vw - 1200px) / 4 - 66px));
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #10933C;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 14px #0002;
}
.cbg-back-to-top:hover { box-shadow: 0 3px 16px #0004; }
.cbg-back-to-top:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
body.has-modal-open .cbg-back-to-top { visibility: hidden; }
@media (max-width: 720px) {
  .cbg-proposta-nav .wp-block-navigation__responsive-container-open.cbg-menu-floating,
  .cbg-back-to-top { right: 16px; }
}

.cbg-floating-menu-strip {
  position: fixed;
  inset-inline: 0;
  height: 56px;
  background: #EDF5EF;
  box-shadow: 0 2px 10px #0001;
  z-index: 899;
  pointer-events: none;
}
.cbg-floating-menu-strip[hidden],
body.has-modal-open .cbg-floating-menu-strip { display: none; }

@media (max-width: 1539px) {
  .cbg-has-page-navigation .cbg-proposta-nav .wp-block-navigation__responsive-container-open.cbg-menu-floating {
    right: 16px;
    top: calc(var(--cbg-floating-top, 0px) + 3px);
    height: 50px;
    border-radius: 999px;
    background: #10933C;
    color: #FFFFFF;
    box-shadow: none;
  }
  .cbg-back-to-top { right: 16px; }
  .cbg-has-page-navigation :is(h1, h2, h3, section)[id] { scroll-margin-top: 72px; }
}
