/*----------TAB NAVIGATION----------*/

.ti-tab-navigation-section {
    position: sticky;
    top: 77px;
    z-index: 50;
    width: 100%;
}

body.admin-bar .ti-tab-navigation-section {
    top: 109px;
}

.ti-tab-navigation-section-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--ti-color-yellow);
    height: 44px;
}

.ti-tab-navigation-wrapper {
    max-width: 100%;
}

.ti-tab-navigation-container {
    position: relative;
    padding: 0 40px;
}

.ti-tab-navigation {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.ti-tab-navigation::-webkit-scrollbar {
    display: none;
}

.ti-tab-item {
    display: flex;
    align-items: center;
    padding: 3px 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ti-color-black);
    flex-shrink: 0;
    position: relative;
    font-size: var(--ti-font-size);
}

button.ti-tab-item {
    background: none;
    border: none;
    text-decoration: none;
}

.ti-tab-item.active span {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.ti-tab-icon {
    margin-right: 10px;
    font-size: 19px;
}

.ti-tab-scroll-button {
    width: 30px;
    height: 100%;
    z-index: 7;
    position: absolute;
    top: 0;
    background: none;
}

.ti-tab-scroll-button:focus-visible,
.ti-tab-scroll-button:focus,
.ti-tab-scroll-button:hover,
.ti-tab-scroll-button:active {
    outline: none;
    background: none;
}

.ti-tab-scroll-button-left {
    left: 5px;
}

.ti-tab-scroll-button-right {
    right: 5px;
}

.ti-tab-scroll-button i {
    font-size: 20px;
    color: var(--ti-color-black);
}

.ti-tab-navigation-container:not(.ti-show-right-mask) .ti-tab-scroll-button-right,
.ti-tab-navigation-container:not(.ti-show-left-mask) .ti-tab-scroll-button-left {
    cursor: not-allowed;
    opacity: 0.5;
}

.ti-tab-navigation-container.ti-show-left-mask::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, var(--ti-color-yellow), transparent);
    z-index: 2;
    pointer-events: none;
}

.ti-tab-navigation-container.ti-show-right-mask::after {
    content: '';
    position: absolute;
    top: 0;
    right: 40px;
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, var(--ti-color-yellow), transparent);
    z-index: 2;
    pointer-events: none;
}

/*----------TAB CONTENT----------*/

.ti-tab-content {
    display: none;
}

.ti-tab-content.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

.ti-button-nav-container {
    display: flex;
    margin-top: 30px;
}

.ti-previous-tab-button {
    margin-right: auto;
    width: 167.5px;
}

.ti-next-tab-button {
    margin-left: auto;
    width: 167.5px;
}

/*----------MEDIA QUERIES----------*/

@media (min-width: 1367px) {
    .ti-tab-item:hover span {
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }
}

@media (max-width: 1024px) {
    .ti-tab-navigation {
        justify-content: flex-start;
        align-items: center;
    }
}

@media (max-width: 782px) {
    body.admin-bar .ti-tab-navigation-section {
        top: 123px;
    }
}

@media (max-width: 768px) {
    .ti-tab-scroll-button i {
        font-size: 18px;
    }
}

@media (max-width: 525px) {
    .ti-button-nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .ti-previous-tab-button,
    .ti-next-tab-button {
        width: 100%;
        margin: 0;
    }
}
