.wf-bar {
    padding: 0 15px;
}

.wf-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #D1A6A6;
    box-shadow: 6px 6px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 33px 33px 33px 33px;
    padding: 12px 25px 12px 25px;
}

.wf-bar .wf-title {
    font-size: 20px;
    color: #fff;
    line-height: 1.2em;
    font-family: "Josefin Sans", Sans-serif;
}

.wf-hamburger {
    padding: 3px;
    border-color: #fff;
    border-radius: 4px;
    display: flex;
}

.wf-hamburger svg {
    width: 34px;
    height: auto;
    fill: #fff;
}

.wf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
}

.wf-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.wf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wf-drawer.is-open .wf-overlay {
    opacity: 1;
}

.wf-drawer-inner {
    position: absolute;
    top: 0;
    left: -320px;
    /* Slides in from left */
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.wf-drawer.is-open .wf-drawer-inner {
    transform: translateX(320px);
}

.wf-drawer-close {
    top: 20px;
    right: 20px;
    position: absolute;
    display: flex;
    padding: 0;
    border: none;

}

.wf-drawer-close svg {
    fill: #fff;
    width: 32px;
    height: auto;
}

.wf-menu-container {
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    /* JS will handle height to allow scrolling */
    flex-grow: 1;
    background: #fff;
    transition: height 0.3s ease;
}

.wf-root-menu,
.wf-root-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.wf-root-menu li {
    position: static;
    border-bottom: 1px solid #f5f5f5;
}

.wf-root-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 18px;
    font-family: "Josefin Sans", Sans-serif;
}

/* Sub-menus hidden to the right */
.wf-root-menu ul.sub-menu {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    min-height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10;
    visibility: hidden;
}

.wf-root-menu ul.sub-menu.is-active {
    transform: translateX(0);
    visibility: visible;
}

/* --- Dynamic UI Elements (Arrows & Back Button) --- */
.wf-arrow svg {
    width: 20px;
    height: auto;
}

.wf-back-li {
    background: #f9f9f9;
    border-bottom: 2px solid #eee;
}

.wf-back-li .wf-back-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.wf-d-menu-container {
    display: none;
    width: 100%;
    position: relative;
}


.wf-d-menu,
.wf-d-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wf-d-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* Level 1 */
.wf-d-menu>.menu-item>a {
    position: relative;
    color: var(--e-global-color-primary);
    fill: var(--e-global-color-primary);
    padding: 5px 18px;
    font-family: "Josefin Sans", Sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 26px;
    display: flex;
    align-items: center;
}

.wf-d-menu>.menu-item>a:hover {
    color: var(--e-global-color-accent);
    fill: var(--e-global-color-accent);
}

.wf-d-menu>.menu-item-has-children>a::before {
    position: absolute;
    content: "";
    background-image: url(https://wimpolefillers.co.uk/wp-content/uploads/2024/02/Union-7.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 16px;
    height: 16px;
    right: -6px;
    top: 10px;
}

.wf-d-menu>.menu-item-has-children>ul.sub-menu {
    display: none;
    background: #fff;
    position: absolute;
    z-index: 1000;
    height: auto;
    padding: 10px;
    overflow: auto;
    width: max-content;
    max-width: 90vw;

    left: 50%;
    transform: translateX(-50%);
}

.wf-d-menu>.menu-item-has-children:first-child>ul.sub-menu {
    left: 0;
    transform: none;
    /* Removes the centering pull */
}

.wf-d-menu>.menu-item-has-children:hover>ul.sub-menu {
    display: flex;
}


.wf-d-menu .sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    font-family: "Josefin Sans", Sans-serif;
}

/* Level 2 */
.wf-d-menu > .menu-item-has-children > .sub-menu > .menu-item > a {
    font-weight: 700;
    /* font-size: 16px; */
    text-transform: uppercase;
}

@media screen and (min-width: 992px) {
    .wf-drawer {
        display: none;
    }

    .wf-drawer.is-open {
        display: none;
    }

    .wf-title {
        display: none;
    }

    .wf-hamburger {
        display: none;
    }

    .wf-d-menu-container {
        display: block;
    }
}