/* V795ig — compact Public/Touchscreen selected-stand label.
   Scoped to visitor modes so Admin and Exhibitor remain unchanged. */
body.publicDirectoryMode #floatingLabel,
body.touchscreenMode #floatingLabel{
  min-width:0;
  max-width:min(220px, calc(100vw - 28px));
  padding:6px 8px;
  border-width:1px;
  border-radius:12px;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}
body.publicDirectoryMode .floatingStandRow,
body.touchscreenMode .floatingStandRow{
  gap:5px;
}
body.publicDirectoryMode #floatingStand,
body.touchscreenMode #floatingStand{
  flex:0 1 auto;
  padding:3px 7px;
  border-radius:8px;
  background:color-mix(in srgb, var(--accentText) 10%, white);
  font-size:13px;
  line-height:1;
  font-weight:950;
}
body.publicDirectoryMode .floatingVisitListBtn,
body.touchscreenMode .floatingVisitListBtn{
  width:24px;
  min-width:24px;
  height:24px;
  font-size:14px;
  border-width:1px;
}
body.publicDirectoryMode .floatingInfoBtn,
body.touchscreenMode .floatingInfoBtn{
  min-width:38px;
  height:24px;
  padding:0 7px;
  font-size:10px;
}
body.publicDirectoryMode #floatingCompany,
body.touchscreenMode #floatingCompany{
  margin-top:4px;
  max-width:204px;
  font-size:13px;
  line-height:1.12;
  font-weight:900;
}
@media (max-width:700px){
  body.publicDirectoryMode #floatingLabel,
  body.touchscreenMode #floatingLabel{
    max-width:min(190px, calc(100vw - 24px));
    padding:5px 7px;
  }
  body.publicDirectoryMode #floatingCompany,
  body.touchscreenMode #floatingCompany{
    max-width:176px;
    font-size:12px;
  }
}


/* V795ig: fixed small metadata. These rules intentionally override legacy
   inline font sizes created by the floating-label renderer. */
body.publicDirectoryMode #floatingSpace,
body.touchscreenMode #floatingSpace{
  margin-top:3px !important;
  font-size:9px !important;
  line-height:1.12 !important;
  font-weight:750 !important;
  opacity:.62 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
body.publicDirectoryMode #floatingCategory,
body.touchscreenMode #floatingCategory{
  margin-top:1px !important;
  max-width:174px !important;
  font-size:9px !important;
  line-height:1.12 !important;
  font-weight:750 !important;
  opacity:.62 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  overflow-wrap:anywhere !important;
}
@media (max-width:700px){
  body.publicDirectoryMode #floatingLabel,
  body.touchscreenMode #floatingLabel{
    max-width:min(178px, calc(100vw - 24px));
  }
  body.publicDirectoryMode #floatingStand,
  body.touchscreenMode #floatingStand{
    font-size:12px;
    padding:3px 6px;
  }
  body.publicDirectoryMode #floatingCategory,
  body.touchscreenMode #floatingCategory{
    max-width:164px !important;
    font-size:8.5px !important;
  }
}


/* V795ig: Public My List mirrors the latched Exhibitors-row selection. */
body.publicDirectoryMode #publicDirectoryShell .visitorListItem.visitorListItemSelected .visitorListItemMain{
  background:color-mix(in srgb, var(--accentText) 12%, white)!important;
  border:2px solid color-mix(in srgb, var(--accentText) 26%, white)!important;
}
body.publicDirectoryMode #publicDirectoryShell .visitorListItem.visitorListItemSelected .visitorListItemStand,
body.publicDirectoryMode #publicDirectoryShell .visitorListItem.visitorListItemSelected .visitorListItemCompany{
  color:var(--accentText)!important;
}

/* V795ig — slightly larger selected-stand label type on desktop Public and
   Touchscreen. Phone/tablet sizing remains unchanged. */
@media (min-width:981px){
  body.publicDirectoryMode #floatingLabel,
  body.touchscreenMode #floatingLabel{
    max-width:min(250px, calc(100vw - 36px));
    padding:7px 9px;
  }
  body.publicDirectoryMode #floatingStand,
  body.touchscreenMode #floatingStand{
    font-size:15px;
    padding:4px 8px;
  }
  body.publicDirectoryMode #floatingCompany,
  body.touchscreenMode #floatingCompany{
    max-width:232px;
    font-size:15px;
    line-height:1.15;
  }
  body.publicDirectoryMode #floatingSpace,
  body.touchscreenMode #floatingSpace{
    font-size:10px!important;
  }
  body.publicDirectoryMode #floatingCategory,
  body.touchscreenMode #floatingCategory{
    max-width:224px!important;
    font-size:10px!important;
  }
}
