/* Malay wallet readability: larger type, comfortable line height, responsive spacing. */
html[lang="ms"] .wallet-header {
  min-height: 82px;
  padding-top: 10px;
  padding-bottom: 10px;
}

html[lang="ms"] .wallet-header h1 {
  font-size: clamp(21px, 5.8vw, 23px);
  line-height: 1.3;
  letter-spacing: -.25px;
}

html[lang="ms"] .wallet-header > div > span {
  max-width: min(260px, calc(100vw - 78px));
  min-height: 24px;
  padding: 4px 8px;
  font-size: clamp(9.5px, 2.55vw, 10.5px);
  line-height: 1.4;
}

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

html[lang="ms"] .wallet-total-card__top {
  min-height: 156px;
  padding: 19px 14px 13px;
}

html[lang="ms"] .wallet-total-card__top > small {
  max-width: 230px;
  font-size: clamp(11.5px, 3vw, 12.5px);
  line-height: 1.45;
}

html[lang="ms"] .wallet-total-card__top > strong {
  margin-top: 6px;
  font-size: clamp(30px, 8vw, 33px);
  line-height: 1.2;
}

html[lang="ms"] .wallet-total-card__top > strong em {
  font-size: clamp(12.5px, 3.4vw, 14px);
}

html[lang="ms"] .wallet-total-card__top > span {
  max-width: 240px;
  margin-top: 3px;
  font-size: clamp(11px, 2.85vw, 12px);
  line-height: 1.45;
}

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

html[lang="ms"] .wallet-actions button {
  padding: 10px 6px 8px;
  gap: 6px;
  font-size: clamp(11.5px, 3.05vw, 12.5px);
  line-height: 1.35;
}

html[lang="ms"] .asset-list {
  min-height: 240px;
  padding-right: 10px;
  padding-left: 10px;
}

html[lang="ms"] .asset-row {
  min-height: 120px;
  padding-top: 9px;
  padding-bottom: 9px;
  grid-template-columns: 42px minmax(96px, 1.25fr) minmax(58px, .7fr) minmax(86px, .9fr) 12px;
  column-gap: 5px;
}

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

html[lang="ms"] .asset-row__name > strong {
  min-height: 34px;
  font-size: clamp(10.8px, 2.95vw, 12.3px);
  line-height: 1.35;
}

html[lang="ms"] .asset-row__name > strong em {
  font-size: clamp(8.5px, 2.3vw, 9.5px);
  line-height: 1.35;
}

html[lang="ms"] .asset-row__name > span,
html[lang="ms"] .asset-row__metric > span {
  margin-top: 5px;
  font-size: clamp(9.2px, 2.5vw, 10px);
  line-height: 1.4;
}

html[lang="ms"] .asset-row__name b,
html[lang="ms"] .asset-row__metric b {
  font-size: clamp(11.5px, 3.1vw, 13px);
  line-height: 1.45;
}

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

html[lang="ms"] .wallet-screen .section-title {
  min-height: 52px;
  padding-right: 13px;
  padding-left: 13px;
}

html[lang="ms"] .wallet-screen .section-title h2 {
  font-size: clamp(13.5px, 3.65vw, 15px);
  line-height: 1.4;
}

html[lang="ms"] .wallet-screen .section-title button,
html[lang="ms"] .wallet-screen .section-title a {
  font-size: clamp(9.8px, 2.65vw, 11px);
  line-height: 1.4;
}

html[lang="ms"] .overview-grid {
  min-height: 258px;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(129px, auto));
}

html[lang="ms"] .overview-grid > div {
  padding: 12px 8px;
  border-left: 0 !important;
}

html[lang="ms"] .overview-grid > div:nth-child(even) {
  border-left: 1px solid #f0f2f5 !important;
}

html[lang="ms"] .overview-grid > div:nth-child(n + 3) {
  border-top: 1px solid #f0f2f5;
}

html[lang="ms"] .overview-grid small {
  min-height: 38px;
  margin-top: 7px;
  font-size: clamp(10.5px, 2.85vw, 12px);
  line-height: 1.38;
}

html[lang="ms"] .overview-grid strong {
  margin-top: 6px;
  font-size: clamp(14px, 3.85vw, 16px);
  line-height: 1.4;
}

html[lang="ms"] .overview-grid strong em {
  margin-top: 2px;
  font-size: clamp(9.5px, 2.55vw, 10.5px);
  line-height: 1.35;
}

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

html[lang="ms"] .recent-row {
  min-height: 90px;
  padding: 9px 10px;
  grid-template-columns: 38px minmax(0, 1.2fr) minmax(108px, .9fr) 12px;
  column-gap: 6px;
}

html[lang="ms"] .recent-row strong {
  font-size: clamp(10.5px, 2.9vw, 12px);
  line-height: 1.4;
}

html[lang="ms"] .recent-row span {
  margin-top: 3px;
  font-size: clamp(9px, 2.45vw, 10px);
  line-height: 1.4;
}

@media (max-width: 350px) {
  html[lang="ms"] .wallet-header h1 {
    font-size: 21px;
  }

  html[lang="ms"] .wallet-total-card__top {
    padding-right: 12px;
    padding-left: 12px;
  }

  html[lang="ms"] .asset-row {
    grid-template-columns: 36px minmax(82px, 1.2fr) minmax(48px, .65fr) minmax(72px, .85fr) 10px;
    column-gap: 3px;
  }

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

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

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

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

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

  html[lang="ms"] .overview-grid {
    min-height: 268px;
    grid-template-rows: repeat(2, minmax(134px, auto));
  }

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

  html[lang="ms"] .overview-grid small {
    min-height: 40px;
    font-size: 10.5px;
    line-height: 1.4;
  }

  html[lang="ms"] .recent-row {
    grid-template-columns: 34px minmax(0, 1fr) minmax(90px, .9fr) 10px;
    column-gap: 4px;
  }
}
