/* Standalone [invizo_subscriptions] portal — scoped to .invizo-portal */

.invizo-portal {
    max-width: 56rem;
    margin: 1.5rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1d2327;
}

.invizo-portal--notice {
    padding: 1rem 1.25rem;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.invizo-portal__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.invizo-portal__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.invizo-portal__nav {
    margin-bottom: 1rem;
}

.invizo-portal__back {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.invizo-portal__back:hover {
    text-decoration: underline;
}

.invizo-portal__empty {
    color: #646970;
    margin: 0;
}

.invizo-portal__table-wrap {
    overflow-x: auto;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.invizo-portal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.invizo-portal__table th,
.invizo-portal__table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.invizo-portal__table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #50575e;
}

.invizo-portal__table tr:last-child td {
    border-bottom: none;
}

.invizo-portal__actions {
    white-space: normal;
    vertical-align: top;
    min-width: 7.5rem;
}

.invizo-portal__link {
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
}

.invizo-portal__link:hover {
    text-decoration: underline;
}

.invizo-portal__badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.invizo-portal__badge--active {
    background: #c6e1c6;
    color: #2b542c;
}

.invizo-portal__badge--cancelled,
.invizo-portal__badge--canceled {
    background: #f4d0a9;
    color: #8a6d3b;
}

.invizo-portal__badge--expired,
.invizo-portal__badge--past_due {
    background: #eec5c5;
    color: #843534;
}

.invizo-portal__badge--pending {
    background: #d6d6d6;
    color: #333;
}

.invizo-portal__badge--default {
    margin-left: 0.35rem;
    background: #e8f4fc;
    color: #135e96;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
}

.invizo-portal__sub-note {
    display: block;
    margin-top: 0.2rem;
    font-size: 11px;
    font-weight: 500;
    color: #646970;
    text-transform: none;
    letter-spacing: 0;
}

.invizo-portal__card-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    max-width: 32rem;
}

.invizo-portal__card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f1;
}

.invizo-portal__card-row:last-child {
    border-bottom: none;
}

.invizo-portal__card-meta {
    font-size: 14px;
    color: #1d2327;
}

.invizo-portal__card-exp {
    margin-left: 0.35rem;
    color: #646970;
    font-size: 13px;
}

.invizo-portal__inline-form {
    display: inline;
    margin: 0;
}

.invizo-portal__inline-form--stack {
    display: block;
    margin-top: 0.35rem;
}

.invizo-portal__btn-compact {
    padding: 0.35rem 0.75rem;
    font-size: 13px;
}

.invizo-portal__link--btn {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
}

.invizo-portal__link--btn:hover {
    text-decoration: underline;
}

.invizo-portal__cancel-form {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f1;
}

.invizo-portal__muted {
    margin: 1rem 0 0;
    font-size: 14px;
    color: #646970;
}

.invizo-portal__dl {
    margin: 0;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.invizo-portal__row {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    gap: 0.5rem 1.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f1;
}

.invizo-portal__row:last-child {
    border-bottom: none;
}

.invizo-portal__row dt {
    margin: 0;
    font-weight: 600;
    color: #646970;
}

.invizo-portal__row dd {
    margin: 0;
}

.invizo-portal__code {
    font-size: 12px;
    word-break: break-all;
}

@media (max-width: 600px) {
    .invizo-portal__table thead {
        display: none;
    }

    .invizo-portal__table tr {
        display: block;
        border-bottom: 1px solid #dcdcde;
        padding: 0.75rem 0;
    }

    .invizo-portal__table td {
        display: block;
        border: none;
        padding: 0.25rem 1rem;
    }

    .invizo-portal__table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #646970;
        text-transform: uppercase;
        margin-bottom: 0.15rem;
    }

    .invizo-portal__row {
        grid-template-columns: 1fr;
    }
}

/* Dashboard shell ([invizo_account]) */
.invizo-dashboard {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) 1fr;
    gap: 1.5rem 2rem;
    max-width: 60rem;
    margin: 1.5rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1d2327;
}

.invizo-dashboard__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.invizo-dashboard__nav-link {
    display: block;
    padding: 0.65rem 1rem;
    color: #1d2327;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f1;
}

.invizo-dashboard__nav-link:last-child {
    border-bottom: none;
}

.invizo-dashboard__nav-link:hover {
    background: #f6f7f7;
}

.invizo-dashboard__nav-link.is-active {
    background: #f0f6fc;
    color: #2271b1;
    box-shadow: inset 3px 0 0 #2271b1;
}

.invizo-dashboard__nav-link--logout {
    color: #646970;
    font-weight: 600;
}

.invizo-dashboard__notice {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.invizo-dashboard__notice--success {
    background: #edfaef;
    border: 1px solid #68de7c;
    color: #1e4620;
}

.invizo-dashboard__notice--error {
    background: #fcf0f1;
    border: 1px solid #f0b0b5;
    color: #6c212b;
}

.invizo-portal__subtitle {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.invizo-portal__lead {
    margin: 0 0 1rem;
    color: #646970;
}

.invizo-portal__post-checkout {
    margin-bottom: 1rem;
}

.invizo-portal__post-checkout-sep {
    color: #646970;
}

.invizo-profile-form {
    max-width: 28rem;
}

/* Auth ([invizo_auth]) — centered shell + page header */
.invizo-auth__shell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: min(72vh, 40rem);
    padding: 2rem 1.25rem;
}

.invizo-auth {
    max-width: 52rem;
    width: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1d2327;
}

.invizo-auth__page-head {
    text-align: center;
    margin: 0 0 1.25rem;
}

.invizo-auth__site-name {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #646970;
}

.invizo-auth__page-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.45rem, 4.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1d2327;
}

.invizo-auth__page-lead {
    margin: 0 auto;
    max-width: 26rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #646970;
}

.invizo-auth--logged-in {
    text-align: center;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.invizo-auth--logged-in .invizo-auth__actions {
    justify-content: center;
}

.invizo-auth__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.invizo-auth__grid--login,
.invizo-auth__grid--register {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.invizo-auth__panel {
    padding: 1.25rem;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.invizo-auth__panel--muted {
    background: #f6f7f7;
}

.invizo-auth__field {
    margin: 0 0 0.55rem;
}

.invizo-auth__field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0.25rem;
    color: #1d2327;
}

.invizo-auth__field--inline label {
    font-weight: 500;
}

.invizo-auth__input {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.invizo-auth__hint {
    margin: -0.35rem 0 0.85rem;
    font-size: 12px;
    color: #646970;
}

.invizo-auth__submit {
    margin: 0;
}

.invizo-auth__btn {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    text-align: center;
}

.invizo-auth__btn--primary {
    background: #2271b1;
    color: #fff;
}

.invizo-auth__btn--primary:hover {
    background: #135e96;
    color: #fff;
}

.invizo-auth__btn--ghost {
    background: transparent;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.invizo-auth__alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.invizo-auth__alert--error {
    background: #fcf0f1;
    border: 1px solid #f0b0b5;
    color: #6c212b;
}

.invizo-auth__alert--success {
    background: #edfaef;
    border: 1px solid #68de7c;
    color: #1e4620;
}

.invizo-auth__muted {
    margin: 0;
    color: #646970;
}

.invizo-auth__intro {
    margin: 0 0 0.75rem;
}

.invizo-auth__actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.invizo-auth__switch {
    margin: 1rem 0 0;
    font-size: 14px;
}

.invizo-auth__switch a {
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
}

.invizo-auth__switch a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .invizo-dashboard {
        grid-template-columns: 1fr;
    }
}
