/**
 * @file
 * The floating map panel (templates/biopama-map-panel.html.twig): a region
 * item that shrinks with its region and scrolls inside.
 */

.biopama-map-panel,
.biopama-map-panel-body,
.biopama-map-panel-scroll {
  min-height: 0;
}

/* A flex column only while shown: a d-flex utility would defeat the collapse. */
.biopama-map-panel-body.show {
  display: flex;
  flex-direction: column;
}

/* Not the overflow-y-auto utility: it is !important and would beat
   Bootstrap's .collapsing { overflow: hidden }, flashing a scrollbar during
   the minimise animation. */
.biopama-map-panel-body:not(.collapsing) > .biopama-map-panel-scroll {
  overflow-y: auto;
}
