/* Modo portal: só se aplica quando js/modo-portal.js marca <html data-portal="1">
   (página aberta dentro da área de clientes). Sem a marca, este ficheiro não tem efeito. */

html[data-portal="1"] body > header,
html[data-portal="1"] body > footer,
html[data-portal="1"] body > nav#breadcrumbs,
html[data-portal="1"] body > .breadcrumb-bar,
html[data-portal="1"] body > .cncs-bar,
html[data-portal="1"] .breadcrumb-bar,
html[data-portal="1"] #search-modal,
html[data-portal="1"] .nav-overlay,
html[data-portal="1"] .back-to-top,
html[data-portal="1"] #back-to-top,
html[data-portal="1"] #cookie-consent-banner,
html[data-portal="1"] #mobile-block-overlay,
html[data-portal="1"] .mobile-block-overlay,
html[data-portal="1"] [class*="floating-cta"],
html[data-portal="1"] .recently-viewed,
html[data-portal="1"] #recently-viewed,
html[data-portal="1"] .share-btns,
html[data-portal="1"] .share-btn,
html[data-portal="1"] .linkedin-share-btn,
html[data-portal="1"] .whatsapp-share-btn,
html[data-portal="1"] ins.adsbygoogle,
html[data-portal="1"] #dark-mode-toggle {
    display: none !important;
}

html[data-portal="1"] body {
    padding-top: 0 !important;
    margin: 0 !important;
}

html[data-portal="1"] body > main {
    margin-top: 0 !important;
    padding-bottom: 32px;
}

/* A janela de acesso da auditoria é mais alta do que o iframe em ecrãs pequenos: passa a ter scroll em vez de cortar o topo. */
html[data-portal="1"] #access-control-modal {
    overflow-y: auto;
    align-items: flex-start;
}

html[data-portal="1"] #access-control-modal .access-modal-content {
    margin: auto;
}
