[hidden] {
    display: none !important;
}

.azx-connectivity {
    position: fixed;
    z-index: 22000;
    top: 0;
    left: 0;
    right: 0;
    min-height: 2.75rem;
    padding: calc(.65rem + env(safe-area-inset-top)) 1rem .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #fff;
    background: #9a6700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    font: 600 .84rem "Montserrat", Arial, sans-serif;
    text-align: center;
}

.azx-connectivity[data-state="online"] {
    background: #2e6b16;
}

.azx-pwa-action {
    box-sizing: border-box;
    min-height: 2.15rem;
    padding: .35rem .8rem;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: .3rem;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.azx-pwa-action:hover,
.azx-pwa-action:focus-visible {
    background: rgba(255, 255, 255, .15);
}

.azx-pwa-prompt {
    box-sizing: border-box;
    position: fixed;
    z-index: 21000;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(31rem, calc(100vw - 2rem));
    padding: 1.15rem;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: .7rem 1rem;
    border: 1px solid rgba(118, 186, 27, .65);
    border-radius: .75rem;
    color: #f5f5f5;
    background: #242424;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .42);
    font-family: "Montserrat", Arial, sans-serif;
    animation: azx-pwa-prompt-in 180ms ease-out;
}

html[data-azx-theme="light"] .azx-pwa-prompt {
    color: #242424;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .2);
}

.azx-pwa-copy {
    min-width: 0;
}

.azx-pwa-icon {
    box-sizing: border-box;
    width: 3.25rem;
    height: 3.25rem;
    padding: .35rem;
    border-radius: .7rem;
    background: #333;
    object-fit: contain;
}

html[data-azx-theme="light"] .azx-pwa-icon {
    background: #f1f1f1;
}

.azx-pwa-context {
    display: block;
    margin-bottom: .15rem;
    color: #b9b9b9;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

html[data-azx-theme="light"] .azx-pwa-context {
    color: #5b5b5b;
}

.azx-pwa-title {
    margin: 0 0 .35rem;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 700;
}

.azx-pwa-message {
    margin: 0;
    font-size: .82rem;
    line-height: 1.45;
}

.azx-pwa-benefits {
    margin: .65rem 0 0;
    padding: 0;
    display: grid;
    gap: .28rem;
    list-style: none;
    font-size: .78rem;
    line-height: 1.4;
}

.azx-pwa-benefits li::before {
    margin-right: .45rem;
    color: #76ba1b;
    content: "\2713";
    font-weight: 800;
}

.azx-pwa-buttons {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
}

.azx-pwa-primary {
    border-color: #76ba1b;
    color: #fff;
    background: #5f9912;
}

.azx-pwa-dismiss {
    border-color: rgba(255, 255, 255, .3);
}

html[data-azx-theme="light"] .azx-pwa-dismiss {
    border-color: rgba(36, 36, 36, .28);
}

@keyframes azx-pwa-prompt-in {
    from {
        opacity: 0;
        transform: translateY(.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .azx-connectivity {
        align-items: stretch;
        flex-direction: column;
        gap: .4rem;
    }

    .azx-pwa-prompt {
        left: max(.65rem, env(safe-area-inset-left));
        right: max(.65rem, env(safe-area-inset-right));
        bottom: max(.65rem, env(safe-area-inset-bottom));
        width: auto;
    }

    .azx-pwa-buttons {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azx-pwa-prompt {
        animation: none;
    }
}
