.elementor-4278 .elementor-element.elementor-element-1fb2f50{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-a513e20 */ /* ================================
   MODAL BASE (DO NOT BREAK BG)
================================ */
.premium-modal-box-modal {
    position: fixed !important;
    inset: 0;
    z-index: 9999 !important;
}

/* ================================
   TRANSPARENT WHITE OVERLAY (RESTORED)
================================ */
.premium-modal-box-modal::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75) !important;
    z-index: 0 !important;
}

/* Keep content above overlay */
.premium-modal-box-modal-dialog,
.premium-modal-box-modal-body {
    position: relative !important;
    z-index: 1 !important;
}

/* ================================
   MODAL BODY – CENTER PDF
================================ */
.premium-modal-box-modal-body {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
}

/* ================================
   DEARFLIP / PDF
================================ */
.df-bg,
.df-viewer-container,
.df-viewer,
.df-container {
    width: 90vw !important;
    max-width: 1100px !important;
    height: 80vh !important;
    max-height: 80vh !important;
    background: transparent !important;
}

/* ================================
   CLOSE BUTTON – RIGHT OF PDF
================================ */
.premium-modal-box-modal-header {
    position: fixed !important;

    /* Vertical alignment with PDF */
    top: 50% !important;
    transform: translateY(-50%) !important;

    /* Place next to PDF (not screen corner) */
    right: calc((100vw - 1100px) / 2 - 24px) !important;

    background: transparent !important;
    padding: 0 !important;
    z-index: 100000 !important;
}

/* Close button style */
.premium-modal-box-modal-header button,
.premium-modal-box-modal-header .premium-modal-box-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 22px !important;
    line-height: 44px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: none !important;
    cursor: pointer !important;
}

/* ================================
   MOBILE SAFETY
================================ */
@media (max-width: 768px) {
    .premium-modal-box-modal-header {
        right: 12px !important;
        top: 18% !important;
        transform: none !important;
    }

    .df-bg,
    .df-viewer-container,
    .df-viewer,
    .df-container {
        width: 100% !important;
        height: auto !important;
        min-height: 60vh !important;
    }
} /* End custom CSS */