/* Keep DiviFlash's mobile filter controls usable when active tokens wrap. */
.lm-df-mobile-trigger-label {
    display: none !important;
}

@media only screen and (min-width: 768px) {
    /* Divi sets overflow-y:hidden on this wrapper. That makes it the sticky
       containing block even though the document, not the wrapper, scrolls. */
    body #page-container {
        overflow: visible !important;
    }

    .difl_cptfilter .df_cptfilter_container.df_filter_sidebar > .filter_section.difl_cpt_sticky_filter_on {
        position: sticky !important;
        align-self: flex-start !important;
        height: max-content;
    }
}

@media only screen and (max-width: 767px) {
    .difl_cptfilter .df_cptfilter_container .filter_section.difl_cpt_sticky_filter_on {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp {
        align-items: center !important;
        margin-right: auto !important;
        margin-bottom: 1rem !important;
        margin-left: auto !important;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp::after {
        content: "" !important;
        padding-right: 0 !important;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp::before {
        display: inline-flex;
        align-self: center;
        align-items: center;
        justify-content: center;
        padding: 0 0 0 10px !important;
        font-size: 26pt !important;
        line-height: 1 !important;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp > .lm-df-mobile-trigger-label {
        display: inline-block !important;
        padding: 5px 10px 5px 0;
        color: #914242 !important;
        font-family: "Oswald", sans-serif !important;
        font-size: 24pt !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        cursor: pointer;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp_cls > .lm-df-mobile-trigger-label {
        display: none !important;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp_cls,
    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp_cls.difl_cpt_sticky_filter_on {
        position: fixed !important;
        inset: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background-color: var(--lm-df-panel-background, #eacfc9) !important;
        background-image: none !important;
        z-index: 9999999 !important;
        overscroll-behavior: contain;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp_cls .filter_wrapper {
        position: absolute !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        background-color: inherit !important;
        background-image: none !important;
    }

    .difl_cptfilter .df_phn_resp_cls .difl_filter_short_desc_card_header {
        position: relative !important;
        top: auto !important;
        flex: 0 0 auto;
        max-height: none;
        min-height: 60px;
        overflow: visible;
        background-color: inherit !important;
    }

    .difl_cptfilter .df_phn_resp_cls .difl_filter_short_desc_card_header .filter_elements {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .difl_cptfilter .df_phn_resp_cls .difl_filter_short_desc_card_header .filter_element_card {
        flex: 0 0 auto;
    }

    .difl_cptfilter .df_cptfilter_container .filter_section.df_phn_resp_cls .filter_field_wrapper {
        flex: 1 1 0;
        height: 0;
        min-height: 0 !important;
        overflow-x: hidden;
        overflow-y: scroll !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .difl_cptfilter .df_phn_resp_cls label.checkbox_content,
    .difl_cptfilter .df_phn_resp_cls label.checkbox_content .checkmark {
        touch-action: manipulation;
    }

    .difl_cptfilter .df_phn_resp_cls .difl_filter_short_desc_card {
        position: relative !important;
        bottom: auto !important;
        flex: 0 0 auto;
        box-sizing: border-box;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}
