/* =========================================================
   EKL UNIVERSAL MOBILE / TABLET SECTION DRAWER
   v1.6
   ========================================================= */

.ekl-mobile-section-drawer {
    position: fixed;
    inset: 0;
    z-index: 99997;

    visibility: hidden;
    pointer-events: none;
}

.ekl-mobile-section-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.ekl-mobile-section-backdrop {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: rgba(10, 24, 31, 0.46) !important;
    box-shadow: none !important;

    opacity: 0;

    transition: opacity 220ms ease;
}

.ekl-mobile-section-drawer.is-open .ekl-mobile-section-backdrop {
    opacity: 1;
}

body.ekl-section-drawer-open {
    overflow: hidden !important;
}


/* =========================================================
   TABLET + MOBILE DRAWER MODE
   ========================================================= */

@media (max-width: 1024px) {

    /*
     * The existing page rail becomes the drawer.
     */
    .page-rail-wrapper.is-mobile-drawer-open {
        display: flex !important;
        flex-direction: column !important;

        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;

        z-index: 99998 !important;

        width: 360px !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;

        height: 100% !important;
        max-height: 100% !important;

        box-sizing: border-box !important;

        padding: 0 !important;
        margin: 0 !important;

        background: #f3efe5 !important;

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

        visibility: visible !important;
        opacity: 1 !important;

        align-self: auto !important;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .page-rail-wrapper.is-mobile-drawer-open::-webkit-scrollbar {
        display: none;
    }


    /* ---------------------------------------------------------
       DRAWER HEADER - INSIDE THE REAL RAIL
       --------------------------------------------------------- */

    .page-rail-wrapper.is-mobile-drawer-open
    .ekl-mobile-rail-drawer-header {
        --ekl-drawer-section-color: #3E6D6F;

        position: sticky !important;
        top: 0 !important;

        z-index: 100001 !important;

        flex: 0 0 64px !important;

        width: 100% !important;
        min-height: 64px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        box-sizing: border-box !important;

        padding: 0 18px !important;
        margin: 0 !important;

        background: var(--ekl-drawer-section-color) !important;
        color: #ffffff !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open
    .ekl-mobile-section-panel-title {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        font-family: "Manrope", sans-serif !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: 0.01em !important;

        color: #ffffff !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open
    .ekl-mobile-section-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 48px !important;

        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;

        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        box-shadow: none !important;

        color: #ffffff !important;

        opacity: 1 !important;
        visibility: visible !important;

        cursor: pointer;
    }

    .page-rail-wrapper.is-mobile-drawer-open
    .ekl-mobile-section-close svg,
    .page-rail-wrapper.is-mobile-drawer-open
    .ekl-mobile-section-close svg * {
        stroke: #ffffff !important;
    }


    /* ---------------------------------------------------------
       SAVED ELEMENTOR RAIL
       --------------------------------------------------------- */

    .page-rail-wrapper.is-mobile-drawer-open > .elementor-widget-template,
    .page-rail-wrapper.is-mobile-drawer-open > .elementor-widget-template > .elementor-widget-container,
    .page-rail-wrapper.is-mobile-drawer-open .elementor-template,
    .page-rail-wrapper.is-mobile-drawer-open .elementor-template > .elementor,
    .page-rail-wrapper.is-mobile-drawer-open .ekl-rail-default {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open .rail-top-info {
        display: none !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open .rail-heading {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;

        padding-left: 24px !important;
        padding-right: 24px !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open .rail-heading h1,
    .page-rail-wrapper.is-mobile-drawer-open .rail-heading h2,
    .page-rail-wrapper.is-mobile-drawer-open .rail-heading h3,
    .page-rail-wrapper.is-mobile-drawer-open .rail-heading h4,
    .page-rail-wrapper.is-mobile-drawer-open .rail-heading h5,
    .page-rail-wrapper.is-mobile-drawer-open .rail-heading h6,
    .page-rail-wrapper.is-mobile-drawer-open .rail-heading .elementor-heading-title {
        font-size: 21px !important;
        line-height: 1.15 !important;
        margin-top: 0 !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open .ekl-rail-default a,
    .page-rail-wrapper.is-mobile-drawer-open .ekl-rail-default p,
    .page-rail-wrapper.is-mobile-drawer-open .ekl-rail-default li,
    .page-rail-wrapper.is-mobile-drawer-open .ekl-rail-default .elementor-widget-text-editor,
    .page-rail-wrapper.is-mobile-drawer-open .ekl-rail-default .e-n-menu-title-text {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    .page-rail-wrapper.is-mobile-drawer-open .elementor-sticky,
    .page-rail-wrapper.is-mobile-drawer-open .elementor-sticky--active,
    .page-rail-wrapper.is-mobile-drawer-open [style*="position: sticky"] {
        position: static !important;
        top: auto !important;
        width: auto !important;
    }
}


@media (min-width: 1025px) {
    .ekl-mobile-section-drawer {
        display: none !important;
    }
}


@media (prefers-reduced-motion: reduce) {
    .ekl-mobile-section-backdrop {
        transition: none;
    }
}
