/* FSPV Commerce · Classic curated columns · Reference layout V3
   Fixes inherited 48px navigation link height.
   Isolated to desktop curated columns. Uses tenant storefront theme variables.
*/
@media (min-width:901px) {
  .csh-category-panel.csh-flyout-menu.is-open[data-fspv-menu-model="columns"][data-fspv-menu-curated="1"] {
    width:min(calc(160px * var(--fspv-menu-columns,5) + 42px),calc(100vw - 32px))!important;
    max-width:calc(100vw - 32px)!important;
    height:auto!important;
    min-height:0!important;
  }
  .csh-category-panel.csh-flyout-menu.is-open[data-fspv-menu-model="columns"][data-fspv-menu-curated="1"] .csh-flyout-wrap{
    height:auto!important;min-height:0!important;
  }
  .csh-category-panel .fspv-mega-columns.fspv-mega-v1:has(.fspv-mega-curated-columns){
    padding:16px 16px 15px!important;
    height:auto!important;
    min-height:0!important;
    max-height:min(80vh,460px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    border-radius:11px!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns{
    grid-template-columns:repeat(var(--fspv-menu-columns,5),minmax(0,1fr))!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;min-height:0!important;
    gap:0!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column{
    padding:0 13px!important;
    height:auto!important;
    min-height:0!important;
    gap:0!important;
    align-self:stretch!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column:first-child{
    padding-left:0!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column:last-child{
    padding-right:0!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns .fspv-mega-balanced-block{
    height:auto!important;
    min-height:0!important;
    padding:0!important;margin:0!important;
    display:flex!important;flex-direction:column!important;
    flex:1 1 auto!important;
    gap:0!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns .fspv-mega-balanced-heading-wrap{
    height:auto!important;
    min-height:59px!important;
    max-height:none!important;
    padding:0 0 8px!important;
    margin:0 0 7px!important;
    gap:5px!important;
    justify-content:start!important;
    align-items:flex-start!important;
  }
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns .fspv-mega-balanced-icon{
    width:23px!important;height:23px!important;
  }
  /* Nav CSS globally sets height:48px, inline-flex, uppercase, white-space:nowrap.
     These curated links must be ordinary content-sized text links. */
  .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns a.fspv-mega-balanced-heading{
    display:block!important;
    height:auto!important;min-height:0!important;
    max-height:none!important;
    padding:0!important;margin:0!important;
    line-height:1.25!important;
    font-size:12.5px!important;
    font-weight:750!important;
    white-space:normal!important;
    text-transform:none!important;
    overflow-wrap:break-word!important;
  }
  .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns ul.fspv-mega-curated-links{
    display:block!important;
    margin:0 0 10px!important;
    padding:0!important;
    height:auto!important;min-height:0!important;
    flex:none!important;
  }
  .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns ul.fspv-mega-curated-links>li{
    display:block!important;
    margin:0!important;padding:0!important;
    height:auto!important;min-height:0!important;
  }
  .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns ul.fspv-mega-curated-links>li>a{
    display:block!important;
    height:auto!important;
    min-height:0!important;max-height:none!important;
    padding:3px 0!important;margin:0!important;
    line-height:1.36!important;
    font-size:11.5px!important;
    font-weight:430!important;
    color:var(--mm-v4-ink,var(--color-text,#26323f))!important;
    white-space:normal!important;
    text-transform:none!important;
    overflow-wrap:break-word!important;
    text-decoration:none!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;
  }
  .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns ul.fspv-mega-curated-links>li>a:hover{
    color:var(--mm-v4-brand-deep,var(--color-primary))!important;
    text-decoration:underline!important;
  }
  .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns a.fspv-mega-balanced-more{
    display:inline-flex!important;align-items:center!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    padding:4px 0 0!important;
    margin-top:auto!important;
    line-height:1.3!important;
    font-size:11.5px!important;
    font-weight:750!important;
    white-space:normal!important;
    text-transform:none!important;
    color:var(--mm-v4-brand-deep,var(--color-primary))!important;
  }
}
@media (min-width:901px) and (max-width:1100px){
  .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column{
    padding:0 9px!important;
  }
}

/* Browser-verified stronger desktop override for the actual LIVE selector. */
@media(min-width:901px){
 body .csh-nav .csh-category-panel.csh-flyout-menu.is-open[data-fspv-menu-model="columns"][data-fspv-menu-curated="1"][data-fspv-menu-width]{
   width:min(842px,calc(100vw - 32px))!important;
   max-width:calc(100vw - 32px)!important;
 }
 body .csh-nav .csh-category-panel .fspv-mega-columns.fspv-mega-v1:has(.fspv-mega-curated-columns){
   padding:16px 16px 15px!important;
 }
 body .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column{
   padding-inline:12px!important;
 }
 body .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column:first-child{padding-left:0!important}
 body .csh-nav .csh-category-panel .fspv-mega-columns .fspv-mega-curated-columns>.fspv-mega-balanced-column:last-child{padding-right:0!important}
}
