/* New wallet menu replaces legacy balance/topup sheets. */
:root {
  --wallet-menu-bg-main: var(--tg-bg-elevated, #282727);
  --wallet-menu-bg-block: var(--tg-bg-elevated-soft, #2f2e2e);
  --wallet-history-side-col: clamp(120px, 38%, 180px);
}

html.wallet-menu-ready #balance-modal,
html.wallet-menu-ready #topup-menu-overlay,
html.wallet-menu-ready #payment-confirm-overlay {
  display: none !important;
}

html.wallet-menu-open main {
  overflow-y: hidden !important;
}

/* Hide legacy top-up state block; wallet menu uses its own state widget. */
#topup-state {
  display: none !important;
}

.wallet-menu-overlay {
  --wallet-menu-open-ms: 220ms;
  --wallet-menu-close-ms: 120ms;
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: var(--menu-backdrop-bg, rgba(0, 0, 0, 0.66));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--wallet-menu-open-ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    visibility 0ms linear var(--wallet-menu-open-ms);
}

.wallet-menu-overlay.is-open,
.wallet-menu-overlay.is-closing {
  visibility: visible;
  transition-delay: 0ms, 0ms;
}

.wallet-menu-overlay.wallet-menu-view-closed {
  pointer-events: none;
}

.wallet-menu-overlay.wallet-menu-view-transition .wallet-menu-sheet {
  will-change: opacity, transform;
}

.wallet-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-menu-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
  transition-duration: var(--wallet-menu-close-ms), 0ms;
}

.wallet-menu-sheet {
  --wallet-menu-sheet-open-ms: 320ms;
  --wallet-menu-sheet-close-ms: 120ms;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: var(--wallet-menu-bg-main, var(--tg-bg-elevated, #282727));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transform: translate3d(0, 20px, 0) scale(0.985);
  opacity: 0;
  transition:
    transform var(--wallet-menu-sheet-open-ms) var(--modal-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity var(--wallet-menu-sheet-open-ms) var(--modal-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.wallet-menu-overlay.is-open .wallet-menu-sheet {
  transform: none;
  opacity: 1;
}

.wallet-menu-overlay.is-closing .wallet-menu-sheet {
  transition-duration: var(--wallet-menu-sheet-close-ms), var(--wallet-menu-sheet-close-ms);
}

.wallet-menu-overlay.is-closing .wallet-menu-sheet,
.wallet-menu-overlay.is-closing .wallet-menu-screen {
  pointer-events: none !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior-y: none !important;
}

.wallet-menu-screen {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--wallet-menu-bg-main, var(--tg-bg-elevated, #282727));
  font-family: var(--font-sans, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  overflow-y: hidden;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overflow-anchor: none;
  touch-action: pan-y;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  pointer-events: none;
  backface-visibility: visible;
  transition: opacity 220ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.wallet-menu-screen[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.wallet-menu-screen[inert] {
  pointer-events: none !important;
}

.wallet-menu-screen--topup[aria-hidden="true"] {
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: auto !important;
  touch-action: none !important;
  pointer-events: none !important;
}

.wallet-menu-screen::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.wallet-menu-screen--main {
  transform: none;
}

.wallet-menu-screen--topup {
  transform: none;
  -webkit-overflow-scrolling: auto;
}

.wallet-menu-screen--topup.is-active {
  -webkit-overflow-scrolling: touch;
}

.wallet-menu-screen--topup.is-scroll-locked {
  overflow-y: hidden !important;
  pointer-events: none !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior-y: none !important;
  touch-action: none !important;
}

.wallet-menu-screen.is-active {
  display: block;
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  overflow-y: scroll;
}

.wallet-menu-screen.is-transitioning-leave {
  display: block;
  z-index: 1;
  overflow-y: hidden;
  pointer-events: none;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior-y: none;
  will-change: opacity;
}

.wallet-menu-screen.is-transitioning-enter {
  display: block;
  z-index: 2;
  overflow-y: scroll;
  will-change: opacity;
}

.wallet-menu-header {
  position: sticky;
  top: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: 40px auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin: 0 -16px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 6px;
  background: var(--wallet-menu-bg-main, var(--tg-bg-elevated, #282727));
  box-shadow: none;
}

.wallet-menu-header-spacer {
  width: 36px;
  height: 36px;
  display: block;
  justify-self: end;
}

.wallet-menu-header--single {
  grid-template-columns: 36px;
}

.wallet-menu-title {
  font-size: clamp(24px, 4.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tg-text, #f2f3f5);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-menu-title--compact {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: left;
  justify-self: start;
}

.wallet-menu-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}

.wallet-menu-icon-btn--back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated-soft, #2f2e2e));
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 14px rgba(0, 0, 0, 0.24);
}

.wallet-menu-icon-btn--close {
  justify-content: center;
  justify-self: end;
}

.wallet-close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
  transform: translateY(-1px);
}

.wallet-back-arrow {
  width: 24px;
  height: 24px;
  display: block;
}

.wallet-back-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-menu-icon-btn:active {
  transform: translate3d(-1px, 0, 0);
}

.wallet-menu-icon-btn--back:active {
  transform: translate3d(0, 1px, 0) scale(0.98);
}

/* Keyboard focus indicators for accessibility */
.wallet-menu-icon-btn:focus-visible,
.wallet-balance-topup-btn:focus-visible,
.wallet-topup-mode-btn:focus-visible,
.wallet-topup-submit:focus-visible {
  outline: 2px solid var(--tg-accent, #3390ec);
  outline-offset: 2px;
}

.wallet-balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 0;
  min-height: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated, #282727));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}

.wallet-balance-card::before {
  content: none;
}

.wallet-balance-card-label {
  position: relative;
  z-index: 1;
  color: var(--tg-text-mute, #949ba4);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wallet-balance-card-value {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 9.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--tg-text, #f2f3f5);
}

.wallet-balance-topup-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tg-accent, #2aae5d);
  color: var(--tg-button-text, #ffffff);
  font-size: clamp(22px, 4.2vw, 25px);
  line-height: 1;
  font-weight: 700;
  padding: clamp(12px, 2.4vw, 13px) clamp(15px, 3.4vw, 18px);
  cursor: pointer;
  box-shadow: none;
}

.wallet-history-head {
  color: var(--tg-text, #f2f3f5);
  font-size: clamp(32px, 6.2vw, 36px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: clamp(12px, 2.8vw, 16px);
}

.wallet-history-list {
  padding-right: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-anchor: none;
}

.wallet-history-group-date {
  display: none;
}

.wallet-history-group-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.wallet-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--wallet-history-side-col);
  align-items: start;
  gap: clamp(10px, 2.4vw, 12px);
  padding: clamp(13px, 2.6vw, 14px) clamp(14px, 3.2vw, 16px);
  border-radius: 14px;
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated, #282727));
  overflow: hidden;
}

.wallet-history-icon {
  display: none;
}

.wallet-history-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-history-text {
  display: none;
}

.wallet-history-title {
  color: var(--tg-text, #f2f3f5);
  font-size: clamp(17px, 3.5vw, 18px);
  font-weight: 700;
  line-height: 1.16;
}

.wallet-history-sub {
  color: var(--tg-text-mute, #949ba4);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
  display: flex;
  align-items: center;
  min-height: 16px;
}

.wallet-history-provider {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.12;
}

.wallet-history-provider-label {
  display: block;
  line-height: 1.12;
}

.wallet-history-provider--stars {
  color: var(--tg-text, #f2f3f5);
}

.wallet-history-star {
  width: 13px;
  height: 13px;
  display: inline-block;
  flex: 0 0 13px;
  align-self: center;
  vertical-align: middle;
  object-fit: contain;
  object-position: center;
  transform: translateY(0.2px);
}

.wallet-history-time {
  color: var(--tg-text-mute, #949ba4);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.16;
}

.wallet-history-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  align-self: stretch;
  gap: 7px;
  min-width: 0;
  width: 100%;
  padding-right: 0;
  padding-top: 1px;
}

.wallet-history-amount {
  display: block;
  color: var(--tg-text, #f2f3f5);
  font-size: clamp(18px, 3.8vw, 23px);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.wallet-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  border-radius: 999px;
  background: var(--tg-accent, #2aae5d);
  color: var(--tg-button-text, #ffffff);
  font-size: clamp(14px, 2.8vw, 15px);
  font-weight: 700;
  line-height: 1;
  min-width: clamp(96px, 19vw, 102px);
  padding: clamp(9px, 2vw, 10px) clamp(13px, 2.8vw, 14px);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-history-empty {
  border-radius: 16px;
  border: 0;
  padding: 14px;
  color: var(--tg-text-mute, #949ba4);
  font-size: 14px;
  text-align: center;
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated, #282727));
}

.wallet-topup-card {
  margin-top: 4px;
  border-radius: 20px;
  border: 0;
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated-soft, #2f2e2e));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
}

.wallet-topup-modes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 16px;
  padding: 4px;
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated-soft, #2f2e2e));
  isolation: isolate;
}

.wallet-topup-modes[hidden] {
  display: none !important;
}

.wallet-topup-modes::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 16px) / 2);
  border-radius: 12px;
  background: var(--tg-accent, #2aae5d);
  border: 0;
  transition: transform 220ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: none;
  z-index: 0;
}

.wallet-topup-modes[data-mode="stars"]::before {
  transform: translateX(calc(100% + 8px));
}

.wallet-topup-mode-btn {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 12px;
  cursor: pointer;
  transition:
    color 220ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 220ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.wallet-topup-mode-btn.is-active {
  color: var(--tg-text, #f2f3f5);
  filter: none;
}

.wallet-topup-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: clamp(46px, 10vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--tg-text, #f2f3f5);
  white-space: nowrap;
}

.wallet-topup-preview-rub {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  line-height: 1;
}

.wallet-topup-preview-currency {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.wallet-topup-preview-amount {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  padding-right: 0.08em;
}

.wallet-topup-preview-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14em;
  line-height: 1;
}

.wallet-topup-preview-stars .wallet-topup-preview-amount {
  padding-right: 0;
}

.wallet-star-icon {
  width: 1.12em;
  height: 1.12em;
  display: inline-block;
  flex: 0 0 auto;
  align-self: center;
  vertical-align: middle;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.wallet-star-icon--sm {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  transform: none;
}

.wallet-topup-label {
  display: none;
}

.wallet-topup-preview-edit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  cursor: text;
}

.wallet-topup-preview-edit:focus-within .wallet-topup-preview .wallet-topup-preview-amount::after,
.wallet-topup-preview-edit.is-focused .wallet-topup-preview .wallet-topup-preview-amount::after {
  content: "";
  width: 2px;
  height: 0.86em;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
  position: absolute;
  right: -0.02em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: walletTopupCaret 1s steps(1, end) infinite;
}

.wallet-topup-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  opacity: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.wallet-topup-meta {
  display: none;
}

.wallet-topup-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-topup-meta-label {
  color: var(--tg-text-mute, #949ba4);
  font-size: 13px;
  font-weight: 600;
}

.wallet-topup-meta-value {
  color: var(--tg-text, #f2f3f5);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.wallet-topup-submit {
  margin-top: 2px;
  border: 0;
  border-radius: 18px;
  width: 100%;
  min-height: clamp(58px, 11vw, 60px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tg-accent, #2aae5d);
  color: var(--tg-button-text, #ffffff);
  font-size: clamp(22px, 4.2vw, 24px);
  line-height: 1;
  font-weight: 700;
  padding: clamp(13px, 2.6vw, 14px) clamp(18px, 4vw, 20px);
  cursor: pointer;
  box-shadow: none;
}

.wallet-topup-submit[disabled] {
  background: rgba(42, 174, 93, 0.58);
  color: rgba(232, 238, 244, 0.7);
  border: 0;
  box-shadow: none;
  opacity: 0.86;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: saturate(0.7) brightness(0.88);
}

.wallet-topup-submit[disabled] .wallet-topup-submit-min {
  color: inherit;
  font-weight: 700;
}

.wallet-topup-submit[disabled] .wallet-topup-submit-star {
  opacity: 0.74;
  filter: none;
}

.wallet-topup-submit-min {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.wallet-topup-submit-star {
  width: 1.04em;
  height: 1.04em;
  display: inline-block;
  flex: 0 0 auto;
  align-self: center;
  vertical-align: middle;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.wallet-topup-state-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-topup-state-list[hidden] {
  display: none !important;
}

.wallet-topup-state {
  margin-top: 0;
  border-radius: 16px;
  background: var(--wallet-menu-bg-block, var(--tg-bg-elevated, #282727));
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px 14px 13px;
  transform: translate3d(0, 12px, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 200ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.wallet-topup-state.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wallet-topup-state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-topup-state-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tg-text, #f2f3f5);
  font-size: 15px;
  font-weight: 700;
}

.wallet-topup-state-title::before {
  content: "";
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: spin 0.85s linear infinite;
  box-sizing: border-box;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

.wallet-topup-state.is-success .wallet-topup-state-title::before {
  animation: none;
  border-color: rgba(42, 174, 93, 0.92);
  background: rgba(42, 174, 93, 0.92);
}

.wallet-topup-state.is-failed .wallet-topup-state-title::before {
  animation: none;
  border-color: rgba(255, 109, 111, 0.92);
  background: rgba(255, 109, 111, 0.92);
}

.wallet-topup-state-sub {
  margin-top: 6px;
  color: var(--tg-text-mute, #949ba4);
  font-size: 13px;
  line-height: 1.25;
}

.wallet-topup-state-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: var(--tg-text, #f2f3f5);
  cursor: pointer;
}


@keyframes walletTopupCaret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.wallet-balance-topup-btn,
.wallet-topup-submit {
  opacity: 1;
  transition:
    opacity 180ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 180ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.wallet-menu-screen.is-active .wallet-balance-topup-btn,
.wallet-menu-screen.is-active .wallet-topup-submit {
  opacity: 1;
}

.wallet-balance-topup-btn:active,
.wallet-topup-submit:active {
  filter: brightness(0.98);
  transform: translate3d(0, 1px, 0) scale(0.995);
}

.tonkeeper-sheet,
#topup-menu-sheet,
#payment-confirm-sheet {
  background: var(--wallet-menu-bg-main, var(--tg-bg-elevated, #282727)) !important;
}

.wallet-topup-error {
  color: var(--tg-red, #f23f42);
  font-size: 13px;
  line-height: 1.25;
  min-height: 16px;
}

/* Profile history overflow guard: keep amount/status inside the card bounds. */
.gp-history-item--order {
  grid-template-columns: var(--gp-history-thumb-size, 62px) minmax(0, 1fr) minmax(96px, var(--gp-history-side-width, 124px)) !important;
}

.gp-history-item--topup {
  grid-template-columns: minmax(0, 1fr) minmax(96px, var(--gp-history-side-width, 124px)) !important;
}

.gp-history-content {
  min-width: 0 !important;
}

.gp-history-side {
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gp-topup-amount,
.gp-history-amount {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  .wallet-topup-meta-value {
    font-size: 14px;
  }

  .wallet-history-sub,
  .wallet-history-time {
    font-size: 13px;
  }
}

html.gp-motion-reduced .wallet-menu-overlay,
html.gp-motion-reduced .wallet-menu-sheet,
html.gp-motion-reduced .wallet-menu-screen,
html.gp-motion-reduced .wallet-topup-state {
  transition-duration: 0ms !important;
  transition-delay: 0ms !important;
}
html.gp-motion-reduced .wallet-topup-state-title::before {
  animation-duration: 0ms !important;
  animation-delay: 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .wallet-menu-overlay,
  .wallet-menu-sheet,
  .wallet-menu-screen,
  .wallet-topup-state,
  .wallet-topup-state-title::before {
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
  }
}
