/**
 * Joomill Secure Messages
 *
 * @copyright   Copyright (c) 2026 Jeroen Moolenschot | Joomill
 * @license     GNU General Public License version 3 or later
 * @link        https://www.joomill-extensions.com
 */

/* Secure Messages styles. */

/*
 * Framework-independent fallbacks, scoped to our own containers: Bootstrap
 * templates style .alert/.d-none themselves, UIkit templates style the
 * uk-alert-* classes, and these rules cover everything else.
 */
#secure-message-create-app .d-none,
.secure-message-card .d-none {
    display: none !important;
}

#secure-message-create-app .alert,
.secure-message-card .alert {
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

/*
 * The revealed plaintext panel. The card/uk-card classes style it on Bootstrap
 * and UIkit templates; these rules keep it presentable on any other template
 * and preserve the message's own line breaks.
 */
.secure-message-revealed {
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 0.375rem;
    padding: 1.25rem;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}
