/* Mobile member center follows the compact profile layout and keeps the desktop member UI untouched. */
body[data-app="mall-mobile"] .account-view.is-authenticated {
  padding: 0 0 calc(82px + env(safe-area-inset-bottom));
  background: #f5f6f8;
}

body[data-app="mall-mobile"] .account-view.is-authenticated > .account-heading {
  display: none;
}

body[data-app="mall-mobile"] .account-view.is-authenticated .member-dashboard {
  display: block;
}

body[data-app="mall-mobile"] #accountView #memberDashboard .mp-mobile-profile-panel {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-app="mall-mobile"] #accountView #memberDashboard .mp-mobile-profile-panel:not(.is-active) {
  display: none;
}

.muc-page {
  min-width: 0;
  padding: 0 0 8px;
  color: #1d2430;
}

.muc-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  background: #f5f6f8;
}

.muc-topbar h2 {
  min-width: 0;
  margin: 0;
  color: #1d2430;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.muc-back,
.muc-topbar-space {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.muc-back {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #202936;
  cursor: pointer;
}

.muc-back svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.muc-back:focus-visible,
.muc-row-action:focus-visible,
.muc-service-row:focus-visible,
.muc-logout:focus-visible,
.muc-uid:focus-visible,
.muc-cancel-edit:focus-visible {
  outline: 3px solid rgba(39, 113, 219, .28);
  outline-offset: 2px;
}

.muc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 152px;
  margin: 6px 20px 23px;
  padding: 22px 22px;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(116deg, #ff9c2b 0%, #ff6922 48%, #ff3c31 100%);
  color: #fff;
  isolation: isolate;
}

.muc-hero-orb {
  position: absolute;
  z-index: -1;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}

.muc-hero-orb-one {
  top: -53px;
  right: -27px;
  width: 132px;
  height: 132px;
}

.muc-hero-orb-two {
  right: 55px;
  bottom: -47px;
  width: 91px;
  height: 91px;
}

.muc-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 15px;
}

.muc-avatar-upload {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border: 3px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: #f4f6f8;
  box-shadow: 0 4px 10px rgba(165, 46, 15, .18);
  cursor: pointer;
}

.muc-avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.muc-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  color: #ff7247;
}

.muc-avatar > svg {
  width: 45px;
  height: 45px;
  stroke-width: 1.7;
}

.muc-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.muc-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #cf6336;
  color: #fff;
}

.muc-avatar-camera svg {
  width: 14px;
  height: 14px;
}

.muc-identity-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.muc-identity-copy h1 {
  min-width: 0;
  max-width: 190px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muc-uid {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  max-width: 100%;
  gap: 6px;
  padding: 0 11px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.muc-uid:disabled {
  cursor: wait;
  opacity: .78;
}

.muc-uid span {
  max-width: 106px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muc-uid svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.muc-account-status {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #fff3ed;
  font-size: 11px;
  line-height: 1.4;
}

.muc-account-status::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #a9f3b5;
  box-shadow: 0 0 0 3px rgba(169, 243, 181, .2);
  content: "";
}

.muc-hidden-status,
.muc-hidden-time {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muc-section {
  margin: 0 20px 21px;
}

.muc-section > h3 {
  margin: 0 5px 10px;
  color: #9a9da3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.muc-list,
.muc-service-list,
.muc-edit-profile {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(28, 36, 49, .02);
}

.muc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 64px;
  gap: 16px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #fff;
  color: #252b35;
  font: inherit;
  font-size: 16px;
  text-align: left;
}

.muc-row:last-child {
  border-bottom: 0;
}

.muc-row-action {
  width: 100%;
  cursor: pointer;
}

.muc-row-action:hover {
  background: #fffaf7;
}

.muc-row-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 67%;
  gap: 7px;
  color: #666970;
  font-size: 15px;
  text-align: right;
  overflow-wrap: anywhere;
}

.muc-row-value.is-muted {
  color: #a6a9ae;
}

.muc-row-value svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #b7bbc0;
  stroke-width: 2;
}

.muc-contact-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muc-edit-profile {
  margin: -4px 20px 21px;
  padding: 16px 20px 19px;
}

.muc-edit-kicker {
  margin: 0 0 11px;
  color: #9a9da3;
  font-size: 13px;
}

.muc-profile-form {
  display: grid;
  gap: 12px;
}

.muc-profile-form label {
  display: grid;
  gap: 6px;
  color: #6c7078;
  font-size: 13px;
}

.muc-profile-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dfe2e6;
  border-radius: 9px;
  background: #fafbfc;
  color: #262b34;
  font: inherit;
  font-size: 15px;
  outline: 0;
}

.muc-profile-form input:focus {
  border-color: #ff7742;
  box-shadow: 0 0 0 3px rgba(255, 119, 66, .12);
}

.muc-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.muc-profile-actions button {
  min-width: 82px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.muc-profile-actions .primary-action {
  border: 0;
  background: #ff673d;
  color: #fff;
}

.muc-cancel-edit {
  border: 1px solid #e1e4e7;
  background: #fff;
  color: #686d75;
}

.muc-profile-form .mp-avatar-feedback,
.muc-profile-form [data-profile-saved] {
  color: #2a9366;
  font-size: 12px;
  line-height: 1.5;
}

.muc-profile-form .mp-avatar-feedback.is-error {
  color: #ce5548;
}

.muc-service-section {
  margin-top: 4px;
}

.muc-service-row {
  display: flex;
  width: 100%;
  align-items: center;
  min-width: 0;
  min-height: 65px;
  gap: 12px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #fff;
  color: #252b35;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.muc-service-row:last-child {
  border-bottom: 0;
}

.muc-service-row:hover {
  background: #fffaf7;
}

.muc-service-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.muc-service-row strong {
  overflow: hidden;
  color: #30343d;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muc-service-row small {
  overflow: hidden;
  color: #a0a4ab;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muc-service-row > svg:last-child {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #bcc0c5;
}

.muc-service-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 11px;
}

.muc-service-icon svg {
  width: 18px;
  height: 18px;
}

.muc-service-icon.is-green { background: #e8f8ef; color: #2f9a69; }
.muc-service-icon.is-orange { background: #fff0e8; color: #e47143; }
.muc-service-icon.is-blue { background: #eaf2ff; color: #4d7fca; }
.muc-service-icon.is-pink { background: #ffedf1; color: #db6279; }
.muc-service-icon.is-purple { background: #f2edff; color: #8465c6; }
.muc-service-icon.is-cyan { background: #e7f7f7; color: #288f9a; }
.muc-service-icon.is-slate { background: #edf0f4; color: #66758a; }

.muc-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: calc(100% - 40px);
  margin: 2px 20px 0;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #dc5c50;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.muc-logout:hover {
  background: #fff5f3;
}

.muc-logout svg {
  width: 18px;
  height: 18px;
}

.muc-avatar-tip {
  margin: 12px 20px 0;
  color: #a7aab0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.muc-avatar-feedback {
  margin: -10px 20px 18px;
  color: #267249;
  font-size: 13px;
  line-height: 1.5;
}

.muc-avatar-feedback.is-error {
  color: #b33428;
}

@media (max-width: 360px) {
  .muc-hero {
    margin-right: 16px;
    margin-left: 16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .muc-avatar-upload {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .muc-identity {
    gap: 11px;
  }

  .muc-identity-copy h1 {
    max-width: 155px;
    font-size: 21px;
  }

  .muc-section {
    margin-right: 16px;
    margin-left: 16px;
  }

  .muc-edit-profile {
    margin-right: 16px;
    margin-left: 16px;
  }

  .muc-row {
    padding-right: 16px;
    padding-left: 16px;
  }

  .muc-row-value {
    max-width: 62%;
    font-size: 14px;
  }

  .muc-logout {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .muc-avatar-tip {
    margin-right: 16px;
    margin-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .muc-row-action,
  .muc-service-row,
  .muc-logout,
  .muc-back {
    transition: none;
  }
}

/* Avoid the login-form flash when the mobile storefront revalidates a session. */
body[data-app="mall-mobile"] .member-account-loading {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px 16px;
  color: #697586;
  font-size: 14px;
  background: #fff;
}
/* The same membership entry is used by profile and storefront overview. */
body[data-app="mall-mobile"] .muc-level-link { display:flex;align-items:center;gap:5px;width:fit-content;max-width:100%;min-height:44px;color:#fff1cd;font-size:13px;text-decoration:none; }
body[data-app="mall-mobile"] .muc-level-link span { min-width:0;overflow-wrap:anywhere; }
body[data-app="mall-mobile"] .muc-level-link svg { width:16px;height:16px;flex:0 0 16px; }
body[data-app="mall-mobile"] a.mo-level { display:inline-flex;align-items:center;min-height:44px;text-decoration:none; }
