.cope-core-navigation-top {

    .cope-core-navigation-top-links-container {
        @media screen and (max-width: 1200px) {
            display: none !important;
        }

        @media screen and (min-width: 1201px) {
            display: block;
        }
    }

    &.cope-core-navigation-top-open {

        .cope-core-navigation-top-links-container {
            @media screen and (max-width: 1200px) {
                position: absolute !important;
                display: block !important;
            }
        }
    }

    .cope-core-navigation-top-container {
        @media screen and (max-width: 1200px) {
            flex-wrap: wrap !important;
            height: 100% !important;
        }

        @media screen and (min-width: 1201px) {
            height: var(--top-nav-height) !important;
        }
    }

    .cope-core-navigation-top-items,
    .cope-core-navigation-top-sections {
        @media screen and (max-width: 1200px) {
            flex-direction: column;
        }
    }

    .cope-core-navigation-top-section {
        @media screen and (max-width: 1200px) {
            flex: 1 !important;
            height: initial !important;
            flex-direction: column !important;
        }
    }

    .cope-core-navigation-top-section-links {
        @media screen and (max-width: 1200px) {
            display: block !important;
            position: initial !important;
        }
    }

    .cope-core-navigation-top-section-title {
        @media screen and (max-width: 1200px) {
            flex: 1 !important;
            width: 100% !important;
        }
    }

    .cope-core-navigation-top-section a {
        @media screen and (max-width: 1200px) {
            justify-content: start !important;
        }
    }
}

.cope-core-navigation {
    border-bottom: none !important;

    a,
    a:active,
    a:visited,
    a:hover {
        background: transparent !important;
    }
}

img.cope-core-navigation-top-desktop-only,
.cope-core-navigation-top-secondary-logo-container {
    display: none !important;
}

@media screen and (max-width: 1200px) {
    .cope-core-navigation-top-container {
        display: flex !important;
    }

    .cope-core-navigation .cope-core-navigation-top .cope-core-navigation-top-container .cope-core-navigation-top-container-condition-section {
        flex: auto !important;
    }

    .cope-core-navigation .cope-core-navigation-top .cope-core-navigation-top-container .cope-core-navigation-top-links-container .cope-core-navigation-top-items .cope-core-navigation-top-sections .cope-core-navigation-top-section.open ul.cope-core-navigation-top-section-links {
        max-height: none !important;
    }

    .cope-core-navigation-global {
        display: none !important;
    }

    .link-isi {
        display: block !important;
        visibility: visible !important;
    }

    .cope-core-navigation-top-section.open {
        .cope-core-navigation-top-section-text::after {
            transform: rotate(225deg) !important;
        }
    }
}

@media screen and (min-width: 1201px) {
    .cope-core-navigation-top-section-text.has-children:after {
        display: none !important;
    }

    .cope-core-navigation-top-section-title a {
        justify-content: flex-start;
    }

    .cope-core-navigation-top-section-links {
        position: relative;
        display: block !important;
        height: 0;
        opacity: 0;
        top: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: hidden !important;

        .cope-core-navigation-top-link {
            padding: 0 !important;
            background: transparent !important;
            margin-bottom: 0;

            &.is-children {
                list-style-type: disc;
                list-style-position: outside;
                margin-left: 20px;
            }
        }

        a {
            margin-left: 0 !important;
            padding-left: 0 !important;
            margin-right: 0 !important;
            padding-right: 0 !important;
            border-left: 0 !important;

            &:hover {
                background: transparent !important;
            }
        }
    }

    .cope-core-navigation-top-section {
        display: block !important;
        border-bottom: none !important;
        margin-right: 0 !important;
        padding-right: 25px;
    }

    .cope-core-navigation-top-links-container {
        height: 100% !important;
        margin: auto 0 !important;

        .cope-core-navigation-top-items {
            position: relative;

            .cope-core-navigation-top-sections {
                position: relative;
                width: auto !important;
                top: 0;
            }
        }
    }

    .cope-core-navigation-top-links-container:has(.cope-core-navigation-top-section:hover),
    .cope-core-navigation-top-links-container:has(.cope-core-navigation-top-section:focus-within) {
        .cope-core-navigation-top-items {
            margin-top: -15px;
            margin-left: -25px;
        }

        .cope-core-navigation-top-sections {
            background: lightgray;
        }

        .cope-core-navigation-top-section .cope-core-navigation-top-section-links {
            height: auto;
            opacity: 1;
            padding-top: 5px !important;
        }

        .cope-core-navigation-top-section {
            padding-top: 15px;
            padding-bottom: 15px;
        }

        .cope-core-navigation-top-section:first-child {
            padding-left: 25px !important;
        }

        .cope-core-navigation-top-section:last-child {
            padding-right: 25px !important;
        }
    }
}

.cope-core-navigation-top {
    @media screen and (max-width: 1200px) {
        .cope-core-navigation-top-desktop-only {
            display: none !important;
        }

        .cope-core-navigation-top-mobile-only {
            display: block !important;
        }
    }

    @media screen and (min-width: 1201px) {
        .cope-core-navigation-top-desktop-only {
            display: block !important;
        }

        .cope-core-navigation-top-mobile-only {
            display: none !important;
        }
    }
}

.cope-core-navigation .cope-core-navigation-top .cope-core-navigation-top-container .cope-core-navigation-top-container-condition-section .cope-core-mobile-condition-text:before,
.cope-core-navigation .cope-core-navigation-top .cope-core-navigation-top-container .cope-core-navigation-top-container-condition-section .cope-core-mobile-opened-condition-text,
.cope-core-navigation .cope-core-navigation-top .cope-core-navigation-top-container .cope-core-navigation-top-mobile-toggle-label.cope-core-navigation-top-mobile-only {
    display: none !important;
}

