/* TOP BAR MENU */

.ac-top-bar {
    display: none;
}

@media screen and (min-width: 850px) {
    #top-bar {
        background-color: #303030 !important;

        .flex-row {
            display: none !important;
        }

        .ac-top-bar {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0 32px;
            gap: 23px;

            .ac-top-bar__link {
                color: #fff;
                font-family: "Bebas Neue", sans-serif;
                font-size: 20px;
                font-weight: 400;
                line-height: 120%;
                text-transform: uppercase;
            }
        }
    }
}

/* END TOP BAR MENU */

/* FOOTER MENU */

.ac-footer-link-groups {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 80px;
    padding: 24px 0;
    margin: 24px 0;
    border-top: 1px solid #474747;
    border-bottom: 1px solid #474747;

    @media screen and (max-width: 1070px) {
        gap: 24px;
        padding: 24px 20px;
    }

    .ac-footer-link-group {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: max-content;

        h6 {
            margin: 0 0 16px;
            padding: 8px 0;
            color: #fff;
            opacity: 1;
            font-family: "Bebas Neue", sans-serif;
            font-size: 20px !important;
            font-style: normal;
            font-weight: 400;
            line-height: 120%;
        }

        .ac-footer-link-group__links {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        a {
            height: 40px;
            display: flex;
            align-items: center;
            width: fit-content;
            color: #fff;
            font-family: Roboto, sans-serif;
            font-size: 16px;
            font-weight: 400;
            line-height: 140%;
        }
    }

    @media screen and (max-width: 849px) {
        gap: 16px;
        row-gap: 32px;
        flex-wrap: wrap;
        margin-bottom: 10px;

        .ac-footer-link-group {
            flex: 1 1 50%;
            max-width: calc((100% - 16px) / 2);

            h6 {
                margin-bottom: 4px;
            }

            &:last-of-type {
                flex: 1 1 100%;
                max-width: 100%;
            }
        }
    }
}

.absolute-footer .container {
    max-width: 1196px;

    @media screen and (max-width: 1180px) {
        padding-left: 0;
        padding-right: 0;

        > .footer-secondary,
        .copyright-footer {
            padding-left: 16px;
            padding-right: 16px;
        }
    }

    .copyright-footer {
        max-width: 1050px;
        margin: 0 auto;
    }
}

#footer {
    margin-bottom: -28px;
}

@media screen and (max-width: 849px) {
    .absolute-footer {
        padding-bottom: 0 !important;
    }
}

.ac-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    gap: 40px;

    @media screen and (max-width: 849px) {
        border-top: 1px solid #767676;
        gap: 0;
        padding: 0 20px;
        justify-content: space-between;
    }
}

.ac-bottom-links__link {
    color: #848484 !important;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    display: flex;
    height: 40px;
    align-items: center;

    @media screen and (max-width: 849px) {
        font-size: 14px;
    }
}

/* END FOOTER MENU */

/* MAIN MENU */

.ac-menu-item {
    position: relative;

    .ac-menu-item__bar {
        width: 100%;
        height: 4px;
        background: #f58732;
        position: absolute;
        left: 0;
        bottom: -18px;
        opacity: 0;
        transition: 0.3s ease-in-out;
    }

    > a {
        display: flex !important;
        align-items: center;

        svg {
            min-width: 10px;
            height: 10px;
            margin-left: 8px;
            transition: 0.3s ease-in-out;
        }
    }

    &.ac-highlighted a {
        color: #f58732 !important;
    }

    &.ac-active {
        > a > svg {
            transform: rotate(180deg);
        }

        .ac-menu-item__bar {
            opacity: 1;
        }
    }
}

.ac-sub-menu {
    .ac-sub-menu__backdrop {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        opacity: 0;
        z-index: 2;
        display: none;
    }

    .ac-sub-menu__content {
        position: fixed;
        left: 0;
        top: 120px;
        background: #f6f6f6;
        z-index: 3;
        height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: 0.75s ease-in-out;
        padding: 0px 80px;
        width: 708px;
    }

    .ac-sub-menu__content::-webkit-scrollbar {
        display: none;
    }

    .ac-sub-menu__close {
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 40px;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .ac-sub-menu__title {
        color: #f58732;
        font-family: "Bebas Neue";
        font-size: 30px;
        font-weight: 400;
        line-height: 120%;
        text-align: center;
        margin: 0 0 32px;
    }

    .ac-sub-menu__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 32px;
        width: 100%;
        border-radius: 8px;
        background: #fff;

        svg {
            min-width: 18px;
            width: 18px;
            height: 18px;
        }

        .ac-sub-menu__link-title {
            color: #212121;
            font-family: "Bebas Neue", sans-serif;
            font-size: 20px;
            font-weight: 400;
            line-height: 120%;
            transition: color 0.2s ease-in-out;
        }

        .ac-sub-menu__link-content {
            display: flex;
            flex-direction: column;
        }

        img {
            flex: 0 0 140px;
            height: 72px;
            object-fit: cover;
            width: 140px;
            margin: 4px 32px 4px auto;
        }

        &.ac-regular-link {
            height: 42px;
            padding-top: 0;
            padding-bottom: 0;
        }

        &:not(.ac-regular-link) {
            .ac-sub-menu__link-title {
                margin: 0;
                color: #212121;
                font-family: "Bebas Neue", sans-serif;
                font-size: 30px;
                font-style: normal;
                font-weight: 400;
                line-height: 120%;
            }
        }

        &.ac-image-link {
            padding-top: 0;
            padding-bottom: 0;

            .ac-sub-menu__link-description {
                margin: 0;
                color: #949494;
                font-family: "Bebas Neue", sans-serif;
                font-size: 20px;
                font-style: normal;
                font-weight: 400;
                line-height: 100%;
            }
        }

        &.ac-extra-copy-link {
            padding-top: 16px;
            padding-bottom: 16px;
            gap: 80px;

            .ac-sub-menu__link-description {
                color: #212121;
                font-family: Roboto, sans-serif;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 140%;
                padding: 6.095px 0;
            }
        }

        &[data-disabled="true"] {
            svg {
                path {
                    stroke: #b5b5b5;
                }
            }
        }

        &:hover {
            cursor: pointer;
            .ac-sub-menu__link-title {
                color: #f58732 !important;
            }
        }
    }

    .ac-sub-menu__link + .ac-sub-menu__link {
        margin-top: 8px;
    }

    .ac-sub-menu__group-title {
        color: #949494;
        font-family: "Bebas Neue", sans-serif;
        font-size: 18px !important;
        font-weight: 400;
        line-height: 120%;
        margin-bottom: 16px;
    }

    .ac-sub-menu__link + .ac-sub-menu__group-title {
        margin-top: 24px;
    }

    .ac-sub-menu__locations {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin: 0 0 32px;
    }

    .ac-sub-menu__location {
        color: #949494;
        font-family: "Bebas Neue", sans-serif;
        font-size: 18px;
        font-weight: 400;
        line-height: 120%;
        cursor: pointer;

        &.active {
            color: #0a0a0a;
        }
    }
}

.ac-menu-item.ac-active .ac-sub-menu {
    .ac-sub-menu__backdrop {
        display: block;
        animation: fade-in 0.3s linear;
        opacity: 0.6;
    }
    .ac-sub-menu__content {
        height: calc(100dvh - 120px);
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* END MAIN MENU */

/* GUIDED SELLING IN NAVIGATION MENU */

.ac-sub-menu__links-row {
    display: flex;
    gap: 8px;

    margin-top: 8px;

    justify-content: space-between;
    align-items: center;

    .ac-sub-menu__link {
        min-height: 48px;
    }

    .ac-sub-menu__link + .ac-sub-menu__link {
        margin-top: 0px;
    }
}

#main-menu
    .nav-sidebar
    > .menu-item
    > .sub-menu
    > .menu-item
    > .ac-guided-selling-cta {
    color: #303030 !important;
    height: 48px;
    padding: 16px !important;
    margin: 0 16px 24px 0 !important;
}

.ac-guided-selling-cta {
    display: flex;
    margin: 8px 16px 24px 16px;
    border-radius: var(--Rounded-corners-M, 8px);
    background: var(--Colours-Neutral-White, #fff);
    height: 48px;
    justify-content: space-between;
    align-items: center;

    /* Headings/Desktop/H5 */
    font-family: "Bebas Neue", sans-serif !important;
    font-size: 20px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 24px */

    will-change: color, background;

    transition:
        color 0.2s ease,
        background 0.2s ease;

    &:hover {
        color: #f58732 !important;
    }

    .ac-guided-selling-cta-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    @media screen and (min-width: 1024px) {
        display: flex;
        width: 548px;
        height: 48px;
        padding: 0px 32px;
        justify-content: space-between;
        align-items: center;
        margin: 24px 0 0 0;

        border-radius: var(--Rounded-corners-M, 8px);
        background: var(--Colours-Neutral-950-Grey, #303030);

        color: var(--Colours-Neutral-White, #fff) !important;

        /* Headings/Desktop/H5 */
        font-family: "Bebas Neue", sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 24px */

        will-change: color, background;

        transition:
            color 0.2s ease,
            background 0.2s ease;

        &:hover {
            color: #f58732 !important;
        }

        .ac-guided-selling-cta-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;

            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}

/* END GUIDED SELLING IN NAVIGATION MENU  */

/* GENERAL MENU + RESPONSIVE STYLES */

@media (min-width: 1180px) {
    #logo {
        margin-left: 16px;
    }
}

@media (min-width: 1180px) and (max-width: 1415px) {
    #logo {
        width: 200px;
    }

    #mega-menu-wrap-primary #mega-menu-primary {
        background: #0a0a0a !important;

        > li.mega-menu-item {
            background: #0a0a0a !important;

            > a.mega-menu-link {
                padding: 0 4px;
                background: #0a0a0a !important;
            }
        }
    }
}

@media (min-width: 1180px) and (max-width: 1285px) {
    #logo {
        margin-left: 0;
        margin-right: 8px;
    }
    #mega-menu-wrap-primary
        #mega-menu-primary
        > li.mega-menu-item
        > a.mega-menu-link {
        font-size: 20px;
    }

    .ac-ctas-hero {
        padding-right: 0;
    }

    .ac-top-bar {
        padding-right: 16px !important;

        &::after {
            display: none;
        }
    }
}

#wide-nav,
#masthead {
    background-color: #0a0a0a;
}

#main-menu .nav-sidebar {
    #menu-item-ctas {
        order: 1;

        .opt-secondary-button:hover {
            color: #0a0a0a !important;
        }
    }

    .ac-menu-item-ctas + .menu-item {
        border-top: none !important;
    }

    .menu-item:not(.ac-menu-item-ctas) {
        a {
            color: #fff !important;
            padding: 0 0 0 16px;
            height: 56px;
        }

        .toggle {
            width: 48px;
            height: 48px;
            margin: 0 !important;
        }

        .sub-menu {
            border-top: 1px solid #f58732;
            background: #1f1f1f;
            padding-bottom: 0 !important;

            .menu-item {
                padding-left: 16px;
                height: 56px;
                display: flex;
                align-items: center;

                &.ac-guided-selling-menu-item {
                    height: 80px;
                }

                a {
                    text-transform: capitalize !important;
                    color: #fff;
                    font-family: Roboto, sans-serif;
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 140%;
                    padding-left: 0;
                    height: 48px;
                }
            }
        }
    }

    .menu-item.active + .menu-item {
        border-top: none;
    }

    .menu-item.ac-alternate-style a {
        text-transform: initial !important;
        color: #fff;
        font-family: Roboto, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400 !important;
        line-height: 140%;
    }

    .menu-item.ac-alternate-style:last-of-type {
        border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
    }

    .menu-item.ac-highlighted {
        border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);

        a {
            color: #f58732 !important;
        }
    }

    .menu-item.ac-coming-soon a {
        color: rgba(255, 255, 255, 0.5) !important;
    }
    .ac-coming-soon-badge {
        margin: 0 0 0 8px;
        padding: 8px 8px 4px 8px;
        height: 24px;
        display: flex;
        align-items: center;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.05);
        color: #dbe1d2;
        font-family: "Bebas Neue", sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
    }
}

.off-canvas-left.mfp-ready .mfp-content {
    background-color: #0a0a0a !important;

    &::-webkit-scrollbar {
        display: none;
        width: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.6;
    }
}
/* END GENERAL MENU + RESPONSIVE STYLES */
