/* ---------- mobile ---------- */

.overview-module-wrap {
    padding: 0 16px;
    margin-bottom: 64px
}

.overview-module-wrap .overview-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 16px;
    max-width: 80rem;
    margin: 0 auto;
}

.overview-module-wrap .overview-module-grid h2 {
    grid-column: span 4;
    text-align: center;
    margin-bottom: 48px;
}

.overview-module-wrap .overview-module-grid .overview-flex {
    grid-column: span 4;
    margin-bottom: 48px;
}

.overview-module-wrap .overview-module-grid .overview-flex .corporate-split {
    display: flex;
    flex-direction: column-reverse;
    row-gap: 16px;
    margin-bottom: 48px;
    text-decoration: none !important;
    color: var(--black) !important;
}

.overview-module-wrap .overview-module-grid .overview-flex .corporate-split img {
    border-radius: var(--radius-md);
}

.overview-module-wrap .overview-module-grid .overview-flex .other-plans {
    list-style: none;
} 

.overview-module-wrap .overview-module-grid .overview-flex .other-plans li {
    border-bottom: var(--border) solid black;
    padding: 16px 0;

    &:last-of-type {
        border-bottom: none;
    }
}

.overview-module-wrap .overview-module-grid .overview-flex .other-plans li a {
    text-decoration: none;
    color: black;
}

.overview-module-wrap .overview-module-grid .overview-flex .other-plans li a .plan-icon {
    display: none;
 }

.overview-module-wrap .overview-module-grid .button-look {
    grid-column: span 4;
    border: var(--border) solid black;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: black;
    border-radius: var(--radius-md);
    justify-self: center;
    width: 100%;
}

/* ---------- tablet ---------- */

@media screen and (min-width: 48rem) {
    .overview-module-wrap .overview-module-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .overview-module-wrap .overview-module-grid h2 {
        grid-column: span 6;
    }

    .overview-module-wrap .overview-module-grid .overview-flex {
        grid-column: span 6;
    }

    .overview-module-wrap .overview-module-grid .overview-flex .corporate-split {
        border-radius: var(--radius-md);
        flex-direction: row;
        column-gap: 16px;
        background-color: #f8f8f8;
        padding: 16px;
    }

    .overview-module-wrap .overview-module-grid .overview-flex .corporate-split picture,
    .overview-module-wrap .overview-module-grid .overview-flex .corporate-split h3 {
        width: calc(50% - 8px);
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans {
        display: flex;
        flex-wrap: wrap;
        column-gap: 16px;
    }
    
    .overview-module-wrap .overview-module-grid .overview-flex .other-plans li {
        width: calc(50% - 8px);

        &:nth-child(1),
        &:nth-child(2) {
            padding-top: 0;
        }

        &:last-of-type {
            border-bottom: var(--border) solid var(--black);
        }
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans li a {
        display: flex;
        column-gap: 32px;
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans li a .plan-icon {
        display: block;
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans li a .plan-icon img {
        border-radius: var(--radius-sm);
        width: calc(48px + 16px + 16px);
    }

    .overview-module-wrap .overview-module-grid .button-look {
        grid-column: span 6;
        max-width: 66.66666%;
    }

    .overview-module-wrap .overview-module-grid .other-plans li a > span:last-of-type {
        flex-shrink: 99999999;
    }
}

/* ---------- laptop ---------- */

@media screen and (min-width: 80rem) {
    .overview-module-wrap {
        margin-bottom: 96px;
    }

    .overview-module-wrap .overview-module-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .overview-module-wrap .overview-module-grid h2 {
        grid-column: 2 / span 10;
    }

    .overview-module-wrap .overview-module-grid .overview-flex {
        grid-column: span 12;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .overview-module-wrap .overview-module-grid .overview-flex .corporate-split {
        column-gap: 24px;
        width: calc(50% - 12px);
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans {
        width: calc(50% - 12px); 
    }

    .overview-module-wrap .overview-module-grid .overview-flex .corporate-split picture,
    .overview-module-wrap .overview-module-grid .overview-flex .corporate-split h3 {
        width: calc(50% - 12px);
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans {
        column-gap: 24px;
    }

    .overview-module-wrap .overview-module-grid .overview-flex .other-plans li {
        width: calc(50% - 12px);
        height: fit-content;
        border-bottom: 0 !important;
    }
    
    .overview-module-wrap .overview-module-grid .overview-flex .other-plans li a .plan-icon img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: var(--radius-sm);
    }

    .overview-module-wrap .overview-module-grid .button-look {
        grid-column: span 12;
        max-width: 33.33333%;
    }
}