.pwa-update-notice[hidden] {
    display: none !important;
}

.pwa-update-notice {
    position: fixed;
    z-index: 10000;
    inset-inline: 50% auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    width: min(44rem, calc(100vw - 2rem));
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateX(-50%);
    border: 1px solid #42483a;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background: #20241c;
    color: #fff;
    box-shadow: 0 0.4rem 1.5rem rgb(0 0 0 / 28%);
    font: 500 0.95rem/1.4 system-ui, sans-serif;
}

.pwa-update-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.pwa-update-notice button {
    min-height: 2.5rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    padding: 0.45rem 0.75rem;
    font: inherit;
    cursor: pointer;
}

.pwa-update-apply {
    background: #bfff00;
    color: #111;
    font-weight: 700 !important;
}

.pwa-update-later {
    border-color: #74796d !important;
    background: transparent;
    color: #fff;
}

.pwa-update-notice button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 34rem) {
    .pwa-update-notice {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.8rem;
    }

    .pwa-update-actions {
        justify-content: stretch;
    }

    .pwa-update-actions button {
        flex: 1 1 auto;
    }
}
