/* Only the upload/progress modal. Viewer.css and the configurator stay unchanged. */
#processingModal {
    --bs-modal-margin: 0.75rem;
    font-size: 14px;
    line-height: 1.4;
    top: var(--am-progress-top, 0px);
    height: var(--am-progress-height, 100vh);
    height: var(--am-progress-height, 100dvh);
    overflow: hidden;
}
#processingModal .modal-dialog {
    width: calc(100% - 1.5rem);
    max-width: 420px !important; /* Override the legacy 20% width for this modal only. */
    min-width: 0;
    min-height: 0;
    height: calc(100% - 1.5rem);
    margin: 0.75rem auto;
}
#processingModal .modal-content {
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}
#processingModal .modal-header {
    flex: 0 0 auto;
    padding: 0.75em 1em;
}
#processingModal .modal-title {
    font-size: 1.2em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
#processingModal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1em;
    overflow-wrap: anywhere;
}
#processingModal .msg_status { font-size: 1em; line-height: 1.4; }
#processingModal .warning-text { font-size: 0.9em; margin: 0.75em 0; }
#processingModal .step-list { margin: 0; padding: 0; }
#processingModal .step-list li { font-size: 1em; padding: 0.25em 0; }
#processingModal .step-list li::before { width: 1.2em; height: 1.2em; }
#processingModal .spinner-border { width: 1.6em; height: 1.6em; }
#processingModal .btn {
    --bs-btn-font-size: 1em;
    font-size: 1em;
    line-height: 1.35;
    padding: 0.5em 0.75em;
    max-width: 100%;
    white-space: normal;
    margin-top: 0.4em;
}
#processingModal .final-buttons { margin-top: 0.75em; }
#processingModal .MsgNextStep { font-size: 0.95em; margin: 0.5em 0; }
#processingModal #am-upload-error { margin: 0.75em 0; }
@media (max-height: 450px) {
    #processingModal .modal-header { padding: 0.5em 1em; }
    #processingModal .modal-body { padding: 0.75em; }
}
