
/* ASN Hosting v2.5.8 — Header Stabilization */
.asn-header .asn-header-row{
  display:grid!important;
  grid-template-columns:minmax(170px,210px) minmax(0,1fr) auto!important;
  align-items:center!important;
  min-height:82px!important;
  gap:14px!important;
}
.asn-header .asn-header-brand{min-width:0!important}
.asn-header .asn-brand{min-width:0!important;max-width:200px!important}
.asn-header .asn-nav-wrap{min-width:0!important;overflow:visible!important}
.asn-header .asn-primary-menu{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  white-space:nowrap!important;
  min-width:0!important;
}
.asn-header .asn-primary-menu>li{
  flex:0 0 auto!important;
  min-width:0!important;
}
.asn-header .asn-primary-menu>li>a,
.asn-header .asn-nav-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  min-width:max-content!important;
  min-height:38px!important;
  padding:0 9px!important;
  font-size:12.5px!important;
  line-height:1!important;
  letter-spacing:0!important;
}
.asn-header .asn-header-actions{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
}
.asn-header .asn-service-search-action,
.asn-header .asn-domain-action,
.asn-header .asn-btn-register,
.asn-header .asn255-register,
.asn-header .asn256-register-guard,
.asn-header .asn255-register,
.asn-header .asn-login-action,
.asn-header .asn-account-action{
  min-height:40px!important;
  padding:0 11px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.asn-header .asn-cart{width:40px!important;height:40px!important}

/* eliminate duplicate dynamically-injected guest actions */
.asn-header .asn-register-action ~ .asn255-register,
.asn-header .asn-register-action ~ .asn256-register-guard,
.asn-header .asn-register-action ~ .asn255-register,
.asn-header .asn-btn-register ~ .asn255-register,
.asn-header .asn-btn-register ~ .asn256-register-guard,
.asn-header .asn-btn-register ~ .asn255-register{display:none!important}

/* Desktop */
@media(min-width:1281px){
  .asn-header .asn-header-row{grid-template-columns:200px minmax(0,1fr) auto!important}
  .asn-header .asn-primary-menu>li>a,.asn-header .asn-nav-link{padding:0 10px!important;font-size:12.5px!important}
}

/* Medium desktop / laptop */
@media(min-width:1121px) and (max-width:1280px){
  .asn-header .asn-header-row{grid-template-columns:180px minmax(0,1fr) auto!important;gap:9px!important}
  .asn-header .asn-primary-menu>li>a,.asn-header .asn-nav-link{padding:0 7px!important;font-size:11.5px!important}
  .asn-header .asn-service-search-action span{display:none!important}
  .asn-header .asn-service-search-action{width:40px!important;padding:0!important}
  .asn-header .asn-domain-action{padding:0 9px!important}
}

/* Tablet: collapse nav into hamburger */
@media(max-width:1120px){
  .asn-header .asn-header-row{
    display:grid!important;
    grid-template-columns:minmax(145px,180px) 1fr auto auto!important;
    min-height:72px!important;
    gap:7px!important;
  }
  .asn-header .asn-nav-wrap{
    display:none!important;
    position:absolute!important;
    top:100%!important;
    left:12px!important;
    right:12px!important;
    z-index:9999!important;
    padding:8px!important;
    background:#fff!important;
    border:1px solid #d8e8f2!important;
    border-radius:0 0 14px 14px!important;
    box-shadow:0 18px 40px rgba(7,59,102,.15)!important;
  }
  .asn-header .asn-nav-wrap.is-open{display:block!important}
  .asn-header .asn-primary-menu{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    white-space:normal!important;
  }
  .asn-header .asn-primary-menu>li{width:100%!important}
  .asn-header .asn-primary-menu>li>a,.asn-header .asn-nav-link{
    width:100%!important;
    min-width:0!important;
    justify-content:space-between!important;
    white-space:normal!important;
    min-height:44px!important;
    font-size:13px!important;
    padding:0 12px!important;
  }
  .asn-header .asn-header-actions{
    margin-left:auto!important;
    padding-left:0!important;
    border-left:0!important;
  }
  .asn-header .asn-service-search-action,.asn-header .asn-domain-action{display:none!important}
  .asn-header .asn-mobile-toggle{display:flex!important;grid-column:4!important}
}

/* Mobile */
@media(max-width:720px){
  .asn-header .asn-header-row{
    grid-template-columns:minmax(125px,150px) 1fr auto auto!important;
    min-height:68px!important;
    gap:5px!important;
  }
  .asn-header .asn-brand{max-width:145px!important}
  .asn-header .asn-btn-register,
  .asn-header .asn255-register,
  .asn-header .asn256-register-guard,
  .asn-header .asn255-register{display:none!important}
  .asn-header .asn-login-action,.asn-header .asn-account-action{
    min-height:38px!important;
    padding:0 10px!important;
    font-size:11.5px!important;
  }
  .asn-header .asn-cart{width:38px!important;height:38px!important}
  .asn-header .asn-mobile-toggle{width:38px!important;height:38px!important}
}

/* Very small mobile */
@media(max-width:420px){
  .asn-header .asn-header-row{
    grid-template-columns:minmax(110px,135px) 1fr auto auto!important;
  }
  .asn-header .asn-login-action,.asn-header .asn-account-action{padding:0 8px!important}
}
