/* Mars 1.6.5 — mobile header visual centering */
@media (max-width:980px){
  .mars-header .mars-header__inner{
    align-items:center!important;
  }

  .mars-header .mars-burger,
  .mars-header .mars-header__logo,
  .mars-header .mars-header-actions{
    align-self:center!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }

  .mars-header .mars-header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    height:44px!important;
    min-height:44px!important;
    line-height:1!important;
  }

  .mars-header .mars-header-actions .mars-header-action{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    height:44px!important;
    min-height:44px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    margin:0!important;
    line-height:1!important;
  }

  /* Badge visually adds weight above the icon, so move the icon/badge unit 2px down. */
  .mars-header .mars-header-actions .mars-header-action__icon{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:27px!important;
    height:27px!important;
    margin:0!important;
    transform:translateY(2px)!important;
    line-height:1!important;
  }

  /* +2px icon size compared with the previous mobile rule. */
  .mars-header .mars-header-actions .mars-header-action__icon .mars-icon,
  .mars-header .mars-header-actions .mars-header-action .mars-icon{
    width:25px!important;
    height:25px!important;
    margin:0!important;
    line-height:1!important;
  }

  /* Compact counters: 18px -> 16px and pulled slightly inward/down. */
  .mars-header .mars-header-action__icon>.mars-cart-count,
  .mars-header .mars-header-action__icon>.mars-wishlist-count{
    top:-4px!important;
    right:-5px!important;
    min-width:16px!important;
    width:auto!important;
    height:16px!important;
    padding:0 3px!important;
    font-size:8px!important;
    line-height:16px!important;
    border-radius:999px!important;
    box-shadow:0 0 0 2px var(--mars-header-bg,#fff)!important;
  }
}

@media (max-width:700px){
  .mars-header .mars-header-actions{
    height:42px!important;
    min-height:42px!important;
  }
  .mars-header .mars-header-actions .mars-header-action{
    height:42px!important;
    min-height:42px!important;
  }
}
