#stw-controlarea button,
#stw-panel-bar button {
  background: none;
  line-height: 1em;
  padding: 0.5em;

  cursor: pointer;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
}
#stw-controlarea button span,
#stw-panel-bar button span {
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

/* Desktop Box */
#toolbox button {
  color: white;
  font-size: 1rem;
}
#toolbox button:hover,
#toolbox button[bs-active] {
  color: var(--key-color, #0095ff);
}
#toolbox button div[class*="icon-"] {
  font-size: 2.625em;
  position: relative;
  margin-bottom: 0.2em
}

/* Mobile Bar */
#stw-panel-bar button {
  color: white;
  flex: 1 1 20%;
  position: static;
}
#stw-panel-bar button[bs-active] {
  color: var(--key-color, #0095ff);
}
#stw-panel-bar button div[class*="icon-"] {
  margin-block-end: 0.2em
}
#stw-panel-bar button span {
  font-size: 6.5pt;
  text-rendering: optimizeLegibility;
}
#stw-panel-bar button {
  font-size: clamp(0.75rem,3vmin,1.125rem);
}
#stw-panel-bar button div[class*="icon-"] {
  font-size: 24px;
  position: relative;
}

/* Rewards Counter */
.icon-rewards {
  display: flex;
  justify-content: center;
}
#toolbox button .myrewards-counter,
#stw-panel-bar button .myrewards-counter {
  /* inset-inline-end: 0; */
  display: block;
  font-size: 0.325em;
  font-family: system-ui, -apple-system, sans-serif;
}
/* #stw-panel-bar button .icon-myrewards {
  margin-inline-start: 0;
} */
#stw-panel-bar button .myrewards-counter {
  /* right: -30%; */
  /* width: fit-content; */
  font-size: 0.375em;
}
#toolbox button:hover .myrewards-counter {
  background-color: white;
}
.myrewards-counter {
  background-color: var(--key-color, #0095ff);
  border-radius: .1875rem;
  padding: 0.3333em;
  position: absolute;
  inset-block-end: 0;
}