﻿/* Banner cài PWA sau khi đăng nhập — mobile: nổi trên bottom-nav; desktop: thẻ góc phải dưới */
.hp-lib {
    position: fixed;
    z-index: 1070;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom)); /* chừa chỗ .hp-bottom-nav */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
    padding: 14px 14px 12px;
    border-top: 4px solid #2F5233;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .28s ease, transform .28s ease;
    font-size: 14px;
    color: #333;
}

    .hp-lib.is-show {
        opacity: 1;
        transform: translateY(0);
    }

.hp-lib-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 2px 6px;
}

.hp-lib-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-right: 22px;
}

.hp-lib-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f3f3;
}

.hp-lib-title {
    font-weight: 700;
    font-size: 15px;
    color: #2F5233;
    margin-bottom: 2px;
}

.hp-lib-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.hp-lib-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.hp-lib-later {
    border: 0;
    background: none;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    cursor: pointer;
}

.hp-lib-install {
    border: 0;
    border-radius: 20px;
    background: #2F5233;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    cursor: pointer;
}

    .hp-lib-install:hover {
        background: #24401f;
    }

.hp-lib-ios {
    flex: 1;
    font-size: 13px;
    color: #444;
    background: #f4f7f3;
    border-radius: 10px;
    padding: 8px 10px;
}

.hp-lib-share {
    display: inline-flex;
    vertical-align: -3px;
    color: #007aff;
}

@media (min-width: 992px) {
    .hp-lib {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 380px;
    }
}

/* 03/10: hướng dẫn cài trên iPhone (Safari iOS 26: ••• → Chia sẻ → Thêm vào MH chính) */
ol.hp-lib-ios {
    order: -1;
    flex: 1 1 100%;
    margin: 0;
    padding: 8px 10px 8px 28px;
    background: #f3f8f4;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #222;
    text-align: left;
}

    ol.hp-lib-ios li + li {
        margin-top: 3px;
    }

.hp-lib-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    border: 1px solid #cfd8d2;
    border-radius: 7px;
    background: #fff;
    font-weight: 600;
    white-space: nowrap;
    color: #1a73e8;
}

    .hp-lib-key svg {
        flex: 0 0 auto;
    }

.hp-lib-actions {
    flex-wrap: wrap;
}
/* iPhone: 3 bước nằm 1 hàng riêng, nút "Để sau" xuống dưới */
