/* Install Banner – sito principale */
#wwa-install-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99999;
    background: #fff;
    border-top: 1px solid #e5e0d8;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
#wwa-install-banner.visible { transform: translateY(0); }
#wwa-install-banner.hiding  { transform: translateY(110%); transition: transform .25s ease-in; }

.wwa-banner__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.wwa-banner__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}
.wwa-banner__icon--placeholder {
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; flex-shrink: 0;
}
.wwa-banner__text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.wwa-banner__text strong { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wwa-banner__text span   { font-size: .78rem; color: #6b6b6b; }

.wwa-banner__btn {
    flex-shrink: 0;
    color: #fff;
    border: none; border-radius: 8px;
    padding: 8px 16px;
    font-size: .85rem; font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.wwa-banner__btn:active { opacity: .8; }

.wwa-banner__close {
    flex-shrink: 0; width: 28px; height: 28px;
    background: #f0f0f0; border: none; border-radius: 50%;
    font-size: .75rem; color: #666; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.wwa-banner__close:hover { background: #e0e0e0; }

/* iOS share instructions */
.wwa-banner__ios {
    display: flex; align-items: center; gap: 6px;
    justify-content: center;
    padding: 8px 16px 12px;
    font-size: .82rem; color: #444;
    border-top: 1px solid #f0f0f0;
}
.wwa-banner__ios svg { flex-shrink: 0; color: #007AFF; }

/* Progress bar (auto-hide countdown) */
#wwa-install-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: var(--wwa-primary, #C8A96E);
    width: 100%;
    transform-origin: left;
    animation: wwa-countdown 5s linear forwards;
    border-radius: 0 0 0 0;
}
#wwa-install-banner.no-countdown::after { display: none; }
@keyframes wwa-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
