/*
 * Copyright (C) Pootle contributors.
 *
 * This file is a part of the Pootle project. It is distributed under the GPL3
 * or later license. See the LICENSE file for a copy of the license and the
 * AUTHORS file for copyright and authorship information.
 */

/*
 * POPUPS
 */

.popup-inline
{
    background-color: #fff;
    padding: 20px 30px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.popup-ajax .mfp-content,
.lightbox-body
{
    background-color: #fff;
    border-radius: 0.5em;
    width: auto !important;
    max-width: 920px !important;
    display: inline-block;
    margin: 1em 0;
}

.popup-ajax .popup-form,
.lightbox-body
{
    line-height: 1 !important;
}

/* MFP popus are next to the body, they need a bigger font-size */
.popup-ajax .popup-form
{
    font-size: 1.2em;
    padding: 2em 3em;
}

.lightbox-body
{
    font-size: 0.8em;
}

html[dir="rtl"] .lightbox-body
{
    text-align: right;
}

.popup-form h1,
.lightbox-body h1
{
    margin-bottom: 1em;
}

.popup-form p,
.lightbox-body p
{
    margin: 1em 0;
}

.popup-form textarea,
.lightbox-body textarea
{
    font-size: 1em;
    padding-left: 0.2em;
    padding-right: 0.2em;
}

.popup-form .buttons input,
.lightbox-body .buttons input
{
    margin: 0.3em 0 0;
}

.popup-form label,
.lightbox-body label
{
    display: block;
    color: rgba(0, 0, 0, 0.6);
}

/* for forms displayed in lightbox mode (via magnificPopup plugin), use different shadow */
.mfp-content .form
{
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
