
/* ==========================================
   Lubrano Custom Popup System
   ========================================== */

/* Prevent background page scrolling */
body.lc-popup-open {
    overflow: hidden;
}

/* Dark background overlay */
.lc-popup-overlay {
    position: fixed;
    z-index: 2147483000;

    /* Position below website header */
    top: 115px;
    right: 0;
    bottom: 0;
    left: 0;

    background: rgba(0, 0, 0, 0.62);

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 15px 0 25px;
    box-sizing: border-box;
}

/* Main modal window */
.lc-popup-dialog {
    width: 80vw;
    max-width: none;

    max-height: calc(100vh - 155px);
    max-height: calc(100dvh - 155px);

    background: #fff;
    color: #303030;

    border-radius: 6px;
    box-shadow: 0 14px 55px rgba(0, 0, 0, 0.3);

    display: flex;
    flex-direction: column;

    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
}

/* Orange title bar */
.lc-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    background: #ff9900;
    color: #fff;

    padding: 12px 20px;
    flex-shrink: 0;
}

.lc-popup-header h2 {
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 19px !important;
    line-height: 1.4 !important;
}

/* Close button */
.lc-popup-close {
    cursor: pointer;

    font: 30px/1 Arial, sans-serif;

    background: transparent;
    border: 0;
    color: #fff;

    padding: 0 4px;
}

.lc-popup-close:hover,
.lc-popup-close:focus-visible {
    color: #333;
}

/* ==========================================
   Popup Content
   ========================================== */

.lc-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;

    overflow-x: hidden !important;
    overflow-y: auto;

    padding: 22px 25px;

    font-size: 15px;
    line-height: 1.65;

    box-sizing: border-box;
    overscroll-behavior: contain;
}

/* Prevent content from exceeding modal width */
.lc-popup-body,
.lc-popup-body * {
    box-sizing: border-box;
}

.lc-popup-body > *,
.lc-popup-body p,
.lc-popup-body div {
    max-width: 100%;
}

.lc-popup-body p {
    margin: 0 0 1em;
}

.lc-popup-body p:last-child {
    margin-bottom: 0;
}

.lc-popup-body img {
    max-width: 100%;
    height: auto;
}

/* Wrap long words and links */
.lc-popup-body {
    overflow-wrap: anywhere;
}

/* ==========================================
   Neutralize Bridge Theme Page Layout
   inside the popup only
   ========================================== */

/* Hide duplicate page-title area */
.lc-popup-body .title_outer,
.lc-popup-body .title_subtitle_holder {
    display: none !important;
}

/* Remove Bridge page spacing */
.lc-popup-body .content,
.lc-popup-body .content_inner,
.lc-popup-body .container,
.lc-popup-body .container_inner,
.lc-popup-body .full_width,
.lc-popup-body .wpb_wrapper {
    width: 100% !important;
    max-width: 100% !important;

    min-height: 0 !important;

    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    float: none !important;
    position: static !important;
}

/* Keep WPBakery content within modal width */
.lc-popup-body .vc_row,
.lc-popup-body .vc_column_container,
.lc-popup-body .wpb_column {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ==========================================
   Popup Triggers
   ========================================== */

a.custom-popup-trigger {
    cursor: pointer;
}

/* ==========================================
   Mobile Responsive
   ========================================== */

@media (max-width: 600px) {

    .lc-popup-overlay {
        top: 75px;
        padding: 10px 0;
    }

    .lc-popup-dialog {
        width: 94vw;
        max-height: calc(100vh - 95px);
        max-height: calc(100dvh - 95px);
    }

    .lc-popup-header {
        padding: 10px 14px;
    }

    .lc-popup-header h2 {
        font-size: 17px !important;
    }

    .lc-popup-body {
        padding: 16px;
        font-size: 14px;
    }
}
