/* F24 R25.1 A3 — additive presentation repair only */

.f24-main-header{
  z-index:180!important;
  overflow:visible!important;
}

.f24-main-header > div{
  overflow:visible!important;
}

.f24-main-header [data-f24-account-mode]{
  position:relative;
  z-index:190;
}

.f24-admin-return{
  position:relative;
  z-index:190;
}

/* Keep existing composer/send/attachment logic visible on phones. */
@media(max-width:767px){

  .f24-messages-panel-card{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
  }

  .f24-chat-thread-pane{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  .f24-chat-message-list{
    flex:0 1 auto!important;
    min-height:96px!important;
    height:auto!important;
    max-height:34dvh!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
}

/* Existing Marketplace actions only — no duplicate handlers. */
@media(max-width:639px){

  .f24-market-mobile-nav{
    overflow:visible!important;
    z-index:125!important;
  }

  .f24-market-mobile-nav > button[aria-label]{
    position:absolute!important;

    left:auto!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(100% + 9px)!important;

    width:calc(50vw - 12px)!important;
    min-width:0!important;
    min-height:46px!important;
    height:auto!important;

    padding:7px 9px!important;

    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;

    border-radius:999px!important;

    background:#6d28d9!important;
    color:#fff!important;

    font-size:10.5px!important;
    line-height:1.15!important;
    font-weight:900!important;

    white-space:normal!important;

    opacity:1!important;
    visibility:visible!important;

    z-index:135!important;
  }

  .f24-market-mobile-nav > button[aria-label]::after{
    content:attr(aria-label);
    display:block;
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .f24-owner-launcher-mobile{
    position:fixed!important;

    left:8px!important;
    right:auto!important;
    top:auto!important;

    bottom:
      calc(
        78px +
        env(safe-area-inset-bottom,0px)
      )!important;

    width:calc(50vw - 12px)!important;
    min-width:0!important;
    min-height:46px!important;

    padding:7px 9px!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    border:1px solid #ddd6fe!important;
    border-radius:999px!important;

    background:#fff!important;
    color:#6d28d9!important;

    font-size:10.5px!important;
    line-height:1.15!important;
    font-weight:900!important;

    white-space:normal!important;

    opacity:1!important;
    visibility:visible!important;

    z-index:135!important;
  }
}
