/* Compare Plans Page CSS Module */

body {
    overflow: hidden;
}

h2 {
    font-family: var(--font-exo);
}

h2 small {
    font-size: 1rem;
    font-weight: 300;
}

.flex-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.section-pricing {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    /* position: relative; */
    display: none;
}

.section-pricing img {
    position: absolute;
    z-index: -1;
    /* Older positioning
    left: -12%;
    top: 80%;
    transform: scale(2.3); */
    left: -31%;
    top: 7%;
    -webkit-transform: scale(0.85);
        -ms-transform: scale(0.85);
            transform: scale(0.85);
}

.section-subscription img {
    position: absolute;
    z-index: -1;
    /* Older positioning
    left: -12%;
    top: 80%;
    transform: scale(2.3); */
    left: -31%;
    top: 7%;
    -webkit-transform: scale(0.85);
        -ms-transform: scale(0.85);
            transform: scale(0.85);
}

.section-subscription {
    --ratio: 1.75;
    -ms-flex-preferred-size: calc(100% * var(--ratio, 1));
        flex-basis: calc(100% * var(--ratio, 1));
}

.section-subscription .table:first-child {
    -ms-flex-preferred-size: calc(100% / var(--ratio, 1));
        flex-basis: calc(100% / var(--ratio, 1));
}

.section-subscription .table:last-child {
    -ms-flex-preferred-size: 1px;
        flex-basis: 1px;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    z-index: -1;
}

.glassy-card {
    padding: 1.5rem;
    background-color: rgb(0 0 0 / 0.37);
    border: 0.5px solid var(--grey);
    border-radius: 0.75rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.table .row {
    margin-block: 1.5rem 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
}

.table .row.header {
    font-size: 1.2rem;
    margin: 0;
}

.table .col.wide {
    font-size: 1.2rem;
    -ms-flex-preferred-size: 150%;
        flex-basis: 150%;
}

.table p {
    margin: 0;
}

.feature-desc {
    font-size: 0.8rem;
}

.section-subscription .table {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

.section-subscription .table .row {
    -ms-flex-preferred-size: 2.5rem;
        flex-basis: 2.5rem;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
}

@media screen and (max-width: 620px) {

    .text-right .feature .col {
        position: relative;
        display: inline-block;
    }

    .text-right .feature .col .feature-desc {
        visibility: hidden;
        width: 100%;
        background-color: var(--accent-orange);
        color: var(--darkest-blue);
        text-align: center;
        border-radius: 6px;
        padding: 15px;
        position: absolute;
        z-index: 1;
        top: 25px;
        right: -45%;
        font-size: 1.25rem;
        font-weight: 400;
    }

    .text-right .feature .feature-desc::after {
        content: "";
        position: absolute;
        top: -19px;
        left: 50%;
        margin-left: -5px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent transparent var(--accent-orange) transparent;
    }

    .text-right .feature:hover .feature-desc,
    .text-right .feature .col .feature-name:hover .feature-desc {
        visibility: visible;
    }

    .text-right .feature .col .feature-name {
        position: relative;
        margin-right: 1.5rem;
    }

    .text-right .feature .col .feature-name::after {
        /* content: url('../img/tooltip.png');
        width: 10px;
        height: 10px; */
        position: absolute;
        background-image: url('../img/tooltip.png');
        background-size: 1rem 1rem;
        display: inline-block;
        width: 1rem; 
        height: 1rem;
        content:"";
        margin-left: .5rem;
    }

}

@media screen and (max-width: 480px) {

    .flex-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .section-subscription .flex-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .section-pricing img {
        left: 4%;
        top: 10%;
        -webkit-transform: scale(1.65);
            -ms-transform: scale(1.65);
                transform: scale(1.65);
    }

    .section-subscription .table .row {
        -ms-flex-preferred-size: 1.5rem;
            flex-basis: 1.5rem;
    }

}