/*
 * Download email modal, YPUB-4073. Loaded by Document::view() on the document page only.
 *
 * Standalone, not a module of main.scss, so it needs no build. It does need its own entry in the
 * pure-s3 src list in Gruntfile.js -- that list names css files explicitly, and without the entry
 * assets_url_2() resolves to a release path with nothing behind it.
 *
 * Sizes are measured from the Figma desktop frame: card 639, text column 475, heading 39.
 */

#yp-download-email-modal #dem__title,
#yp-download-email-modal #dem__title-sent {
    font-size: 2.4375rem;
}

#yp-download-email-modal .modal-body {
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 576px) {
    #yp-download-email-modal .modal-dialog {
        max-width: 640px;
    }

    #yp-download-email-modal .modal-body {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/*
 * A disabled resend link has to look disabled, not just grey: while a resend runs or a cooldown
 * counts down it would otherwise still read as a link and get clicked again. YPUB-4184.
 */
#yp-download-email-modal #dem__resend:disabled,
#yp-download-email-modal #dem__submit:disabled {
    cursor: not-allowed;
}

#yp-download-email-modal #dem__resend:disabled {
    opacity: .6;
}

#yp-download-email-modal #dem__resend:disabled u {
    text-decoration: none;
}
