/* Chrome interno do guia + login. Não é footerPmc / componente do tema PMC. */

footer.shellFlowRodape {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: static;
    width: 100%;
    height: auto;
    min-height: 46px;
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid #d2d2d7;
    background: #f5f5f7;
    box-sizing: border-box;
}

body.pagina-login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    body.pagina-login {
        max-height: none;
        overflow: auto;
    }
}

body.pagina-login > .vidroLogin,
body.pagina-login > .paginaLogin {
    flex: 1 1 auto;
    min-height: 0;
}

/* Menu Único (CDN) é irmão de .paginaLogin — só participação no flex da página, sem estilizar o componente */
body.pagina-login > .menuUnicoPmc {
    flex: 0 0 auto;
}

body.pagina-login > footer.shellFlowRodape {
    flex: 0 0 auto;
}

footer.shellFlowRodape .shellFlowRodape__logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    min-width: 80px;
    min-height: 20px;
}

footer.shellFlowRodape .shellFlowRodape__logo a {
    display: inline-block;
    line-height: 0;
}

footer.shellFlowRodape .shellFlowRodape__logoImg {
    display: block;
    width: auto;
    height: 20px;
    min-height: 20px;
    max-width: min(160px, 42vw);
    object-fit: contain;
    object-position: left center;
}

footer.shellFlowRodape .shellFlowRodape__credito {
    position: relative;
    margin: 0 0 0 16px;
    padding: 0 0 0 16px;
    transform: none;
    font-family: roboto-regular, Arial, sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.56);
}

footer.shellFlowRodape .shellFlowRodape__credito::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px solid #d2d2d7;
}

footer.shellFlowRodape .shellFlowRodape__credito a.shellFlowRodape__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-left: 0.35em;
    color: #004f9f;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    transition: opacity 0.15s ease;
}

footer.shellFlowRodape .shellFlowRodape__credito a.shellFlowRodape__link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

footer.shellFlowRodape .shellFlowRodape__linkIcon {
    flex-shrink: 0;
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: url("../img/icones_ici_id/link.svg") center / contain no-repeat;
    mask: url("../img/icones_ici_id/link.svg") center / contain no-repeat;
}

@media (max-width: 991.98px) {
    footer.shellFlowRodape {
        flex-direction: column;
        gap: 12px;
        padding: 20px 16px 24px;
    }

    footer.shellFlowRodape .shellFlowRodape__credito {
        margin: 0;
        padding: 12px 0 0;
        text-align: center;
    }

    footer.shellFlowRodape .shellFlowRodape__credito::before {
        display: none;
    }
}

body.modo-escuro footer.shellFlowRodape {
    background: var(--dark-bg-base, #101010);
    border-top-color: var(--dark-border-subtle, rgba(255, 255, 255, 0.12));
}

body.modo-escuro footer.shellFlowRodape .shellFlowRodape__credito {
    color: rgba(255, 255, 255, 0.56);
}

body.modo-escuro footer.shellFlowRodape .shellFlowRodape__credito::before {
    border-left-color: var(--dark-border-subtle, rgba(255, 255, 255, 0.12));
}

body.modo-escuro footer.shellFlowRodape .shellFlowRodape__credito a.shellFlowRodape__link {
    color: #497ebf;
}

body.modo-escuro footer.shellFlowRodape .shellFlowRodape__credito a.shellFlowRodape__link:hover {
    opacity: 0.85;
}
