/**
 * FPMT Event Feed Central — normalized presentation for imported event content.
 * Only loaded on imported MEC single-event pages.
 */

body.fpmt-efc-imported-event .fpmt-efc-normalized-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #2c3338 !important;
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content *,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content *::before,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content *::after {
    box-sizing: border-box;
}

/* Neutralize layout and background rules imported from another WordPress theme. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_row,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_row,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_column_container,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_column-inner,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_wrapper,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_text_column {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_column-inner {
    padding-top: 0 !important;
}

/* Remove spacer modules copied from the source design. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_empty_space {
    display: none !important;
    height: 0 !important;
}

/* Readable typography regardless of source theme colors. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content p,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content li,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content dd,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content dt,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content span:not(.vc_btn3):not(.mec-event-label-captions),
body.fpmt-efc-imported-event .fpmt-efc-normalized-content div:not(.vc_btn3-container) {
    color: #2c3338 !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content p {
    margin: 0 0 1em;
    font-size: 1em;
    line-height: 1.7;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content h1,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h2,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h3,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h4,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h5,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h6,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_custom_heading {
    clear: both;
    margin: 1.15em 0 0.55em !important;
    padding: 0 !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    line-height: 1.25 !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content h1 { font-size: clamp(1.65rem, 3vw, 2.15rem) !important; }
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important; }
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h3 { font-size: clamp(1.2rem, 2vw, 1.45rem) !important; }
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h4 { font-size: 1.15rem !important; }
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h5,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content h6 { font-size: 1rem !important; }

body.fpmt-efc-imported-event .fpmt-efc-normalized-content > :first-child,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_wrapper > :first-child {
    margin-top: 0 !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content ul,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content ol {
    margin: 0 0 1.2em 1.4em;
    padding: 0;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content li {
    margin-bottom: 0.45em;
    line-height: 1.6;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content strong,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content b {
    color: #20272d !important;
    font-weight: 700;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content a:not(.vc_btn3) {
    color: #176b70 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content a:not(.vc_btn3):hover,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content a:not(.vc_btn3):focus {
    color: #0e4f53 !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content img {
    max-width: 100% !important;
    height: auto !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_single_image {
    margin: 0 0 1.25em !important;
    text-align: left !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content blockquote {
    margin: 1.25em 0;
    padding: 0.8em 1em;
    border-left: 4px solid #176b70;
    background: #f5f8f8 !important;
    color: #2c3338 !important;
}

/* Keep WPBakery buttons usable after text-color normalization. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_btn3,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_btn3 span {
    color: #fff !important;
    text-decoration: none !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_btn3-container {
    margin: 1em 0 !important;
}

/* Source-theme decorative spans can otherwise create isolated letters or blocks. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .grve-bg-primary-1,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content [class*="bg-primary"] {
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content th,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content td {
    padding: 0.6em;
    border: 1px solid #d8dee3;
    color: #2c3338 !important;
}

@media (max-width: 767px) {
    body.fpmt-efc-imported-event .fpmt-efc-normalized-content {
        font-size: 16px;
        line-height: 1.65;
    }
}

/*
 * 0.2.4 — Full-content safeguard.
 * Some combinations of MEC, the active theme and imported WPBakery markup can
 * collapse the description height or place the export module before floated
 * source content has finished. These rules keep the complete description in
 * normal document flow and place MEC controls after it.
 */
body.fpmt-efc-imported-event .mec-single-event-description,
body.fpmt-efc-imported-event .mec-single-event-description .mec-events-content,
body.fpmt-efc-imported-event .mec-single-event-description .mec-event-content,
body.fpmt-efc-imported-event .mec-single-event .mec-events-content,
body.fpmt-efc-imported-event .mec-single-event .mec-event-content,
body.fpmt-efc-imported-event .mec-single-event .mec-event-description,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    clip: auto !important;
    -webkit-line-clamp: unset !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* Include floated/column content in the calculated height of the description. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content {
    display: flow-root !important;
    clear: both !important;
}

/* Imported page-builder grids are rendered as a clean single column in FPMT. */
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_row,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_row,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_column_container,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_column,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_column-inner,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_wrapper,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_text_column {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

body.fpmt-efc-imported-event .fpmt-efc-normalized-content::after,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .vc_row::after,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_row::after,
body.fpmt-efc-imported-event .fpmt-efc-normalized-content .wpb_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* MEC controls and event metadata must start after the full imported text. */
body.fpmt-efc-imported-event .mec-event-export-module,
body.fpmt-efc-imported-event .mec-events-meta-group-booking,
body.fpmt-efc-imported-event .mec-single-event .mec-event-export-module,
body.fpmt-efc-imported-event .mec-single-event .mec-events-meta-group-booking,
body.fpmt-efc-imported-event .mec-single-event .mec-event-meta,
body.fpmt-efc-imported-event .mec-single-event .mec-events-meta-group {
    clear: both !important;
    float: none !important;
    position: relative !important;
}
