@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/SubscriptionCard.razor.rz.scp.css */
.sub-card[b-6fduv01pe7] {
    border: 1px solid var(--border-color, rgba(128, 128, 128, 0.35));
    border-left-width: 4px;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 10px 0;
}
.sub-good[b-6fduv01pe7] { border-left-color: #22c55e; }
.sub-bad[b-6fduv01pe7] { border-left-color: #ef4444; }
.sub-paused[b-6fduv01pe7] { border-left-color: #f59e0b; }
.sub-none[b-6fduv01pe7] { border-left-color: #64748b; }

.sub-head[b-6fduv01pe7] { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sub-badge[b-6fduv01pe7] { font-size: 0.75rem; padding: 1px 8px; border-radius: 10px; background: rgba(128, 128, 128, 0.18); }
.sub-row[b-6fduv01pe7] { margin: 4px 0; line-height: 1.45; }
.sub-muted[b-6fduv01pe7] { opacity: 0.7; font-size: 0.9em; }
.sub-alert[b-6fduv01pe7] { color: #ef4444; }
.sub-ok[b-6fduv01pe7] { color: #22c55e; }
.sub-error[b-6fduv01pe7] { color: #ef4444; }
/* the result of an action ("Card updated."): room above and below, so it does not sit on the buttons */
.sub-flash[b-6fduv01pe7] { margin: 16px 0 14px; }

.sub-actions[b-6fduv01pe7] { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.sub-link[b-6fduv01pe7] {
    background: none; border: none; padding: 0; cursor: pointer;
    color: inherit; text-decoration: underline; font-size: 0.9em;
}
/* Cancel trial / Cancel subscription: a real button, the same size as the orange one beside it, but quiet */
.sub-btn-plain[b-6fduv01pe7] { background: transparent; color: inherit; border: 1px solid rgba(128, 128, 128, 0.55); }
.sub-btn-plain:hover[b-6fduv01pe7] { background: rgba(128, 128, 128, 0.16); border-color: rgba(128, 128, 128, 0.85); }
.sub-link:disabled[b-6fduv01pe7], .sub-actions button:disabled[b-6fduv01pe7] { opacity: 0.5; cursor: default; }

.sub-history[b-6fduv01pe7] { margin-top: 12px; }
.sub-history summary[b-6fduv01pe7] { cursor: pointer; font-size: 0.9em; }
.sub-history table[b-6fduv01pe7] { width: 100%; margin-top: 6px; font-size: 0.85em; border-collapse: collapse; }
.sub-history td[b-6fduv01pe7] { padding: 3px 8px 3px 0; }
.sub-advanced[b-6fduv01pe7] { margin-top: 10px; }

.sub-modal-backdrop[b-6fduv01pe7] { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 2000; }
.sub-modal[b-6fduv01pe7] {
    position: fixed; z-index: 2001; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(520px, 92vw); max-height: 90vh; overflow-y: auto;
    background: var(--page-background, #0b1220); color: inherit;
    border: 1px solid rgba(128, 128, 128, 0.4); border-radius: 8px; padding: 18px 20px;
}
/* the cancel dialog's button row and the hint under it */
.sub-modal > .sub-actions[b-6fduv01pe7] { margin-top: 16px; }
.sub-hint[b-6fduv01pe7] { margin: 14px 0 4px; }
.sub-reasons[b-6fduv01pe7] { display: grid; gap: 4px; margin: 6px 0 10px; }
.sub-reasons label[b-6fduv01pe7] { cursor: pointer; }
.sub-comment[b-6fduv01pe7] { width: 100%; margin-bottom: 10px; background: transparent; color: inherit; border: 1px solid rgba(128, 128, 128, 0.4); border-radius: 4px; padding: 6px; }
.sub-pause-offer[b-6fduv01pe7] { border: 1px dashed rgba(245, 158, 11, 0.6); border-radius: 6px; padding: 10px; margin: 8px 0 12px; }

.sub-card-frame[b-6fduv01pe7] { padding: 0; width: min(520px, 94vw); height: min(640px, 90vh); overflow: hidden; }
.sub-card-frame iframe[b-6fduv01pe7] { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-itt3mhsbkv] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-itt3mhsbkv] {
    flex: 1;
}

.sidebar[b-itt3mhsbkv] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-itt3mhsbkv] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-itt3mhsbkv]  a, .top-row[b-itt3mhsbkv]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-itt3mhsbkv]  a:hover, .top-row[b-itt3mhsbkv]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-itt3mhsbkv]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-itt3mhsbkv] {
        display: none;
    }

    .top-row.auth[b-itt3mhsbkv] {
        justify-content: space-between;
    }

    .top-row[b-itt3mhsbkv]  a, .top-row[b-itt3mhsbkv]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-itt3mhsbkv] {
        flex-direction: row;
    }

    .sidebar[b-itt3mhsbkv] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-itt3mhsbkv] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-itt3mhsbkv]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-itt3mhsbkv], article[b-itt3mhsbkv] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
