#dialog.dialog-wallet {
  width: min(430px,100%);
  max-width: 100%;
  height: min(600px,calc(100dvh - 16px));
  max-height: none;
  overflow: auto;
  padding: 16px 23px 23px;
  border: 1px solid #ffffff12;
  border-radius: 32px;
  background: #121015;
}
#dialog.dialog-wallet[open], .dialog-wallet #dialog-content {
  display: flex;
  flex-direction: column;
}
.dialog-wallet #dialog-content { min-height: 100%; }
.dialog-wallet .dialog-head {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 28px;
  gap: 0;
  min-height: 28px;
  margin-bottom: 33px;
}
.dialog-wallet .dialog-head h2 {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
}
.dialog-wallet .dialog-head .icon-button {
  grid-column: 3;
  border: 0;
  background: #ffffff0a;
  border-radius: 50%;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 19px;
  line-height: 1;
  color: #dfd7e4;
}
.dialog-wallet .dialog-head .icon-button:hover { background: #ffffff1a; }
.dialog-wallet .dialog-head .dialog-back {
  grid-column: 1;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  background: transparent;
}
.wallet-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wallet-balance {
  display: grid;
  gap: 7px;
  padding: 17px 19px;
  border: 1px solid #c39bf120;
  border-radius: 20px;
  background: radial-gradient(ellipse at right top,#8d55c443,transparent 72%),#211b27;
}
.wallet-balance span, .wallet-confirm p { color: #a69bad; font-size: 14px; }
.wallet-balance strong { font-size: 27px; font-weight: 700; line-height: 1.19; overflow-wrap: anywhere; }
.wallet-balance button {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #d4b1fa;
  font-size: 13px;
  font-weight: 600;
  text-align: start;
}
.wallet-balance button:hover { text-decoration: underline; }
.wallet-entry { display: grid; gap: 8px; }
.wallet-entry label { color: #ede7f3; font-size: 14px; font-weight: 600; }
.wallet-input {
  position: relative;
  display: flex;
  align-items: center;
}
.wallet-form .wallet-input input {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 15px;
  border-color: #ffffff16;
  border-radius: 15px;
  background: #1c1821;
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.wallet-input input:focus { outline: 0; border-color: #b083ec; }
.wallet-input input::placeholder { color: #94899e; }
.wallet-input span {
  position: absolute;
  inset-inline-end: 15px;
  pointer-events: none;
  color: #a89bb4;
  font-size: 15px;
}
.wallet-confirm {
  display: grid;
  align-items: stretch;
  gap: 11px;
  margin-top: auto;
}
.wallet-confirm p { margin: 0; text-align: center; }
.wallet-confirm .button {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  color: #f8efff;
  background: linear-gradient(104deg,#7843c6,#a755d4);
  box-shadow: inset 0 1px #ffffff32,0 5px 14px #6f3ca63b;
  font-size: 16px;
  font-weight: 700;
}
.wallet-confirm .button:hover:not(:disabled) {
  background: linear-gradient(104deg,#8651d1,#b663df);
  color: #fff;
}
@media (max-height: 520px) {
  .dialog-wallet .dialog-head { margin-bottom: 18px; }
  .wallet-form { gap: 16px; }
}
