/* SECTION - VARIANT 1 ------------------- ------------------- ------------------ */
.btn-tab,
.gl-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    width: -moz-fit-content;
    padding: 4px;
    border-radius: 9px;
    background: var(--colors-bg-component-bg-grey-regular, #F0F3FA);
}

.btn-tab__button,
*[data-tab-button] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    background-color: transparent;
    font-weight: 500;
    color: var(--colors-text-text-terciary);
    transition: all 0.3s ease-in-out;
}

.btn-tab__button:hover,
*[data-tab-button]:hover {
    background-color: var(--colors-product-product-light);
}

.btn-tab__button--bg,
.btn-tab__button.active,
*[data-tab-button][data-tab-active="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--colors-content-content-1);
    background-image: var(--colors-bg-gradient-primary);
    background-size: cover;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--colors-text-text-white);
}

.btn-tab__icon {
    width: 20px;
    height: 20px;
}

.btn-tab__icon.animate-rotate:hover {
    animation: rotate360 1s ease;
}

[data-tab-content] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    height: 0;
    transform: scaleY(0);
    transition: opacity 0.4s ease-in-out;
}

[data-tab-content][data-tab-active="true"] {
    position: static;
    visibility: visible;
    height: 100%;
    transform: scaleY(1);
    opacity: 1;
}
/* !SECTION - VARIANT 1 ------------------- ------------------- ------------------ */

/* SECTION - VARIANT 2 ------------------- ------------------- ------------------- */
.gl-tab[data-variant="2"] {
    position: relative;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    max-width: 100%;
    background: none;
    border-radius: 0;
    overflow-x: auto;
}

.gl-tab[data-variant="2"]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: var(--ro-radii-3xl);
    z-index: 1;
}

.gl-tab[data-variant="2"] *[data-tab-button] {
    position: relative;
    border-radius: 0;
    background: none;
    padding-bottom: var(--ro-padding-lg);
    white-space: nowrap;
    color: var(--ro-colors-accent);
}

.gl-tab[data-variant="2"] *[data-tab-button]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--ro-colors-accent-light);
    background-image: linear-gradient(0deg, currentColor 3px, transparent 0) no-repeat, linear-gradient(0deg, currentColor 2px, transparent 0) no-repeat;    background-size: 100% 100%, 0 100%;
    background-size: 0% 100%,0 100%;
    z-index: 1;
    transition: background 0.3s ease-in-out;
}

.gl-tab[data-variant="2"] *[data-tab-button]:first-child::after {
    border-start-start-radius: var(--ro-radii-3xl);
    border-end-start-radius: var(--ro-radii-3xl);
}

.gl-tab[data-variant="2"] *[data-tab-button]:last-child::after {
    border-end-end-radius: var(--ro-radii-3xl);
    border-start-end-radius: var(--ro-radii-3xl);
}

.gl-tab[data-variant="2"] *[data-tab-button]:hover::after,
.gl-tab[data-variant="2"] *[data-tab-button][data-tab-active="true"]::after {
    background: linear-gradient(0deg, currentColor 3px, transparent 0) no-repeat, linear-gradient(0deg, currentColor 2px, transparent 0) no-repeat;
    background-size: 100% 100%, 0 100%;
}
/* !SECTION - VARIANT 2 ------------------- ------------------- ------------------- */

/* SECTION - AXE Vertical ------------------- ------------------- ----------------- */
.gl-tab[data-axe="vertical"] {
    flex-direction: column;
}

.gl-tab[data-axe="vertical"][fullwidth] {
    width: 100%;
}

.gl-tab[data-axe="vertical"] *[data-tab-button] {
    width: 100%;
}
/* !SECTION - AXE Vertical ------------------- ------------------- ----------------- */
.gl-tab {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.gl-tab::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.gl-tab::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.gl-tab::-webkit-scrollbar-track {
    background-color: transparent;
}