.table {
    position: relative;
}

.table__wrapper {
    display: flex;
    overflow: hidden;
}

.table__titles {
    flex: 0 0 250px;
    z-index: 2;
    border-right: 1px solid var(--border-color);
}

.table__row-title {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    min-height: 3.75rem;
    box-sizing: border-box;
}

.table__slider {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.table__column-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: transparent;
}

.table__column:last-child .table__column-content {
    border-right: none;
}

.table__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    width: 100%;
}

.table__cell-inner {
    width: 100%;
    display: flex;
    flex-direction: var(--cell-text-direction, column);
}

.table__cell .table__cell-inner {
    justify-content: center;
}

.table__cell-inner_row {
    gap: 1rem;
}

.table__cell.row-style-true_false .cell-icon svg {
    display: block;
    margin: 0 auto;
}

.table__footer {
    border-bottom: 1px solid var(--border-color);
}

.table__cell-inner-note {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.table__cell-inner-two_lines .table__cell-inner-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plans-label {
    margin-right: 0.5rem;
}

.plans-label span {
    color: #666;
}

.plans-tooltip {
    position: relative;
    cursor: pointer;
}

.plans-tooltip {
    display: flex;
    align-items: center;
}

.plans-tooltip svg {
    width: 18px;
    height: 18px;
    filter: grayscale(1);
    fill-opacity: 0.6;
}

.plans-tooltip:hover svg {
    fill-opacity: 1;
    filter: grayscale(0);
}

.plans-tooltip .plans-tooltip-box {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--note-bg);
    backdrop-filter: blur(2px);
    font-size: 0.875rem;
    line-height: 140%;
    max-width: 19rem;
    width: max-content;
    color: var(--main-text-color);
}

.plans-tooltip.is-active .plans-tooltip-box {
    display: block;
}

.cell-hover {
    background-color: var(--cell-hover);
}

.table-price .table__cell:first-child {
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4.38rem;
}

.plans-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 140%;
}

.plans-badge:before {
    content: '';
    display: block;
    width: 0.875rem;
    height: 0.875rem;
    background: var(--plans-badge-bg);
    border-radius: 100%;
}

.tab_col_mostpop {
    border-left: 1px solid var(--price-most-popular-border);
    background: var(--price-most-popular-bg);
    margin-left: -1px;
}

.table__column-content.tab_col_mostpop .table__cell {
    border-right-color: var(--price-most-popular-border);
}

.tab_col_mostpop .table__cell:last-child {
    border-bottom-color: var(--price-most-popular-border);
}

.cell-style-descritpion_and_button {
    align-items: flex-start;
}

.cell-style-descritpion_and_button .table__cell-inner-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cell-style-descritpion_and_button .cell-top-text {
    font-size: 0.875rem;
    line-height: 140%;
}

.cell-logo-image img {
    max-height: 2.5rem;
    object-fit: contain;
    width: auto;
}

.table__cell-mobile-title {
    display: none;
}

.table__mobile-top-left-cell {
    display: none;
}

.cell-style-two_lines .table__cell-inner-content,
.row-style-button .table__cell-value {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.row-style-logo_and_description .cell-second-text {
    font-size: 0.875rem;
    line-height: 140%;
}

.table__column-content.tab_col_before_mostpop .table__cell {
    border-right: none;
}

@media (min-width: 992px) {
    .table__wrapper {
        display: grid;
        grid-template-columns: repeat(calc(var(--table-columns) * 2 + (var(--divider-first-col, 1) * 2 - 2)), 1fr);
    }

    .table__slider .swiper-wrapper,
    .table__slider .table__grid-mobile-wrapper {
        display: flex;
        transform: none !important;
    }

    .table__slider {
        grid-column: span calc(var(--table-columns) * 2 - 2);
    }

    .table__titles {
        grid-column: span calc(var(--divider-first-col, 1) * 2);
    }

    .table__slider .swiper-wrapper {
        display: flex;
        transform: none !important;
    }

    .table__column {
        flex: 1;
        width: auto !important;
        border: none;
    }

    .table__column-content .table__cell {
        border-right: 1px solid var(--border-color);
    }

    .table__column:last-child .table__column-content .table__cell {
        border-right: none;
    }

    .swiper-pagination {
        display: none;
    }


}

@media (max-width: 991px) {

    .table-mobile-column .table__mobile-top-left-cell {
        display: block;
        padding: 1rem 1rem 2rem 1rem;
        text-align: center;
    }

    .table-mobile-column .table__mobile-top-left-cell .table__cell-inner-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .table-mobile-column .table__mobile-top-left-cell .cell-top-text,
    .table-mobile-column .table__mobile-top-left-cell .title-text {
        text-align: center;
    }

    .table-mobile-column .table__titles {
        display: none !important;
    }

    .table-mobile-column .table__slider .swiper-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem;
        transform: none !important;
        width: 100% !important;
    }

    .table-mobile-column .table__column {
        width: 100% !important;
        flex-shrink: 0;
    }

    .table-mobile-column .table__cell-mobile-title {
        display: flex;
        align-items: center;
        flex: 1;
        text-align: left;
        padding-right: 1rem;
    }

    .table-mobile-column .table__cell-inner {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .table-mobile-column .table__cell-value {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    .table-mobile-column .table__cell.row-style-true_false .cell-icon svg {
        margin: 0 0 0 auto !important;
    }

    .table-mobile-column .table__cell[data-row-index="0"] .table__cell-inner {
        justify-content: center !important;
    }

    .table-mobile-column .table__cell[data-row-index="0"] .table__cell-value {
        align-items: flex-start;
        text-align: left;
        gap: 0.25rem;
        width: 100%;
    }

    .js-table-swiper .table__column-content .table__cell {
        border-right: 1px solid var(--border-color);
    }

    .js-table-swiper .table__column-content.tab_col_mostpop  .table__cell {
        border-right: 1px solid var(--price-most-popular-border);
    }

    .table__grid-mobile .table__column:first-child {
        border-top: 1px solid var(--border-color);
    }

    .table__grid-mobile .table__column-content.tab_col_mostpop {
        border-top: 1px solid var(--price-most-popular-border);
    }
}

@media (max-width: 768px) {
    .table__titles {
        flex: 0 0 140px;
    }
}

@media (max-width: 468px) {
    .table__titles {
        flex: 0 0 120px;
    }
}