[data-pwa-install] {
    display: none;
}

[data-pwa-install].pwa-install-ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.pwa-install-fab {
    position: fixed;
    inset-inline-end: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1090;
    border: 0;
    border-radius: 999px;
    padding: 12px 17px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .28);
    font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.pwa-install-fab:hover {
    transform: translateY(-1px);
}

.pwa-install-fab[hidden] {
    display: none !important;
}

.pwa-guide-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
}

.pwa-guide-backdrop[hidden] {
    display: none !important;
}

.pwa-guide-card {
    width: min(460px, 100%);
    border-radius: 24px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 30px 90px rgba(2, 8, 23, .34);
    overflow: hidden;
    text-align: start;
}

.pwa-guide-head,
.pwa-guide-body,
.pwa-guide-actions {
    padding: 20px 22px;
}

.pwa-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.pwa-guide-head h3 {
    margin: 0;
    font-size: 20px;
}

.pwa-guide-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 23px;
}

.pwa-guide-body ol {
    margin: 0;
    padding-inline-start: 24px;
}

.pwa-guide-body li + li {
    margin-top: 10px;
}

.pwa-guide-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
}

.pwa-guide-ok {
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    background: #0284c7;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

@media (display-mode: standalone) {
    [data-pwa-install],
    .pwa-install-fab {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .pwa-install-fab {
        inset-inline-end: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 11px 14px;
    }
}
