.pwa-update-banner {
    position: fixed;
    z-index: 1500;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    width: min(640px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 4px solid #ed1c24;
    background: #111111;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
    color: #ffffff;
    font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

.pwa-update-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.pwa-update-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.pwa-update-banner button {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #ffffff;
    border-radius: 0;
    font: 700 .92rem/1 "Source Sans Pro", "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.pwa-update-apply {
    border-color: #ed1c24 !important;
    background: #ed1c24;
    color: #ffffff;
}

.pwa-update-later {
    background: transparent;
    color: #ffffff;
}

.pwa-update-banner button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .65);
    outline-offset: 2px;
}

.pwa-update-banner button:disabled {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 560px) {
    .pwa-update-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .pwa-update-actions,
    .pwa-update-banner button {
        flex: 1 1 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-update-banner,
    .pwa-update-banner * {
        transition: none !important;
    }
}
