body:has(#menu-sticky-test[style="display: block;"]) .header {
  position: relative;
}

/* #menu-listNavbar {
  display: none;
  display: flex;
} */
#menu-sticky-test {
  position: sticky;
  top: 0;
  z-index: 6;
  /* display: none; */
}

body:has(#menu-sticky-test[style="display: block;"]) .flex-container {
  margin-top: 0;
}

body:has(#menu-sticky-test[style="display: block;"]) {
  margin-top: 0;
}

/*  */

.sticky-container {
  position: sticky;
  width: 100%;
  background-color: #333;
  font-size: 14px;
}

.sticky-container .subnav__nav {
  display: flex;
  padding: 0 0;
  justify-content: space-between;
  background-color: #333;
}

.subnav__nav > a {
  color: white;
  position: relative;
  padding: 18px 5px;
  font-size: 16px;
}

.subnav__nav > a.subnav__nav__item.active:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  border-bottom: 4px solid #7e7e7e;
}

.subnav__nav > a.subnav__nav__item.active {
  font-family: "VodafoneBold", Arial, sans-serif;
}

/* tiene el filete del contador y también tiene el menú listado del test fuera de la cabecera */
body:has(#menu-sticky-test.sticky-container[style*="display: block;"])
  #counter-container {
  margin-top: 0;
}

/* tiene el filete del contador y también tiene el menú listado del la versión de control */
body:has(.sticky-container[style*="display: none;"], #counter-container)
  #counter-container {
  margin-top: 52px;
}

/*  */

@media screen and (min-width: 768px) {
  #menu-listNavbar {
    display: flex;
  }
  #menu-sticky-test {
    display: none;
  }
  body:has(.sticky-container[style*="display: none;"], #counter-container)
    #counter-container {
    margin-top: 0;
  }
}
