@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
} 

.tabs20 {
    --tab-primary: var(--accent-color-light-grey);
    --tab-secondary: var(--background-color);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    column-gap: 1px;
}

.tabs20 .tab-header-mobile {
    width: 40vh;
    background-color: var(--tab-title-background-color-active, #fff);
    border-radius: 4px;
    border: 1px solid var(--tab-title-border-color, #ccc);
    color: var(--tab-title-color-active, #000);
    font-size: 16px;
    height: 50px;
    line-height: 1.75;
    text-align: center;
    padding: 12px 10px 14px 10px;
    appearance: none;
    margin: 0;
    grid-row: 3;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.tabs20 .tab-header-mobile select{
    font-size: 20px;
    font-family: var(--text-font-family, sans-serif);
    border: none;
    align-items: center;
    background: none;
    color: var(--tab-title-color-active, #000);
    appearance: none;

    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

.tab-header-mobile i {
    pointer-events: none;
}

.tabs20 .tab-header {
    grid-row: 1 / span 2;
    grid-column: 1;
    display: grid;
    justify-content: stretch;
    align-content: end;
    cursor: pointer;
    gap: 10px;
    grid-template-rows: subgrid;
}

.tabs20 .tab-header:not(.active) .icon {
    display: none;
}

.tabs20 .tab-title {
    padding: 18px 29px 19px;
    display: none;
    font-size: 15px;
    place-content: center;
    background-color: var(--tab-title-background-color,#fff);
    color: var(--tab-title-color, #000);
}

.tabs20 .active .tab-title {
    color: var(--tab-title-color-active, #000);
    background-color: var(--tab-title-background-color-active,#fff);
    font-weight: 700;
}

.tabs20 .active .tab-title::before {
    background-color: var(--accent-color,#000);
}

.tabs20__header-icon {
    display: none;
    justify-content: center;
    padding: 0 0.5rem;
    font-size: 50px;
    max-height: 50px;
    min-height: 50px;
    color: var(--tab-icon-color, #000);
}

.tabs20__header-icon--medium {
    font-size: 75px;
    max-height: 100px;
    min-height: 100px;
}

.tabs20__header-icon--large {
    font-size: 100px;
    max-height: 150px;
    min-height: 150px;
}

.tabs20 .tab-header img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}


.tabs20 .tab-content {
    display: none;
    margin-top: var(--module-gap, 3rem);
}

.tabs20 .tab-content.active {
    display: block;
    animation: fadein 200ms forwards;
}

@media screen and (min-width: 992px) {
    .tabs20 {
        grid-template-columns: repeat(var(--num-tabs), 1fr);
    }

    .tabs20__header-icon {
        display: flex;
    }

    .tabs20 .tab-header-mobile {
        display: none;
    }

    .tabs20 .tab-header:not(.active) .icon {
        display: flex;
    }

    .tabs20 .tab-header {
        grid-column: var(--tab-index);
    }

    .tabs20 .tab-title {
        display: grid;
        position: relative;
        margin-top: 4px;
    }

    .tabs20 .tab-title::before{
        content: '';
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        top: -4px;
        background-color: transparent;
        border-radius: 4px 4px 0 0;
    }

    .tabs20 .active .tab-title::before{
        background-color: var(--accent-color);
    }

    .tabs20 .tab-content {
        grid-column: span var(--num-tabs);
        grid-row: 4;
    }
}
