/**
 * assets/css/app_banner.css — iDLock AuthN 2FA
 * Smart App Banner — bottom sheet mobile (Android/iOS).
 */

#appSmartBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    animation: bannerSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#appSmartBanner.is-visible {
    display: block;
}

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

.app-banner__sheet {
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.app-banner__handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.app-banner__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.4;
}

.app-banner__option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-banner__option:first-of-type {
    border-top: none;
    padding-top: 0;
}

.app-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.app-banner__icon--browser {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-banner__label {
    flex: 1;
    min-width: 0;
}

.app-banner__label strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.app-banner__label span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.app-banner__btn {
    flex-shrink: 0;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}

.app-banner__btn:active { opacity: 0.75; }

.app-banner__btn--primary {
    background: #6366f1;
    color: #fff;
}

.app-banner__btn--ghost {
    background: transparent;
    color: #6366f1;
    font-weight: 600;
}

.app-banner__dismiss {
    display: none; /* handled by "Continue" */
}
