/*
 * Golf Gear Lab 4.18.46 — restore the proven mobile shell behaviour.
 *
 * header-search-v41751.css contains later, higher-specificity desktop shell
 * declarations. Those declarations forced the navigation to display on
 * mobile while the original mobile flex-direction remained column, producing
 * the permanent full-height vertical category list.
 */
@media (max-width:980px){
  .ggl-shell-header .ggl-shell-links{
    display:none!important;
  }

  .ggl-shell-header.is-open .ggl-shell-links{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:8px!important;
    padding:10px!important;
    max-height:calc(100dvh - 92px)!important;
    overflow-y:auto!important;
  }

  .ggl-shell-header.is-open .ggl-shell-links a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:44px!important;
    padding:7px 8px!important;
    border:1px solid rgba(255,255,255,.13)!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.035)!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    font-size:clamp(12px,1.8vw,14px)!important;
    line-height:1.2!important;
  }

  .ggl-shell-header.is-open .ggl-shell-links a:hover,
  .ggl-shell-header.is-open .ggl-shell-links a:focus-visible,
  .ggl-shell-header.is-open .ggl-shell-links a[aria-current="page"]{
    border-color:rgba(131,223,79,.65)!important;
    background:rgba(131,223,79,.10)!important;
  }
}

@media (max-width:599px){
  .ggl-shell-header.is-open .ggl-shell-links{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .ggl-shell-header.is-open .ggl-shell-links a:last-child{
    grid-column:1 / -1!important;
  }
}
