/* Wimmer Community V6.25.8 - mobil profil uden hop */
@media (max-width:980px){
  body.wc-page-profile{
    overflow-x:hidden;
  }
  body.wc-page-profile .layout{
    width:100%;
    max-width:100vw;
    overflow-x:hidden;
  }
  body.wc-page-profile .wc-profile-hero,
  body.wc-page-profile .profile-hero{
    contain:layout paint;
    overflow:hidden;
    transform:translateZ(0);
    margin-inline:0;
  }
  body.wc-page-profile .wc-profile-cover{
    height:170px!important;
    min-height:170px!important;
    max-height:170px!important;
    background-size:cover!important;
    background-position:center!important;
    background-attachment:scroll!important;
  }
  body.wc-page-profile .wc-profile-main{
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr)!important;
    gap:14px!important;
    align-items:start!important;
    min-width:0!important;
  }
  body.wc-page-profile .avatar.big{
    width:86px!important;
    height:86px!important;
    min-width:86px!important;
    min-height:86px!important;
    max-width:86px!important;
    max-height:86px!important;
    aspect-ratio:1/1!important;
    object-fit:cover!important;
    border-radius:24px!important;
  }
  body.wc-page-profile .wc-profile-info,
  body.wc-page-profile .wc-profile-info h1,
  body.wc-page-profile .wc-profile-info p,
  body.wc-page-profile .wc-profile-meta-row{
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body.wc-page-profile .wc-profile-info h1{
    font-size:clamp(28px,7vw,42px)!important;
    line-height:1.05!important;
  }
  body.wc-page-profile .wc-profile-meta-row{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  body.wc-page-profile .wc-profile-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    width:100%!important;
  }
  body.wc-page-profile .wc-profile-actions .btn,
  body.wc-page-profile .wc-profile-actions .secondary,
  body.wc-page-profile .wc-profile-actions button{
    min-height:40px!important;
    padding:9px 12px!important;
    font-size:13px!important;
  }
  body.wc-page-profile .wc-profile-invite-pro{
    contain:layout paint;
  }
  body.wc-page-profile .wc-profile-qr-mini .wc-profile-invite-qr img{
    width:104px!important;
    height:104px!important;
    aspect-ratio:1/1!important;
    object-fit:contain!important;
  }
}

@media (max-width:520px){
  body.wc-page-profile .wc-profile-cover{
    height:140px!important;
    min-height:140px!important;
    max-height:140px!important;
  }
  body.wc-page-profile .wc-profile-main{
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:12px!important;
  }
  body.wc-page-profile .avatar.big{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    min-height:72px!important;
    border-radius:20px!important;
  }
}


/* V6.26.0 - stærkere mobil profil stabilitet */
@media (max-width:980px){
  body.wc-page-profile{
    min-width:0!important;
    overflow-x:hidden!important;
    overscroll-behavior-x:none!important;
  }
  body.wc-page-profile .layout{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body.wc-page-profile .wc-profile-pro,
  body.wc-page-profile .wc-profile-pro-layout,
  body.wc-page-profile .wc-profile-main-column,
  body.wc-page-profile .wc-profile-side-column{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  body.wc-page-profile .wc-profile-pro .wc-profile-cover{
    background-attachment:scroll!important;
    transform:none!important;
    will-change:auto!important;
  }
  body.wc-page-profile .wc-profile-pro img{
    content-visibility:auto;
  }
  body.wc-page-profile details.wc-profile-qr-mini{
    overflow:hidden;
  }
}
