/* PWA install prompt — login only; above splash (10000) and legal dialogs (10060). */
.kf-pwa-prompt {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-bottom, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px));
    font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.kf-pwa-prompt.is-open {
    display: flex;
}

.kf-pwa-prompt__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.kf-pwa-prompt__sheet {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 20px 20px 12px 12px;
    background: #fffefb;
    border: 1px solid var(--kf-line, #e2e8f0);
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12), 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 20px 20px 18px;
    animation: kf-pwa-prompt-in 0.35s ease-out;
}

@keyframes kf-pwa-prompt-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kf-pwa-prompt__title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--kf-ink, #0f172a);
}

.kf-pwa-prompt__figure {
    margin: 0 0 14px;
    text-align: center;
}

.kf-pwa-prompt__figure-img {
    display: inline-block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--kf-line, #e2e8f0);
    vertical-align: middle;
}

.kf-pwa-prompt__text {
    margin: 0 0 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--kf-muted, #64748b);
}

.kf-pwa-prompt__text--center {
    text-align: center;
}

.kf-pwa-prompt__step {
    min-height: 5rem;
}

.kf-pwa-prompt__progress {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px;
}

.kf-pwa-prompt__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(15, 118, 110, 0.2);
    border-top-color: #0f766e;
    animation: kf-pwa-spin 0.75s linear infinite;
}

@keyframes kf-pwa-spin {
    to {
        transform: rotate(360deg);
    }
}

.kf-pwa-prompt__btn[href] {
    text-decoration: none;
    box-sizing: border-box;
}

.kf-pwa-prompt__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kf-pwa-prompt__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kf-pwa-prompt__btn--primary {
    background: #14b8a6;
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.kf-pwa-prompt__btn--primary:active {
    transform: scale(0.99);
}

.kf-pwa-prompt__btn--ghost {
    background: transparent;
    color: var(--kf-muted, #64748b);
    font-weight: 600;
    padding: 10px;
}

.kf-pwa-prompt__ios {
    margin: 0 0 12px;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--kf-ink, #0f172a);
}

.kf-pwa-prompt__ios li {
    margin-bottom: 6px;
}

.kf-pwa-prompt__manual {
    list-style: disc;
}

.kf-pwa-trigger--open {
    /* marker class for Open app state on marketing header buttons */
}

.kf-pwa-prompt__ios code {
    font-size: 0.8em;
    background: rgba(15, 118, 110, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

@media (min-width: 480px) {
    .kf-pwa-prompt {
        align-items: center;
        padding-bottom: 24px;
    }

    .kf-pwa-prompt__sheet {
        border-radius: 16px;
    }
}
