/*!
 * MVN account, users and security pages: what the system (mvn-ui.css) does not cover yet.
 * Scoped to this group's pages, tokens only; to be folded into mvn-ui.css by the integrator.
 */

/* clientareaemails: a sent e-mail opens in a modal (#mvnMailModal), in an iframe that keeps the
   e-mail's own styles. Lagom's .modal-dialog is a flex row that sizes its content to what is
   inside, and an iframe has no width of its own, so the dialog and its content take the full
   width the dialog may have (mvn-ui.css caps .modal-lg);
   the frame takes most of the window's height, the modal's head and margins the rest. */
html.mvn-ui body.page-clientareaemails #mvnMailModal .modal-content {
    width: 100%;
}
/* Beside the phone breakpoint of mvn-ui.css section 9, the dialog itself is as wide as allowed. */
@media (min-width: 600px) {
    html.mvn-ui body.page-clientareaemails #mvnMailModal .modal-dialog {
        width: 100%;
    }
}
html.mvn-ui body.page-clientareaemails .mvn-mail-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 4 * var(--mvn-s-8));
    min-height: calc(4 * var(--mvn-s-8));
    border: 0;
    background: var(--mvn-paper);
}

/* includes/verifyemail.tpl, includes/validateuser.tpl: the two notices above the page head can
   both show; the second keeps a small gap from the first (the validation modal sits between them). */
html.mvn-ui .verification-banner ~ .verification-banner .mvn-alert {
    margin-block-start: var(--mvn-s-2);
}
