/* Push nudge — small fixed card revealed by push_registration_controller when
   a live notification lands in-page but this PWA has never been asked for
   push permission. Markup lives in base.html (the push-registration mount);
   visibility is driven purely by the [hidden] attribute. */
.push-nudge {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1040; /* above content and the fixed bell (1020s), below modals (1050+) */
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 10px 14px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
    line-height: 1.3;
    animation: push-nudge-in 0.25s ease;
}

/* display:flex would defeat the hidden attribute without this. */
.push-nudge[hidden] {
    display: none;
}

.push-nudge-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.push-nudge-text {
    flex-grow: 1;
}

.push-nudge-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.push-nudge-actions .btn {
    white-space: nowrap;
}

@keyframes push-nudge-in {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
