/* Brintage WEB R589 / Android V6.351 — mobile only.
   The editor uses the same bottom boundary as Next in photo selection.
   No changes to the desktop editor, photo selection, collage or export. */
@media(max-width:768px){
  /* The editor fills the complete #key, after the route-specific bottom reserve
     is temporarily released by create-post-mobile-viewport-r589.js. */
  #key > #createpost.pg.mobile-createpost.cp-brintage-toolbar-v2.cp-editor-step{
    position:absolute!important;
    top:0!important;bottom:0!important;left:0!important;right:0!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    box-sizing:border-box!important;
  }
  /* Exactly the same 10px bottom inset as the Siguiente action.  The entire
     share/save block is anchored, not just the blue button. */
  #key > #createpost.pg.mobile-createpost.cp-brintage-toolbar-v2.cp-editor-step > .mobile-cpb.pB.cp-bottom{
    position:absolute!important;
    top:auto!important;bottom:0!important;
    left:0!important;right:0!important;
    width:100%!important;max-width:100%!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;
    padding:5px var(--cp-r588-inline,10px) calc(10px + env(safe-area-inset-bottom,0px))!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-end!important;
    gap:8px!important;
    transform:none!important;
    border:0!important;
    background:linear-gradient(180deg,rgba(255,255,255,0),#fff 18%,#fff 100%)!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    z-index:8!important;
  }
  #key > #createpost.pg.mobile-createpost.cp-brintage-toolbar-v2.cp-editor-step > .mobile-cpb.pB.cp-bottom > .cp-cross-share{
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
  }
  #key > #createpost.pg.mobile-createpost.cp-brintage-toolbar-v2.cp-editor-step > .mobile-cpb.pB.cp-bottom > .publish-submit{
    flex:0 0 var(--cp-mobile-publish-height,47px)!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    width:100%!important;
    height:var(--cp-mobile-publish-height,47px)!important;
    margin:0!important;
  }
  /* Very short viewports retain the emergency scroll implemented by R588.
     The footer remains reachable above Android's safe navigation area. */
}
