/* Subscription Lifecycle Banner — sticky top banner for trial/past_due/expired states */

.subscription-banner-root {
    flex-shrink: 0; /* don't collapse in body's flex column layout */
    width: 100%;
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.2s ease-out;
    z-index: 1040; /* above header-bar (1030), below modal (1055) */
}

.subscription-banner-root.hidden {
    max-height: 0;
}

.subscription-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.subscription-banner__content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.subscription-banner__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscription-banner__text--mobile {
    display: none;
}

.subscription-banner__cta {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease-out;
}

.subscription-banner__cta:hover {
    background: rgba(0, 0, 0, 1);
}

.subscription-banner__dismiss {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    opacity: 0.7;
}

.subscription-banner__dismiss:hover {
    opacity: 1;
}

/* Variants — backgrounds and text colors */
.subscription-banner--info {
    background: #3b82f6; /* blue-500 */
    color: #fff;
}

.subscription-banner--warning {
    background: #f59e0b; /* amber-500 */
    color: #000;
}

.subscription-banner--warning .subscription-banner__cta {
    background: #000;
    color: #f59e0b;
}

.subscription-banner--warning-plus {
    background: #f97316; /* orange-500 */
    color: #fff;
}

.subscription-banner--urgent {
    background: #dc2626; /* red-600 */
    color: #fff;
}

/* Mobile: swap text visibility and tighten padding */
@media (max-width: 768px) {
    .subscription-banner {
        padding: 8px 12px;
        font-size: 13px;
        gap: 8px;
    }
    .subscription-banner__text--desktop {
        display: none;
    }
    .subscription-banner__text--mobile {
        display: block;
    }
    .subscription-banner__cta {
        padding: 5px 12px;
        font-size: 12px;
    }
    .subscription-banner__dismiss {
        padding: 2px 6px;
        font-size: 18px;
    }
}
