/* ======================================================================
   V760 - Profile logout overflow fix
   Fixes legacy .logout-setting-row-v42 .setting-action padding-left:54px
   that can push the red logout button outside the right edge on mobile.
   ====================================================================== */
body.webshop-v759 #profile button.logout-setting-row-v42,
body.webshop-v759 #profile .profile-logout-card-v429,
body.webshop-v759 #profile .profile-logout-card-v42,
body.webshop-v759 #profile .profile-logout-card-v429 .settings-list,
body.webshop-v759 #profile .profile-logout-card-v42 .settings-list{
  box-sizing:border-box!important;
  max-width:100%!important;
}

body.webshop-v759 #profile button.logout-setting-row-v42{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
}

/* Critical override: old core-layout.css adds padding-left:54px!important. */
body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action{
  padding:0!important;
  padding-left:0!important;
  padding-right:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  overflow:hidden!important;
  transform:none!important;
  position:static!important;
  left:auto!important;
  right:auto!important;
}

body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
  box-sizing:border-box!important;
  margin:0!important;
  transform:none!important;
  position:static!important;
  flex:0 0 auto!important;
}

/* Match the normal action-column sizing used by the rows above. */
@media (min-width:431px){
  body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action,
  body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
  }
}

@media (max-width:430px){
  body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action,
  body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
    width:84px!important;
    min-width:84px!important;
    max-width:84px!important;
  }
}

@media (max-width:350px){
  body.webshop-v759 #profile button.logout-setting-row-v42{
    grid-template-columns:30px minmax(0,1fr) 68px!important;
  }
  body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action,
  body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
  }
}
