.pwa-install-brand {
    display: inline-flex;
    align-items: center;
}
.font-scale-ctrl--brand .pwa-install-btn-brand {
    min-width: 1.75rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #FFF8E1 !important;
    background: rgba(255, 193, 7, 0.24);
    border-color: rgba(255, 213, 79, 0.58);
}
.font-scale-ctrl--brand .pwa-install-btn-brand:hover:not(:disabled) {
    background: rgba(255, 193, 7, 0.38);
    color: #fff !important;
}
.pwa-install-btn-brand__label {
    display: none;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
@media (min-width: 400px) {
    .pwa-install-btn-brand__label {
        display: inline;
    }
    .font-scale-ctrl--brand .pwa-install-btn-brand {
        padding: 0.15rem 0.45rem;
    }
}

#pwaInstallNav .pwa-install-btn {
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
#pwaInstallNav .pwa-install-btn:hover {
    color: #fff !important;
    opacity: 0.9;
}

.pwa-ios-hint {
    background: linear-gradient(90deg, #1B6B2A, #2E7D32);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.pwa-ios-hint__text {
    line-height: 1.35;
}
.pwa-ios-hint__close {
    flex-shrink: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Hộp thoại nhắc cài PWA - luôn trên bản đồ / Tom Select (z-index 2000+) */
#pwaInstallPromptModal {
    z-index: 20050 !important;
}
.modal-backdrop.pwa-prompt-backdrop,
body.modal-open > .modal-backdrop:last-of-type {
    z-index: 20040 !important;
}
#pwaInstallPromptModal.show {
    display: block;
}
.pwa-prompt-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(20, 82, 34, 0.18);
}
.pwa-prompt-modal__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 0.5rem;
}
.pwa-prompt-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27, 107, 42, 0.2);
}
.pwa-prompt-modal__steps {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.55;
}
.pwa-prompt-modal__steps li + li {
    margin-top: 0.35rem;
}
.pwa-ios-guide-media {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.pwa-ios-guide-gif {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
    background: #f4f7f4;
}
@media (max-width: 576px) {
    .pwa-ios-guide-media {
        max-width: 240px;
    }
    .pwa-ios-guide-gif {
        max-height: min(46vh, 360px);
    }
}
#pwaPromptBtnInstall:disabled,
#pwaPromptBtnInstall.disabled {
    opacity: 0.7;
}
.pwa-prompt-modal .form-check-label {
    color: #4a5c50;
}
.pwa-prompt-status {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    line-height: 1.4;
}
.pwa-prompt-status--info {
    background: #e8f5e9;
    color: #1b5e20;
}
.pwa-prompt-status--warn {
    background: #fff8e1;
    color: #6d4c00;
}
.pwa-prompt-status--ok {
    background: #e8f5e9;
    color: #145214;
    font-weight: 600;
}
.pwa-prompt-status--err {
    background: #fdecea;
    color: #8a1f11;
}
.pwa-prompt-done__icon {
    font-size: 2rem;
}
#pwaPromptBtnInstall.is-busy {
    pointer-events: none;
    opacity: 0.85;
}

.pwa-update-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0));
    background: #145214;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(20, 82, 34, 0.28);
}
.pwa-update-banner__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 0.75rem;
}
.pwa-update-banner__text {
    flex: 1 1 220px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.pwa-update-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pwa-update-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.pwa-update-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
