/**
 * Dual Panel Menu – Styles
 *
 * Layout: two-column flex with a vertical divider.
 * The right column (submenu) + divider are hidden by default and appear
 * when a left-column item with children is activated (class `dpm-expanded`).
 * Both columns share equal width (50/50) when expanded.
 *
 * @package DualPanelMenu
 */

/* ================================================================== */
/*  Wrapper & inner layout                                             */
/* ================================================================== */

.dpm-wrapper {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.dpm-wrapper *,
.dpm-wrapper *::before,
.dpm-wrapper *::after {
    box-sizing: inherit;
}

.dpm-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0 !important;  /* collapsed: no gap when right column is hidden */
}

.dpm-wrapper.dpm-expanded .dpm-inner {
    gap: 32px !important; /* restored when expanded; Elementor selector can override */
}

/* ================================================================== */
/*  Left column (tab list)                                             */
/* ================================================================== */

.dpm-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 100% !important; /* collapsed: take full width */
    min-width: 0;
}

/* When expanded, share space equally with the right column. */
.dpm-wrapper.dpm-expanded .dpm-left {
    flex: 1 1 0% !important;
}

/* Shared styles for both <button> and <a> left items.
   Override Elementor/theme reset.css button styles (pink bg, border-radius). */
.dpm-left-item,
.dpm-left-item:hover,
.dpm-left-item:focus,
.dpm-left-item:active,
.dpm-left-item.is-active {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    border: none;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    font: inherit;
    color: inherit;
    transition-property: color, opacity;
    /* duration / easing injected by inline <style> per instance */
}

.dpm-left-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Active underline indicator ───────────────────────────────────── */

.dpm-left-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.dpm-left-item.is-active::after {
    transform: scaleX(1);
}

/* ================================================================== */
/*  Divider                                                            */
/* ================================================================== */

.dpm-divider {
    flex: 0 0 0 !important; /* collapsed: no space */
    align-self: stretch;
    width: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1), visibility 0.3s, width 0.3s, flex 0.3s;
    /* color set via Elementor selectors */
}

.dpm-wrapper.dpm-expanded .dpm-divider {
    flex: 0 0 2px !important;
    width: 2px;
    visibility: visible;
    opacity: 1;
}

/* ================================================================== */
/*  Right column (panels)                                              */
/* ================================================================== */

.dpm-right {
    position: relative;
    flex: 0 0 0 !important; /* collapsed: no space */
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.dpm-wrapper.dpm-expanded .dpm-right {
    flex: 1 1 0% !important; /* expanded: share equally */
    overflow: visible;
}

.dpm-right .dpm-panel {
    visibility: hidden;
    opacity: 0;
}

.dpm-wrapper.dpm-expanded .dpm-right .dpm-panel.is-active {
    visibility: visible;
    opacity: 1;
}

/* ================================================================== */
/*  Panel state                                                        */
/* ================================================================== */

.dpm-panel {
    display: none;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1), visibility 0.3s;
}

.dpm-panel.is-active {
    display: block;
    visibility: hidden;
    opacity: 0;
}

.dpm-wrapper.dpm-expanded .dpm-panel.is-active {
    visibility: visible;
    opacity: 1;
}

/* ================================================================== */
/*  Panel lists                                                        */
/* ================================================================== */

.dpm-panel-list,
.dpm-panel-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dpm-panel-sublist {
    padding-left: 16px;
}

.dpm-panel-item a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    transition-property: color;
    transition-duration: 200ms;
}

.dpm-panel-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ================================================================== */
/*  Empty panel placeholder                                            */
/* ================================================================== */

.dpm-panel-empty {
    opacity: 0.5;
    padding: 8px 0;
    margin: 0;
}

/* ================================================================== */
/*  Left-column group (wraps item + mobile submenu)                    */
/* ================================================================== */

.dpm-left-group {
    width: 100%;
}

/* ================================================================== */
/*  Mobile inline submenu (hidden on desktop)                          */
/* ================================================================== */

.dpm-mobile-sub {
    display: none;        /* hidden by default; shown when .dpm-mobile + .is-active */
}

/* ================================================================== */
/*  Responsive: mobile mode (class toggled by JS based on wrapper      */
/*  width vs breakpoint — works inside popups & overlays)              */
/* ================================================================== */

/* Stack columns vertically */
.dpm-wrapper.dpm-mobile .dpm-inner {
    flex-direction: column;
}

.dpm-wrapper.dpm-mobile .dpm-left,
.dpm-wrapper.dpm-mobile .dpm-right,
.dpm-wrapper.dpm-mobile.dpm-expanded .dpm-left,
.dpm-wrapper.dpm-mobile.dpm-expanded .dpm-right {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

/* Hide the desktop right column and divider on mobile */
.dpm-wrapper.dpm-mobile .dpm-divider,
.dpm-wrapper.dpm-mobile.dpm-expanded .dpm-divider {
    display: none !important;
}

.dpm-wrapper.dpm-mobile .dpm-right,
.dpm-wrapper.dpm-mobile.dpm-expanded .dpm-right {
    display: none !important;
}

/* Show inline mobile submenu when active */
.dpm-wrapper.dpm-mobile .dpm-mobile-sub.is-active {
    display: block;
    padding: 4px 0 8px 20px;
}

/* ================================================================== */
/*  Popup container override (popup ID 50)                             */
/* ================================================================== */

.elementor-50 .elementor-element.elementor-element-6148f460 {
    min-width: 400px;
}
