/* The wallet button and its panel (V, see wallet-ui.js). The button sits in the dock under the chat (layout.css)
   and the panel opens above the dock. In the touch layout both move to the top. */

#wallet-toggle {
  padding: 6px 9px;
  border: 1px solid rgba(111, 255, 171, .45);
  background: rgba(0, 8, 4, .82);
  color: #b9ffd1;
  font: 11px/1.35 Consolas, "Courier New", monospace;
  letter-spacing: .06em;
  white-space: pre;
  cursor: pointer;
  opacity: .6;
}

#wallet-toggle:hover {
  opacity: 1;
}

#wallet-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 90;
  width: min(66ch, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(111, 255, 171, .55);
  background: rgba(0, 10, 5, .94);
  color: #b9ffd1;
  font: 12px/1.45 Consolas, "Courier New", monospace;
  box-shadow: 0 0 24px rgba(0, 0, 0, .6);
}

#wallet-panel-text {
  white-space: pre-wrap;
  word-break: break-word;
}

#wallet-panel-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

#wallet-panel-keys button {
  padding: 4px 8px;
  border: 1px solid rgba(111, 255, 171, .45);
  background: rgba(0, 20, 10, .9);
  color: #d5ffe1;
  font: inherit;
  letter-spacing: .06em;
  cursor: pointer;
}

#wallet-panel-keys button:hover {
  background: rgba(111, 255, 171, .25);
}

body.touch-mode #wallet-toggle {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 80;
}

body.touch-mode #wallet-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 48px;
  bottom: auto;
  width: auto;
}
