.tabs__container {
    position: relative;
    margin: var(--section-spacing) auto;
    max-width: 700px;
}

.tab__nav {
    overflow-x: hidden;
}

.tab__nav-inner {
    display: flex;
    grid-gap: 0.3rem;
    gap: 0;
    padding: 0;
    overflow: visible;
    transform: translateX(var(--sliderLeftPosition));
    transition: transform 600ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
    grid-auto-flow: column;
    width: 100%;
    scroll-snap-type: x proximity;
}

.disabled+.tab__nav>.tab__nav-inner {
    width: 100%;
    margin-left: 0px;
}

.tab__nav-inner:before {
    content: "";
}

.tab__nav .tab__nav-item {
    text-decoration: none;
    text-align: center;
    color: var(--text-color-card);
    font-size: 0.85rem;
    background: #E5E7EB;
    padding: 0.75rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: calc(100% / 2);
    max-width: calc(100% / 2);
    border-right: 1px solid #D1D5DB;
    max-width: 170px;
    min-height: 42px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab__nav .tab__nav-item:last-child {
    border-right: 0;
}

.tab__nav .active {
    background: #fff;
    border-top: 2px solid var(--color-cta);
    font-weight: bold;
}

.tab__nav .tab__nav-item:hover {
    text-decoration: none;
}

/* [CONTENTS] */
.tab__contents {
    position: relative;
    padding: 25px;
    background: var(--color-primary-lightest);
    box-shadow: 0 3px 4px -2px var(--box-shadow-color-dark);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 2 !important;
}

.tab__contents .tab__contents-item {
    max-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--text-color-card);
}

.tab__contents-item a {
    color: var(--text-color-card);
    cursor: pointer;
    text-decoration: underline;
}

.tab__contents .tab__contents-item p {
    color: var(--text-color-card);
    max-width: none;
    margin: 0.75rem 0;
}

.tab__contents .tab__contents-item p:first-of-type {
    margin-top: 0;
}

.tab__contents .tab__contents-item h2 {
    margin-bottom: 0.75rem;
}

.tab__contents .tab__contents-item h3 {
    margin-bottom: 0.5rem;
}

.tab__contents .active {
    max-height: 100%;
    /* overflow: auto; */
}

.tab__contents-item>*:first-child {
    margin-top: 0;
}

.tab__nav-button {
    position: absolute;
    top: 0;
    height: 42px;
    width: 40px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    background: #E5E7EB;
    z-index: 9;
}

.tab__nav-button.tab__nav-button--left:not(.disabled) {
    display: flex;
}

.tab__nav-button.disabled {
    display: none;
}

.tab__nav-button--left {
    display: flex;
    left: 0;
}

.tab__nav-button--right {
    right: 0;
}

.tab__nav-item:not(:nth-last-child(-n + 3)),
.tab__nav-item:first-child:not(:nth-last-child(-n + 3)) ~ .tab__nav-item,
.tab__nav-item:first-child:nth-last-child(n + 4) ~ .tab__nav-item {
    min-width: calc(100% / 3);
    max-width: calc(100% / 3);
}
@media (min-width: 480px) {
    .tab__nav .tab__nav-item {
        min-width: calc(100% / 3);
        max-width: calc(100% / 3);
    }
}

@media (min-width: 992px) {
    .tab__nav-item:not(:nth-last-child(-n + 3)),
    .tab__nav-item:first-child:not(:nth-last-child(-n + 3)) ~ .tab__nav-item,
    .tab__nav-item:first-child:nth-last-child(n + 4) ~ .tab__nav-item,
    .tab__nav .tab__nav-item {
        min-width: 25%;
        max-width: 25%;
    }
}

@media (min-width: 860px) {
    .tabs__container {
        margin: var(--section-spacing-desktop) auto;
    }

    .tab__nav {
        display: flex;
    }
}
