﻿/* Important modal styles */
.aa-modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 9999;
    /* center horizontally only, keep original vertical/top placement */
    align-items: flex-start;
    justify-content: center;
    padding: 30px;
}

.aa-modal {
    background: #fff;
    max-width: 760px;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    border-radius: 2px;
    overflow: hidden;
}

    .aa-modal .aa-modal-header {
        background: #903; /* burgundy similar to site */
        color: #fff;
        padding: 20px 30px;
        font-family: "Lato Medium", "Lato", Arial, sans-serif;
        font-size: 22px;
        position: relative;
    }

    .aa-modal .aa-modal-close {
        position: absolute;
        right: 30px;
        top: 24px;
        color: #fff;
        text-decoration: underline;
        cursor: pointer;
        font-family: "Lato Medium", "Lato", Arial, sans-serif;
        font-size: 15px;
    }

    .aa-modal .aa-modal-body {
        /* Text styles requested */
        padding: 20px 30px;
        margin-right: auto;
        margin-left: auto;
        font-family: "Lato Regular", Arial, sans-serif;
        font-size: 18px;
        color: #000;
        /*line-height: 1.6;*/
    }
        /* Add vertical spacing between paragraphs inside modal body */
        .aa-modal .aa-modal-body p {
            margin: 0 0 18px;
        }

            .aa-modal .aa-modal-body p:last-child {
                margin-bottom: 0;
            }
        /* Links inside modal body: black and underlined; hover becomes red */
        .aa-modal .aa-modal-body a {
            color: #000;
            text-decoration: underline;
        }

            .aa-modal .aa-modal-body a:hover {
                color: #903;
                text-decoration: underline;
            }

    .aa-modal .aa-modal-footer {
        padding: 12px 24px 20px 30px;
        background: #fafafa;
        text-align: left;
    }

        .aa-modal .aa-modal-footer label {
            cursor: pointer;
        }
        /* Checkbox label styling */
        .aa-modal .aa-modal-footer label {
            margin-top: 10px;
            font-family: "Lato Medium", "Lato", Arial, sans-serif;
            font-size: 16px;
            cursor: pointer;
            position: relative;
            top: 2px; /* position label 2px lower than checkbox */
        }

    .aa-modal .aa-modal-checkbox {
        width: 18px;
        height: 18px;
        vertical-align: middle;
    }

@media (max-width: 480px) {
    .aa-modal {
        max-width: 100%;
    }

        .aa-modal .aa-modal-header {
            font-size: 16px;
        }
}
