.header-balance #balance-other { color: #35644a; font-size: .76rem; font-weight: 550; }
.balance-dialog {
  box-sizing: border-box;
  width: min(30rem,calc(100% - 1.75rem));
  max-height: calc(100% - 1.75rem);
  padding: clamp(1rem,4vw,1.4rem);
  border: 1px solid #dce4f2;
  border-radius: 1rem;
  background: #fff;
  color: #182948;
  box-shadow: 0 16px 64px #132c5660;
}
.balance-dialog::backdrop { background: #10223c90; }
.balance-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.balance-dialog-heading h2, .balance-dialog-heading form { margin: 0; }
.balance-dialog-heading button { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.35rem; }
.balance-wallet-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem .6rem; align-items: end; margin: 0; }
.balance-wallet-form label { grid-column: 1/-1; }
.balance-wallet-form input, .balance-wallet-form button { min-height: 44px; }
.balance-wallet-form button { white-space: nowrap; }
#wallet-message { margin: .65rem 0 0; }
#wallet-message:empty { display: none; }
#payments-status { margin-bottom: .65rem; }
#wallet-message.payment-error,#payments-status.payment-error { color: #8e1f2d; }
#wallet-history h3 { margin: 1rem 0 .5rem; }
#wallet-orders { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
#wallet-orders li {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 1px solid #dce4f2;
  border-radius: .55rem;
}
#wallet-orders li > div { flex: 1 1 10rem; }
#wallet-orders span { display: block; color: #4d5d75; font-size: .81rem; }
#wallet-orders button,#wallet-orders a { min-height: 40px; padding: .45rem .6rem; font-size: .82rem; }
.payment-admin-title { margin-top: 1rem; }
#payments-settings { max-width: 30rem; }
.payment-callback { max-width: 38rem; }
@media (max-width: 410px) {
  .balance-wallet-form { grid-template-columns: minmax(0,1fr); }
  .balance-wallet-form button { justify-self: stretch; white-space: normal; }
}
