/* =============================================
   1. CRITICAL GHOST LINK & POINTER FIX
   ============================================= */
.brxe-popup-11778.brx-popup {
    pointer-events: none !important; 
}

.brxe-popup-11778 .brx-popup-content {
    pointer-events: auto !important; 
    padding-left:20px !important;
    padding-bottom:20px !important;
    background: transparent !important;
    display: flex !important;
    justify-content: flex-start !important; 
    align-items: flex-end !important;
    width: auto !important;
    max-width: 655px !important;
    height: auto !important;
}

/* 2. THE CARD */
.bricks-custom-popup-wrapper {
    position: relative;
    pointer-events: auto !important; 
    max-width: 655px !important;
    width: 100%;
    margin-left: 0px; 
    margin-bottom: 0px;
    font-family: var(--font-secondary);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.3);
    border-radius: 12px !important;
    background: #ffffff;
    /* Changed to visible to ensure X hit area isn't clipped */
    overflow: visible !important; 
}

.bcp-container {
    position: relative;
    display: flex;
    padding: 10px;
    width: 100%;
    overflow: visible; 
    border-radius: 12px;
}

.bcp-col-left {
    width: 50%;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    border-radius: 6px; 
}

.bcp-col-right {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0 6px 6px 0;
}

.brxe-text-page {
margin-top:130px;
}

/* =============================================
   3. TYPOGRAPHY, BUTTONS & CLOSE ICON
   ============================================= */
.bcp-heading {
    color: var(--color-primary);
    font-size: 1.2em;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.bcp-description {
    color: #000;
    font-size: 0.85em;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.bcp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bcp-button {
    display: inline-block !important;
    border-radius: 25px;
    padding: 8px 25px;
    color: #ffffff !important;
    background-color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85em;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.bcp-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    /* Increase hit area */
    padding: 10px;
    margin: -10px;
}

/* =============================================
   4. MOBILE RESPONSIVENESS
   ============================================= */
@media (max-width: 600px) {
    .brxe-popup-11778 .brx-popup-content,
    .bricks-custom-popup-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding-left: 10px !important; 
        padding-right: 10px !important;
        padding-bottom: 10px !important;
    }

    .bcp-col-left { display: none !important; }

    .bcp-col-right {
        width: 100% !important;
        padding: 40px 20px 30px 20px !important; 
        border-radius: 12px !important;
    }

    .bcp-actions { flex-direction: column; width: 100%; }
    .bcp-button { width: 100%; text-align: center; }
}