/* Zakupki v1.9.32 — strict mobile keyboard gate for chat composer.
   The composer belongs to the chat in normal browsing. It may float only while
   v1_9_32.js has positively detected a real on-screen keyboard. */

@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:1280px){
  /* v1.9.30 may occasionally misread browser chrome as a keyboard. If the
     stricter v1.9.32 detector has not confirmed a keyboard, neutralize every
     floating style even if the older class is still present. */
  html:not(.v1932-real-keyboard-open) #chatForm.v1930-keyboard-floating{
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    z-index:auto!important;
    margin:12px 0 0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    box-shadow:0 4px 15px rgba(23,45,75,.07)!important;
  }
  html:not(.v1932-real-keyboard-open) .v1930-chat-compose-spacer{
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  :root[data-theme="dark"] html:not(.v1932-real-keyboard-open) #chatForm.v1930-keyboard-floating,
  :root[data-theme="dark"] #chatForm.v1930-keyboard-floating:not(.v1932-force-shadow){box-shadow:none!important}
}

@media (prefers-color-scheme:dark){
  @media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:1280px){
    :root[data-theme="system"] html:not(.v1932-real-keyboard-open) #chatForm.v1930-keyboard-floating,
    :root[data-theme="system"] #chatForm.v1930-keyboard-floating:not(.v1932-force-shadow){box-shadow:none!important}
  }
}
