/* Mobile app bar + PWA install banner — no Vite rebuild needed. */

.wl-app-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    min-height: 3.6rem;
    padding: 0.28rem 0.2rem calc(0.28rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
html.dark .wl-app-bar {
    border-top-color: #1e293b;
    background: rgba(15, 23, 42, 0.97);
}
@media (min-width: 768px) {
    .wl-app-bar {
        display: none !important;
    }
}

.wl-app-bar-item {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    padding: 0.2rem 0.15rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}
.wl-app-bar-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-app-bar-item.is-active,
html.dark .wl-app-bar-item.is-active {
    color: #2563eb;
}
html.dark .wl-app-bar-item {
    color: #94a3b8;
}

body.public-site,
body.wl-has-app-bar {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
    body.public-site,
    body.wl-has-app-bar {
        padding-bottom: 0;
    }
}

.wl-pwa-banner {
    position: fixed;
    right: 0.75rem;
    bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px));
    left: 0.75rem;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem 0.7rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.wl-pwa-banner-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}
html.dark .wl-pwa-banner {
    border-color: #334155;
    background: #0f172a;
}
.wl-pwa-banner[hidden] {
    display: none !important;
}
.wl-pwa-banner-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}
html.dark .wl-pwa-banner-title {
    color: #f8fafc;
}
.wl-pwa-banner-text {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
}
.wl-pwa-banner-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.4rem;
}
.wl-pwa-banner-dismiss,
.wl-pwa-banner-install {
    border-radius: 0.7rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}
.wl-pwa-banner-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
}
html.dark .wl-pwa-banner-dismiss {
    background: #1e293b;
    color: #94a3b8;
}
.wl-pwa-banner-install {
    border: 0;
    background: #2563eb;
    color: #fff;
}

@media (max-width: 767.98px) {
    .compare-tray-lift,
    [x-data="compareTray()"] {
        bottom: calc(3.65rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}
