/* Zakupki v1.9.30 — mobile chat keyboard behavior.
   The chat is a normal page block when the keyboard is closed.
   While the keyboard is open, ONLY the composer floats directly above it. */

.v1930-chat-compose-spacer{display:block;width:100%;pointer-events:none}

@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:1280px){
  /* Neutralize any old "chat follows viewport" assumptions: feed stays inside the normal document flow. */
  #discussion.v1916-chat-section{position:static!important;overflow:visible!important}
  .v1916-chat-feed{max-height:min(420px,46dvh)!important}

  #chatForm.v1930-keyboard-floating{
    position:fixed!important;
    left:var(--v1930-compose-left,6px)!important;
    width:var(--v1930-compose-width,calc(100vw - 12px))!important;
    right:auto!important;
    bottom:calc(var(--v1930-keyboard-inset,0px) + 2px)!important;
    top:auto!important;
    z-index:2500!important;
    margin:0!important;
    box-sizing:border-box!important;
    max-height:min(42vh,280px)!important;
    overflow:visible!important;
    box-shadow:0 8px 28px rgba(9,24,44,.24)!important;
  }

  /* The actual typed text remains readable; only the hint stays compact. */
  #chatForm.v1930-keyboard-floating .v1916-compose-main textarea{
    max-height:88px!important;
  }
}
