.pwa-banner[hidden], .pwa-guide:not([open]), .pwa-guide [hidden] { display: none !important; }

.pwa-banner {
    position: fixed;
    z-index: 6;
    inset-inline: 0;
    bottom: max(var(--pwa-nav-height, 0px), env(safe-area-inset-bottom, 0px));
    color: #fff;
    background: #082b43;
    box-shadow: 0 -3px 16px rgba(6, 32, 52, .16);
}
.pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
}
.pwa-banner button, .pwa-guide button {
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pwa-dismiss, .pwa-guide-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}
.pwa-dismiss svg {
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    padding: 5px;
    border: 1px solid #7790a1;
    border-radius: 50%;
}
.pwa-mark {
    flex: none;
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: white;
}
.pwa-banner-copy { flex: 1; min-width: 0; }
.pwa-banner-copy strong, .pwa-banner-copy span { display: block; }
.pwa-banner-copy strong { color: #fff; font-size: 15px; line-height: 1.5; }
.pwa-banner-copy span { color: #dae3eb; font-size: 12px; line-height: 1.5; }
.pwa-banner .pwa-download {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    color: #082b43;
    background: white;
    font-size: 14px;
    font-weight: 700;
}
.pwa-download svg { flex: none; }
.pwa-banner button:focus-visible, .pwa-guide button:focus-visible {
    outline: 3px solid #ed8947;
    outline-offset: 2px;
}
body.pwa-promoted {
    --pwa-bottom-space: calc(max(var(--pwa-nav-height, 0px), env(safe-area-inset-bottom, 0px)) + var(--pwa-banner-height, 64px));
}
body.pwa-promoted .site { padding-bottom: calc(var(--pwa-bottom-space) + 6px); }
body.pwa-promoted .whatsapp-float { bottom: calc(var(--pwa-bottom-space) + 12px); }

dialog.pwa-guide {
    box-sizing: border-box;
    width: min(390px, calc(100% - 32px));
    max-height: 85vh;
    margin: auto;
    padding: 20px;
    overflow: auto;
    border: 1px solid #d5dfe6;
    border-radius: 16px;
    color: #082b43;
    background: #fff;
    box-shadow: 0 16px 50px rgba(6, 32, 52, .2);
    text-align: start;
}
.pwa-guide::backdrop { background: rgba(7, 27, 43, .56); }
.pwa-guide-head { display: flex; gap: 10px; align-items: center; }
.pwa-guide h2 { flex: 1; margin: 0; color: #082b43; font-size: 19px; line-height: 1.5; }
.pwa-guide h2:focus { outline: none; }
.pwa-guide-close svg { width: 18px; height: 18px; }
.pwa-guide ol {
    counter-reset: install-step;
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 16px 0 0;
    border-top: 1px solid #dce3e8;
    list-style: none;
}
.pwa-guide li {
    position: relative;
    min-height: 25px;
    margin: 0;
    padding-inline-start: 36px;
    color: #244257;
    font-size: 14px;
    line-height: 1.65;
    counter-increment: install-step;
}
.pwa-guide li::before {
    content: counter(install-step);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #082b43;
    background: #eef2f5;
    font: 700 13px/1 Arial, sans-serif;
}
.pwa-share-symbol { display: inline; width: 17px; height: 17px; vertical-align: -.2em; }
.pwa-guide .pwa-guide-done {
    width: 100%;
    min-height: 44px;
    padding: 6px 14px;
    border: 0;
    border-radius: 7px;
    color: white;
    background: #082b43;
    font-weight: 700;
}
@media (max-width: 359px) {
    .pwa-banner-inner { gap: 6px; padding-inline: 6px; }
    .pwa-dismiss { width: 30px; }
    .pwa-banner .pwa-download { padding-inline: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
    .pwa-banner, .pwa-guide[open] { animation: pwa-appear .22s ease-out; }
    @keyframes pwa-appear {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
