/*
 * Performance-style WooCommerce mega menu
 * Isolated from Divi and the older FE Maughan menu styles.
 */

:root {
    --jti-mega-navy: var(--fem-navy, #1e3a5f);
    --jti-mega-blue: var(--fem-blue, #4a90c4);
    --jti-mega-text: #172033;
    --jti-mega-muted: #667085;
    --jti-mega-border: #e7eaf0;
    --jti-mega-soft: #f5f8fc;
}

.jti-performance-trigger-wrap {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.jti-performance-mega-trigger {
    border: 0;
    border-radius: 0;
    background: var(--jti-mega-blue);
    cursor: pointer;
    font-family: inherit;
}

.jti-performance-mega-trigger:hover,
.jti-performance-mega-trigger:focus-visible,
.jti-performance-mega-trigger[aria-expanded="true"] {
    background: #397eaf;
    color: #fff;
    outline: none;
}

.jti-performance-mega-trigger-icon {
    display: inline-grid;
    grid-template-columns: repeat(2, 4px);
    gap: 2px;
    margin-right: 2px;
}

.jti-performance-mega-trigger-icon::before,
.jti-performance-mega-trigger-icon::after {
    content: "";
    width: 4px;
    height: 4px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor;
}

.jti-performance-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1440px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
    overflow: hidden;
    color: var(--jti-mega-text);
    background: #fff;
    border-top: 3px solid var(--jti-mega-blue);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 10020;
}

.jti-performance-mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.jti-performance-mega a {
    text-decoration: none;
}

.jti-performance-mega-inner {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 310px;
    min-height: 470px;
    max-height: inherit;
}

.jti-performance-mega-left,
.jti-performance-mega-center,
.jti-performance-mega-promo {
    min-width: 0;
    max-height: inherit;
}

.jti-performance-mega-left {
    padding: 18px;
    overflow-y: auto;
    background: var(--jti-mega-soft);
    border-right: 1px solid var(--jti-mega-border);
}

.jti-performance-mega-category {
    width: 100%;
    min-height: 45px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    color: var(--jti-mega-text);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.jti-performance-mega-category:hover,
.jti-performance-mega-category:focus-visible,
.jti-performance-mega-category.is-active {
    color: var(--jti-mega-navy);
    background: #dcecf8;
    outline: none;
}

.jti-performance-mega-icon,
.jti-performance-mega-heading > span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}

.jti-performance-mega-heading > span  {
    display:none !important;
}

.jti-performance-mega-icon svg,
.jti-performance-mega-heading svg,
.jti-performance-term-icon-image {
    width: 18px !important;
    height: 18px !important;
    display: block;
    object-fit: contain;
}

.jti-performance-mega-arrow {
    font-size: 20px;
    line-height: 1;
    text-align: right;
}

.jti-performance-mega-all {
    display: block;
    margin-top: 16px;
    padding: 13px 14px;
    color: var(--jti-mega-navy);
    background: #fff;
    border: 1px solid var(--jti-mega-border);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jti-performance-mega-all:hover,
.jti-performance-mega-all:focus-visible {
    border-color: var(--jti-mega-blue);
    color: var(--jti-mega-blue);
}

.jti-performance-mega-center {
    padding: 26px 30px;
    overflow-y: auto;
    background: #fff;
}

.jti-performance-mega-panel {
    display: none;
}

.jti-performance-mega-panel.is-active {
    display: block;
}

.jti-performance-mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 13px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--jti-mega-border);
}

.jti-performance-mega-panel-head h3 {
    margin: 0;
    color: var(--jti-mega-text);
    font-size: 21px;
    line-height: 1.2;
}

.jti-performance-mega-panel-head a,
.jti-performance-mega-view {
    color: var(--jti-mega-blue);
    font-size: 13px;
    font-weight: 800;
}

.jti-performance-mega-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 28px 30px;
}

.jti-performance-mega-stack,
.jti-performance-mega-column {
    min-width: 0;
}

.jti-performance-mega-column + .jti-performance-mega-column {
    margin-top: 24px;
}

.jti-performance-mega-heading {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--jti-mega-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.jti-performance-mega-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jti-performance-mega-column li {
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.35;
}

.jti-performance-mega-column li a {
    color: #4b5565;
    font-size: 13px;
}

.jti-performance-mega-heading:hover,
.jti-performance-mega-heading:focus-visible,
.jti-performance-mega-column li a:hover,
.jti-performance-mega-column li a:focus-visible,
.jti-performance-mega-panel-head a:hover,
.jti-performance-mega-panel-head a:focus-visible,
.jti-performance-mega-view:hover,
.jti-performance-mega-view:focus-visible {
    color: var(--jti-mega-blue);
}

.jti-performance-mega-view {
    display: inline-block;
    margin-top: 4px;
}

.jti-performance-mega-empty {
    color: var(--jti-mega-muted);
}

.jti-performance-mega-promo {
    padding: 22px;
    overflow-y: auto;
    background: #f8fafc;
    border-left: 1px solid var(--jti-mega-border);
}

.jti-performance-mega-promo-panel {
    display: none;
    min-height: 100%;
    padding: 28px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eaf4fb 0%, #ffffff 55%, #f4f8fc 100%);
}

.jti-performance-mega-promo-panel.is-active {
    display: flex;
    flex-direction: column;
}

.jti-performance-mega-kicker {
    color: var(--jti-mega-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.jti-performance-mega-promo-panel h3 {
    margin: 12px 0 9px;
    color: var(--jti-mega-text);
    font-size: 27px;
    line-height: 1.12;
}

.jti-performance-mega-promo-panel p {
    margin: 0;
    color: var(--jti-mega-muted);
    font-size: 14px;
    line-height: 1.55;
}

.jti-performance-mega-promo-panel img {
    width: 100%;
    max-height: 205px;
    margin: 18px 0 0;
    object-fit: contain;
    border-radius: 10px;
}

.jti-performance-mega-promo-panel > a {
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 18px;
    color: #fff;
    background: var(--jti-mega-navy);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jti-performance-mega-promo-panel > a:hover,
.jti-performance-mega-promo-panel > a:focus-visible {
    color: #fff;
    background: var(--jti-mega-blue);
}

.jti-performance-mega-mobile-head,
.jti-performance-mobile-inline-panel {
    display: none;
}

@media (max-width: 1250px) and (min-width: 769px) {
    .jti-performance-mega-inner {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .jti-performance-mega-promo {
        display: none;
    }

    .jti-performance-mega-columns {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .jti-performance-trigger-wrap {
        width: 100%;
    }

    .jti-performance-mega-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .jti-performance-mega-trigger .arrow {
        margin-left: auto;
        transform: rotate(-90deg);
    }

    .femaughan-nav-bar.jti-performance-mega-active {
        overflow: visible;
    }

    .jti-performance-mega {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 10030;
    }

    .jti-performance-mega.is-open {
        pointer-events: auto;
        transform: translateX(0);
    }

    .jti-performance-mega-mobile-head {
        position: sticky;
        top: 0;
        z-index: 4;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        min-height: 58px;
        padding: 8px 14px;
        color: #fff;
        background: var(--jti-mega-navy);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .jti-performance-mega-mobile-head strong {
        font-size: 15px;
        text-align: center;
    }

    .jti-performance-mega-mobile-head button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px;
        border: 0;
        color: #fff;
        background: transparent;
        font: inherit;
        cursor: pointer;
    }

    .jti-performance-mega-mobile-head [data-performance-mega-close] {
        justify-self: end;
        font-size: 28px;
        line-height: 1;
    }

    .jti-performance-mega-inner {
        display: block;
        min-height: 0;
        max-height: none;
    }

    .jti-performance-mega-left {
        max-height: none;
        padding: 14px;
        overflow: visible;
        border: 0;
        background: #f7f9fc;
    }

    .jti-performance-mega-category {
        min-height: 50px;
        margin-bottom: 4px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--jti-mega-border);
    }

    .jti-performance-mega-category.is-active {
        border-color: #b9d8ec;
    }

    .jti-performance-mega-center,
    .jti-performance-mega-promo {
        display: none;
    }

    .jti-performance-mobile-inline-panel {
        display: block;
        margin: -1px 0 10px;
        padding: 18px;
        background: #fff;
        border: 1px solid #b9d8ec;
        border-top: 0;
        border-radius: 0 0 9px 9px;
    }

    .jti-performance-mobile-inline-panel .jti-performance-mega-panel-head {
        margin-bottom: 18px;
    }

    .jti-performance-mobile-inline-panel .jti-performance-mega-panel-head h3 {
        font-size: 19px;
    }

    .jti-performance-mobile-inline-panel .jti-performance-mega-columns {
        display: block;
    }

    .jti-performance-mobile-inline-panel .jti-performance-mega-stack + .jti-performance-mega-stack,
    .jti-performance-mobile-inline-panel .jti-performance-mega-column + .jti-performance-mega-column {
        margin-top: 20px;
    }

    .jti-performance-mobile-inline-panel .jti-performance-mega-column {
        margin-bottom: 20px;
    }

    .jti-performance-mega-all {
        margin-top: 10px;
        background: var(--jti-mega-navy);
        border-color: var(--jti-mega-navy);
        color: #fff;
    }

    body.jti-performance-mega-open {
        overflow: hidden !important;
    }
}


.jti-performance-mega-view[data-performance-mega-expand] {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}