/* Styling for restricted content (Shortcode approach) */
.mcr-restricted-content.mcr-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.mcr-container {
    position: relative;
    overflow: hidden;
}

.mcr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 250px;
}

.mcr-login-prompt .mcr-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000625;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.mcr-login-prompt .mcr-btn:hover {
    background: #000000;
}

/* Styling for specific Divi/Bricks classes based on user HTML (DOM manipulation approach) */
.mcr-blurred-enforced {
    filter: blur(8px) !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* Fallback to ensure blur is always applied for non-logged in guests on these specific elements if JS fails */
body:not(.logged-in) .brxe-block.card .blur-layer {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

body:not(.logged-in) .brxe-block.card .unlock-notice {
    display: flex !important;
}

body.logged-in .brxe-block.card .unlock-notice {
    display: none !important;
}

/* Modal Overlay Styling */
.mcr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mcr-modal-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.mcr-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.mcr-close-modal:hover {
    color: #ff0000;
}

.mcr-modal-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.mcr-modal-container p {
    margin-bottom: 20px;
}

.mcr-modal-container form p {
    margin-bottom: 10px;
}
