/**
 * SAPA KARISMA - PWA Install Banner Styles
 */
.sapa-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 14px;
    right: 14px;
    margin: 0 auto;
    max-width: 460px;
    z-index: 1040;
    animation: sapaPwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sembunyikan banner di desktop / website PC agar tidak mengganggu */
@media (min-width: 768px) {
    .sapa-pwa-banner {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    /* If mobile bottom nav exists, lift banner cleanly above it */
    .app-wrapper:has(.app-mobile-bottom-nav) ~ .sapa-pwa-banner,
    body:has(.app-mobile-bottom-nav) .sapa-pwa-banner {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px);
    }
}

.sapa-pwa-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #092832;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(9, 40, 50, 0.38), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sapa-pwa-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sapa-pwa-text {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.sapa-pwa-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.sapa-pwa-text span {
    display: block;
    font-size: 0.7rem;
    color: #a0bfcc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.sapa-pwa-btn-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 99px;
    background: #1688ff;
    color: #ffffff;
    border: 0;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(22, 136, 255, 0.4);
    transition: background 0.18s, transform 0.18s;
}

.sapa-pwa-btn-install:hover,
.sapa-pwa-btn-install:focus {
    background: #0d73df;
    color: #ffffff;
    transform: translateY(-1px);
}

.sapa-pwa-btn-close {
    background: transparent;
    border: 0;
    color: #6b8f9e;
    font-size: 1.3rem;
    padding: 0 2px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s;
}

.sapa-pwa-btn-close:hover {
    color: #ffffff;
}

@keyframes sapaPwaSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
