/* Popup do atalho na tela inicial (views/components/AtalhoApp.phtml).
   Tudo leva o id na frente para vencer os estilos do tema, que mudam de uma página para outra. */
#atalho-app {
    position: fixed;
    z-index: 1000; /* acima das redes sociais (999), abaixo das galerias (9999) */
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    max-height: 100%;
    margin: 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    overflow: auto;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .2);
    color: #4a4a57;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
}

#atalho-app .atalho-oferta {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
}

#atalho-app img {
    display: block;
    width: 72px;
    max-width: none;
    height: auto;
    margin: 0;
}

#atalho-app p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
}

#atalho-app p.atalho-titulo {
    margin-bottom: 2px;
    max-width: 9.8em; /* quebra depois de "Martins" e deixa o lugar do X */
    color: #171a63;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

#atalho-app .atalho-passos .atalho-titulo {
    max-width: none;
    margin-bottom: 8px;
    padding-right: 32px; /* lugar do X */
}

#atalho-app ol {
    margin: 0;
    padding: 0 0 0 22px;
    list-style: decimal outside;
}

#atalho-app li {
    display: list-item;
    margin: 0 0 6px;
    padding: 0 0 0 4px;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    list-style: decimal outside;
}

#atalho-app li::before {
    content: none;
}

#atalho-app button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}

#atalho-app .atalho-adicionar {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #171a63;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

#atalho-app .atalho-adicionar:active {
    background: #0f1147;
}

#atalho-app .atalho-fechar {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    color: #4a4a57;
}

#atalho-app button:focus-visible {
    outline: 2px solid #ed3237;
    outline-offset: 2px;
}

/* Por último, para vencer os display acima. */
#atalho-app[hidden],
#atalho-app [hidden] {
    display: none;
}

/* À parte: um navegador sem :has() descarta a regra inteira.
   Menu aberto, e aviso de cookies da Osano (que a M700 já teve) à espera de resposta. */
body:has(#menu-toggle.toggled) #atalho-app,
body:has(.osano-cm-dialog:not(.osano-cm-dialog--hidden)) #atalho-app {
    display: none;
}
