/* Wimmer Community V6.67.37 - Mobil nødtilstand uden blink
   Hård mobil-stabilisering til Android/Samsung. Rører ikke desktop.
*/
@media (max-width: 900px){
  html{
    overflow-x:hidden!important;
    scroll-behavior:auto!important;
    overscroll-behavior:none!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
    background:#06131f!important;
  }

  body{
    overflow-x:hidden!important;
    scroll-behavior:auto!important;
    overscroll-behavior:none!important;
    background:#06131f!important;
    background-image:none!important;
    background-attachment:scroll!important;
    background-position:center top!important;
    min-height:100svh!important;
    height:auto!important;
    transform:none!important;
    will-change:auto!important;
    contain:none!important;
  }

  *,
  *::before,
  *::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
    will-change:auto!important;
    backface-visibility:hidden!important;
  }

  body *,
  body *::before,
  body *::after{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
    perspective:none!important;
  }

  a:hover,
  button:hover,
  [class*="card"]:hover,
  [class*="shortcut"]:hover,
  [class*="tile"]:hover,
  [class*="post"]:hover,
  [class*="profile"]:hover{
    transform:none!important;
  }

  .layout,
  .app,
  .app-main,
  .app-content,
  main,
  section,
  article,
  aside,
  header,
  footer,
  nav,
  .card,
  [class*="card"],
  [class*="glass"],
  [class*="hero"],
  [class*="dashboard"],
  [class*="profile"],
  [class*="marketplace"],
  [class*="chat"],
  [class*="owner"],
  [class*="mobile"],
  [class*="panel"],
  [class*="modal"],
  [class*="sidebar"]{
    max-width:100vw!important;
    transform:none!important;
    animation:none!important;
    transition:none!important;
    will-change:auto!important;
    background-attachment:scroll!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
  }

  .card,
  [class*="card"],
  [class*="hero"],
  [class*="panel"],
  [class*="dashboard"],
  [class*="profile"],
  [class*="marketplace"],
  [class*="owner"]{
    box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
  }

  img,
  video,
  canvas,
  iframe,
  svg{
    max-width:100%!important;
    transform:none!important;
    animation:none!important;
    transition:none!important;
    will-change:auto!important;
  }

  body:not(.wc-chat-standalone-open) [style*="position: fixed"],
  body:not(.wc-chat-standalone-open) [class*="fixed"],
  body:not(.wc-chat-standalone-open) [class*="sticky"]{
    transform:none!important;
    will-change:auto!important;
  }

  body.wc-chat-standalone-open{
    height:100svh!important;
    min-height:100svh!important;
    max-height:100svh!important;
    overflow:hidden!important;
    background:#06131f!important;
  }

  body.wc-chat-standalone-open .wc-chat-mega,
  body.wc-chat-standalone-open .wc-chat-panel,
  body.wc-chat-standalone-open [class*="chat"]{
    height:auto!important;
    max-height:100svh!important;
    transform:none!important;
    animation:none!important;
    transition:none!important;
  }

  textarea,
  input,
  select,
  button{
    transform:none!important;
    animation:none!important;
    transition:none!important;
    font-size:16px!important;
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}


/* V6.67.38 - statisk mobiltilstand uden JS-loop */
@media (max-width:900px){
  html.wc-mobile-static-mode,
  html.wc-mobile-static-mode body,
  html.wc-mobilebot-js-disabled,
  html.wc-mobilebot-js-disabled body{
    overflow-x:hidden!important;
    scroll-behavior:auto!important;
    background:#06131f!important;
  }

  html.wc-mobile-static-mode body *,
  html.wc-mobilebot-js-disabled body *{
    animation:none!important;
    transition:none!important;
  }

  /* Stop små fixed/floating elementer fra at trigge repaint-loop på mobil */
  html.wc-mobile-static-mode body:not(.wc-chat-standalone-open) .floating-chat,
  html.wc-mobile-static-mode body:not(.wc-chat-standalone-open) .wc-floating-chat,
  html.wc-mobile-static-mode body:not(.wc-chat-standalone-open) [class*="floating"],
  html.wc-mobile-static-mode body:not(.wc-chat-standalone-open) [class*="pulse"]{
    animation:none!important;
    transition:none!important;
    transform:none!important;
    will-change:auto!important;
  }
}
