/* Malay wallet copy is longer than Chinese, so use the responsive wallet layout. */
html[lang="ms"] .wallet-screen {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[lang="ms"] .wallet-header {
  min-height: 76px;
  padding: 8px 15px;
}

html[lang="ms"] .wallet-header > div {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 22px;
  grid-template-rows: auto auto;
  align-items: center;
}

html[lang="ms"] .wallet-header h1 {
  margin-right: 6px;
  font-size: 19px;
  line-height: 25px;
  white-space: nowrap;
}

html[lang="ms"] .wallet-header > div > span {
  width: max-content;
  max-width: 230px;
  min-height: 22px;
  height: auto;
  margin: 3px 0 0;
  padding: 3px 7px;
  grid-column: 1 / 3;
  font-size: 8.5px;
  line-height: 13px;
  white-space: normal;
}

html[lang="ms"] .wallet-total-card {
  min-height: 232px;
}

html[lang="ms"] .wallet-total-card__top {
  min-height: 150px;
  padding-top: 17px;
}

html[lang="ms"] .wallet-total-card__top > small {
  position: relative;
  z-index: 2;
  max-width: 190px;
  font-size: 10px;
  line-height: 14px;
}

html[lang="ms"] .wallet-total-card__top > strong {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: 27px;
  line-height: 36px;
}

html[lang="ms"] .wallet-total-card__top > span {
  position: relative;
  z-index: 2;
  max-width: 210px;
  font-size: 10px;
  line-height: 15px;
  white-space: normal;
}

html[lang="ms"] .wallet-actions {
  min-height: 82px;
}

html[lang="ms"] .wallet-actions button {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 10.5px;
  line-height: 14px;
}

html[lang="ms"] .asset-list {
  min-height: 224px;
  padding: 0 9px;
}

html[lang="ms"] .asset-row {
  min-height: 112px;
  padding: 7px 0;
  grid-template-columns: 40px minmax(88px, 1fr) minmax(54px, .65fr) minmax(82px, .9fr) 12px;
  column-gap: 4px;
}

html[lang="ms"] .asset-row > svg:first-child {
  width: 38px;
  height: 38px;
}

html[lang="ms"] .asset-row__name > strong {
  min-height: 30px;
  font-size: 10px;
  line-height: 14px;
  white-space: normal;
}

html[lang="ms"] .asset-row__name > strong em {
  display: block;
  font-size: 7.5px;
  line-height: 11px;
}

html[lang="ms"] .asset-row__name > span,
html[lang="ms"] .asset-row__metric > span {
  margin-top: 4px;
  font-size: 7.8px;
  line-height: 11px;
  white-space: normal;
}

html[lang="ms"] .asset-row__name b,
html[lang="ms"] .asset-row__metric b {
  font-size: 11px;
  line-height: 16px;
}

html[lang="ms"] .wallet-overview {
  min-height: 190px;
}

html[lang="ms"] .wallet-screen .section-title {
  min-height: 46px;
}

html[lang="ms"] .wallet-screen .section-title h2 {
  font-size: 12px;
  line-height: 17px;
}

html[lang="ms"] .wallet-screen .section-title button,
html[lang="ms"] .wallet-screen .section-title a {
  font-size: 9px;
  line-height: 13px;
  white-space: nowrap;
}

html[lang="ms"] .overview-grid {
  min-height: 144px;
  padding: 5px 0 11px;
}

html[lang="ms"] .overview-grid > div {
  padding: 0 3px;
}

html[lang="ms"] .overview-grid small {
  display: flex;
  min-height: 34px;
  margin-top: 3px;
  align-items: center;
  justify-content: center;
  font-size: 8.2px;
  line-height: 11px;
}

html[lang="ms"] .overview-grid strong {
  margin-top: 2px;
  font-size: 11px;
  line-height: 16px;
}

html[lang="ms"] .overview-grid strong em {
  display: block;
  margin: 0;
  font-size: 7.2px;
  line-height: 10px;
}

html[lang="ms"] .recent-transactions {
  min-height: 128px;
}

html[lang="ms"] .recent-row {
  min-height: 82px;
  padding: 7px 9px;
  grid-template-columns: 36px minmax(0, 1fr) minmax(92px, auto) 12px;
  column-gap: 5px;
}

html[lang="ms"] .recent-row strong {
  font-size: 9px;
  line-height: 13px;
  white-space: normal;
}

html[lang="ms"] .recent-row span {
  font-size: 8px;
  line-height: 12px;
  white-space: normal;
}

html[lang="ms"]:has(.wallet-screen) .bottom-navigation__item {
  padding: 0 3px;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
}

html[lang="ms"]:has(.wallet-screen) .bottom-navigation__item > span:last-child {
  max-width: 68px;
  min-height: 24px;
  white-space: normal;
}

html[lang="ms"]:has(.wallet-screen) .bottom-navigation__item.exchange > span:last-child {
  top: 41px;
  width: 54px;
  font-size: 9px;
  line-height: 11px;
}

@media (max-width: 350px) {
  html[lang="ms"] .wallet-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  html[lang="ms"] .wallet-total-card,
  html[lang="ms"] .asset-list,
  html[lang="ms"] .wallet-overview,
  html[lang="ms"] .recent-transactions {
    margin-right: 9px;
    margin-left: 9px;
  }

  html[lang="ms"] .asset-row {
    grid-template-columns: 36px minmax(76px, 1fr) minmax(47px, .6fr) minmax(69px, .8fr) 10px;
    column-gap: 3px;
  }

  html[lang="ms"] .asset-row > svg:first-child {
    width: 34px;
    height: 34px;
  }

  html[lang="ms"] .asset-row__name > strong {
    font-size: 9px;
  }

  html[lang="ms"] .asset-row__name > span,
  html[lang="ms"] .asset-row__metric > span {
    font-size: 7px;
  }

  html[lang="ms"] .asset-row__name b,
  html[lang="ms"] .asset-row__metric b {
    font-size: 10px;
  }

  html[lang="ms"] .overview-grid > div {
    padding: 0 2px;
  }

  html[lang="ms"] .overview-grid small {
    font-size: 7.5px;
    line-height: 10px;
  }
}
