.agency-pwa-widget[hidden] { display: none !important; }
.agency-pwa-widget [hidden] { display: none !important; }

.agency-pwa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #0f766e;
    border-radius: 10px;
    background: #0f766e;
    color: #fff;
    font: 700 13px/1.2 system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.agency-pwa-button:hover { background: #0b5e58; }
.agency-pwa-button:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
.agency-pwa-widget {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    width: 44px;
    height: 44px;
}

.agency-pwa-button--corner {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(15, 118, 110, .28);
}

@media (max-width: 900px) {
    body.agency-bottom-layout .agency-pwa-widget {
        bottom: calc(var(--agency-bottom-nav-space, 104px) + 8px);
    }
}

/* Vao tu nut "Dai ly" o trang chu (?install=1): nut tai nhap nhay vai lan de nguoi dung bam */
.agency-pwa-widget--attn .agency-pwa-button { animation: agencyPwaAttn 1.1s ease-in-out 6; }
@keyframes agencyPwaAttn {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(15, 118, 110, .28); }
    50% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(15, 118, 110, .18); }
}
