/**
 * Full-screen subscription lock when trial/plan is expired.
 * Blocks all interaction except the renew/upgrade CTA.
 * On portal renew screens (--renew), hide modal and only unlock billing UI.
 */

html.subscription-locked,
html.subscription-locked body,
body.subscription-locked {
    overflow: hidden !important;
}

html.subscription-locked.subscription-locked--renew,
html.subscription-locked.subscription-locked--renew body,
body.subscription-locked.subscription-locked--renew {
    overflow: auto !important;
}

body.subscription-locked .wrapper,
body.subscription-locked .page-loader {
    pointer-events: none !important;
    user-select: none !important;
}

/* Renew/pay screens: unlock only the portal content area inside app chrome. */
body.subscription-locked.subscription-locked--renew .portal-account-pos-shell,
body.subscription-locked.subscription-locked--renew .portal-account-pos-shell * {
    pointer-events: auto !important;
    user-select: auto !important;
}

body.subscription-locked.subscription-locked--renew .sidebar-wrapper,
body.subscription-locked.subscription-locked--renew .topbar,
body.subscription-locked.subscription-locked--renew .header-nav,
body.subscription-locked.subscription-locked--renew nav.sidebar-nav,
body.subscription-locked.subscription-locked--renew .plan-upsell-banner {
    pointer-events: none !important;
    user-select: none !important;
}

.subscription-lock-renew-banner {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    padding: 0.55rem 1rem;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: auto !important;
}

.subscription-lock-renew-banner__link {
    color: #008a5e;
    font-weight: 650;
    text-decoration: underline;
}

.subscription-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: auto;
}

.subscription-lock-overlay__panel {
    width: min(28rem, 100%);
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

.subscription-lock-overlay__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f2;
    color: #e11d48;
    font-size: 1.55rem;
}

.subscription-lock-overlay__title {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.subscription-lock-overlay__message {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
}

.subscription-lock-overlay__retention {
    margin: 0 0 1.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.45;
}

.subscription-lock-overlay__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: #008a5e;
    border: 1px solid #008a5e;
    color: #fff !important;
    font-weight: 650;
    font-size: 0.9375rem;
    text-decoration: none !important;
}

.subscription-lock-overlay__cta:hover,
.subscription-lock-overlay__cta:focus {
    background: #007a54;
    border-color: #007a54;
    color: #fff !important;
}

html.dark-theme .subscription-lock-overlay__panel {
    background: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
}

html.dark-theme .subscription-lock-overlay__message {
    color: #94a3b8;
}

html.dark-theme .subscription-lock-overlay__retention {
    background: rgba(154, 52, 18, 0.22);
    border-color: rgba(253, 186, 116, 0.35);
    color: #fdba74;
}
