/* ButtonsBox common module (GT-ST Manual 6.5.5).
   Key legend below the InformationBox and ResultsBox panels and above the
   NotificationBar: a row of capsules aligned right, one per key the tester
   can press at the current step. Values follow the shared tester UI style
   (.claude/rules/tester-ui-style.md). */

.buttons-box {
  position: absolute;
  left: 5%;
  top: 73%;
  width: 90%;
  height: 10%;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  color: #eef2f6;
  /* Tiresias and Verdana are the fonts Ginga-NCL receivers must provide
     (ITU-T H.761, canvas:attrFont); Arial is the fallback elsewhere. */
  font-family: Tiresias, Verdana, Arial, Helvetica, sans-serif;
}

.buttons-box-hidden {
  display: none;
}

/* The auto left margin aligns the row right. When the row is wider than
   the region, the margin becomes 0 and the row runs past the right edge,
   where the module measures it (scrollWidth). Nothing shrinks or wraps. */
.buttons-box-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
}

.buttons-box-button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  box-sizing: border-box;
  height: 56px;
  padding: 0 26px 0 16px;
  white-space: nowrap;
  background-color: rgba(14, 21, 32, 0.92);
  border-radius: 28px;
}

.buttons-box-button + .buttons-box-button {
  margin-left: 16px;
}

.buttons-box-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-right: 12px;
  border-radius: 13px;
}

.buttons-box-dot-red {
  background-color: #e0524f;
}

.buttons-box-dot-green {
  background-color: #3fa860;
}

.buttons-box-dot-yellow {
  background-color: #e6c229;
}

.buttons-box-dot-blue {
  background-color: #3d7fd9;
}

/* Key outline for OK, the arrows, BACK and the digits. */
.buttons-box-key {
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 34px;
  height: 34px;
  margin-right: 12px;
  padding: 0 7px;
  border: 2px solid #a9b8c8;
  border-radius: 8px;
  color: #eef2f6;
  font-size: 18px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
}

.buttons-box-label {
  font-size: 20px;
  font-weight: bold;
}
