/* Android support: stable visual order for the runtime-managed controls. */
@media (max-width: 760px) {
  html body.player-support-route #root .support-chat.standalone.conversation-active,
  html body.player-support-route.player-support-keyboard #root .support-chat.standalone.keyboard-active {
    grid-template-rows: auto minmax(180px, 1fr) auto auto auto !important;
  }

  html body.player-support-route #root .support-chat.standalone.conversation-active > .chat-messages {
    grid-row: 2 !important;
    align-content: start !important;
    align-items: start !important;
    gap: 10px !important;
  }

  html body.player-support-route #root .support-chat.standalone.conversation-active > footer:not(.support-keyboard-composer) {
    grid-row: 3 !important;
  }

  html body.player-support-route #root .support-chat.standalone.conversation-active > .human-handoff {
    grid-row: 4 !important;
    position: static !important;
    align-self: center !important;
  }

  html body.player-support-route #root .support-chat.standalone.conversation-active > .support-session-end-runtime {
    grid-row: 5 !important;
    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
    min-height: 42px !important;
    margin: 4px 12px 8px !important;
    align-self: center !important;
  }
}
