/* Modal Gate — locked login overlay. Same visual language as Media Surveys
   SA's [msa_auth_modal] (purple header band, white rounded card, pill
   buttons), narrowed down since there's only a single login panel. */

body.mg-modal-active {
    overflow: hidden;
}

.mg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .65);
    padding: 60px 1rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.mg-modal-overlay.mg-modal-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg-modal-box {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    overflow: hidden;
    box-sizing: border-box;
}

.mg-modal-header {
    flex: 0 0 auto;
    background: #32174C;
    padding: 1rem 2rem;
}

.mg-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.mg-modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.5rem 2rem 2rem;
}

.mg-modal-intro {
    margin: 0 0 1.25rem;
    font-size: .95rem;
    line-height: 1.6;
    color: #444;
}

/* ── Notices ──────────────────────────────────────────────── */

.mg-notice {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: .95rem;
    line-height: 1.6;
    background: #fdf3f3;
    border-left: 4px solid #dc3545;
}

/* ── Buttons ──────────────────────────────────────────────── */

/* !important throughout: themes/page builders commonly ship a more specific
   or later-loaded `button` selector that otherwise wins over a single-class
   rule like this one. */
.mg-btn {
    display: inline-block !important;
    padding: .75rem 2rem !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: opacity .15s;
}

.mg-btn:hover,
.mg-btn:focus,
.mg-btn:active {
    opacity: .85;
    text-decoration: none !important;
}

.mg-btn-primary {
    background: #32174C !important;
    color: #fff !important;
}
