/* M5 PWA PREMIUM 1.3.22
   ONLY standalone -> OWN account settings (body class from account-view.js).
   POL.FAN web, other users' profiles, messages, payments and AJAX are untouched. */

/* Order already exists in USER PROFILE: featured strip -> profile cover ->
   profile layout. Hide only the profile chrome, preserving the original
   featured module, account settings (including VIP), modals and forms. */
body.m5pwa-account-simplified #media5-userprofile > .m5up-cover,
body.m5pwa-account-simplified #media5-userprofile .m5up-layout > .m5up-sidebar,
body.m5pwa-account-simplified #media5-userprofile .m5up-layout > .m5up-main > .m5up-tabs {
  display:none !important;
}
body.m5pwa-account-simplified #media5-userprofile .m5up-layout {
  display:block !important;
  grid-template-columns:minmax(0,1fr) !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  gap:0 !important;
}
body.m5pwa-account-simplified #media5-userprofile .m5up-layout > .m5up-main {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
body.m5pwa-account-simplified #media5-userprofile #m5up-ajax-panel,
body.m5pwa-account-simplified #media5-userprofile .m5up-settings-profile-view {
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

/* Reuse the existing real Polecane component, present before the profile.
   Adapt the strip into a full-width, tappable PWA card as in the screenshots. */
body.m5pwa-account-simplified .m5up-featured-strip {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:14px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 0 16px !important;
  padding:20px 19px !important;
  border:1px solid #d0dfed !important;
  border-radius:19px !important;
  background:linear-gradient(180deg,#fff 0%,#f4f9ff 100%) !important;
  box-shadow:0 5px 18px rgba(15,50,80,.06) !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-title {
  width:100% !important;
  min-width:0 !important;
  padding:0 0 12px !important;
  border:0 !important;
  border-bottom:1px solid #dce7f0 !important;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-title strong {
  font-size:21px !important;
  line-height:1.3 !important;
  letter-spacing:.3px;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-title span:not(.m5up-featured-star) {
  font-size:13px !important;
  line-height:1.45 !important;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-items {
  order:0 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:60px;
  flex:0 1 auto !important;
  display:flex;
  align-items:center;
  gap:10px !important;
  padding:10px 2px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  box-sizing:border-box !important;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-empty {
  display:block;
  width:100%;
  padding:10px 0 !important;
  color:#8093a5 !important;
  font-size:14px !important;
  line-height:1.45;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-actions {
  order:1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
}
body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-action {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:45px !important;
  padding:10px 12px !important;
  border-radius:13px !important;
  font-size:14px !important;
  font-weight:800 !important;
  background:#fff !important;
  box-sizing:border-box !important;
}
@media(max-width:460px) {
  body.m5pwa-account-simplified .m5up-featured-strip {padding:16px 15px !important;}
  body.m5pwa-account-simplified .m5up-featured-strip .m5up-featured-title strong {font-size:19px !important;}
}
