/* Scan instructions window: header, scrolling guide, footer that always shows Start Scanning */
#modalInstructions .modal-content {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  padding: 8px;
}

/* Centred in the area right of the sidebar, which is on screen above 950px */
@media (min-width: 951px) {
  #modalInstructions .modal-content {
    padding-left: calc(var(--gestic-sidebar-w) + 8px);
  }
}

#modalInstructions .scan-instructions-window {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(75vw, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
}

#modalInstructions .scan-instructions-guide {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#modalInstructions .scan-instructions-footer {
  flex: none;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

#modalInstructions #startScanning {
  height: 40px;
}

/* Phones: the window uses the full width */
@media (max-width: 600px) {
  #modalInstructions .scan-instructions-window {
    width: 100%;
  }
}
