/* Shared presentation for signing notices; existing content and handlers stay intact. */
:is(#customAlertModal, #dashboardAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) :is(.custom-modal-box, .modal-body, .send-flow-card) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 0 0 32px !important;
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: none !important;
    text-align: center;
}
:is(#customAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) :is(.custom-modal-box, .send-flow-card),
#dashboardAlertModal .modal-dialog {
    width: min(290px, calc(100vw - 32px)) !important;
    max-width: 290px !important;
}
#dashboardAlertModal .modal-content { border: 0 !important; border-radius: 18px !important; overflow: hidden; box-shadow: none !important; }
:is(#customAlertModal, #dashboardAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) :is(h4, h2) {
    order: -2;
    box-sizing: border-box;
    width: 100%;
    min-height: 100px;
    margin: 0 !important;
    padding: 28px 16px 38px !important;
    background: linear-gradient(120deg, #7025df, #8954f8) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}
:is(#customAlertModal, #dashboardAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) :is(.custom-modal-icon, .dashboard-alert-icon, .send-success-badge, .editor-warning-icon) {
    order: -1;
    position: relative;
    flex: 0 0 62px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 62px !important;
    height: 62px !important;
    margin: -31px auto 28px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #803cff !important;
    box-shadow: 0 8px 20px #7936e833 !important;
    font-size: 34px !important;
    line-height: 1 !important;
}
:is(#customAlertModal, #dashboardAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) p {
    width: calc(100% - 48px);
    margin: 0 24px 40px !important;
    color: #888 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
}
:is(#customAlertModal, #dashboardAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) :is(.custom-modal-button, .ez-upload-choice, .send-flow-button) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% - 48px) !important;
    min-height: 44px !important;
    margin: 0 24px !important;
    padding: 8px 12px !important;
    border: 1px solid #e9e0ff !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #803cff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
:is(#customAlertModal, #dashboardAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay) button:focus-visible { outline: 2px solid #803cff; outline-offset: 3px; }
:is(#customAlertModal, #aiDetectionSuccessOverlay, #editorWarningOverlay),
body.dashboard-upload-choice-open:has(#dashboardAlertModal.show) .modal-backdrop {
    background: rgba(170, 116, 246, .5) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
}
#customAlertModal { padding: 16px 0; overflow-y: auto; }
