/* Flatcast Chat V25 - ONLY desktop fullscreen alignment fix.
   Normal desktop V24 layout is intentionally untouched. */
@media (min-width: 992px) {
  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
    align-items: stretch !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen > .fc-chat-topbar,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen > .fc-chat-topbar,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen > .fc-chat-topbar {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen > .fc-chat-toolbar,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen > .fc-chat-toolbar,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen > .fc-chat-toolbar {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen > .fc-chat-body,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen > .fc-chat-body,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen > .fc-chat-body {
    display: contents !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen > .fc-chat-composer,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen > .fc-chat-composer,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen > .fc-chat-composer {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen .fc-chat-messages,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen .fc-chat-messages,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen .fc-chat-messages {
    grid-column: 1 !important;
    grid-row: 4 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen .fc-chat-sidebar,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen .fc-chat-sidebar,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen .fc-chat-sidebar {
    grid-column: 2 !important;
    grid-row: 3 / span 2 !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    width: 260px !important;
    max-width: 260px !important;
    min-width: 260px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
  }

  /* In fullscreen only, keep Send visibly inside the message column. */
  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen .fc-chat-sendbtn,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen .fc-chat-sendbtn,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen .fc-chat-sendbtn {
    margin-left: auto !important;
    margin-right: 52px !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen > .fc-desktop-eq-wrap,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen > .fc-desktop-eq-wrap,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen > .fc-desktop-eq-wrap {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
  }

  .fc-chat-shell.fc-chat-composer-top-desktop.is-fullscreen > .fc-chat-statusbar,
  .fc-chat-shell.fc-chat-composer-top-desktop:fullscreen > .fc-chat-statusbar,
  .fc-chat-shell.fc-chat-composer-top-desktop:-webkit-full-screen > .fc-chat-statusbar {
    grid-column: 1 / -1 !important;
    grid-row: 6 !important;
  }
}
