/* web/hud/loadout.css
   The Loadout panel's slots you can change (web/hud/loadout.js), and what each
   could take, opened beside the panel (web/hud/loadout_choices.js) and drawn with
   the Panels menu's own rules -- .menu, .mhead, .mi in web/play-panels.css. */

/* A slot you can change is still a row, its value carrying the Tap indicator
   (web/hud/tap.css), and the one under the pointer or with its choices open the Tap
   indicator under the pointer. */
.lo-slot { margin: 0 -.4em; padding: 0 .4em; border-radius: 4px; cursor: pointer; }
.lo-slot.locked { cursor: default; }
.lo-pick {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .6em;
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  cursor: inherit; text-align: right;
}
.lo-pick:focus-visible { outline: 1px solid #7fb2ff; outline-offset: 1px; }
/* A slot holding something shows help on pointing, while the row keeps its
   pointer, a click opening the choices. */
.lo-pick[aria-describedby="help-tip"] { cursor: inherit; }
.lo-slot { align-items: baseline; }
.lo-pick .pn-value { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.lo-lock { margin: .1em 0 .4em; }
.lo-refusal { margin: .3em 0 0; font-size: .85em; color: var(--warn); }

/* The choices: placed by the script beside the panel, at the panel's text size. */
.menu.lo-menu {
  position: fixed; top: 0; right: auto; z-index: 40; font-family: var(--mono);
  max-width: calc(100vw - 16px); box-sizing: border-box;
}
.lo-menu .mhead { font-size: .79em; }
.lo-menu .mi { display: flex; align-items: baseline; font-size: .93em; }
.lo-mi-name { flex: 1; }
.lo-mi-meta { flex: none; padding-left: 1.6em; font-size: .9em; color: var(--pn-faint); }
.lo-menu .mi.now, .lo-menu .mi.now .lo-mi-meta { color: var(--tc); }
.lo-menu .lo-clear { color: var(--pn-label); }
.lo-menu [aria-describedby="help-tip"] { text-decoration: none; cursor: pointer; }
.lo-menu .mi:focus-visible { outline: 1px solid #7fb2ff; outline-offset: -1px; }
.lo-none { padding: 5px 8px; font-size: .93em; font-style: italic; color: var(--pn-hush); }
