/* FPC Wire v2.3.1j2 — Embed Modal & Post Menu Repair */

.post-card,
.post-main,
.post-main > header{
  overflow:visible!important;
}

.post-safety-menu{
  position:relative!important;
  z-index:40!important;
}

.post-safety-menu[open]{
  z-index:2500!important;
}

.post-safety-menu > div{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:0!important;
  left:auto!important;
  width:min(240px,calc(100vw - 28px))!important;
  max-height:min(70dvh,440px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  z-index:2600!important;
  box-sizing:border-box!important;
}

.wire-embed-modal{
  width:min(680px,calc(100vw - 28px))!important;
  max-height:min(88dvh,820px)!important;
  padding:0!important;
  border:1px solid rgba(110,139,173,.4)!important;
  border-radius:18px!important;
  background:#091522!important;
  color:#eef5ff!important;
  box-shadow:0 30px 90px rgba(0,0,0,.7)!important;
  overflow:hidden!important;
  z-index:12000!important;
}

.wire-embed-modal[open]{
  display:block!important;
}

.wire-embed-modal::backdrop{
  background:rgba(0,0,0,.74)!important;
  backdrop-filter:blur(5px);
}

.wire-embed-modal form{
  display:flex!important;
  flex-direction:column!important;
  max-height:min(88dvh,820px)!important;
}

.wire-embed-modal header,
.wire-embed-modal footer{
  flex:0 0 auto!important;
}

.wire-embed-modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
}

@media(max-width:799px){
  .post-safety-menu > div{
    position:fixed!important;
    top:auto!important;
    right:10px!important;
    bottom:calc(78px + env(safe-area-inset-bottom))!important;
    left:10px!important;
    width:auto!important;
    max-height:min(58dvh,420px)!important;
  }

  .wire-embed-modal{
    width:calc(100vw - 18px)!important;
    max-height:90dvh!important;
  }
}
