.inst-table {
    padding: 0;
    width: 100%;
}

.inst-table__intro {
    position: relative;
}

.inst-table__intro--has-media {
    min-height: 1px;
    margin-bottom: 160px;
}

.inst-table__media {
    position: absolute;
    top: -110px;
    left: 0;
    width: 100%;
    z-index: -1;
    overflow: hidden;
}

.inst-table__media picture,
.inst-table__media .inst-table__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.inst-table--bleed,
.inst-table--bleed .inst-table__intro,
.inst-table--bleed .inst-table__media {
    overflow: visible;
}

.inst-table--bleed .inst-table__media .inst-table__image {
    max-width: none;
    width: auto;
}

.inst-table__title,
.inst-table .heading-with-star-subtitle {
    position: relative;
    z-index: 1;
}

.inst-table .inst-table__title:not(.heading-with-star) {
    margin: 0 0 0 calc(50% + 20px);
}

.inst-table .inst-table__title.heading-with-star {
    margin-bottom: 0;
}

.inst-table .heading-with-star-subtitle:not(:first-child) {
    margin-top: 30px;
}

.inst-table__description > *:first-child {
    margin-top: 0;
}

.inst-table__description > *:last-child {
    margin-bottom: 0;
}

.inst-table__table {
    --inst-table-cols: 1;
    --inst-table-gap: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.inst-table__mobile {
    display: none;
}

.inst-table__row {
    display: grid;
    grid-template-columns: repeat(var(--inst-table-cols), minmax(0, 1fr));
    column-gap: var(--inst-table-gap);
    border-top: 1px solid var(--grey-border-40);
    padding-top: 10px;
    padding-bottom: 10px;
}

.inst-table__row:first-child {
    border-top: 0px;
}

.inst-table__row:last-child {
    border-bottom: 1px solid var(--grey-border-40);
}

.inst-table__cell {
    position: relative;
    min-width: 0;
}

.inst-table__cell:not(.inst-table__cell--last)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(var(--inst-table-gap) / -2);
    width: 1px;
    background-color: var(--grey-border-40);
}

.inst-table__cell-inner {
    height: 100%;
    padding: 0px 20px;
}

.inst-table__cell--head .inst-table__cell-inner {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 150px;
    padding: 10px 20px;
    border-top-left-radius: 30px;
    background: url(/wp-content-v3/uploads/2026/10/table-default-bg.webp);
    background-position: bottom right;
    background-size: cover;
    background-repeat: no-repeat;
}

.inst-table__cell--head.inst-table__cell--last .inst-table__cell-inner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #082C5A;
    color: #fff;
}

.inst-table__cell--head.inst-table__cell--last .inst-table__cell-inner::before {
    content: '';
    position: absolute;
    top: -240px;
    right: -190px;
    width: 532px;
    height: 240px;
    border-radius: 50%;
    background: #33F8E9;
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
    transform: rotate(-45deg);
    transform-origin: center center;
    filter: blur(60px);
}

@media (max-width: 1023px) {
    .inst-table__intro--has-media {
        margin-bottom: 60px;
    }
    .inst-table__cell--head.inst-table__cell--last .inst-table__cell-inner::before {
        top: -200px;
        right: -260px;
    }
    .inst-table__cell--head .inst-table__cell-inner {
        padding: 16px 20px;
    }
    .inst-table__media {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }
    .inst-table .inst-table__title:not(.heading-with-star) {
        margin-left: 0;
    }
    .inst-table--bleed .inst-table__media .inst-table__image {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .inst-table__desktop {
        display: none;
    }

    .inst-table__mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Default: stacked columns */
    .inst-table__mobile--stacked {
        gap: 24px;
    }

    .inst-table__mobile-column {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .inst-table__mobile-column .inst-table__cell--head {
        width: 100%;
    }

    .inst-table__mobile-column .inst-table__cell--head::after {
        display: none;
    }

    .inst-table__mobile-column .inst-table__cell--head .inst-table__cell-inner {
        min-height: 0;
        border-top-left-radius: 20px;
    }

    .inst-table__mobile-stacked-cells {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .inst-table__mobile-stacked-cells .inst-table__cell {
        border-top: 1px solid var(--border-light-grey, #E8EDF2);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .inst-table__mobile-stacked-cells .inst-table__cell:last-child {
        border-bottom: 1px solid var(--border-light-grey, #E8EDF2);
    }

    .inst-table__mobile-stacked-cells .inst-table__cell::after {
        display: none;
    }

    .inst-table__mobile-stacked-cells .inst-table__cell-inner {
        padding: 0 20px;
    }

    /* Comparison layout (switcher) */
    .inst-table__mobile-block {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .inst-table__mobile-label,
    .inst-table__mobile-heads .inst-table__cell--head {
        width: 100%;
    }

    .inst-table__mobile-label::after {
        display: none;
    }

    .inst-table__mobile-label .inst-table__cell-inner,
    .inst-table__mobile-heads .inst-table__cell--head:not(.inst-table__cell--last) .inst-table__cell-inner {
        border-top-left-radius: 20px;
        background: url(/wp-content-v3/uploads/2026/10/table-default-bg.webp);
        background-position: bottom right;
        background-size: cover;
        background-repeat: no-repeat;
        color: inherit;
    }

    .inst-table__mobile-heads {
        padding: 10px 0px 0px;
        margin: 10px 0px 0px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--inst-table-gap);
        border-top: 1px solid var(--grey-border-40);
    }

    .inst-table__mobile-heads .inst-table__cell:not(.inst-table__cell--last)::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: calc(var(--inst-table-gap) / -2);
        width: 1px;
        background-color: var(--grey-border-40);
    }

    .inst-table__mobile-heads .inst-table__cell--last .inst-table__cell-inner {
        min-height: 0;
        border-top-left-radius: 20px;
        background: var(--background-dark-blue, #082C5A);
        color: #fff;
    }

    .inst-table__mobile-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--inst-table-gap);
        border-bottom: 1px solid var(--grey-border-40);
        padding-bottom: 10px;
    }

    .inst-table__mobile-row .inst-table__cell {
        padding: 10px 0px 0px;
    }

    .inst-table__mobile-row .inst-table__cell:not(.inst-table__cell--last)::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: calc(var(--inst-table-gap) / -2);
        width: 1px;
        background-color: var(--grey-border-40);
    }

    .inst-table__mobile-row .inst-table__cell-inner {
        padding: 0 20px;
    }
}
