/* Malay profile uses a stacked VIP card and flexible text blocks on mobile. */
html[lang="ms"] .profile-screen {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

html[lang="ms"] .profile-header {
  min-height: 56px;
  height: auto;
}

html[lang="ms"] .profile-header h1 {
  max-width: calc(100% - 90px);
  font-size: 20px;
  line-height: 27px;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-user {
  min-height: 200px;
  height: auto;
  padding-top: 13px;
}

html[lang="ms"] .profile-user__meta {
  top: 14px;
  right: 15px;
  left: 91px;
  min-width: 0;
}

html[lang="ms"] .profile-user__meta > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
}

html[lang="ms"] .profile-user__meta > div > strong {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  font-size: 10.25px;
  line-height: 18px;
  letter-spacing: -.15px;
  text-overflow: clip;
  white-space: nowrap;
}

html[lang="ms"] .profile-user__meta > div > span {
  max-width: 100%;
  min-height: 20px;
  height: auto;
  margin-left: 0;
  padding: 0 5px;
  font-size: 8.5px;
  line-height: 13px;
  white-space: nowrap;
}

html[lang="ms"] .profile-user__meta p {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .vip-card {
  top: 94px;
  right: 15px;
  left: 15px;
  width: auto;
  min-height: 88px;
  height: auto;
  padding: 10px 13px 11px;
}

html[lang="ms"] .vip-card > div {
  min-height: 23px;
  height: auto;
}

html[lang="ms"] .vip-card > span {
  margin-top: 4px;
}

html[lang="ms"] .vip-card > small {
  max-width: 100%;
  margin-top: 6px;
  font-size: 9px;
  line-height: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-assets {
  min-height: 164px;
  height: auto;
}

html[lang="ms"] .profile-assets .section-title {
  min-height: 42px;
  height: auto;
}

html[lang="ms"] .profile-assets .section-title h2 {
  font-size: 13px;
  line-height: 18px;
}

html[lang="ms"] .profile-assets__grid {
  min-height: 122px;
  height: auto;
  padding-bottom: 10px;
}

html[lang="ms"] .profile-assets__grid > a {
  min-height: 112px;
  padding: 5px 5px 4px;
  grid-template-columns: 37px minmax(0, 1fr) 12px;
  column-gap: 5px;
}

html[lang="ms"] .profile-assets__grid > a > svg:first-child {
  width: 36px;
  height: 36px;
}

html[lang="ms"] .profile-assets__grid small {
  min-height: 28px;
  font-size: 9px;
  line-height: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-assets__grid strong {
  max-width: 100%;
  font-size: 15px;
  line-height: 21px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-assets__grid span {
  font-size: 8px;
  line-height: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-functions {
  min-height: 242px;
  height: auto;
  padding-bottom: 10px;
}

html[lang="ms"] .profile-functions h2 {
  min-height: 42px;
  height: auto;
  padding-top: 11px;
  font-size: 13px;
  line-height: 19px;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-functions__grid {
  min-height: 187px;
  height: auto;
  grid-template-rows: repeat(2, minmax(89px, auto));
  row-gap: 5px;
}

html[lang="ms"] .profile-functions__grid > a {
  min-width: 0;
  min-height: 89px;
  padding: 0 2px;
  font-size: 9.5px;
  line-height: 13px;
}

html[lang="ms"] .profile-functions__grid .icon-bubble {
  flex: 0 0 auto;
}

html[lang="ms"] .profile-functions__grid > a span:last-child {
  max-width: 78px;
  min-height: 26px;
  margin-top: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .invite-banner {
  min-height: 128px;
  height: auto;
  padding-top: 13px;
  padding-bottom: 13px;
}

html[lang="ms"] .invite-banner > div {
  width: calc(100% - 105px);
  min-width: 0;
}

html[lang="ms"] .invite-banner strong {
  font-size: 12px;
  line-height: 17px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .invite-banner span {
  margin-top: 3px;
  font-size: 9px;
  line-height: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .invite-banner button {
  width: max-content;
  min-width: 76px;
  max-width: 100%;
  min-height: 29px;
  height: auto;
  margin-top: 7px;
  gap: 5px;
  padding: 5px 8px;
  line-height: 15px;
  text-align: left;
}

html[lang="ms"] .invite-banner > svg {
  right: 3px;
  width: 108px;
}

html[lang="ms"] .profile-other {
  min-height: 96px;
  height: auto;
}

html[lang="ms"] .profile-other > a {
  min-height: 48px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 8px;
  line-height: 16px;
}

html[lang="ms"] .profile-other > a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[lang="ms"] .profile-other > a > em {
  min-width: 0;
  max-width: 45%;
  flex: 0 1 auto;
  justify-content: flex-end;
  white-space: nowrap;
}

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

html[lang="ms"]:has(.profile-screen) .bottom-navigation__item > span:last-child {
  max-width: 100%;
  min-height: 24px;
  margin-top: 1px;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

  html[lang="ms"] .profile-user__meta {
    right: 10px;
    left: 82px;
  }

  html[lang="ms"] .profile-avatar-button,
  html[lang="ms"] .profile-avatar-button > img {
    width: 61px;
    height: 61px;
  }

  html[lang="ms"] .vip-card {
    right: 10px;
    left: 10px;
  }

  html[lang="ms"] .profile-assets,
  html[lang="ms"] .profile-functions,
  html[lang="ms"] .invite-banner,
  html[lang="ms"] .profile-other {
    margin-right: 9px;
    margin-left: 9px;
  }

  html[lang="ms"] .profile-assets__grid > a {
    grid-template-columns: 32px minmax(0, 1fr) 10px;
    column-gap: 3px;
  }

  html[lang="ms"] .profile-assets__grid > a > svg:first-child {
    width: 31px;
    height: 31px;
  }

  html[lang="ms"] .profile-assets__grid small {
    font-size: 8px;
    line-height: 11px;
  }

  html[lang="ms"] .profile-functions__grid > a {
    font-size: 8.5px;
    line-height: 12px;
  }

  html[lang="ms"] .profile-functions__grid > a span:last-child {
    max-width: 66px;
  }
}
