.prices-wrapper {
    width: 100%;
    padding: 50px;
    box-sizing: border-box;

    .prices {
        padding: 50px;
        border-radius: 20px;
        background: white;
        border: 2px solid var(--color-violet);

        .price {
            max-width: 330px;
            width: 33%;
            box-sizing: border-box;
            border-radius: 10px;
            padding: 30px;
            transition: all 200ms;
            display: flex;
            flex-direction: column;
            gap: 24px;

            .tagline {
                font-size: 0.9rem;
                font-weight: 300;
            }

            .title {
                margin-bottom: 12px;
            }

            .price-info {
                h3 {
                    font-size: 32px;
                    font-weight: 500;
                }

                .tagline {
                    font-weight: 500;
                }

                .hidden-price {
                    display: none;
                }
            }


            ul {
                margin: 0;
                list-style-type: none;
                font-weight: 300;
                font-size: 0.9rem;

                li {
                    margin-left: -21px;

                    &::before {
                        content: "\2022";
                        color: var(--color-violet);
                        font-weight: bold;
                        display: inline-block;
                        width: 1em;
                        margin-left: -1em;
                        margin-top: 3px;
                        font-size: 20px;
                    }
                }
            }

            &:hover {
                background: var(--color-violet-lightest);
            }
        }

        .price:nth-of-type(2) {
            background: var(--color-violet-lightest);
        }
    }
}

.switch {
    position: relative;
    margin-bottom: 30px;

    button {
        color: var(--color-black) !important;
        border: none !important;
        background: #efefef;
        text-transform: none;
        font-weight: 600;
        font-size: 0.75rem !important;
        padding: 8px 18px;

        &:first-of-type {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        &:last-of-type {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        &.active, &:hover {
            background: var(--color-violet-lighter);
            color: var(--color-violet) !important;
            cursor: pointer;
        }
    }

    .save-label {
        position: absolute;
        right: -10px;
        transform: translateX(100%);
        font-size: 0.6rem;
        background: var(--color-violet-lighter);
        padding: 2px 12px;
        border-radius: 20px;
        font-weight: 700;
    }
}

.feature-table-container {
    position: relative;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.feature-table-container.expanded {
    max-height: none;
}

.feature-table-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-violet-lightest) 0%, var(--color-violet-lightest) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feature-table-container.expanded .feature-table-gradient {
    opacity: 0;
}

.feature-table-toggle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-violet);
    border: 2px solid var(--color-violet);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.feature-table-toggle:hover {
    background: transparent;
    color: var(--color-violet);
}

.feature-table-container.expanded .feature-table-toggle {
    display: none;
}

.prices-list {
    box-sizing: border-box;
    background: var(--color-violet-lightest);
    padding: 32px;
    border-radius: 20px;
    font-weight: 400;

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }

    thead {
        position: sticky;
        background: var(--color-violet-lightest);
        top: 0;
    }


    th {
        text-align: left;
        font-weight: 500;
    }

    td, th {
        padding: 8px 0;
        font-size: 13px;

        svg {
            font-size: 12px;
            max-height: 18px;
            transform: translateY(3px);
        }
    }

    td {
        color: oklch(43.9% 0 0);
    }

    .feature-group-row {
        background: transparent;
        border-bottom: 1px solid #d8d8d8;
        font-weight: 500;

        td {
            padding-top: 40px;
            font-size: 16px;
            color: #333333;
        }
    }

    .feature-group-row:first-of-type {
        td {
            padding-top: 0px;
        }
    }

    tr.last {
        td {
            height: fit-content;
            padding: 60px 16px 16px 16px;
        }
    }
}

@media (max-width: 640px) {
    .prices-list thead {

        th {
            width: calc(100% / 3);
            float: left;
        }

        th:first-of-type {
            width: 0;
        }
    }

    .prices-list tr {
        display: block;
        margin-bottom: 12px;
    }

    .prices-list td:first-child {
        display: block; /* put feature name on its own line */
        width: 100%;
        font-weight: 600;
        padding-bottom: 0;
    }

    /* All other tds (values) stay inline and wrap naturally */
    .prices-list td:not(:first-child) {
        display: inline-block;
        width: calc(100% / 3.1);
    }

    .feature-group-row {
        td {
            padding-top: 20px !important;
        }
    }

    tr.last {
        td {
            display: none !important;
        }

        td:nth-child(2) {
            display: block !important;
            width: 100% !important;

            a {
                width: 100%;
            }
        }

    }
}

@media screen and (max-width: 1100px) {
    .prices-list-wrapper {
        padding: 32px;
    }
    .prices-wrapper {
        padding: 32px;

        .prices {
            padding: 32px;

            .price {
                width: 100%;
            }
        }
    }
}

@media screen and (max-width: 400px) {
    .switch {
        margin-top: 38px;
    }

    .save-label {
        right: 50% !important;
        transform: translateX(50%) !important;
        width: fit-content;
        top: -26px

    }
}