/* STEP50 / V64
   Pair dropdown direction fix: open downward again, but keep clean layering and visibility. */

body.terminal-active .gp-overview-market--switch,
body.gp-terminal-active .gp-overview-market--switch,
body.terminal-active .gp-overview-market--switch .gp-market-symbol-row,
body.gp-terminal-active .gp-overview-market--switch .gp-market-symbol-row {
  position: relative !important;
  overflow: visible !important;
  z-index: 10080 !important;
  isolation: isolate;
}

body.terminal-active .gp-market-instrument-shell,
body.gp-terminal-active .gp-market-instrument-shell {
  position: relative !important;
  z-index: 10100 !important;
  isolation: isolate;
}

body.terminal-active .gp-market-instrument-menu,
body.gp-terminal-active .gp-market-instrument-menu {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: auto !important;
  right: 0 !important;
  min-width: max(146px, 100%) !important;
  max-width: 220px !important;
  max-height: min(260px, calc(100vh - 150px)) !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, rgba(5, 18, 35, 0.995), rgba(2, 8, 18, 0.995)) !important;
  background-color: #061326 !important;
  border-color: rgba(65, 151, 255, 0.34) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(0, 213, 255, 0.08) inset !important;
  z-index: 10120 !important;
}

body.terminal-active .gp-market-instrument-option,
body.gp-terminal-active .gp-market-instrument-option {
  white-space: nowrap;
}
