/* Digital wallet: token banner on thumbnails + balance next to search (js/wallet.js).
   Part of codesbase/public_theme; subthemes can override colours. */
.codes-token-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  background: #e1251b;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 2px;
  pointer-events: none;
}
/* wrapper around the balance pill + search icon (wallet.js); sits where the search icon was */
.meta-header-inner .codes-wallet-search {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
}
.meta-header-inner .codes-wallet-search .header-search-icon {
  position: static;
  transform: none;
}
@media print, screen and (min-width: 64em) {
  /* large: the header is a flex row and the search icon is in the flow */
  .meta-header-inner .codes-wallet-search {
    position: static;
    transform: none;
  }
}
.meta-header-inner .codes-wallet-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.meta-header-inner .codes-wallet-balance:hover,
.meta-header-inner .codes-wallet-balance:focus-visible {
  border-color: #e1251b;
  background: rgba(225, 37, 27, 0.15);
  color: #fff;
}
.codes-wallet-balance .fa-coins {
  color: #ffc800;
}
.codes-wallet-balance .codes-wallet-amount {
  font-weight: 700;
}
.codes-wallet-balance .codes-wallet-label {
  opacity: 0.8;
}
@media (max-width: 639px) {
  .meta-header-inner .codes-wallet-balance {
    padding: 4px 10px;
  }
  .codes-wallet-balance .codes-wallet-label {
    display: none;
  }
}
