@use "../variable" as *;

.rbfb-tabs {
    width: fit-content !important;

    &__wrapper {
        position: relative;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    &__indicator {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: $primary;
        transition:
            transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
            width 420ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 150ms ease;
        z-index: 0;
    }

    &__item {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        border: none;
        outline: none;
        background: transparent;
        color: $gray-500;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        transition:
            color 220ms ease,
            transform 160ms ease;
    }

    &--disabled {
        opacity: 0.5;
        cursor: not-allowed;

        .rbfb-tabs__item {
            cursor: not-allowed;
        }
    }
}
