/* NFE Pro Android-App Hinweis */
.nfe-app-banner {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translate(-50%, 18px);
    width: calc(100% - 24px);
    max-width: 448px;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    box-sizing: border-box;
}

.nfe-app-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nfe-app-banner__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    overflow: hidden;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.nfe-app-banner__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nfe-app-banner__content {
    min-width: 0;
    flex: 1;
    padding-right: 1.4rem;
}

.nfe-app-banner__title {
    display: block;
    margin: 0 0 0.25rem;
    color: #111827;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.nfe-app-banner__text {
    display: block;
    margin: 0;
    color: #4b5563;
    font-size: 0.82rem;
    line-height: 1.45;
}

.nfe-app-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.nfe-app-banner__install,
.nfe-app-banner__installed,
.nfe-app-banner__install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(135deg, #2563eb, #0d9488);
    color: #ffffff;
}

.nfe-app-banner__install:hover,
.nfe-app-banner__install:focus-visible {
    filter: brightness(0.95);
}

.nfe-app-banner__installed {
    padding: 0.55rem 0.65rem;
    background: #eff6ff;
    color: #1d4ed8;
}

.nfe-app-banner__installed:hover,
.nfe-app-banner__installed:focus-visible {
    background: #dbeafe;
}

.nfe-app-banner__later:hover,
.nfe-app-banner__later:focus-visible {
    color: #1d4ed8;
}

.nfe-app-banner__close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.nfe-app-banner__close:hover,
.nfe-app-banner__close:focus-visible {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 380px) {
    .nfe-app-banner {
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .nfe-app-banner__icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .nfe-app-banner__actions {
        gap: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nfe-app-banner {
        transition: none;
    }
}
