
/* AvenSci V1.21H
   Exact desktop header dimensions taken from the approved Home reference:
   reference-width-fix.css + final-home.css.
*/

body .fm-header{
  height:96px !important;
  min-height:96px !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  box-sizing:border-box !important;
}

body .fm-header .fm-wrap.fm-header__row{
  width:calc(100vw - 64px) !important;
  max-width:1540px !important;
  height:96px !important;
  min-height:96px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:22px !important;
  box-sizing:border-box !important;
  transform:none !important;
  zoom:1 !important;
}

body .fm-header .fm-logo{
  flex:0 0 330px !important;
  width:330px !important;
  min-width:330px !important;
  max-width:330px !important;
  display:flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:0 !important;
}

body .fm-header .fm-logo img{
  display:block !important;
  width:305px !important;
  max-width:305px !important;
  min-width:305px !important;
  height:auto !important;
  margin:0 !important;
  transform:none !important;
}

body .fm-header .fm-nav{
  margin-left:auto !important;
  margin-right:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:31px !important;
  font-size:14px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  padding:0 !important;
  transform:none !important;
  zoom:1 !important;
}

body .fm-header .fm-nav a{
  font-size:14px !important;
  line-height:1.2 !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  transform:none !important;
}

body .fm-header .fm-tools,
body .fm-header .fm-tools-modern{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  margin-left:16px !important;
  margin-right:0 !important;
  padding:0 !important;
  transform:none !important;
}

body .fm-header .fm-tool,
body .fm-header .fm-tool-modern{
  position:relative !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  flex:0 0 22px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  font-size:20px !important;
  line-height:1 !important;
}

body .fm-header .fm-tool-modern svg{
  width:18px !important;
  height:18px !important;
  display:block !important;
}

body .fm-header .fm-submit{
  margin-left:7px !important;
  padding:10px 22px !important;
  min-height:38px !important;
  height:auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  transform:none !important;
}

/* Preserve the validated cart badge without altering header dimensions. */
body .fm-header .fm-tool-cart > .fm-cart-count,
body .fm-header .fm-tool-cart > span{
  position:absolute !important;
  top:-7px !important;
  right:-8px !important;
  min-width:15px !important;
  height:15px !important;
  padding:0 3px !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#07335b !important;
  color:#fff !important;
  border:2px solid #fff !important;
  font-size:8px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-sizing:border-box !important;
}

/* Keep existing responsive behaviour below desktop rather than forcing 96px
   into narrow layouts. */
@media(max-width:1023px){
  body .fm-header .fm-wrap.fm-header__row{
    width:calc(100% - 48px) !important;
  }
}

@media(max-width:760px){
  body .fm-header{
    height:auto !important;
    min-height:72px !important;
  }
  body .fm-header .fm-wrap.fm-header__row{
    width:calc(100% - 28px) !important;
    height:auto !important;
    min-height:72px !important;
  }
}
