/* ═══════════════════════════════════════════════════════════════════
   HBP PWA — install notice + update toast
   Flat by design: no borders, gradients, or drop shadows — matches the
   rest of the site's design language. Contrast comes from color and
   spacing only.
   ═══════════════════════════════════════════════════════════════════ */

.hbp-pwa-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #FFFFFF;
    color: #1E293B;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform .28s ease;
}
.hbp-pwa-banner.hbp-pwa-bottom { bottom: 0; }
.hbp-pwa-banner.hbp-pwa-top    { top: 0; transform: translateY(-100%); }
.hbp-pwa-banner.hbp-pwa-visible { transform: translateY(0); }

.hbp-pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--hbp-primary-light, #DBEAFE);
    flex-shrink: 0;
    object-fit: cover;
}

.hbp-pwa-banner-body { flex: 1; min-width: 0; }
.hbp-pwa-banner-title {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #1E293B;
}
.hbp-pwa-banner-text {
    font-size: 12.5px;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

.hbp-pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hbp-pwa-banner-install {
    background: var(--hbp-primary, #2563EB);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.hbp-pwa-banner-dismiss {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 480px) {
    .hbp-pwa-banner { flex-wrap: wrap; }
    .hbp-pwa-banner-body { order: 1; flex-basis: 100%; }
    .hbp-pwa-banner-icon { order: 0; }
    .hbp-pwa-banner-actions { order: 2; margin-left: auto; }
}

/* Update-available toast — small, top of screen, independent of the install banner */
.hbp-pwa-update-toast {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translate(-50%, -140%);
    z-index: 99999;
    background: #1E293B;
    color: #F8FAFC;
    border-radius: 999px;
    padding: 10px 12px 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    transition: transform .25s ease;
}
.hbp-pwa-update-toast.hbp-pwa-visible { transform: translate(-50%, 0); }
.hbp-pwa-update-toast button {
    background: var(--hbp-primary, #2563EB);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
