/* =============================================================
   Subscription banner — sticky top-of-page payment reminder
   for tenants in pending_payment / overdue state.
   Rendered by js/modules/subscription-banner.js.
   ============================================================= */

#subscriptionBannerHost {
    position: sticky;
    top: 0;
    z-index: 1050; /* above app header, below open modals (2000+) */
}

.sub-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sub-banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.sub-banner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sub-banner-title { font-weight: 700; font-size: 0.9rem; }
.sub-banner-text  { font-weight: 400; opacity: 0.95; }

.sub-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}
.sub-banner-btn {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.9);
    color: #111827;
    white-space: nowrap;
}
.sub-banner-btn:hover { background: #fff; }
.sub-banner-btn-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.sub-banner-btn-primary:hover { background: #000; }

.sub-banner-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    flex-shrink: 0;
}
.sub-banner-close:hover { opacity: 1; }

/* Severity colours */
.sub-banner-warning  { background: #fef3c7; color: #78350f; }
.sub-banner-urgent   { background: #ffedd5; color: #7c2d12; }
.sub-banner-overdue  { background: #fee2e2; color: #7f1d1d; }
.sub-banner-success  { background: #d1fae5; color: #065f46; }

/* On overdue banner, make the primary CTA red to reinforce urgency */
.sub-banner-overdue .sub-banner-btn-primary {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}
.sub-banner-overdue .sub-banner-btn-primary:hover { background: #991b1b; }

/* Mobile: stack the button row below the message text */
@media (max-width: 720px) {
    .sub-banner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }
    .sub-banner-body {
        flex: 1 1 100%;
        order: 1;
    }
    .sub-banner-icon { order: 0; }
    .sub-banner-actions {
        flex: 1 1 100%;
        order: 2;
        justify-content: flex-start;
    }
    .sub-banner-close {
        order: 0;
        margin-left: auto;
    }
    .sub-banner-btn { padding: 8px 12px; }
}
