[data-cm-mobile-navigation][hidden],
.legacy-hamburger-menu__body[hidden] {
    display: none !important;
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    body.has-cm-mobile-navigation .legacy-hamburger-drawer.caixa-menu-topo,
    body.has-cm-mobile-navigation .legacy-hamburger-overlay {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    body.has-cm-mobile-navigation .legacy-hamburger-drawer.caixa-menu-topo {
        width: min(400px, 100vw);
        max-width: 100%;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0;
        overflow: hidden !important;
    }

    body.has-cm-mobile-navigation .legacy-hamburger-menu {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    body.has-cm-mobile-navigation .legacy-hamburger-menu__brand {
        flex: none;
        margin: 0;
        padding: calc(22px + env(safe-area-inset-top, 0px)) 76px 22px 20px;
        background: #ffffff;
    }

    body.has-cm-mobile-navigation .legacy-hamburger-menu__brand img {
        width: 240px;
        max-width: 100%;
    }

    body.has-cm-mobile-navigation .legacy-hamburger-menu__brand small {
        display: none;
    }

    body.has-cm-mobile-navigation .legacy-hamburger-drawer .link-fechar-caixa {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 14px;
        width: 48px;
        height: 48px;
        border-radius: 4px;
        border: 1px solid #e2e6eb;
        background: #ffffff;
        color: #b3121d;
    }

    body.has-cm-mobile-navigation .legacy-hamburger-overlay {
        background: rgba(0, 0, 0, 0.45);
    }

    .cm-mobile-navigation {
        flex: 1 1 auto;
        min-height: 0;
        padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        font-family: var(--font-sans, sans-serif);
        color: #172033;
        letter-spacing: 0;
    }

    .cm-mobile-navigation ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cm-mobile-navigation__quick {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
        padding-bottom: 16px !important;
    }

    .cm-mobile-navigation a {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 48px;
        padding: 10px 0;
        border-bottom: 1px solid #eceef1;
        color: inherit;
        font-size: 16px;
        line-height: 1.4;
        text-decoration: none;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }

    .cm-mobile-navigation__quick a {
        font-weight: 600;
    }

    .cm-mobile-navigation__group {
        border-top: 1px solid #dfe3e8;
    }

    .cm-mobile-navigation__group summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 56px;
        cursor: pointer;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.4;
        list-style: none;
    }

    .cm-mobile-navigation__group summary::-webkit-details-marker {
        display: none;
    }

    .cm-mobile-navigation__group summary::after {
        content: '+';
        flex: none;
        width: 24px;
        text-align: center;
        color: #b3121d;
        font-size: 24px;
        font-weight: 400;
    }

    .cm-mobile-navigation__group[open] summary::after {
        content: '-';
    }

    .cm-mobile-navigation__group ul {
        padding: 0 0 12px 12px;
    }

    .cm-mobile-navigation a:focus-visible,
    .cm-mobile-navigation summary:focus-visible {
        outline: 2px solid #b3121d;
        outline-offset: -2px;
    }

    .cm-mobile-navigation a:hover,
    .cm-mobile-navigation a:active {
        color: #b3121d;
        background: #f5f6f8;
    }
}
