/* PWA release/update UI */

.mp-pwa-env-banner {
    position: sticky;
    z-index: 1100;
    top: 0;
    padding: 6px 12px;
    background: #f59e0b;
    color: #111827;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mp-pwa-update {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(540px, calc(100vw - 28px));
    padding: 13px 14px;
    border: 1px solid #cce8c4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .18);
}

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

.mp-pwa-update-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.mp-pwa-update-copy strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 850;
}

.mp-pwa-update-copy span {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.mp-pwa-update-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.mp-pwa-update button {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.mp-pwa-update-later {
    background: #f3f4f6;
    color: #4b5563;
}

.mp-pwa-update-now {
    background: #62a052;
    color: #fff;
}

.mp-pwa-update button:disabled {
    opacity: .6;
    cursor: default;
}

.mp-pwa-software-by {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    color: #9ca3af;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.mp-pwa-software-by a {
    color: #6b7280;
    font-weight: 400;
    text-decoration: none;
}

.mp-pwa-software-by a:hover {
    color: #36742d;
    text-decoration: underline;
}

.mp-pwa-release-version {
    color: #b0b6bf;
    font-variant-numeric: tabular-nums;
}

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

    .mp-pwa-update-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}
