/* Builder trays are shared by Women, Men, Mysterez Tees and Luxury. */
.mysterez-builder-menu > li > [data-mysterez-nav-trigger]::after{content:none!important}
/* Escape must really dismiss the tray even while its trigger keeps focus/hover. */
.desktop-nav .mysterez-builder-menu > .is-menu-dismissed > .sub-menu:not(.is-live-editing){opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.desktop-nav .mysterez-builder-menu > .is-mega-open > .sub-menu{opacity:1;visibility:visible;pointer-events:auto}
.mysterez-mega-menu .menu-card-media img[hidden]{display:none!important}
.mysterez-mega-menu .is-menu-image-unavailable{background:transparent}
@media(min-width:761px){
 .desktop-nav .mysterez-builder-menu > li > .sub-menu{max-height:calc(100vh - var(--mysterez-tray-top,246px));max-height:calc(100dvh - var(--mysterez-tray-top,246px));overflow-y:auto;overscroll-behavior:contain}
 .desktop-nav .mysterez-builder-menu > .is-shop-menu .menu-card-media img{object-fit:contain}
}
@media(max-width:760px){
 .mobile-menu .mysterez-builder-menu > .menu-item-has-children > .sub-menu{display:none}
 .mobile-menu .mysterez-builder-menu > .menu-item-has-children.is-mega-open > .sub-menu{display:block}
 .mobile-menu .mysterez-builder-menu > .menu-item-has-children > a{touch-action:manipulation}
}

/* Compact storefront trays only: retain the Builder's twelve-column placement.
 * Editing uses the original canvas so drag/resize coordinates remain unchanged.
 * Luxury and the mobile disclosure/touch targets keep their existing styling. */
@media(min-width:761px){
 .desktop-nav .mysterez-builder-menu > .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing){
  left:0;right:0;width:calc(100% - 24px);max-width:800px;margin-inline:auto;
  box-sizing:border-box;padding:16px!important;
  grid-template-rows:repeat(var(--mysterez-menu-rows,4),minmax(36px,auto))!important;
  column-gap:8px!important;row-gap:4px!important;
 }
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-link > a,
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-text > .mysterez-menu-layer{
  padding:6px 4px!important;font-size:16px;line-height:1.25;overflow-wrap:anywhere;
 }
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-link > a span{
  font-size:16px!important;line-height:1.25;
 }
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-image > a,
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-collection > a{
  max-width:220px;max-height:220px;margin-inline:auto;min-height:0;
 }
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-card-media{
  max-height:180px;min-height:0!important;
 }
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-image > a > span:last-child,
 .desktop-nav .is-shop-menu > .mysterez-mega-menu.is-freeform:not(.is-live-editing) .menu-content-collection > a > span:last-child{
  padding:6px 4px!important;font-size:14px!important;line-height:1.25;
 }
}
